/* UALL-AE: consolidated operability layer. Keeps the established HENDAR identity. */
.sidebar-brand{display:flex;align-items:center;gap:12px}.sidebar-brand-copy{display:grid;line-height:1.05;color:#fff;min-width:0}.sidebar-brand-copy strong{font-size:17px}.sidebar-brand-copy span{font-size:10px;font-weight:900;letter-spacing:.16em;color:#92d8e8}.sidebar-brand-copy small{font-size:9px;color:rgba(255,255,255,.64);margin-top:5px}
.sidebar-collapsed .sidebar-brand-copy{display:none}.sidebar .nav-group-items{display:none!important}.main-nav{display:grid;gap:8px}.nav-root-group{margin:0!important}.nav-root-item{min-height:66px}.nav-root-group.open>.nav-root-item{background:linear-gradient(135deg,rgba(var(--group-rgb),.18),rgba(var(--group-rgb),.06));border-color:rgba(var(--group-rgb),.55)}
.context-subnav{position:sticky;top:var(--topbar-height,76px);z-index:36;display:flex;align-items:center;gap:18px;padding:9px 22px;border-bottom:1px solid var(--ds-border);background:color-mix(in srgb,var(--ds-surface) 94%,transparent);backdrop-filter:blur(16px);box-shadow:0 5px 16px rgba(15,35,55,.05);min-width:0}.context-subnav.hidden{display:none}.context-subnav-heading{display:grid;flex:0 0 auto;line-height:1.15}.context-subnav-heading strong{font-size:12px;color:var(--ds-text)}.context-subnav-heading small{font-size:9px;color:var(--ds-muted);letter-spacing:.08em}.context-subnav-items{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:thin;padding:2px;min-width:0}.context-subnav-item{white-space:nowrap;border:1px solid var(--ds-border);background:var(--ds-surface);color:var(--ds-muted);border-radius:10px;padding:8px 13px;font:800 11px Cairo,Tajawal,sans-serif;cursor:pointer}.context-subnav-item:hover,.context-subnav-item.active{color:var(--ds-text);border-color:var(--tone);box-shadow:inset 0 -3px 0 var(--tone);background:color-mix(in srgb,var(--tone) 7%,var(--ds-surface))}
html[dir="rtl"] .sidebar-collapse-button svg{transform:rotate(180deg)}html[dir="rtl"] .sidebar-collapsed .sidebar-collapse-button svg{transform:none}
.enterprise-kpi-grid,.dashboard-kpi-grid,.command-metric-grid{grid-template-columns:repeat(6,minmax(180px,1fr))!important;overflow-x:auto!important;align-items:stretch!important}.enterprise-kpi-grid>*:last-child,.dashboard-kpi-grid>*:last-child{grid-column:auto!important;grid-row:auto!important}.enterprise-dashboard-view{overflow-x:hidden}
.workspace-view,.hr-center-shell,.project-workspace-main{padding-inline:clamp(12px,1.6vw,28px)!important}.workspace-hero,.hr-center-hero{min-height:auto!important}.workspace-summary,.workspace-stats,.employee-summary-strip{gap:10px!important}.workspace-summary>*{min-height:92px!important}.employee-register-table tr{height:auto!important}.employee-register-table td{padding-block:14px!important;vertical-align:middle!important}.employee-register-table .row-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;max-width:310px}.employee-register-table .row-actions>*{min-height:34px!important;height:auto!important;white-space:normal!important}.employee-profile-hero{min-height:auto!important;padding:22px!important}.employee-profile-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-content:flex-start!important}.employee-profile-actions>*{min-height:40px!important;height:auto!important}.employee-profile-metrics{margin-top:12px!important}
.modal:not(.hidden){display:flex;flex-direction:column;max-height:calc(100dvh - 28px);overflow:hidden!important}.modal>.modal-header{flex:0 0 auto}.modal>form,.modal>.modal-body,.modal>.theme-studio-body{overflow:auto!important;min-height:0}.modal .form-actions{position:sticky!important;bottom:0;z-index:8;margin-top:16px;padding:12px;background:color-mix(in srgb,var(--ds-surface) 96%,transparent);border-top:1px solid var(--ds-border);backdrop-filter:blur(12px)}.modal textarea{max-width:100%}.modal label,.modal input,.modal select,.modal textarea{min-width:0}.modal{z-index:1000!important}.modal-backdrop{z-index:990!important}
.hendar-file-control{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 8px;border:1px dashed var(--ds-border);border-radius:12px;background:var(--ds-surface)}.hendar-file-control input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.hendar-file-button{border:0;border-radius:9px;background:var(--ds-primary);color:var(--ds-on-primary);padding:9px 13px;font:800 11px Cairo,Tajawal,sans-serif;cursor:pointer;white-space:nowrap}.hendar-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ds-muted);font-size:11px}
.project-chat-direct-reply{position:absolute;inset-block-start:50%;inset-inline-end:calc(100% + 7px);transform:translateY(-50%);width:30px;height:30px;border:1px solid var(--ds-border);border-radius:50%;background:var(--ds-surface);color:var(--ds-primary);opacity:0;cursor:pointer}.project-chat-message:hover .project-chat-direct-reply,.project-chat-direct-reply:focus-visible{opacity:1}.project-chat-reply-preview{margin-bottom:6px!important}
.portfolio-health-card,.performance-profile-card{overflow:hidden!important}.portfolio-health-card .project-card,.portfolio-health-card article{max-height:none!important}.performance-profile-card canvas,.performance-profile-card svg{display:block;max-height:230px}.performance-profile-card .chart-summary,.performance-profile-card [class*="average"]{position:static!important;transform:none!important;margin-top:10px!important}.performance-profile-card [class*="legend"]{margin-bottom:12px!important}.portfolio-health-card h2,.portfolio-health-card h3{overflow-wrap:anywhere;line-height:1.35}.portfolio-health-card [class*="metric"]{min-width:0}.portfolio-health-card [class*="action"]{position:static!important;margin-top:12px!important}
table th,table td{word-break:normal!important;overflow-wrap:break-word;line-height:1.45}.row-actions,.form-actions,.workspace-actions{gap:8px;flex-wrap:wrap}.empty-table{min-height:80px!important;padding:20px!important}
.operational-command{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--ds-border);background:color-mix(in srgb,var(--ds-primary) 4%,var(--ds-surface))}.operational-command h3{margin:0 0 4px}.operational-command p{margin:0;color:var(--ds-muted);font-size:11px}.operational-entry-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:18px;border-bottom:1px solid var(--ds-border);background:var(--ds-surface)}.operational-entry-form.hidden{display:none}.operational-entry-form label{display:grid;gap:6px;font-size:11px;font-weight:800}.operational-entry-form .wide{grid-column:1/-1}.operational-alert{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff7ed;border-inline-start:5px solid #f97316;color:#9a3412}.operational-alert strong{white-space:nowrap}.operational-inline-dialog{padding:18px;border-bottom:1px solid var(--ds-border);background:var(--ds-surface)}.operational-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.operational-detail-head h3{margin:4px 0}.operational-detail-head p{margin:0;color:var(--ds-muted)}.operational-detail-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.operational-detail-metrics span{padding:12px;border:1px solid var(--ds-border);border-radius:12px;color:var(--ds-muted)}.operational-detail-metrics b{display:block;margin-top:4px;color:var(--ds-text);font-size:1.15rem}.operational-detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.operational-ledger{margin-top:18px;padding:16px;border-top:1px solid var(--ds-border);overflow:auto}.operational-ledger h4{margin:16px 0 8px}.operational-loading{text-align:center;padding:32px;color:var(--ds-muted)}.needs-action{background:color-mix(in srgb,#ef4444 6%,var(--ds-surface))}.danger-text{color:#b91c1c}.success-text{color:#15803d}
@media(max-width:900px){.context-subnav{top:64px;padding-inline:12px}.context-subnav-heading{display:none}.sidebar-brand-copy{display:grid}.enterprise-kpi-grid,.dashboard-kpi-grid,.command-metric-grid{grid-template-columns:repeat(6,minmax(160px,72vw))!important}.project-chat-direct-reply{opacity:1;position:static;transform:none;margin:3px}.modal:not(.hidden){width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important}.employee-profile-hero{padding:14px!important}.operational-entry-form{grid-template-columns:1fr 1fr}.operational-command{align-items:flex-start;flex-direction:column}.operational-detail-columns,.operational-detail-metrics{grid-template-columns:1fr}}
@media print{.context-subnav{display:none!important}}

/* UALL-AF recovery: direct compact navigation (no dropdown affordance). */
.sidebar .main-nav{display:flex!important;flex-direction:column!important;gap:4px!important;padding:6px 8px 12px!important;align-content:initial!important}
.sidebar .main-nav>.nav-group{flex:0 0 auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:11px!important;background:transparent!important;box-shadow:none!important}
.sidebar .nav-root-item.nav-root-link{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;width:100%!important;height:50px!important;min-height:50px!important;max-height:50px!important;margin:0!important;padding:6px 9px!important;border:1px solid rgba(181,209,226,.12)!important;border-radius:11px!important;background:rgba(5,27,48,.18)!important;color:rgba(239,247,251,.82)!important;overflow:hidden!important;cursor:pointer!important;text-align:start!important}
.sidebar .nav-root-item.nav-root-link:hover{border-color:rgba(var(--group-rgb),.42)!important;background:rgba(var(--group-rgb),.09)!important;color:#fff!important}
.sidebar .nav-root-item.nav-root-link[aria-current="page"]{border-color:rgba(var(--group-rgb),.62)!important;background:linear-gradient(100deg,rgba(var(--group-rgb),.19),rgba(var(--group-rgb),.055))!important;box-shadow:inset -3px 0 0 var(--group-tone)!important;color:#fff!important}
.sidebar .nav-root-link .group-code{width:32px!important;height:32px!important;border-radius:9px!important;font-size:9px!important}
.sidebar .nav-root-link .group-copy{min-width:0!important;overflow:hidden!important;line-height:1.12!important}
.sidebar .nav-root-link .group-copy strong,.sidebar .nav-root-link .group-copy small{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;overflow-wrap:normal!important}
.sidebar .nav-root-link .group-copy strong{font-size:11px!important;color:inherit!important}
.sidebar .nav-root-link .group-copy small{margin-top:3px!important;font-size:7px!important;color:rgba(222,237,246,.42)!important;letter-spacing:.08em!important}
.sidebar :is(.group-count,.group-chevron),.sidebar .nav-group-items{display:none!important}
.sidebar-collapsed .nav-root-item.nav-root-link{grid-template-columns:34px!important;justify-content:center!important;padding-inline:5px!important}.sidebar-collapsed .nav-root-link .group-copy{display:none!important}

/* Editors and training forms always cover the navigation layer. */
#modalBackdrop.modal-backdrop{z-index:12000!important;inset:0!important;width:100vw!important;height:100dvh!important}
#modalBackdrop>.modal{z-index:12001!important}

/* UALL-AF recovery: compact employee and compensation registers. */
#employeesTable,#projectEmployeesTable,#hrPayrollTable{padding-inline:10px!important;overflow-x:auto!important}
#employeesTable table.hr-employee-register,#projectEmployeesTable table.hr-employee-register,#hrPayrollTable table.hr-payroll-register{width:100%!important;max-width:1440px!important;margin-inline:auto!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important}
#employeesTable table.hr-employee-register th:nth-child(1),#projectEmployeesTable table.hr-employee-register th:nth-child(1){width:20%!important}
#employeesTable table.hr-employee-register th:nth-child(2),#projectEmployeesTable table.hr-employee-register th:nth-child(2){width:13%!important}
#employeesTable table.hr-employee-register th:nth-child(3),#projectEmployeesTable table.hr-employee-register th:nth-child(3){width:13%!important}
#employeesTable table.hr-employee-register th:nth-child(4),#projectEmployeesTable table.hr-employee-register th:nth-child(4){width:9%!important}
#employeesTable table.hr-employee-register th:nth-child(5),#projectEmployeesTable table.hr-employee-register th:nth-child(5){width:7%!important}
#employeesTable table.hr-employee-register th:nth-child(6),#projectEmployeesTable table.hr-employee-register th:nth-child(6){width:38%!important}
#hrPayrollTable table.hr-payroll-register th:nth-child(1){width:18%!important}#hrPayrollTable table.hr-payroll-register th:nth-child(2){width:9%!important}#hrPayrollTable table.hr-payroll-register th:nth-child(3){width:13%!important}#hrPayrollTable table.hr-payroll-register th:nth-child(4){width:11%!important}#hrPayrollTable table.hr-payroll-register th:nth-child(5){width:9%!important}#hrPayrollTable table.hr-payroll-register th:nth-child(6){width:14%!important}#hrPayrollTable table.hr-payroll-register th:nth-child(7){width:26%!important}
#employeesTable table.hr-employee-register tr,#projectEmployeesTable table.hr-employee-register tr,#hrPayrollTable table.hr-payroll-register tr{height:auto!important;min-height:0!important}
#employeesTable table.hr-employee-register :is(th,td),#projectEmployeesTable table.hr-employee-register :is(th,td),#hrPayrollTable table.hr-payroll-register :is(th,td){height:auto!important;min-height:0!important;padding:9px 10px!important;vertical-align:middle!important;overflow-wrap:normal!important;word-break:normal!important}
#employeesTable table.hr-employee-register td:last-child,#projectEmployeesTable table.hr-employee-register td:last-child,#hrPayrollTable table.hr-payroll-register td:last-child{overflow:visible!important}
.employee-register-table .hr-employee-row-actions,.hr-payroll-register .hr-payroll-row-actions{display:grid!important;align-items:stretch!important;gap:5px!important;width:100%!important;max-width:none!important;margin:0!important}
.employee-register-table .hr-employee-row-actions{grid-template-columns:repeat(4,minmax(82px,1fr))!important}
.hr-payroll-register .hr-payroll-row-actions{grid-template-columns:repeat(2,minmax(100px,1fr))!important}
.employee-register-table .hr-employee-row-actions>.row-action,.hr-payroll-register .hr-payroll-row-actions>.row-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:31px!important;height:31px!important;margin:0!important;padding:5px 7px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important;font-size:10px!important;line-height:1!important}
.employee-register-table td>strong,.hr-payroll-register td>strong{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.employee-register-table td>small,.hr-payroll-register td>small{display:block!important;margin-top:3px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}

/* Compact the unified employee header instead of reserving a third empty column. */
.hr-unified-hero{grid-template-columns:88px minmax(0,1fr)!important;align-items:center!important;gap:14px!important;min-height:0!important;padding:16px!important}
.hr-unified-actions{grid-column:1/-1!important;display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:6px!important;max-width:none!important;margin-top:2px!important;padding-top:11px!important;border-top:1px solid var(--ds-border,#dbe5ef)!important}
.hr-unified-actions .button{flex:0 0 auto!important;min-height:34px!important;height:34px!important;padding:6px 11px!important;font-size:10px!important;white-space:nowrap!important}
.hr-unified-metrics{gap:7px!important}.hr-unified-metric{min-height:72px!important;padding:10px 12px!important}

/* Payroll ledger is its own scroll document.  It must not inherit the generic
   flex-modal shrinking that previously compressed twelve months into strips. */
#employeePayrollModal.employee-payroll-workspace:not(.hidden){display:block!important;height:auto!important;max-height:calc(100dvh - 24px)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important}
#employeePayrollModal.employee-payroll-workspace>*{flex:none!important;min-height:initial!important}
#employeePayrollModal .employee-payroll-head{min-height:92px!important}
#employeePayrollModal .employee-payroll-toolbar{min-height:64px!important}
#employeePayrollModal .employee-payroll-summary{min-height:82px!important}
#employeePayrollModal .employee-payroll-months{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;gap:9px!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
#employeePayrollModal .employee-payroll-month{display:block!important;flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:68px!important;max-height:none!important;overflow:hidden!important}
#employeePayrollModal .employee-payroll-month>summary{display:grid!important;height:auto!important;min-height:68px!important;max-height:none!important;padding:9px 14px!important;overflow:visible!important}
#employeePayrollModal .employee-payroll-month-body{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
#employeePayrollModal .employee-payroll-action-panel{display:block;flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
#employeePayrollModal .employee-payroll-action-panel.hidden{display:none!important}

@media(max-width:1100px){.employee-register-table .hr-employee-row-actions{grid-template-columns:repeat(2,minmax(105px,1fr))!important}.hr-unified-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:720px){#employeesTable table.hr-employee-register,#projectEmployeesTable table.hr-employee-register,#hrPayrollTable table.hr-payroll-register{min-width:920px!important}.hr-unified-hero{grid-template-columns:64px minmax(0,1fr)!important}.hr-unified-actions{overflow-x:auto!important;flex-wrap:nowrap!important}.hr-unified-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}#employeePayrollModal.employee-payroll-workspace:not(.hidden){max-height:100dvh!important}.employee-payroll-summary{min-height:0!important}}

/* UALL-AE professional plant, subcontract and estimating workspaces. */
#workspaceTable.uall-ae-pro-workspace{display:block!important;min-height:0!important;height:auto!important;padding:0!important;overflow:visible!important;background:transparent!important}
.workspace-metrics:has(.uall-ae-pro-metric){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;padding:8px 0!important;overflow:visible!important}
.uall-ae-pro-metric{position:relative;min-height:76px!important;padding:12px 15px!important;border:1px solid var(--ds-border,#d8e3ec);border-radius:14px;background:var(--ds-surface,#fff);overflow:hidden;box-shadow:0 7px 20px rgba(10,35,58,.045)}
.uall-ae-pro-metric::after{content:"";position:absolute;inset-block:0;inset-inline-end:0;width:4px;background:#245f87}.uall-ae-pro-metric.green::after{background:#36a36f}.uall-ae-pro-metric.amber::after{background:#e39b2d}.uall-ae-pro-metric.red::after{background:#d85252}.uall-ae-pro-metric.cyan::after{background:#45b7d1}
.uall-ae-pro-metric span,.uall-ae-pro-metric small{display:block;color:var(--ds-muted,#738396);font-size:10px;font-weight:750}.uall-ae-pro-metric strong{display:block;margin-top:5px;color:var(--ds-text,#122a40);font-size:21px;line-height:1.1}.uall-ae-pro-metric small{margin-top:4px;font-weight:500}
.uall-ae-pro-tab-title{display:inline-flex;align-items:center;min-height:36px;padding:6px 13px;border:1px solid var(--ds-border,#d8e3ec);border-radius:10px;background:var(--ds-surface,#fff);color:var(--ds-primary,#245f87);font-size:11px;font-weight:900}
.uall-ae-pro-toolbar,.uall-ae-pro-section,.uall-ae-pro-ledger,.uall-ae-pro-roster,.uall-ae-pro-panel{margin:0 0 10px;padding:15px 17px;border:1px solid var(--ds-border,#d8e3ec);border-radius:16px;background:var(--ds-surface,#fff);box-shadow:0 8px 24px rgba(10,35,58,.04)}
.uall-ae-pro-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.uall-ae-pro-toolbar h3,.uall-ae-pro-panel h3,.uall-ae-pro-section h4,.uall-ae-pro-ledger h3{margin:0;color:var(--ds-text,#122a40)}.uall-ae-pro-toolbar h3{font-size:17px}.uall-ae-pro-toolbar p,.uall-ae-pro-panel header p,.uall-ae-pro-ledger p{margin:4px 0 0;color:var(--ds-muted,#738396);font-size:10px}
.uall-ae-pro-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.uall-ae-pro-actions>.button,.uall-ae-pro-actions>button,.uall-ae-pro-row-actions>button,.uall-ae-pro-section header>button,.uall-ae-pro-lines-head>button,.uall-ae-pro-table button{min-height:34px;padding:6px 11px;border:1px solid #bfd0df;border-radius:9px;background:#f6f9fb;color:#245f87;font:800 10px Cairo,Tajawal,sans-serif;cursor:pointer;white-space:nowrap}.uall-ae-pro-actions>.primary,.uall-ae-pro-form>.primary,.uall-ae-pro-inline-form>.primary{border-color:#245f87;background:#245f87;color:#fff}.uall-ae-pro-actions button:disabled,.uall-ae-pro-section button:disabled{opacity:.45;cursor:not-allowed}
.uall-ae-pro-actions label,.uall-ae-pro-toolbar label{display:flex;align-items:center;gap:7px;color:var(--ds-muted,#738396);font-size:10px;font-weight:800}.uall-ae-pro-actions select,.uall-ae-pro-actions input,.uall-ae-pro-date input{height:36px;min-width:145px;border:1px solid var(--ds-border,#d8e3ec);border-radius:9px;background:#fff;padding:5px 9px}
.uall-ae-pro-reminder{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin-bottom:10px;padding:11px 14px;border-inline-start:5px solid #e39b2d;border-radius:12px;background:#fff8ea;color:#8a5818;font-size:11px}.uall-ae-pro-reminder span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uall-ae-pro-reminder em{font-style:normal;font-weight:900}
.uall-ae-pro-table-wrap{width:100%;margin-bottom:10px;border:1px solid var(--ds-border,#d8e3ec);border-radius:15px;background:var(--ds-surface,#fff);overflow:auto}.uall-ae-pro-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto;min-width:980px}.uall-ae-pro-table.compact{min-width:720px}.uall-ae-pro-table th{padding:9px 10px;border-bottom:1px solid #bed0df;background:#f6f9fb;color:#19354b;font-size:10px;text-align:start;white-space:nowrap}.uall-ae-pro-table td{height:auto!important;min-height:0!important;padding:9px 10px!important;border-bottom:1px solid #e3ebf1;vertical-align:middle!important;color:#52677a;font-size:10px;line-height:1.35}.uall-ae-pro-table tbody tr:last-child td{border-bottom:0}.uall-ae-pro-table tbody tr:hover td{background:#f8fbfd}.uall-ae-pro-table tr.is-missing td{background:color-mix(in srgb,#f59e0b 4%,#fff)}.uall-ae-pro-table td strong,.uall-ae-pro-table td b{display:block;color:#17324a;font-size:11px}.uall-ae-pro-table td small{display:block;margin-top:3px;color:#8291a0;font-size:8px;white-space:normal}.uall-ae-pro-table td:last-child{width:1%;white-space:nowrap}.uall-ae-pro-row-actions{display:flex;gap:4px;flex-wrap:nowrap}.uall-ae-pro-chip,.uall-ae-pro-status{display:inline-flex!important;align-items:center;min-height:25px;padding:3px 8px;border:1px solid #bed0df;border-radius:999px;background:#eef4f8;color:#315a75;font-size:9px;font-weight:900;white-space:nowrap}.uall-ae-pro-status.working,.uall-ae-pro-status.available,.uall-ae-pro-status.active,.uall-ae-pro-status.approved,.uall-ae-pro-status.settled,.uall-ae-pro-status.closed{border-color:#b7d9c9;background:#edf8f2;color:#25734d}.uall-ae-pro-status.maintenance,.uall-ae-pro-status.issued,.uall-ae-pro-status.measured,.uall-ae-pro-status.reviewed,.uall-ae-pro-status.balance_due,.uall-ae-pro-status.final_account{border-color:#ead29f;background:#fff8e9;color:#946114}.uall-ae-pro-status.void,.uall-ae-pro-status.out_of_service{border-color:#ebc2c2;background:#fff1f1;color:#a73d3d}
.uall-ae-pro-empty{display:grid;place-items:center;gap:4px;min-height:95px;padding:18px;text-align:center;color:#76879a}.uall-ae-pro-empty b{color:#24425a;font-size:12px}.uall-ae-pro-empty span{font-size:10px}.uall-ae-pro-loading{padding:25px;text-align:center;color:#71869a;font-size:11px}
.uall-ae-pro-panel{position:relative;z-index:2;border-top:4px solid #2e789a;box-shadow:0 18px 45px rgba(9,35,57,.12)}.uall-ae-pro-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:14px;padding-bottom:11px;border-bottom:1px solid #e0e9f0}.uall-ae-pro-panel>header h3{font-size:18px}.uall-ae-pro-close{flex:0 0 38px;width:38px;height:38px;border:1px solid #ccdbe6;border-radius:11px;background:#fff;color:#244f6d;font-size:24px;line-height:1;cursor:pointer}
.uall-ae-pro-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;align-items:start}.uall-ae-pro-form.two{grid-template-columns:repeat(2,minmax(0,1fr))}.uall-ae-pro-form>fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;margin:0;padding:12px;border:1px solid #dbe5ed;border-radius:13px}.uall-ae-pro-form>fieldset.wide,.uall-ae-pro-form>.wide{grid-column:1/-1}.uall-ae-pro-form legend{padding-inline:7px;color:#255d7f;font-size:11px;font-weight:900}.uall-ae-pro-form label,.uall-ae-pro-inline-form label,.uall-ae-pro-settlement label{display:grid;gap:5px;min-width:0;color:#344d61;font-size:10px;font-weight:800}.uall-ae-pro-form label.wide{grid-column:1/-1}.uall-ae-pro-form :is(input,select,textarea),.uall-ae-pro-inline-form :is(input,select),.uall-ae-pro-settlement :is(input,select){width:100%;min-width:0;min-height:39px;padding:7px 10px;border:1px solid #cad9e4;border-radius:10px;background:#fff;color:#173148;font:600 11px Cairo,Tajawal,sans-serif}.uall-ae-pro-form textarea{resize:vertical;min-height:65px}.uall-ae-pro-form .uall-ae-pro-check{display:flex;align-items:center;gap:8px;min-height:42px}.uall-ae-pro-form .uall-ae-pro-check input{width:18px;min-height:18px}.uall-ae-pro-form.compact-form{padding:2px}.uall-ae-pro-help,.uall-ae-pro-lock{margin:0 0 9px;color:#708295;font-size:10px}.uall-ae-pro-lock{padding:12px;border-radius:10px;background:#f4f7fa}
.uall-ae-equipment-essential{grid-template-columns:repeat(4,minmax(0,1fr))!important;border-color:#bcd8e5!important;background:#fafdff}.uall-ae-equipment-rental{grid-template-columns:repeat(4,minmax(0,1fr))!important;border-color:#e5cf9e!important;background:#fffaf0}.uall-ae-equipment-rental p{align-self:center;margin:0;color:#8b672d;font-size:9px}
.uall-ae-pro-optional{min-width:0;margin:0;border:1px solid #d8e4ec;border-radius:13px;background:#f8fafc;overflow:hidden}.uall-ae-pro-optional>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;color:#275b79;cursor:pointer;list-style:none}.uall-ae-pro-optional>summary::-webkit-details-marker{display:none}.uall-ae-pro-optional>summary::after{content:"＋";flex:0 0 auto;width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#e8f2f6;color:#245f87;font-size:16px}.uall-ae-pro-optional[open]>summary::after{content:"−"}.uall-ae-pro-optional>summary span,.uall-ae-pro-optional>summary small{display:block}.uall-ae-pro-optional>summary span{font-size:11px;font-weight:900}.uall-ae-pro-optional>summary small{flex:1;color:#75899a;font-size:9px}.uall-ae-pro-optional-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px 14px 14px;border-top:1px solid #dce7ee}.uall-ae-pro-optional-rental{padding:10px;border:1px solid #ead8b4;border-radius:11px;background:#fffaf1}.uall-ae-pro-optional-rental h4{margin:0 0 9px;color:#7c5a25;font-size:10px}.uall-ae-pro-optional-rental>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.uall-ae-pro-optional-rental .wide{grid-column:1/-1}
.uall-ae-pro-detail-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:12px}.uall-ae-pro-detail-strip.six{grid-template-columns:repeat(6,minmax(0,1fr))}.uall-ae-pro-detail-strip span{display:block;min-width:0;padding:9px 11px;border:1px solid #dbe5ed;border-radius:11px;color:#738497;font-size:9px}.uall-ae-pro-detail-strip b{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;color:#1b3b53;font-size:13px;white-space:nowrap}
.uall-ae-pro-settlement,.uall-ae-pro-inline-form{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;align-items:end;margin-bottom:12px;padding:11px;border:1px solid #dbe5ed;border-radius:12px;background:#f8fafc}.uall-ae-pro-inline-form.hidden{display:none!important}.uall-ae-pro-inline-form.final{grid-template-columns:1fr 2fr auto;margin-top:12px}.uall-ae-pro-split{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}.uall-ae-pro-split>section{min-width:0;padding:11px;border:1px solid #dbe5ed;border-radius:12px}.uall-ae-pro-split h4{margin:0 0 9px;font-size:12px}.uall-ae-pro-section>header,.uall-ae-pro-ledger>header,.uall-ae-pro-roster>header,.uall-ae-pro-lines-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.uall-ae-pro-section>header h4,.uall-ae-pro-roster h4{margin:0}
.uall-ae-pro-boq-picker{display:grid;gap:6px;max-height:310px;overflow:auto}.uall-ae-pro-boq-row{display:grid!important;grid-template-columns:22px minmax(220px,2fr) minmax(95px,.65fr) minmax(110px,.75fr) minmax(140px,1fr);align-items:center;gap:7px;padding:7px;border:1px solid #dce6ed;border-radius:10px;background:#fbfcfd}.uall-ae-pro-boq-row>input[type=checkbox]{width:17px!important;min-height:17px!important}.uall-ae-pro-boq-row span b,.uall-ae-pro-boq-row span small{display:block}.uall-ae-pro-boq-row span small{margin-top:3px;color:#798b9b;font-size:8px}.uall-ae-pro-progress-lines{display:grid;gap:6px}.uall-ae-pro-progress-lines label{display:grid;grid-template-columns:1fr 130px;align-items:center;gap:8px;padding:7px 9px;border:1px solid #dce6ed;border-radius:9px;background:#fbfcfd}.uall-ae-pro-progress-lines label span{font-weight:600}
.uall-ae-pro-roster>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.uall-ae-pro-roster article{display:grid;gap:2px;min-width:0;padding:9px 11px;border:1px solid #dbe5ed;border-radius:11px}.uall-ae-pro-roster article b{overflow:hidden;text-overflow:ellipsis;color:#19364d;font-size:10px;white-space:nowrap}.uall-ae-pro-roster article small,.uall-ae-pro-roster article span{overflow:hidden;text-overflow:ellipsis;color:#7c8d9b;font-size:8px;white-space:nowrap}.uall-ae-pro-roster.quotes article span{color:#26724f;font-weight:900}.uall-ae-pro-timeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.uall-ae-pro-timeline article{padding:9px;border-inline-start:3px solid #58a8be;border-radius:8px;background:#f5f9fb}.uall-ae-pro-timeline b,.uall-ae-pro-timeline span{display:block}.uall-ae-pro-timeline span{margin-top:3px;color:#758697;font-size:9px}.uall-ae-pro-link{display:inline-flex;align-items:center;min-height:30px;margin-inline-end:4px;padding:4px 8px;border-radius:8px;background:#eaf6f8;color:#176d76;font-weight:900;text-decoration:none}
.estimate-actions{margin-bottom:12px}.uall-ae-pro-lines-head{padding:7px 0;border-bottom:1px solid #e0e9ef}.uall-ae-pro-vendor-lines{display:grid;gap:6px}.uall-ae-pro-vendor-line{display:grid;grid-template-columns:25px minmax(170px,1.2fr) minmax(180px,1.4fr) 80px 100px 115px 32px;gap:6px;align-items:center}.uall-ae-pro-vendor-line>span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e8f3f7;color:#24617e;font-size:9px;font-weight:900}.uall-ae-pro-vendor-line>button{width:30px;height:30px;border:1px solid #e7c4c4;border-radius:8px;background:#fff1f1;color:#a13a3a;cursor:pointer}.uall-ae-ticket-result{margin-top:10px}
@media(max-width:1200px){.uall-ae-pro-detail-strip,.uall-ae-pro-detail-strip.six{grid-template-columns:repeat(3,minmax(0,1fr))}.uall-ae-pro-roster>div{grid-template-columns:repeat(3,minmax(0,1fr))}.uall-ae-pro-settlement{grid-template-columns:repeat(3,minmax(0,1fr))}.uall-ae-pro-table{min-width:900px}}
@media(max-width:900px){.workspace-metrics:has(.uall-ae-pro-metric){grid-template-columns:repeat(4,minmax(155px,1fr))!important;overflow-x:auto!important}.uall-ae-pro-toolbar{align-items:flex-start;flex-direction:column}.uall-ae-pro-form,.uall-ae-pro-form.two,.uall-ae-pro-split{grid-template-columns:1fr}.uall-ae-pro-form>fieldset{grid-template-columns:1fr 1fr}.uall-ae-pro-form>fieldset.wide,.uall-ae-pro-form>.wide{grid-column:1}.uall-ae-equipment-essential,.uall-ae-equipment-rental,.uall-ae-pro-optional-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.uall-ae-pro-optional-rental>div{grid-template-columns:repeat(2,minmax(0,1fr))}.uall-ae-pro-roster>div,.uall-ae-pro-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}.uall-ae-pro-boq-row{min-width:800px}.uall-ae-pro-boq-picker{overflow:auto}.uall-ae-pro-vendor-line{min-width:850px}.uall-ae-pro-vendor-lines{overflow:auto}}
@media(max-width:620px){.uall-ae-pro-toolbar,.uall-ae-pro-section,.uall-ae-pro-ledger,.uall-ae-pro-roster,.uall-ae-pro-panel{padding:11px}.uall-ae-pro-form>fieldset,.uall-ae-pro-detail-strip,.uall-ae-pro-detail-strip.six,.uall-ae-pro-settlement,.uall-ae-pro-inline-form,.uall-ae-pro-inline-form.final,.uall-ae-equipment-essential,.uall-ae-equipment-rental,.uall-ae-pro-optional-grid,.uall-ae-pro-optional-rental>div{grid-template-columns:1fr!important}.uall-ae-pro-roster>div,.uall-ae-pro-timeline{grid-template-columns:1fr}.uall-ae-pro-reminder{grid-template-columns:1fr}.uall-ae-pro-row-actions{flex-wrap:wrap}.uall-ae-pro-optional>summary{align-items:flex-start;flex-wrap:wrap}.uall-ae-pro-optional>summary small{flex-basis:70%}}

/* V79 equipment lifecycle workspace: visible governance, project context and audit trail. */
[data-hendar-equipment-active-host="1"]{min-width:0;scroll-behavior:smooth}
.uall-ae-pro-context{display:flex;align-items:center;gap:10px;margin:0 0 10px;padding:10px 14px;border:1px solid #bcd8e5;border-radius:13px;background:linear-gradient(135deg,#eef8fb,#f8fbfd);color:#24536e;font-size:10px}.uall-ae-pro-context span{font-weight:700;color:#668195}.uall-ae-pro-context strong{flex:1;font-size:12px}.uall-ae-pro-context button{min-height:32px;padding:5px 10px;border:1px solid #9ec8d8;border-radius:9px;background:#fff;color:#22617a;font:800 10px Cairo,Tajawal,sans-serif;cursor:pointer}
.uall-ae-pro-reminder.critical{border-inline-start-color:#c94444;background:#fff2f2;color:#963838}.uall-ae-pro-reminder.governance{border-inline-start-color:#347fa3;background:#eef7fb;color:#285f7c}
.uall-ae-equipment-filters{margin:0 0 10px;padding:13px 14px;border:1px solid #cddde7;border-radius:15px;background:linear-gradient(145deg,#f8fbfd,#fff);box-shadow:0 7px 20px rgba(16,51,76,.04)}
.uall-ae-equipment-filter-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.uall-ae-equipment-filter-head>div{display:flex;align-items:baseline;gap:10px}.uall-ae-equipment-filter-head span{color:#24465e;font-size:11px;font-weight:900}.uall-ae-equipment-filter-head strong{color:#2e789a;font-size:10px}.uall-ae-equipment-filter-head button{min-height:30px;padding:5px 10px;border:1px solid #c5d8e4;border-radius:8px;background:#fff;color:#35627c;font:800 9px Cairo,Tajawal,sans-serif;cursor:pointer}
.uall-ae-equipment-filter-grid{display:grid;grid-template-columns:minmax(240px,2fr) repeat(7,minmax(115px,1fr));gap:8px;align-items:end}.uall-ae-equipment-filter-grid label{display:grid;gap:4px;min-width:0;color:#607688;font-size:8px;font-weight:900}.uall-ae-equipment-filter-grid :is(input,select){width:100%;min-width:0;height:36px;padding:5px 8px;border:1px solid #cad9e4;border-radius:9px;background:#fff;color:#19374e;font:650 10px Cairo,Tajawal,sans-serif}.uall-ae-equipment-filter-grid input:focus,.uall-ae-equipment-filter-grid select:focus{outline:2px solid rgba(45,141,131,.2);border-color:#2d8d83}.uall-ae-equipment-filter-grid select:disabled{background:#eef4f7;color:#49687c;opacity:1}.uall-ae-equipment-filter-empty{margin:-2px 0 10px;border:1px dashed #cbdce6;border-radius:13px;background:#fbfdfe}.uall-ae-pro-table tr[hidden]{display:none!important}
.uall-ae-pro-row-actions>a,.uall-ae-pro-table td>a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 10px;border:1px solid #b7d7df;border-radius:9px;background:#edf8fa;color:#176b75;font:800 9px Cairo,Tajawal,sans-serif;text-decoration:none;white-space:nowrap}.uall-ae-pro-row-actions .is-primary{border-color:#245f87;background:#245f87;color:#fff}
.uall-ae-pro-status.draft,.uall-ae-pro-status.open{border-color:#c9d6e0;background:#f5f8fa;color:#596f80}.uall-ae-pro-status.submitted,.uall-ae-pro-status.acknowledged{border-color:#a9cfdf;background:#edf7fb;color:#236b89}.uall-ae-pro-status.rejected,.uall-ae-pro-status.revoked,.uall-ae-pro-status.critical{border-color:#e7b3b3;background:#fff0f0;color:#a53838}.uall-ae-pro-status.resolved{border-color:#b8dcc9;background:#edf9f2;color:#247249}
.uall-ae-pro-detail-nav{position:sticky;z-index:3;top:0;display:flex;gap:6px;margin:0 0 12px;padding:8px;border:1px solid #d2e0e9;border-radius:12px;background:rgba(255,255,255,.96);overflow-x:auto;box-shadow:0 6px 18px rgba(16,51,76,.06);backdrop-filter:blur(10px)}.uall-ae-pro-detail-nav a{flex:0 0 auto;padding:7px 10px;border-radius:8px;background:#f0f5f8;color:#315c77;font-size:9px;font-weight:900;text-decoration:none}.uall-ae-pro-detail-nav a:hover,.uall-ae-pro-detail-nav a:focus{background:#245f87;color:#fff}
.uall-ae-pro-section[id^="eq"]{scroll-margin-top:62px}.uall-ae-pro-section>header>div>p{margin:3px 0 0;color:#748797;font-size:9px}.uall-ae-equipment-identity{border-color:#bcd8e5;background:linear-gradient(135deg,#fff,#f3f9fb)}.uall-ae-equipment-identity .uall-ae-pro-detail-strip{margin:0}.uall-ae-equipment-identity .uall-ae-pro-detail-strip b>.uall-ae-pro-status{margin-top:0}
.uall-ae-contract-form{margin-bottom:12px;padding:12px;border:1px solid #cbdde7;border-radius:12px;background:#f7fafc}.uall-ae-contract-form.hidden{display:none!important}
.uall-ae-equipment-alerts{display:grid;gap:7px}.uall-ae-equipment-alerts article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e4cf9e;border-inline-start:4px solid #df9827;border-radius:11px;background:#fff9ec}.uall-ae-equipment-alerts article.critical{border-color:#e7b8b8;border-inline-start-color:#c94444;background:#fff3f3}.uall-ae-equipment-alerts article strong,.uall-ae-equipment-alerts article span{display:block}.uall-ae-equipment-alerts article strong{color:#3b5060;font-size:10px}.uall-ae-equipment-alerts article span{margin-top:3px;color:#7d6a4b;font-size:9px}
.uall-ae-flow-button.primary{border-color:#286b91!important;background:#286b91!important;color:#fff!important}.uall-ae-flow-button.success{border-color:#a9d7be!important;background:#edf8f2!important;color:#23734b!important}.uall-ae-flow-button.danger,.uall-ae-pro-actions>.danger{border-color:#e4b6b6!important;background:#fff0f0!important;color:#a53c3c!important}.uall-ae-flow-button.secondary{background:#f4f7f9!important;color:#546d7e!important}.uall-ae-rejection{display:block!important;margin-top:4px!important;padding:4px 6px;border-radius:6px;background:#fff0f0;color:#a13c3c!important;font-size:8px!important}
.uall-ae-equipment-audit{position:relative;display:grid;gap:0}.uall-ae-equipment-audit::before{content:"";position:absolute;inset-block:10px;inset-inline-start:7px;width:2px;background:#d4e2ea}.uall-ae-equipment-audit>article{position:relative;display:grid;grid-template-columns:16px minmax(0,1fr);gap:9px;padding:8px 0}.uall-ae-audit-marker{position:relative;z-index:1;width:15px;height:15px;margin-top:2px;border:4px solid #e6f2f6;border-radius:50%;background:#347fa3}.uall-ae-equipment-audit strong,.uall-ae-equipment-audit small{display:block}.uall-ae-equipment-audit strong{color:#24465e;font-size:10px}.uall-ae-equipment-audit small{margin-top:2px;color:#7d8e9d;font-size:8px}.uall-ae-equipment-audit details{margin-top:6px;padding:6px 8px;border:1px solid #dbe6ed;border-radius:8px;background:#f8fafb}.uall-ae-equipment-audit summary{color:#35647f;font-size:9px;font-weight:800;cursor:pointer}.uall-ae-equipment-audit details>div{margin-top:6px}.uall-ae-equipment-audit pre{max-height:190px;margin:3px 0 0;padding:7px;border-radius:7px;background:#10293b;color:#d8edf5;font:8px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;direction:ltr;text-align:left;overflow:auto;white-space:pre-wrap}
@media(max-width:1450px){.uall-ae-equipment-filter-grid{grid-template-columns:minmax(220px,2fr) repeat(4,minmax(130px,1fr))}.uall-ae-equipment-filter-grid .search{grid-column:span 2}}
@media(max-width:900px){.uall-ae-pro-detail-nav{top:0}.uall-ae-equipment-alerts article{grid-template-columns:minmax(0,1fr) auto}.uall-ae-equipment-alerts article .uall-ae-pro-row-actions{grid-column:1/-1}.uall-ae-equipment-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.uall-ae-equipment-filter-grid .search{grid-column:1/-1}}
@media(max-width:620px){.uall-ae-pro-context{align-items:flex-start;flex-direction:column}.uall-ae-pro-context strong{flex:auto}.uall-ae-equipment-alerts article{grid-template-columns:1fr}.uall-ae-equipment-alerts article .uall-ae-pro-row-actions{grid-column:auto}.uall-ae-pro-detail-nav{margin-inline:-4px}.uall-ae-pro-detail-strip span b{white-space:normal}.uall-ae-equipment-filter-head{align-items:flex-start}.uall-ae-equipment-filter-head>div{display:grid;gap:2px}.uall-ae-equipment-filter-grid{grid-template-columns:1fr}.uall-ae-equipment-filter-grid .search{grid-column:1}}
