.dashboard-brand-mark{display:none}
.dashboard-search{display:flex;align-items:center;gap:10px;margin:0;min-height:43px;padding:0 12px 0 14px;border:1px solid #d8d6ce;border-radius:10px;background:#fff;color:#68777e;letter-spacing:0;text-transform:none;transition:border-color .15s,box-shadow .15s}
.dashboard-search:focus-within{border-color:#9d7934;box-shadow:0 0 0 3px rgba(177,138,62,.12)}
.dashboard-search-icon{display:grid;place-items:center;flex:0 0 20px;color:#66777d}
.dashboard-search-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
.dashboard-search input{width:100%;min-height:39px;padding:0;border:0;outline:0;background:transparent;color:#273940;font-size:14px}
.dashboard-search input::placeholder{color:#879197}
.dashboard-search button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#f0eee8;color:#56666d;cursor:pointer;font-size:18px;line-height:1}
.dashboard-search button:hover{background:#e7e3d8;color:#172c32}
.account-logout{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 9px;border:1px solid #dedbd2;border-radius:7px;background:#fff;color:#4d5d63;cursor:pointer;font-size:11px;font-weight:600}
.account-logout span{font-size:17px;line-height:1}
.account-logout:hover{border-color:#b18a3e;color:#8b6a2a}
.detail-actions{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:10px}
.detail-actions>.button,.detail-actions>details{min-width:0}
.detail-actions>.button{white-space:normal;line-height:1.25}
.detail-edit{position:relative}
.detail-edit>summary{display:flex;align-items:center;justify-content:center;min-height:47px;padding:0 8px;border:1px solid #d6d5cf;border-radius:9px;color:#263d43;cursor:pointer;font-size:11px;list-style:none;text-align:center}
.detail-edit>summary::-webkit-details-marker{display:none}
.detail-edit[open]>summary{border-color:#b18a3e;background:#fbf8ef}
.detail-edit-form{display:grid;gap:12px;margin-top:12px;padding:15px;border:1px solid #e5e3dd;border-radius:9px;background:#fff}
.detail-edit-form label{display:grid;gap:5px;color:#52636c;font-size:10px;font-weight:700;text-transform:uppercase}
.detail-edit-form input:not([type=checkbox]){min-height:36px;padding:0 9px;border:1px solid #d8d6ce;border-radius:6px;background:#fff;color:#273940;font-size:12px}
.detail-edit-form fieldset{display:grid;gap:8px;margin:0;padding:0;border:0}
.detail-edit-form legend{color:#52636c;font-size:10px;font-weight:700;text-transform:uppercase}
.detail-edit-form .category-check-grid,.detail-user-list{display:grid;gap:7px;grid-template-columns:1fr}
.detail-user-row{display:flex;align-items:center;gap:8px}
.detail-user-row .category-check{flex:1;min-width:0}
.detail-user-row .text-button{flex:0 0 auto;white-space:nowrap}
.reset-password-form{display:grid;gap:14px}
.reset-password-form .form-help{margin:0;color:#68777e;font-size:12px}
.detail-edit-form .category-check{display:flex;align-items:center;gap:8px;margin:0;padding:8px;border:1px solid #e5e3dd;border-radius:6px;background:#fcfbf7;color:#273940;font-size:11px;text-transform:none}
.detail-edit-form .button{min-height:40px}
.detail-files-group{margin-top:13px;border-top:1px solid #eceae4}
.detail-files-group>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0 5px}
.detail-files-group>div strong{font-size:12px}
.detail-files-group>div span{color:#68777e;font-size:11px}
.detail-files-group ul{margin:0;padding:0;list-style:none}
.detail-files-group li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid #f0eee8}
.detail-files-group li a{min-width:0;overflow:hidden;color:#6e5521;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.detail-files-group li small{flex:0 0 auto;color:#68777e;font-size:10px}
@media(max-width:620px){.detail-actions{grid-template-columns:1fr}.detail-edit>summary{min-height:40px}.account-logout{padding:0 7px}}
@media(max-width:620px){.detail-user-row{align-items:flex-start;flex-direction:column}.detail-user-row .text-button{padding-left:8px}}

/* Keep the administrative rail independent from the scrolling content. */
.client-dashboard{align-items:start}
.dashboard-sidebar{position:sticky;top:0;height:100vh;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.dashboard-content{min-height:100vh}
.detail-actions{align-items:start}
.detail-actions>.button{align-self:start;height:auto;min-height:47px}
.dashboard-company-row.is-filter-hidden{display:none!important}
.company-status-pills .pill-extra{background:#f1f0ec;color:#6f6e68}
.company-status-pills .pill-extra i{background:#8b8a84;color:#fff}
.detail-extra i{background:#8b8a84}
.detail-extra span{background:#f1f0ec;color:#6f6e68}

/* Central dialogs: editing and documents stay in the current screen. */
.dashboard-modal{width:min(680px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);margin:auto;padding:0;border:0;border-radius:14px;background:transparent;color:#12252b;overflow:visible}
.dashboard-modal::backdrop{background:rgba(7,27,22,.54);backdrop-filter:blur(2px)}
.dashboard-modal-shell{display:flex;flex-direction:column;max-height:calc(100vh - 32px);overflow:hidden;border:1px solid #d9d5ca;border-radius:14px;background:#fff;box-shadow:0 22px 60px rgba(7,27,22,.25)}
.dashboard-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 18px;border-bottom:1px solid #e8e5dd;background:#fcfbf7}
.dashboard-modal-header h2{margin:4px 0 3px;font:600 28px/1.05 var(--serif);color:#102a33}
.dashboard-modal-header p{margin:0;color:#68777e;font-size:12px}
.modal-close{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid #d8d6ce;border-radius:50%;background:#fff;color:#263d43;cursor:pointer;font-size:23px;font-weight:300;line-height:1}
.modal-close:hover{border-color:#b18a3e;color:#8b6a2a}
.dashboard-modal-body{min-height:0;overflow:auto;padding:22px 24px}
.dashboard-modal .client-wizard{display:grid;gap:12px;margin:0;border:0;border-radius:0;background:#fff}
.dashboard-modal .client-wizard fieldset{min-width:0}
.dashboard-modal .detail-edit-form{display:grid;gap:14px;margin:0;border:0;border-radius:0;background:#fff}
.dashboard-modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:16px 24px;border-top:1px solid #e8e5dd;background:#fcfbf7}
.dashboard-modal-footer .button{flex:0 0 auto;min-height:40px;white-space:nowrap}
.dashboard-modal .wizard-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dashboard-modal .wizard-actions .button{min-height:40px}
.dashboard-documents-modal{width:min(760px,calc(100vw - 32px))}
.modal-document-group{border-top:1px solid #eceae4;padding:14px 0 0}
.modal-document-group+ .modal-document-group{margin-top:18px}
.modal-document-group>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.modal-document-group>div strong{font-size:14px}
.modal-document-group>div span{color:#68777e;font-size:11px}
.modal-document-group ul{display:grid;gap:0;margin:9px 0 0;padding:0;list-style:none;border-top:1px solid #f0eee8}
.modal-document-group li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #f0eee8}
.modal-document-group li>div{min-width:0}
.modal-document-group li a:not(.modal-file-action){display:block;overflow:hidden;color:#6e5521;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.modal-document-group li small{display:block;margin-top:3px;color:#68777e;font-size:10px}
.modal-file-action{flex:0 0 auto;color:#6e5521;font-size:11px;font-weight:700;text-decoration:none}
.modal-file-action:hover{text-decoration:underline}
.modal-empty{margin:0;padding:15px 0}
@media(max-width:900px){.dashboard-sidebar{position:relative;height:auto;min-height:0;overflow:visible}.dashboard-account{display:flex}.dashboard-modal-header{padding:19px 18px 15px}.dashboard-modal-body{padding:18px}.dashboard-modal-footer{padding:13px 18px}}
@media(max-width:620px){.dashboard-modal{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.dashboard-modal-shell{max-height:calc(100vh - 20px);border-radius:11px}.dashboard-modal-header h2{font-size:24px}.dashboard-modal-footer{justify-content:stretch}.dashboard-modal-footer .button{flex:1 1 140px}.dashboard-modal .wizard-actions{flex-wrap:wrap}.dashboard-modal .wizard-actions .button{flex:1 1 120px}.modal-document-group li{align-items:flex-start}.modal-file-action{margin-top:2px}}

/* Client portal navigation: make the two primary destinations look and behave like tabs. */
.documents-page .portal-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 24px;padding:5px;border:1px solid #dedbd2;border-radius:12px;background:#f7f5ef}
.documents-page .portal-tabs a{display:flex;align-items:center;justify-content:center;min-height:46px;padding:0 16px;border:1px solid transparent;border-radius:8px;color:#66777e;font-size:13px;font-weight:700;text-align:center;text-decoration:none;transition:background .15s,border-color .15s,color .15s,box-shadow .15s}
.documents-page .portal-tabs a:hover{border-color:#d7c18b;background:#fff;color:#263d43}
.documents-page .portal-tabs a.is-active{border-color:#b18a3e;background:#fff;color:#173c35;box-shadow:0 3px 9px rgba(77,61,28,.10)}
.documents-page .documents-company{display:flex;align-items:baseline;gap:6px;margin:10px 0 0;color:#68777e;font-size:13px}
.documents-page .documents-company strong{color:#263d43;font-size:16px;font-weight:700}
@media(max-width:620px){.documents-page .portal-tabs{gap:5px;margin-bottom:20px;padding:4px}.documents-page .portal-tabs a{min-height:44px;padding:0 8px;font-size:11px}.documents-page .documents-company{margin-top:9px;font-size:12px}.documents-page .documents-company strong{font-size:14px}}

/* Company details use a full page instead of the former compressed side panel. */
.dashboard-list-only{display:block}
.dashboard-list-only .dashboard-company-list{width:100%;max-width:none}
.company-detail-page{padding-bottom:48px}
.company-detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.company-breadcrumb{display:flex;align-items:center;gap:9px;color:#68777e;font-size:13px}
.company-breadcrumb a{color:#8b6a2a;font-weight:700;text-decoration:none}
.company-breadcrumb a:hover{text-decoration:underline}
.company-detail-toolbar>.button{min-height:38px;white-space:nowrap}
.company-detail-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:6px 0 24px;border-bottom:1px solid #e5e2d9}
.company-detail-hero h1{max-width:920px;margin:5px 0 7px;font:600 clamp(28px,3vw,44px)/1.08 var(--serif);letter-spacing:-.02em;color:#102a33}
.company-detail-hero p{margin:0;color:#68777e;font-size:14px}
.company-detail-hero p strong{color:#263d43;font-weight:700}
.company-detail-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.whatsapp-button-icon{display:block;width:20px;height:20px;flex:0 0 20px;fill:none!important;stroke:#fff!important;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8;vertical-align:middle}
.company-detail-actions .button{min-height:42px;white-space:nowrap}
.delete-company-form{margin:0}.company-detail-actions .button.danger{border:1px solid #d3433f;background:#fff;color:#b12f2f}.company-detail-actions .button.danger:hover{background:#fce8e5}
.company-period-panel{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-top:22px;padding:19px 21px;border:1px solid #dedbd2;border-radius:12px;background:#fcfbf7}
.company-period-panel h2{margin:4px 0 4px;font:600 25px/1.1 var(--serif);color:#17333a}
.company-period-panel p{margin:0;color:#68777e;font-size:12px}
.company-period-form{display:flex;align-items:flex-end;gap:10px;flex:0 0 auto}
.company-period-form label{display:grid;gap:5px;margin:0;color:#52636c;font-size:10px;font-weight:700;text-transform:uppercase}
.company-period-form select{min-height:38px;padding:0 28px 0 10px;border:1px solid #d8d6ce;border-radius:7px;background:#fff;color:#273940;font-size:12px}
.company-period-form .button{min-height:38px}
.company-summary{display:flex;align-items:stretch;gap:10px;margin-top:16px}
.company-summary>div{display:grid;gap:3px;min-width:145px;padding:13px 16px;border:1px solid #e5e2d9;border-radius:10px;background:#fff}
.company-summary strong{color:#17333a;font-size:18px}
.company-summary span{color:#68777e;font-size:11px}
.company-summary-warning{min-width:250px!important;border-color:#e6d4a7!important;background:#fbf8ef!important}
.company-summary-warning strong{color:#8b6a2a;font-size:13px}
.company-documents-section{margin-top:25px}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px}
.section-heading-actions{display:flex;align-items:center;gap:12px}.download-all-button{min-height:38px;white-space:nowrap}
.section-heading h2{margin:4px 0 0;font:600 26px/1.1 var(--serif);color:#17333a}
.company-document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.company-document-card{min-width:0;border:1px solid #dce4df;border-radius:11px;background:#fff;overflow:hidden}
.company-document-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 17px 13px;border-bottom:1px solid #edf0eb}
.company-document-card h3{margin:0;color:#17333a;font-size:15px}
.company-document-card header p{margin:5px 0 0;color:#27734e;font-size:12px;font-weight:700}
.company-document-pending{border-color:#f0d4d2}
.company-document-pending header p{color:#b4312f}
.company-document-not_applicable{border-color:#e1e0db;background:#fbfaf7}
.company-document-not_applicable header p{color:#777873}
.company-document-extra{border-color:#ddd9cb}
.company-document-extra header p{color:#777873}
.company-document-badge{flex:0 0 auto;color:#68777e;font-size:11px;white-space:nowrap}
.company-file-list{margin:0;padding:0 17px;list-style:none}
.company-file-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #f0eee8}
.company-file-list li:last-child{border-bottom:0}
.company-file-list li>div{min-width:0}
.company-file-list a:not(.company-file-open){display:block;overflow:hidden;color:#6e5521;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.company-file-list small{display:block;margin-top:3px;color:#68777e;font-size:10px}
.company-file-open{flex:0 0 auto;color:#6e5521;font-size:11px;font-weight:700;text-decoration:none}
.company-file-open:hover{text-decoration:underline}
.company-document-empty{margin:0;padding:14px 17px;color:#68777e;font-size:12px}
@media(max-width:900px){.company-detail-hero,.company-period-panel{align-items:flex-start;flex-direction:column}.company-detail-actions{justify-content:flex-start}.company-period-form{width:100%}.company-period-form label{flex:1}.company-period-form select{width:100%}.company-period-form .button{flex:0 0 auto}}
@media(max-width:620px){.company-detail-toolbar{align-items:flex-start;flex-direction:column;gap:11px}.company-detail-toolbar>.button{width:100%}.company-detail-hero h1{font-size:31px}.company-detail-actions{width:100%;display:grid;grid-template-columns:1fr}.company-detail-actions .button{width:100%}.company-period-panel{padding:16px}.company-period-form{display:grid;grid-template-columns:1fr 1fr}.company-period-form .button{grid-column:1/-1;width:100%}.company-summary{display:grid;grid-template-columns:1fr 1fr}.company-summary>div{min-width:0}.company-summary-warning{grid-column:1/-1!important}.company-document-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-direction:column;gap:4px}.section-heading-actions{width:100%;justify-content:space-between}.download-all-button{flex:0 0 auto}}
:root{
  --green:#0b1f44;
  --green2:#122f62;
  --gold:#d8243f;
  --paper:#f3f5f8;
  --ink:#102343;
  --muted:#647187;
  --line:rgba(16,35,67,.14);
}
.brand{gap:9px}
.portal-header{background:#e9eef5;color:#0b1f44;border-bottom:1px solid rgba(11,31,68,.12)}
.brand img{width:76px;height:46px;object-fit:contain;background:transparent;border-radius:0}
.brand strong{color:#0b1f44}
.brand small{color:#d8243f}
.link-button{color:#0b1f44}
.brand-mark{display:none}
.dashboard-brand{align-items:center}
.dashboard-brand-logo{width:72px;height:46px;object-fit:contain;background:transparent;border-radius:0}
.dashboard-brand strong{color:#0b1f44}
.dashboard-brand small{color:#d8243f}
.dashboard-gold-button{background:#d8243f;box-shadow:0 8px 18px rgba(216,36,63,.16)}
.dashboard-nav a.is-active{background:#e9edf5;color:#0b1f44;box-shadow:inset 3px 0 #d8243f}
.dashboard-nav a.is-active span{color:#d8243f}
.dashboard-brand-mark{display:none}
.account-avatar{background:#0b1f44}
.category-card:hover,.category-card.is-selected{border-color:#d8243f;background:#fff5f6}
.category-icon,.panel-count{color:#d8243f}
.portal-tabs a.is-active{border-color:#d8243f}
.select-files-button,.compact-dropzone{border-color:#d8243f}
