/* Shared workspace design: all operational pages and dialogs. */
body.tazco-workspace{--primary:#009e93;--primary-dark:#007c75;--primary-soft:#e8f8f5;--sidebar:#101d35;--sidebar-hover:#1b304e;--bg:#f4f7fb;--border:#e2e8f0;--text:#14243b;--muted:#718096;--radius:16px;font-family:'IBM Plex Sans Arabic',Tahoma,sans-serif;background:var(--bg)}
.tazco-workspace .sidebar{background:#101d35!important;width:248px;box-shadow:none;border:0}.tazco-workspace .main{margin-right:248px}.tazco-workspace .sidebar-brand{height:88px}.tazco-workspace .nav-item{border-radius:10px;min-height:43px;font-size:13px}.tazco-workspace .nav-item.active{background:#009e93!important;color:#fff!important}.tazco-workspace .nav-group-toggle{color:#b9c9dd!important}.tazco-workspace .sidebar .nav-group-items{border:0}.tazco-workspace .topbar{height:78px;background:#fff!important;border-bottom:1px solid var(--border);box-shadow:none}.tazco-workspace .content{max-width:1720px;padding:30px 32px}.tazco-workspace .page-heading{background:transparent!important;border:0!important;padding:0 0 22px!important;margin:0!important}.tazco-workspace .page-heading h1{font-size:26px;letter-spacing:-.5px;color:#14243b}.tazco-workspace .page-heading p{font-size:13px;line-height:1.8}.tazco-workspace .module-card,.tazco-workspace .card,.tazco-workspace .profile-section,.tazco-workspace .dx-panel{border:1px solid var(--border);border-radius:16px;box-shadow:0 3px 14px #162b4504;background:white;overflow:hidden}.tazco-workspace .module-toolbar{background:#fff!important;padding:18px!important;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--border)}.tazco-workspace .form-control{background:#fafcfe;border:1px solid #dce4ee;min-height:42px;border-radius:9px;color:#243752}.tazco-workspace .form-control:focus{border-color:#009e93;box-shadow:0 0 0 3px #009e9312}.tazco-workspace .btn{border-radius:9px;min-height:40px;font-weight:500;box-shadow:none}.tazco-workspace .btn-primary{background:#009e93!important;border-color:#009e93!important;color:white}.tazco-workspace .btn-secondary{background:#fff;color:#38516e;border:1px solid #dce4ee}.tazco-workspace th{background:#f6f9fc!important;color:#6a7d93;font-size:12px;padding:14px 16px!important;border-bottom:1px solid var(--border)}.tazco-workspace td{padding:15px 16px!important;border-bottom:1px solid #edf1f6;font-size:13px}.tazco-workspace tbody tr:hover{background:#f8fcfc}.tazco-workspace .kpi-card{border-radius:14px;border:1px solid var(--border);box-shadow:none;background:#fff!important}.tazco-workspace .kpi-value{color:#14243b;font-weight:600}.tazco-workspace .modal-dialog, .tazco-workspace dialog{border-radius:18px;border:1px solid var(--border);box-shadow:0 24px 80px #101d3525}.tazco-workspace .modal-header{background:#fff!important;border-bottom:1px solid var(--border);padding:22px}.tazco-workspace .modal-footer{background:#f9fbfd;padding:18px 22px;border-top:1px solid var(--border)}
/* Home composition: analytics, attention queue, and eight direct section tiles. */
.tazco-workspace .studio-hero{background:transparent!important;box-shadow:none!important;border:0!important;padding:12px 0 26px!important;min-height:0!important}.tazco-workspace .studio-hero h1{font-size:32px!important;color:#14243b!important}.tazco-workspace .studio-hero p{color:#718096!important}.tazco-workspace .studio-hero:before,.tazco-workspace .studio-hero:after{display:none!important}.tazco-workspace .studio-spaces{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}.tazco-workspace .studio-space{grid-column:auto!important;border:1px solid var(--border)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;min-height:170px;transition:transform .16s,border-color .16s}.tazco-workspace .studio-space:hover{transform:translateY(-3px);border-color:#75cfc5!important}.tazco-workspace .studio-space-main{display:flex!important;flex-direction:column!important;align-items:flex-start!important;padding:22px!important;gap:14px!important;background:none!important}.tazco-workspace .studio-space-icon{color:#009e93!important;background:#e8f8f5!important;border-radius:12px;padding:12px}.tazco-workspace .studio-space-links{padding:0 20px 16px;border:0!important}.tazco-workspace .studio-space-main b{font-size:17px!important}.tazco-workspace .studio-space-main small{font-size:12px!important;color:#718096!important;margin-top:6px}.tazco-workspace .studio-space-arrow{display:none}.tazco-workspace .studio-bottom{display:none}
.w2-dashboard{margin:0 0 26px}.w2-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px}.w2-heading h2{font-size:18px;margin:0}.w2-controls{display:flex;gap:8px;flex-wrap:wrap}.w2-controls select{max-width:210px}.w2-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.w2-metric{background:white;border:1px solid var(--border);border-radius:14px;padding:20px;text-align:right;cursor:pointer}.w2-metric small{display:block;color:#718096}.w2-metric strong{display:block;font-size:25px;margin:10px 0 4px;color:#14243b;font-weight:600}.w2-metric span{font-size:11px;color:#8290a3}.w2-attention{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;margin-top:16px}.w2-panel{background:#fff;border:1px solid var(--border);border-radius:14px;padding:20px}.w2-panel h3{font-size:16px;margin:0 0 12px}.w2-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:right;background:none;border:0;border-bottom:1px solid #edf1f6;padding:12px 0;color:#344762}.w2-alert:last-child{border:0}.w2-alert b{background:#fff0e7;color:#b55a18;padding:3px 10px;border-radius:7px}.w2-meta{color:#718096;font-size:12px;margin:12px 0;line-height:1.8}.w2-error{padding:14px;border-radius:10px;background:#fff5ed;color:#8e4c1b;margin:12px 0}.w2-trend{height:110px;display:flex;align-items:end;gap:14px;padding-top:10px}.w2-month{flex:1;text-align:center;min-width:0}.w2-bar{height:70px;display:flex;align-items:end;justify-content:center;gap:4px}.w2-bar i{display:block;width:14px;background:#009e93;border-radius:4px 4px 0 0}.w2-bar i+ i{background:#93b8e1}.w2-month small{font-size:10px;color:#718096}.w2-breadcrumb{font-size:12px;color:#718096;margin-bottom:16px}.w2-breadcrumb button{background:none;border:0;color:#008d83}.tazco-workspace #profileModal.employee-workspace{padding:0!important;background:#f4f7fb!important;z-index:45}.tazco-workspace #profileModal.employee-workspace>.modal-dialog{width:100%!important;max-width:none!important;min-height:100vh;margin:0!important;border:0;border-radius:0;box-shadow:none}.tazco-workspace #profileModal.employee-workspace .modal-body{max-height:none!important;overflow:visible;padding:24px 32px}.tazco-workspace .ew-shell{display:flex!important;flex-direction:column!important;gap:20px}.tazco-workspace .ew-summary{position:static!important;display:grid;grid-template-columns:1fr 1fr;background:#fff;padding:24px;border:1px solid var(--border);border-radius:16px}.tazco-workspace .ew-summary .profile-hero{padding:0!important;border:0!important;background:#fff!important}.tazco-workspace .ew-actions{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px}.tazco-workspace .ew-context{margin:0!important}.tazco-workspace .ew-tabs{background:white!important;border-bottom:1px solid var(--border);border-radius:12px;padding:6px;position:sticky;top:0;z-index:2}.tazco-workspace .ew-tabs button[aria-selected=true]{color:#008e83!important;background:#e8f8f5!important;border-bottom:2px solid #009e93!important}.tazco-workspace .ew-panel:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tazco-workspace .ew-panel>.profile-section:only-child{grid-column:1/-1}.tazco-workspace .ew-panel .table-wrap{overflow:auto}
@media(max-width:1150px){.tazco-workspace .studio-spaces,.w2-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.w2-attention{grid-template-columns:1fr}}@media(max-width:900px){.tazco-workspace .main{margin-right:0}.tazco-workspace .content{padding:20px 16px}.tazco-workspace .ew-summary,.tazco-workspace .ew-panel:not([hidden]){grid-template-columns:1fr}.tazco-workspace .topbar{padding:12px;height:auto;min-height:72px}.w2-heading{align-items:flex-start;flex-direction:column}}@media(max-width:520px){.tazco-workspace .studio-spaces,.w2-metrics{grid-template-columns:1fr!important}.tazco-workspace .studio-hero h1{font-size:26px!important}.tazco-workspace .topbar-actions{flex-wrap:wrap}.w2-controls{width:100%}.tazco-workspace .ew-tabs{overflow:auto;flex-wrap:nowrap}.tazco-workspace #profileModal.employee-workspace .modal-body{padding:16px}}
@media print{.w2-breadcrumb,.w2-controls{display:none}.tazco-workspace .main{margin:0}.tazco-workspace .content{padding:0}}
body.tazco-studio.tazco-workspace .sidebar{background:#101d35!important;color:#d0dcec!important}body.tazco-studio.tazco-workspace .sidebar-brand,body.tazco-studio.tazco-workspace .sidebar-footer{background:#101d35!important;border-color:#26374e!important}body.tazco-studio.tazco-workspace .sidebar .brand-name,body.tazco-studio.tazco-workspace .sidebar .nav-label{color:#dce6f3!important}body.tazco-studio.tazco-workspace .sidebar .nav-item,body.tazco-studio.tazco-workspace .sidebar .nav-group-toggle{color:#bbcee3!important}body.tazco-studio.tazco-workspace{background:#f4f7fb!important}body.tazco-studio.tazco-workspace .main,body.tazco-studio.tazco-workspace .content{background:#f4f7fb!important}body.tazco-studio.tazco-workspace .studio-primary{background:#009e93!important;color:#fff!important;border:0!important}body.tazco-studio.tazco-workspace .studio-outline{color:#008c83!important;background:#fff!important;border:1px solid #bcded8!important}body.tazco-studio.tazco-workspace .studio-hero-help{color:#008c83!important}body.tazco-studio.tazco-workspace .w2-controls .form-control{width:auto;min-width:150px}body.tazco-studio.tazco-workspace .w2-controls{align-items:center}body.tazco-studio.tazco-workspace .w2-metrics{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.studio-space-icon svg{display:block;width:28px;height:28px}
/* Explicit state pairs prevent legacy theme overrides from separating foreground/background. */
body.tazco-studio.tazco-workspace .app .sidebar .nav-item{background:transparent!important;color:#dce6f3!important}
body.tazco-studio.tazco-workspace .app .sidebar .nav-item:hover,body.tazco-studio.tazco-workspace .app .sidebar .nav-group-toggle:hover{background:#223853!important;color:#fff!important}
body.tazco-studio.tazco-workspace .app .sidebar .nav-item.active,body.tazco-studio.tazco-workspace .app .sidebar .nav-item.active:hover{background:#007e76!important;color:#fff!important;border-color:transparent!important}
body.tazco-studio.tazco-workspace .app .sidebar .nav-group.active-group>.nav-group-toggle{background:#223853!important;color:#fff!important;border-color:transparent!important}
body.tazco-studio.tazco-workspace .app .sidebar .nav-item .nav-label,body.tazco-studio.tazco-workspace .app .sidebar .nav-item svg,body.tazco-studio.tazco-workspace .app .sidebar .nav-item .material-symbols-rounded,body.tazco-studio.tazco-workspace .app .sidebar .nav-group-toggle .nav-label{color:inherit!important}
body.tazco-studio.tazco-workspace .studio-space-main,body.tazco-studio.tazco-workspace .studio-space-main:hover,body.tazco-studio.tazco-workspace .studio-space-main:focus-visible{color:#14243b!important;background:#fff!important}
body.tazco-studio.tazco-workspace .studio-space-main b{color:#14243b!important}
body.tazco-studio.tazco-workspace .btn-secondary,body.tazco-studio.tazco-workspace .btn-secondary:hover{color:#243d59!important;background:#fff!important}
body.tazco-studio.tazco-workspace .btn-primary,body.tazco-studio.tazco-workspace .btn-primary:hover{color:#fff!important;background:#007e76!important}
body.tazco-studio.tazco-workspace .ew-tabs button{color:#344762!important;background:#fff!important}
body.tazco-studio.tazco-workspace .ew-tabs button[aria-selected=true]{color:#006b64!important;background:#e8f8f5!important}
/* Submenu containers must share the dark navigation surface in every group. */
body.tazco-studio.tazco-workspace .app .sidebar .sidebar-scroll,
body.tazco-studio.tazco-workspace .app .sidebar .nav-group,
body.tazco-studio.tazco-workspace .app .sidebar .nav-group-items{background:#101d35!important;color:#dce6f3!important;border-color:#26374e!important}
body.tazco-studio.tazco-workspace .app .sidebar .nav-group-items .nav-item{background:#101d35!important;color:#dce6f3!important;opacity:1!important}
body.tazco-studio.tazco-workspace .app .sidebar .nav-group-items .nav-item:hover,
body.tazco-studio.tazco-workspace .app .sidebar .nav-group-items .nav-item:focus-visible{background:#223853!important;color:#fff!important;opacity:1!important}
body.tazco-studio.tazco-workspace .app .sidebar .nav-group-items .nav-item.active,
body.tazco-studio.tazco-workspace .app .sidebar .nav-group-items .nav-item.active:hover{background:#007e76!important;color:#fff!important}
body.tazco-studio.tazco-workspace .app .sidebar .nav-group-items .nav-item .nav-label,
body.tazco-studio.tazco-workspace .app .sidebar .nav-group-items .nav-item svg,
body.tazco-studio.tazco-workspace .app .sidebar .nav-group-items .nav-item .material-symbols-rounded{color:inherit!important;opacity:1!important}
/* Keep the employee workspace above navigation and stretch its flex children. */
body.tazco-workspace #profileModal.employee-workspace{z-index:1000!important;overflow:hidden!important;align-items:stretch!important}
body.tazco-workspace #profileModal.employee-workspace>.modal-dialog{display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow:hidden!important}
body.tazco-workspace #profileModal.employee-workspace>.modal-dialog>.modal-header,
body.tazco-workspace #profileModal.employee-workspace>.modal-dialog>.modal-footer{flex:0 0 auto;min-width:0}
body.tazco-workspace #profileModal.employee-workspace #profileModalBody{flex:1 1 auto!important;min-height:0!important;min-width:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain}
body.tazco-workspace #profileModal.employee-workspace .ew-shell{width:100%;min-width:0;align-items:stretch!important}
body.tazco-workspace #profileModal.employee-workspace .ew-summary,
body.tazco-workspace #profileModal.employee-workspace .ew-main{width:100%;max-width:100%;min-width:0}
body.tazco-workspace #profileModal.employee-workspace .ew-panels,
body.tazco-workspace #profileModal.employee-workspace .ew-panel,
body.tazco-workspace #profileModal.employee-workspace .profile-section,
body.tazco-workspace #profileModal.employee-workspace .table-wrap{min-width:0;max-width:100%}
body.tazco-workspace #profileModal.employee-workspace .ew-tabs{max-width:100%;overflow-x:auto}
body.tazco-workspace #profileModal.employee-workspace .modal-footer{flex-wrap:wrap}

/* Keep brand contrast consistent with the dark navigation, including studio overrides. */
body.tazco-studio.tazco-workspace .app .sidebar .sidebar-brand{background:#101d35!important;border-bottom-color:#26374e!important}
body.tazco-studio.tazco-workspace .app .sidebar #sidebarBrandName{color:#f3f7fc!important;opacity:1!important}
body.tazco-studio.tazco-workspace .app .sidebar .sidebar-brand .brand-subtitle{color:#bdccdf!important;opacity:1!important}
