/* Hamad Al-Bishan identity, shared by administration and employee workspaces. */
:root:not(:has(.public-page)){--ink:#382929;--nav:#450a0a;--deep:#450a0a;--accent:#7f1d1d;--green:#7f1d1d;--mint:#fef2f2;--line:#ecdada;--wash:#faf8f8}
body:not(:has(.public-page)){background:#faf8f8;color:#382929}
.reference-owner{--ref-ink:#382929;--ref-muted:#786565;--ref-border:#ecdada;--ref-navy:#450a0a;--ref-gold:#7f1d1d;--ref-blue:#b34b3e;--ref-teal:#ae7663}
.reference-owner .owner-sidebar,.shell .sidebar{background:linear-gradient(170deg,#7f1d1d,#450a0a);color:#fff5f5}
.reference-owner .owner-sidebar .nav-item,.shell .sidebar .nav-item{color:#f7e3e3}
.reference-owner .owner-sidebar .nav-item.active,.shell .sidebar .nav-item.active{background:#9d3535;box-shadow:inset -3px 0 0 #f4c2b6;color:#fff}
.reference-owner .owner-sidebar .nav-item:hover,.shell .sidebar .nav-item:hover{background:#8b2929;color:#fff}
.reference-owner .owner-sidebar .sidebar-label,.shell .sidebar-label{color:#ebc4c4}
.reference-owner .ref-brand-symbol{color:#f4c2b6}
.reference-owner .ref-sidebar-brand small,.shell .sidebar-brand small{color:#f0d3d3}
body:not(:has(.public-page)) :is(.surface,.ref-panel,.candidate-card){border-color:#ecdada;box-shadow:0 6px 25px #7f1d1d07}
.reference-owner .owner-header,.shell .topbar{border-color:#ecdada;box-shadow:0 1px 10px #7f1d1d04}
.reference-owner .owner-header-search{background:#faf8f8;border-color:#ecdada}
body:not(:has(.public-page)) :is(.owner-profile-avatar,.user-dot,.staff-profile-avatar,.demo-avatar){background:#fbeaea;color:#7f1d1d}
body:not(:has(.public-page)) :is(.page-heading p,.ref-topline p,.owner-profile small,.ref-metric-copy small){color:#786565}
body:not(:has(.public-page)) :is(.page-kicker,.ref-panel-head>a,.text-link,.demo-entry){color:#7f1d1d}
body:not(:has(.public-page)) .ref-company-tab.featured{background:#fef2f2;border-color:#cd9393;color:#7f1d1d}
body:not(:has(.public-page)) .ref-company-tab:hover{border-color:#7f1d1d}
body:not(:has(.public-page)) .company-name-pill{background:#fef2f2!important;border-color:#e4caca!important;color:#7f1d1d!important}
body:not(:has(.public-page)) :is(.ref-metric.mint,.ref-metric.blue,.ref-metric.aqua,.ref-metric.gold,.shell .metric){background:linear-gradient(140deg,#fef2f2,#fff)}
body:not(:has(.public-page)) :is(.ref-metric-copy strong,.shell .metric strong){color:#7f1d1d}
body:not(:has(.public-page)) :is(.ref-metric>i,.shell .metric-top i){background:#fbe4e4!important;color:#7f1d1d!important}
body:not(:has(.public-page)) .btn.primary{background:#7f1d1d;border-color:#7f1d1d;color:#fff;box-shadow:0 4px 12px #7f1d1d19}
body:not(:has(.public-page)) .btn.primary:hover{background:#450a0a;border-color:#450a0a}
body:not(:has(.public-page)) .btn.outline{border-color:#e4caca;color:#7f1d1d;background:#fff}
body:not(:has(.public-page)) :is(.btn,a,input,select,textarea):focus-visible{outline-color:#b34b3e}
body:not(:has(.public-page)) :is(.field input,.field select,.field textarea,.toolbar input,.toolbar select,.advanced-filters select,.owner-filters select,.owner-filters input){border-color:#e4caca;color:#382929}
body:not(:has(.public-page)) :is(.field input,.field select,.field textarea):focus{border-color:#7f1d1d;box-shadow:0 0 0 3px #7f1d1d12}
body:not(:has(.public-page)) th{background:#faf0f0;color:#744343}
body:not(:has(.public-page)) td{color:#493333}
body:not(:has(.public-page)) tbody tr:hover{background:#fff6f6}
body:not(:has(.public-page)) .ref-comparison .company-row{background:#fff7f7}
body:not(:has(.public-page)) .modal-head{background:#faf4f4;border-color:#ecdada}
body:not(:has(.public-page)) .modal-head .icon-btn{background:#fbe4e4;color:#7f1d1d}
body:not(:has(.public-page)) :is(.modal-body .detail-grid>div,.owner-detail .detail-grid>div){background:#faf8f8;border-color:#ecdada}
.auth-page-simple{background:radial-gradient(ellipse at 18% 10%,#f7dfdf,transparent 45%),#faf8f8}
.auth-form.surface{border-color:#ecdada;box-shadow:0 16px 65px #7f1d1d0d}
.auth-title h1{color:#450a0a}
body:not(:has(.public-page)) .auth-tab.active{background:#7f1d1d;color:#fff}
body:not(:has(.public-page)) :is(.auth-notice,.employee-number){background:#fef2f2;border-color:#e4caca;color:#7f1d1d}
body:not(:has(.public-page)) .auth-pending-approval{background:#fff5f5;border-color:#cd9393;color:#7f1d1d;box-shadow:0 8px 22px #7f1d1d13}
body:not(:has(.public-page)) .import-banner{background:#fff7f7;border-color:#ecdada}
body:not(:has(.public-page)) .file-drop{border-color:#cd9393;color:#7f1d1d}
body:not(:has(.public-page)) .brand-mark{background:#7f1d1d;color:#fff}
body:not(:has(.public-page)) .tabulator{color:#493333}
body:not(:has(.public-page)) .tabulator .tabulator-header{background:#faf0f0;border-color:#ecdada;color:#744343}
body:not(:has(.public-page)) .tabulator .tabulator-header .tabulator-col{background:#faf0f0;border-color:#f0e2e2}
body:not(:has(.public-page)) .tabulator .tabulator-row{border-color:#f0e2e2}
body:not(:has(.public-page)) .tabulator .tabulator-row.tabulator-row-even{background:#fffafa}
body:not(:has(.public-page)) .tabulator .tabulator-row:hover{background:#fff3f3!important}
body:not(:has(.public-page)) .tabulator .tabulator-cell{border-color:#f0e2e2}
body:not(:has(.public-page)) .tabulator .tabulator-tableholder{scrollbar-color:#dbb4b4 #faf8f8}
/* Match the more specific workspace rules inherited from the previous theme. */
.shell .content .page-kicker{color:#7f1d1d}
.shell .sidebar .brand-mark{background:#7f1d1d;color:#fff}
.reference-owner .section-heading h2 svg,.shell .section-heading h2 svg,.shell .content .page-heading h1 svg{color:#7f1d1d}
.shell .workspace,.shell .content,.reference-owner .owner-main{background:#faf8f8}
.modal:has(.invoice-pdf-preview){width:min(1000px,96vw);max-width:1000px}
.invoice-pdf-preview{display:block;width:100%;height:65vh;min-height:320px;border:1px solid #ecdada;border-radius:10px;background:#faf8f8}
.invoice-preview-summary{overflow-wrap:anywhere;line-height:1.8}
@media(max-width:600px){.modal:has(.invoice-pdf-preview) .modal-body{padding:12px}.invoice-pdf-preview{height:60vh}.modal:has(.invoice-pdf-preview) .modal-actions{flex-wrap:wrap}}
