/* Scoped to Configuración → Proyecto and its existing catalog dialog. */
#settings:has(.pr-root){background:#f4f8f7;color:#10243a}#settings:has(.pr-root) #settings-tabs{background:#fff;border:1px solid #dce7e8;box-shadow:0 4px 15px #10243a06;border-radius:14px;padding:0;overflow:hidden}#settings:has(.pr-root) #settings-tabs button{border:0;border-bottom:3px solid transparent;background:#fff;color:#102f50;padding:14px;font-weight:700;border-radius:0}#settings:has(.pr-root) #settings-tabs button.active{color:#08635e;border-bottom-color:#159b72;box-shadow:0 3px 9px #08635e0b}
.pr-root{--pr-primary:#08635e;--pr-border:#dce7e8;display:grid;gap:14px;min-width:0;color:#10243a;font-size:14px}.pr-root *{box-sizing:border-box;min-width:0}.pr-card{margin:0;background:white;border:1px solid var(--pr-border);border-radius:16px;padding:18px 20px;box-shadow:0 6px 24px #10243a0c;overflow:visible}.pr-header{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.pr-header>i{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:linear-gradient(120deg,#dff4ee,#e9f8f6);color:#008a7b}.pr-root svg,#settings-work-catalog-dialog svg{width:19px;height:19px;flex-shrink:0}.pr-header>i svg{width:24px;height:24px}.pr-header>div:not(.pr-actions){flex:1;min-width:180px}.pr-header h3{font-size:16px;font-weight:750;line-height:1.3;color:#102f50;margin:0 0 4px}.pr-header p{font-size:12px;color:#60758a;line-height:1.5;margin:0}.pr-root button{font-family:inherit;font-size:12px;font-weight:650;line-height:1.3;display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:38px;padding:9px 13px;border:1px solid #dce7e8;border-radius:10px;cursor:pointer;transition:background-color 180ms,border-color 180ms,box-shadow 180ms;color:#102f50;background:white}.pr-root button:disabled{cursor:default;opacity:.5}.pr-root button.pr-save{background:linear-gradient(135deg,#08635e,#00766b);color:white;border-color:#08635e;box-shadow:0 3px 8px #08635e10}.pr-root .pr-create{background:#245ef5;color:#fff;border-color:#245ef5;box-shadow:0 3px 8px #245ef512}.pr-root button.pr-remove{background:#fff7f8;color:#d63749;border-color:#f7cbd2;padding:5px 7px;min-height:30px;font-size:11px}.pr-root button.pr-remove svg{width:14px;height:14px}.pr-root button:focus-visible,.pr-root input:focus-visible,.pr-root textarea:focus-visible,#settings-work-catalog-dialog :is(input,select,textarea):focus-visible{outline:2px solid #159b72;outline-offset:2px}.pr-root .pr-status-row{border-top:1px solid #e8eef1;display:flex;gap:10px;justify-content:space-between;align-items:center;padding:8px 0}.pr-root [role=status]{font-size:12px;color:#60758a;line-height:1.4;margin:0}.pr-root [role=alert]{margin:0;color:#d63749;line-height:1.5;font-size:12px}.pr-root [role=alert]:not(:empty){margin-bottom:10px}.pr-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px}.pr-fields label{font-size:12px;color:#102f50;font-weight:700;display:grid;gap:6px}.pr-root :is(input:not([type=checkbox]),textarea){display:block;width:100%;min-width:0;max-width:100%;min-height:38px;border:1px solid #cddde5;border-radius:9px;padding:8px 10px;background:white;color:#10243a;font:400 13px/1.4 system-ui,-apple-system,sans-serif}.pr-root input:disabled{background:#f5f8f9;color:#60758a}.pr-fields input[type=date]{width:100%;min-width:0;max-width:100%;appearance:none}.pr-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.pr-catalogs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.pr-catalog{border:1px solid #dce7e8;border-radius:12px;overflow:hidden;background:#fff}.pr-catalog>header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:space-between;background:linear-gradient(110deg,#eaf5f3,#eff8fa);padding:9px 12px}.pr-catalog h4{margin:0;font-size:11px;color:#102f50;letter-spacing:.02em}.pr-catalog header label{position:relative;display:flex;align-items:center;flex:0 1 245px}.pr-catalog header label svg{position:absolute;left:10px;color:#60758a;width:16px}.pr-catalog header input[type=search]{padding-left:33px;min-height:32px;font-size:11px;border-radius:7px}.pr-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.pr-root table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:11px}.pr-root th,.pr-root td{padding:9px 10px;border-bottom:1px solid #edf2f5;text-align:left;overflow-wrap:anywhere}.pr-root tr:last-child td{border-bottom:0}.pr-root th{color:#102f50;font-size:10px;background:#f7fafb;font-weight:750}.pr-root th:nth-child(1){width:29%}.pr-root th:nth-child(2){width:16%}.pr-root th:nth-child(3){width:35%}.pr-root th:nth-child(4){width:20%}.pr-row-name{display:flex;gap:9px;align-items:center}.pr-row-name i{width:29px;height:29px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#dff4ee;color:#00845b}.pr-row-name .pr-tone-1{background:#e5f2ff;color:#1769d2}.pr-row-name .pr-tone-2{background:#fff1de;color:#ed8000}.pr-row-name small{display:block;color:#60758a;font-size:10px}.pr-root td code{background:#f3f7f9;border:1px solid #dce7e8;padding:2px 4px;border-radius:4px;font:10px system-ui;color:#102f50}.pr-row-actions{display:flex;gap:2px}.pr-root .pr-row-actions button{padding:5px;min-height:32px;width:30px;border:0;border-radius:7px}.pr-root .pr-row-actions button svg{width:16px;height:16px}.pr-root .pr-row-actions [data-pr-deactivate]{color:#e54857}.pr-root td.pr-empty{text-align:center;color:#60758a;line-height:1.6;padding:26px 15px;font-size:12px}.pr-bottom{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);gap:14px;align-items:start}.pr-logos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.pr-logo{border:1px dashed #cddde5;border-radius:11px;padding:10px}.pr-logo>strong{display:block;font-size:11px;color:#102f50;margin-bottom:6px}.pr-logo-pick{display:block;cursor:pointer}.pr-logo-pick>span:first-child{height:83px;display:flex;align-items:center;justify-content:center;color:#60758a;gap:5px}.pr-logo-pick img{max-width:100%;max-height:78px;object-fit:contain}.pr-logo-pick>span:nth-child(2){display:block;font-size:11px;font-weight:650}.pr-root .pr-logo input[type=file]{font-size:10px;min-height:30px;padding:5px;border:0;white-space:normal}.pr-logo>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px}.pr-logo small{font-size:10px;color:#60758a}.pr-preview-status{font-size:11px;color:#60758a;margin:8px 0;line-height:1.5}.pr-paper{min-height:112px;padding:16px 12px;border:1px solid #dce7e8;border-bottom:3px solid #159b72;border-radius:10px;display:grid;grid-template-columns:1fr 1.6fr 1fr;gap:12px;align-items:center;text-align:center;color:#102f50}.pr-paper img{width:100%;max-height:70px;object-fit:contain}.pr-paper strong{font-size:12px;line-height:1.5;display:block}.pr-paper small{font-size:10px;display:block;color:#60758a;margin-top:4px}.pr-paper>span{font-size:11px;color:#60758a}
#settings-work-catalog-dialog{width:min(520px,calc(100vw - 24px));max-height:90dvh;border:1px solid #dce7e8;border-radius:16px;padding:22px;box-shadow:0 18px 60px #10243a30;color:#10243a;background:#fff}#settings-work-catalog-dialog::backdrop{background:#10243a66}#settings-work-catalog-dialog form{display:grid;gap:14px;padding:0}#settings-work-catalog-dialog h3{margin:0;color:#102f50;font-size:20px}#settings-work-catalog-dialog label{display:grid;gap:6px;font-size:13px;font-weight:650}#settings-work-catalog-dialog :is(input:not([type=checkbox]),select,textarea){width:100%;max-width:100%;min-width:0;border:1px solid #cddde5;border-radius:9px;min-height:42px;padding:10px;font:14px system-ui;box-sizing:border-box}#settings-work-catalog-dialog .pr-check{display:flex;align-items:center}#settings-work-catalog-dialog [role=alert]{color:#d63749;font-size:13px;margin:0}#settings-work-catalog-dialog .modal-actions{display:flex;gap:10px;justify-content:flex-end}#settings-work-catalog-dialog button{min-height:42px;border-radius:9px;padding:10px 14px}#settings-work-catalog-save{background:#245ef5!important;color:white!important;border:1px solid #245ef5!important}
@media(hover:hover){.pr-root button:not(:disabled):hover{background:#eaf5f3;border-color:#b8d6d0}.pr-root .pr-save:not(:disabled):hover{background:#064f4b}.pr-root .pr-create:not(:disabled):hover{background:#174ed9;color:white}.pr-root .pr-remove:not(:disabled):hover{background:#fde8ec}.pr-root .pr-row-actions [data-pr-deactivate]:not(:disabled):hover{background:#fde8ec}}
@media(max-width:1150px){.pr-bottom{grid-template-columns:1fr}.pr-catalog>header label{flex:1 1 200px}.pr-header .pr-actions{width:100%}.pr-header>button{margin-left:auto}}
@media(max-width:850px){.pr-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.pr-catalogs{grid-template-columns:1fr}}
@media(max-width:600px){.pr-card{padding:15px 12px}.pr-header{gap:10px}.pr-header>i{flex-basis:42px;width:42px;height:42px}.pr-header h3{font-size:16px}.pr-header>div:not(.pr-actions){min-width:0;flex-basis:calc(100% - 55px)}.pr-header>button,.pr-actions button{width:100%;min-height:44px}.pr-fields,.pr-logos{grid-template-columns:1fr}.pr-root :is(input:not([type=checkbox]),textarea){font-size:16px;min-height:44px}.pr-status-row{flex-wrap:wrap}.pr-root .pr-status-row button{min-height:44px}.pr-root table{min-width:470px}.pr-catalog header label{flex:1 1 100%}.pr-catalog header input[type=search]{font-size:16px;min-height:44px}.pr-catalog h4{font-size:12px}.pr-row-actions button{min-width:36px;min-height:40px}.pr-paper{grid-template-columns:1fr 1fr}.pr-paper>div{grid-column:1/-1;grid-row:1}.pr-paper img{height:60px}.pr-logo-pick>span:first-child{height:105px}.pr-logo-pick img{max-height:95px}.pr-root button.pr-remove{min-height:40px}#settings-work-catalog-dialog :is(input:not([type=checkbox]),select,textarea){font-size:16px}#settings-work-catalog-dialog .modal-actions{flex-wrap:wrap}#settings-work-catalog-dialog button{flex:1;min-height:44px}}
.pr-root .settings-logos>.pr-logos{padding:0;gap:14px}.pr-root .pr-logo-pick{position:relative}.pr-root .pr-logo-pick input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;padding:0;cursor:pointer}.pr-root .pr-logo-pick:focus-within{outline:2px solid #159b72;outline-offset:3px;border-radius:8px}
.pr-root [hidden]{display:none!important}

/* Full-width editor for long official project names. */
.pr-fields .pr-project-name{grid-column:1/-1}.pr-project-name textarea{min-height:94px;resize:vertical;overflow-wrap:anywhere}.pr-project-name small{font-weight:400;color:#60758a;font-size:11px;line-height:1.4}.pr-root textarea:disabled{background:#f5f8f9;color:#60758a}

.pr-catalog-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid #dce7e9;background:#f8fbfb;color:#526d78;font-size:12px}.pr-catalog-footer .pr-refresh{font-size:13px;padding:8px 12px}.pr-catalogs{align-items:start}
