@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Shared Arabic workspace tokens; loaded after legacy page styles. */
:root,html[data-theme=cloud]{--experience-brand:#384ee8;--experience-teal:#087f79;--experience-amber:#9b5900;--experience-red:#b92e48;--experience-shadow:0 6px 24px #17295609;--experience-font:"IBM Plex Sans Arabic","Cairo","Segoe UI",Tahoma,sans-serif}
html body.admin-workspace,html body.client-workspace{--bg:#f3f5fc;--card:#ffffff;--ink:#17243f;--text:#17243f;--muted:#596980;--line:#dfe5f1;--primary:#384ee8;--primary-2:#e56d20;--primary-soft:#eef0ff;--shadow:var(--experience-shadow);font-family:var(--experience-font);font-size:15px;line-height:1.8;background:var(--bg);color:var(--ink)}
html[data-theme=dark] body.admin-workspace,html[data-theme=dark] body.client-workspace{--bg:#101827;--card:#192438;--ink:#edf2ff;--text:#edf2ff;--muted:#b0bdd3;--line:#33415b;--primary:#a9b5ff;--primary-2:#ffad75;--primary-soft:#283451;--experience-brand:#a9b5ff;--experience-teal:#64dbc8;--experience-amber:#ffc976;--experience-red:#ff9eac;--shadow:none;color-scheme:dark}
body.admin-workspace :is(input,select,textarea,button),body.client-workspace :is(input,select,textarea,button){font-family:var(--experience-font)}
html body :is(h1,h2,h3){font-family:var(--experience-font);letter-spacing:-.025em;line-height:1.5}
html body h1{font-size:clamp(25px,2.3vw,36px);font-weight:700}html body h2{font-size:20px;font-weight:600}html body h3{font-size:17px;font-weight:600}
html body :is(.panel,.workspace-service-card,.service-card,.card){background:var(--card);color:var(--ink);border-color:var(--line);border-radius:18px;box-shadow:var(--shadow)}
html body :is(.page-head,.section-title)>div>small{color:var(--muted);font-size:14px}
html body .app-sidebar{background:#14223e;color:#e7edfc;border-inline-end:1px solid #253757}
html body .app-sidebar :is(.nav-caption,.nav-group summary,.nav-group summary .nav-label,.nav-main,.sidebar-profile,.sidebar-profile b){color:#d3ddf1}
html body .app-sidebar nav a{color:#c1cee6}html body .app-sidebar nav :is(a:hover,a.active){background:#293d65;color:#fff}
html body .app-sidebar nav a.active{box-shadow:inset -3px 0 #ff9b56;background:#304778;font-weight:600}
html body .app-sidebar :is(.sidebar-product-version,.sidebar-brand>small,.sidebar-profile small,.nav-caption){color:#b7c6e2}
html body .app-sidebar :is(.nav-group,.sidebar-bottom){border-color:#344460}html body .sidebar-brand img{background:white;border-radius:13px;padding:8px}
html body .workspace-toolbar{background:var(--card);border-color:var(--line);color:var(--muted)}
html body .workspace-kpis{gap:18px}html body .workspace-kpi{background:var(--card);border:1px solid var(--line);border-block-start:4px solid var(--experience-brand);border-radius:16px;box-shadow:var(--shadow);padding:23px;position:relative}
html body .workspace-kpi:nth-child(2){border-block-start-color:var(--experience-teal)}html body .workspace-kpi:nth-child(3){border-block-start-color:#d9821b}html body .workspace-kpi:nth-child(4){border-block-start-color:#8654cc}
html body .workspace-kpi strong{font-size:36px;color:var(--ink);font-variant-numeric:tabular-nums}html body .workspace-kpi>span{color:var(--muted);font-weight:500}
html body :is(.btn,.primary,button.btn){background:#384ee8;color:#fff;border:1px solid #384ee8;border-radius:11px;font-weight:600;box-shadow:0 3px 8px #384ee81a}
html body :is(.btn,.primary):hover{background:#293cc2;color:#fff}html body :is(.ghost,.secondary){color:var(--primary);background:var(--primary-soft);border:1px solid var(--line);border-radius:10px}
html body :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:10px;min-height:44px;font-size:15px;padding:10px 12px;max-width:100%}
html body label{font-size:14px;font-weight:500}html body :is(input,select,textarea)::placeholder{color:var(--muted);opacity:.85}
html body :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #7784fa;outline-offset:3px}
html body :is(.table th,.table td){border-color:var(--line)}html body .table th{background:var(--primary-soft);color:var(--ink);font-weight:600}html body .table td{padding-block:16px}
html body .badge-success{background:#e0f5ed;color:#11624b}html body .badge-warning{background:#fff0d7;color:#835000}html body .badge-danger{background:#ffe5eb;color:#a02340}
html body .badge-info{background:#e9edff;color:#3346ad}html body .badge-muted{background:#edf0f5;color:#53627a}
.skip-to-content{position:fixed;top:-80px;inset-inline-start:20px;padding:10px 18px;background:#fff;color:#17243f;z-index:1000;border:2px solid #384ee8;border-radius:10px}.skip-to-content:focus{top:12px}
.experience-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px;padding:28px 30px;background:var(--card);border:1px solid var(--line);border-inline-start:5px solid var(--experience-brand);border-radius:18px}
.experience-hero p{max-width:760px;color:var(--muted);margin:10px 0 0}.experience-hero h1{margin:6px 0}.experience-hero .btn{flex-shrink:0}
.experience-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.experience-stat{padding:20px;background:var(--card);border:1px solid var(--line);border-block-start:4px solid var(--experience-brand);border-radius:15px}.experience-stat strong{display:block;font-size:30px;font-variant-numeric:tabular-nums}.experience-stat small,.experience-stat span{display:block;color:var(--muted)}.experience-stat span{font-size:12px}
.experience-stat.health-healthy{border-block-start-color:var(--experience-teal)}.experience-stat.health-warning{border-block-start-color:#c47d16}.experience-stat.health-critical{border-block-start-color:var(--experience-red)}.experience-stat.health-unknown{border-block-start-color:#7a879d}
.experience-filter{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:20px}.experience-filter input[name=q]{flex:1;min-width:180px}.auto-refresh{display:flex;align-items:center;gap:8px;font-weight:400}.experience-note{font-size:13px;color:var(--muted);line-height:1.9}
.operations-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.operation-card{padding:24px;min-width:0}.operation-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.operation-card header small{color:var(--muted)}.operation-card h2{margin:4px 0}.operation-card header span[dir=ltr]{display:block;font-size:13px;overflow-wrap:anywhere}
.health-badge{display:inline-flex;align-items:center;gap:7px;padding:6px 11px;border-radius:99px;font-size:12px;white-space:normal;font-weight:600}.health-badge:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex-shrink:0}.health-badge.healthy{background:#def6ed;color:#146448}.health-badge.warning{background:#fff1d7;color:#865400}.health-badge.critical{background:#ffe5eb;color:#a32a43}.health-badge.unknown{background:#edf0f5;color:#53627a}
.operation-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:22px 0}.operation-facts div{min-width:0;padding-block-end:12px;border-bottom:1px solid var(--line)}.operation-facts dt{color:var(--muted);font-size:12px}.operation-facts dd{margin:5px 0 0;font-weight:500;font-size:14px;overflow-wrap:anywhere}.health-issues{list-style:none;margin:0 0 18px;padding:0}.health-issues li{border-inline-start:3px solid #db9f4f;padding:8px 13px;margin-block:10px;background:var(--bg);border-radius:8px}.health-issues strong{font-size:14px;font-weight:600}.health-issues p{font-size:13px;color:var(--muted);margin:5px 0}.health-clear{background:var(--primary-soft);padding:14px;border-radius:10px;font-size:13px;margin-bottom:15px}
.external-service-form{margin-bottom:20px}.external-service-form>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;cursor:pointer;list-style:none}.external-service-form>summary strong{display:block;font-size:18px}.external-service-form>summary small{display:block;color:var(--muted);font-size:13px;margin-top:7px}.external-service-form form{padding-top:25px;border-top:1px solid var(--line);margin-top:20px}.experience-form-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:20px}.experience-form-footer p{max-width:600px;font-size:13px;color:var(--muted)}.external-details{margin-bottom:20px}.provider-label{display:inline-block;margin:8px 0;color:var(--experience-teal);font-weight:500;font-size:13px}
.client-workspace .customer-account-card{margin-top:20px}.client-workspace .customer-erp-grid article,.client-workspace .account-data-grid>div{background:var(--bg);border-color:var(--line);color:var(--ink)}.client-workspace .dashboard-grid .metric{border-block-start:3px solid var(--experience-brand);border-radius:15px;background:var(--card)}.client-workspace .service-card{padding:24px}.client-workspace .service-card-actions{flex-wrap:wrap;gap:10px}.client-erp-health{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.client-erp-health strong{font-size:14px}.client-erp-health p{color:var(--muted);font-size:13px;margin:3px 0}
@media(min-width:1100px){html body .app-main{padding:30px 34px;max-width:1800px;margin-inline:auto}}@media(max-width:900px){.experience-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.operations-grid{grid-template-columns:1fr}.experience-hero{padding:20px;align-items:flex-start;flex-direction:column}.experience-form-footer{align-items:stretch;flex-direction:column}}@media(max-width:520px){.operation-card header,.external-service-form>summary{flex-direction:column}.operation-card{padding:18px}.operation-facts{gap:10px}.experience-stat{padding:15px}.experience-filter{align-items:stretch;flex-direction:column}}
@media(prefers-reduced-motion:reduce){html *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.app-sidebar,.workspace-toolbar,.mobile-menu,.desktop-menu-toggle,.skip-to-content,.experience-filter{display:none!important}.app-shell{display:block!important}.operation-card,.panel{break-inside:avoid;box-shadow:none!important;background:#fff!important;color:#000!important}}

.customer-account-card>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}.customer-account-card>summary span{font-size:13px;color:var(--primary)}.customer-account-card[open]>summary{border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:18px}.legacy-services{margin-top:20px}
html body:is(.admin-workspace,.client-workspace) .app-sidebar{background:#14223e;color:#e7edfc;border-inline-end-color:#344460}
html body.admin-workspace .app-sidebar nav :is(a,summary),html body.admin-workspace .app-sidebar nav .nav-group div a{color:#cfdbf1;font-size:14px}
html body.admin-workspace .app-sidebar nav :is(a.active,a:hover,summary:hover){background:#293d65;color:#fff}
html body.admin-workspace .app-sidebar nav a.active{background:#304778;box-shadow:inset -3px 0 #ff9b56}
html body.admin-workspace .app-sidebar nav a.active .nav-icon{color:#fff}
html body.admin-workspace .app-sidebar :is(.sidebar-profile,.sidebar-profile b,.logout-button){color:#e7edfc}
html body.admin-workspace .app-sidebar .logout-button{background:transparent;border-color:#344460}
html body.admin-workspace.nav-layout-topbar .nav-group>div{background:#14223e;border-color:#344460}
html body.admin-workspace .workspace-kpi>span{font-size:14px}html body.admin-workspace .workspace-kpi>small{font-size:12px}
html body.client-workspace .panel{padding:24px}html body.client-workspace .panel .page-head{margin-bottom:15px}
.customer-erp-grid:has(>article:only-child){grid-template-columns:1fr}
.client-workspace .cards-grid:has(>.service-card){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.client-workspace .cards-grid>.service-card{display:flex;flex-direction:column;min-height:260px}
.client-workspace .service-card-actions{margin-top:auto;padding-top:12px}.client-workspace .service-card p:empty{display:none}
@media(min-width:1100px){.client-workspace .panel>form.form-grid{grid-template-columns:1fr 1fr 1.4fr auto;align-items:end}}
@media(max-width:900px){.client-workspace .cards-grid:has(>.service-card){grid-template-columns:1fr}}

/* Compact administration workspaces and a persistent account corner. */
html body:is(.admin-workspace,.client-workspace) .workspace-toolbar{display:flex;direction:rtl;align-items:center;justify-content:space-between;gap:12px;min-height:66px;padding:10px 24px;border-bottom:1px solid var(--line)}
.workspace-toolbar-actions,.workspace-account,.workspace-profile{display:flex;align-items:center;gap:10px;min-width:0}
.workspace-toolbar-actions{margin-inline-start:auto}.workspace-account{padding-inline-start:12px;border-inline-start:1px solid var(--line)}
.workspace-profile{color:var(--text);font-size:13px;font-weight:700;text-decoration:none}.workspace-profile>span:nth-child(2){max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-profile .avatar{width:32px;height:32px;min-width:32px;border-radius:10px;font-size:14px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center}
.workspace-account form{margin:0}.workspace-logout{min-height:38px;border:1px solid var(--line);border-radius:9px;padding:7px 11px;background:var(--card);color:var(--text);font:inherit;font-size:12px;cursor:pointer}
.workspace-logout:hover{background:#fff0f1;color:#a12338;border-color:#e7b4be}
.workspace-profile:focus-visible,.workspace-logout:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
html body.admin-workspace .erp-file{max-width:1480px;padding:18px 20px}
html body.admin-workspace .erp-file .hero{padding:16px 20px;border-radius:14px;gap:14px}
html body.admin-workspace .erp-file .hero h1{font-size:25px;line-height:1.4;margin:3px 0}
html body.admin-workspace .erp-file .hero small,html body.admin-workspace .erp-file .hero p{font-size:12px;margin:4px 0}
html body.admin-workspace .erp-file .hero-actions{flex-direction:row;width:auto;flex-wrap:wrap}
html body.admin-workspace .erp-file .customer-overview{margin-top:10px;border-radius:12px;box-shadow:none;grid-template-columns:minmax(150px,.65fr) 3fr}
html body.admin-workspace .erp-file .customer-overview-title{padding:10px 14px}
html body.admin-workspace .erp-file .customer-overview-title strong{font-size:14px;margin-top:2px}
html body.admin-workspace .erp-file .customer-overview dl div{padding:9px 12px}
html body.admin-workspace .erp-file .customer-overview dd{font-size:12px;margin-top:3px}
html body.admin-workspace .erp-file .metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}
html body.admin-workspace .erp-file .metrics article{padding:10px 13px;border-radius:11px;min-width:0}
html body.admin-workspace .erp-file .metrics b{font-size:14px;overflow-wrap:anywhere}
html body.admin-workspace .erp-file .metrics small,html body.admin-workspace .erp-file .metrics span{font-size:11px}
html body.admin-workspace .erp-file .tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0;background:transparent;margin:14px 0}
html body.admin-workspace .erp-file .tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:52px;padding:8px 12px;border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:10px;font-size:13px;box-shadow:none}
html body.admin-workspace .erp-file .tabs button small{font-size:10px;color:var(--muted)}
html body.admin-workspace .erp-file .tabs button.active{background:var(--primary)!important;border-color:var(--primary);color:#fff!important;box-shadow:0 3px 10px #142b4618}
html body.admin-workspace .erp-file .tabs button.active small{color:#fff!important;opacity:.9}
html body.admin-workspace .erp-file .tabs button:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
html body.admin-workspace .erp-file .card{padding:17px;margin-bottom:12px;border-radius:13px}
html body.admin-workspace .erp-file .section-title{gap:12px;margin-bottom:13px}
html body.admin-workspace .erp-file .card h2{font-size:18px}
html body.admin-workspace .erp-file .section-title p{font-size:12px}
html body.admin-workspace .erp-file :is(.grid,.infrastructure-form){gap:11px}
html body.admin-workspace .erp-file :is(.grid,.infrastructure-form) label{font-size:12px}
html body.admin-workspace .erp-file :is(.grid,.infrastructure-form) :is(input,select){min-height:40px;margin-top:5px;padding:8px 11px;font-size:13px;border-radius:9px}
html body.admin-workspace .erp-file .form-divider{padding:8px 11px;margin-top:3px}
html body.admin-workspace .erp-file :is(.primary,.secondary,.warning,.danger,.open){min-height:40px;align-items:center;padding:8px 13px;border:1px solid transparent;font-size:12px;border-radius:9px}
html body.admin-workspace .erp-file .secondary{background:var(--card);color:var(--primary);border-color:var(--line)}
html body.admin-workspace .quote-create-panel{padding:20px}
html body.admin-workspace .quote-header-fields{display:grid;grid-template-columns:minmax(220px,1.8fr) minmax(90px,.5fr) minmax(160px,.8fr);align-items:end;gap:12px;max-width:1000px;margin-bottom:16px}
html body.admin-workspace .quote-create-panel .field{min-width:0;gap:5px}
html body.admin-workspace .quote-create-panel label{font-size:12px}
html body.admin-workspace .quote-create-panel :is(input,select){min-height:40px;padding:8px 11px;font-size:13px;border-radius:9px}
html body.admin-workspace .quote-create-panel .quote-header-fields :is(input,select){height:40px;min-width:0;width:100%}
html body.admin-workspace .quote-section-head{margin-bottom:14px}.quote-create-panel .quote-item-row{padding:12px;gap:10px}
html body.admin-workspace .quote-create-panel textarea{min-height:78px;padding:10px;font-size:13px}
@media(max-width:1000px){html body.admin-workspace .erp-file .customer-overview{grid-template-columns:1fr}html body.admin-workspace .erp-file .customer-overview-title{display:none}html body.admin-workspace .erp-file .customer-overview dl{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:760px){html body:is(.admin-workspace,.client-workspace) .workspace-toolbar{padding:10px 16px;padding-inline-start:64px;flex-wrap:wrap;gap:8px}.workspace-caption{display:none!important}.workspace-toolbar-actions{width:100%;justify-content:flex-end}.workspace-profile>span:nth-child(2){max-width:110px}.workspace-account{gap:7px;padding-inline-start:8px}.workspace-toolbar-actions .workspace-theme-switch{display:none}html body.admin-workspace .erp-file{padding:14px 10px}html body.admin-workspace .erp-file .hero{align-items:flex-start;flex-direction:row;flex-wrap:wrap}html body.admin-workspace .erp-file .hero h1{font-size:21px}html body.admin-workspace .erp-file .customer-overview dl{grid-template-columns:repeat(3,minmax(0,1fr))}html body.admin-workspace .erp-file .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}html body.admin-workspace .erp-file .tabs{grid-template-columns:repeat(2,minmax(0,1fr))}html body.admin-workspace .erp-file .tabs button{min-height:48px;padding:7px 10px}html body.admin-workspace .quote-header-fields{grid-template-columns:1fr 1fr}html body.admin-workspace .quote-header-fields>.field:first-child{grid-column:1/-1}}
@media(max-width:420px){.workspace-profile>span:nth-child(2){max-width:90px}.workspace-logout{font-size:11px;padding:7px 8px}html body.admin-workspace .erp-file .customer-overview dl{grid-template-columns:1fr 1fr}}
html body.admin-workspace .erp-file .hero{min-height:0!important}
html body.admin-workspace .erp-file .tabs button.active{background:#28517e!important;border-color:#28517e;color:#fff!important}
@media(max-width:760px){.workspace-toolbar-actions .workspace-theme-switch{display:flex;padding:3px;gap:2px}.workspace-toolbar-actions .workspace-theme-switch button{font-size:0;min-width:28px;min-height:30px;padding:4px 6px}.workspace-toolbar-actions .workspace-theme-switch button:before{font-size:14px}.workspace-toolbar-actions .workspace-theme-switch button[data-theme="cloud"]:before{content:"☀"}.workspace-toolbar-actions .workspace-theme-switch button[data-theme="dark"]:before{content:"☾"}}

/* Compact account controls and dropdown. */
html body:is(.admin-workspace,.client-workspace) .workspace-account{display:block;position:relative}
.workspace-profile{cursor:pointer;list-style:none;min-height:40px;border-radius:9px;padding:3px 5px}
.workspace-profile::-webkit-details-marker{display:none}
.workspace-profile:focus-visible,.workspace-preview:focus-visible,.workspace-account-menu a:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.workspace-profile .avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.workspace-preview{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex-shrink:0;border:1px solid var(--line);border-radius:10px;color:var(--text);background:var(--card)}
.workspace-preview svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
.workspace-account-menu{position:absolute;top:calc(100% + 10px);left:0;z-index:1000;width:250px;max-width:calc(100vw - 32px);padding:8px;background:var(--card);color:var(--text);border:1px solid var(--line);border-radius:13px;box-shadow:0 12px 30px #0003;direction:rtl}
.workspace-account:not([open]) .workspace-account-menu{display:none}
.workspace-account-menu>strong{display:block;padding:10px 12px;border-bottom:1px solid var(--line);margin-bottom:4px;font-size:13px}
.workspace-account-menu a,.workspace-account-menu .workspace-logout{display:block;width:100%;padding:11px 12px;border:0;border-radius:8px;text-align:start;background:transparent;color:var(--text);font-size:13px;font-weight:600;text-decoration:none}
.workspace-account-menu a:hover,.workspace-account-menu .workspace-logout:hover{background:var(--primary-soft)}
.workspace-account-menu .workspace-logout{border-top:1px solid var(--line);color:#dc3545;cursor:pointer}
.profile-photo-preview{width:72px;height:72px;object-fit:cover;border-radius:16px}
#personal-details,#profile-photo,#password-settings{scroll-margin-top:24px}

html[data-theme=blue] body:is(.client-workspace,.admin-workspace){--bg:#eff6ff;--primary:#1853ad;--primary-soft:#e0edff;--experience-brand:#1853ad;--line:#cbdcf3}
html[data-theme=green] body:is(.client-workspace,.admin-workspace){--bg:#eff8f4;--primary:#126948;--primary-soft:#dbf3e6;--experience-brand:#126948;--line:#c9e3d6}
.workspace-client-themes{padding:8px 10px 12px;border-bottom:1px solid var(--line)}
.workspace-client-themes>span{display:block;color:var(--muted);font-size:12px;margin-bottom:7px}
.workspace-client-themes>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.workspace-client-themes button{min-height:38px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);cursor:pointer;font-size:12px}
.workspace-client-themes button[aria-pressed=true]{border-color:var(--primary);background:var(--primary-soft);font-weight:700;box-shadow:inset 0 0 0 1px var(--primary)}
.workspace-client-themes button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

html body.admin-workspace .onboarding-strip{background:var(--card);color:var(--text);border:1px solid var(--line)}
html body.admin-workspace .onboarding-strip b{color:var(--text)}
html body.admin-workspace .onboarding-strip :is(small,span){color:var(--muted)}
html body.admin-workspace .onboarding-strip code{background:var(--primary-soft);color:var(--text);border:1px solid var(--line);padding:3px 8px;border-radius:7px}
.customer-profile-logo{display:block;width:100%;height:100%;object-fit:contain;background:#fff;border-radius:inherit;padding:7px}
.customer-logo-preview{width:96px;height:72px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px}
.workspace-sidebar-toggle{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--text);cursor:pointer;font-size:20px}
.workspace-sidebar-toggle:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.nav-layout-topbar .workspace-sidebar-toggle{display:none}
@media(max-width:760px){.workspace-sidebar-toggle{display:none}}

/* License metrics share the workspace palette in both themes. */
html body.admin-workspace .license-center{color:var(--text)}
html body.admin-workspace .license-center .stats article{background:var(--card);border-color:var(--line);box-shadow:var(--shadow)}
html body.admin-workspace .license-center .stats strong{color:var(--text)}
html body.admin-workspace .license-center .stats :is(small,span){color:var(--muted)}
html body.admin-workspace .license-center .stats .good{color:#16754f;background:transparent}
html body.admin-workspace .license-center .stats .warn{color:#a14c0c;background:transparent}
html body.admin-workspace .license-center .stats .danger{color:#b02d40;background:transparent}
html[data-theme=dark] body.admin-workspace .license-center .stats .good{color:#76dfb0}
html[data-theme=dark] body.admin-workspace .license-center .stats .warn{color:#ffc27e}
html[data-theme=dark] body.admin-workspace .license-center .stats .danger{color:#ffabb5}
html body.admin-workspace .license-center :is(.filters,th){background:var(--bg);color:var(--muted)}
html body.admin-workspace .license-center :is(.filters input,.filters select){background:var(--card);color:var(--text);border-color:var(--line)}

/* Dense ERP tables retain readable columns at common desktop widths. */
html body.admin-workspace .license-center .table{font-size:12px;min-width:760px;width:100%}
html body.admin-workspace .license-center .table :is(th,td){padding:10px 9px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
html body.admin-workspace .license-center .table th{font-size:12px}
html body.admin-workspace .license-center .table td :is(b,strong){font-size:12px}
html body.admin-workspace .license-center .table td :is(small,code){font-size:11px;margin-top:3px}
html body.admin-workspace .license-center .subscriptions-table{table-layout:fixed;min-width:760px}
html body.admin-workspace .license-center .subscriptions-table th:nth-child(1){width:20%}
html body.admin-workspace .license-center .subscriptions-table th:nth-child(2){width:19%}
html body.admin-workspace .license-center .subscriptions-table th:nth-child(3){width:12%}
html body.admin-workspace .license-center .subscriptions-table th:nth-child(4){width:11%}
html body.admin-workspace .license-center .subscriptions-table th:nth-child(5){width:11%}
html body.admin-workspace .license-center .subscriptions-table th:nth-child(6){width:12%}
html body.admin-workspace .license-center .subscriptions-table th:nth-child(7){width:9%}
html body.admin-workspace .license-center .subscriptions-table th:nth-child(8){width:6%}
html body.admin-workspace .license-center .table .badge{padding:4px 7px;font-size:11px;white-space:nowrap}
html body.admin-workspace .license-center .subscription-details-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--line);border-radius:8px;color:var(--primary);background:var(--primary-soft)}
.subscription-details-icon svg{width:18px;height:18px}
.subscription-details-icon:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.subscription-details-icon:hover{filter:brightness(1.1)}

html body.admin-workspace .domain-link-card{margin-top:14px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--text)}
.domain-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.domain-card-heading h3{margin:0 0 3px;font-size:17px}
.domain-card-heading small{font-size:12px;color:var(--muted)}
.domain-link-form>.form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.8fr);align-items:end;gap:16px}
.domain-link-form .field{margin:0;min-width:0}
.domain-link-form .field>label{font-size:13px}
.domain-link-form select{min-height:42px;padding:8px 12px;font-size:13px}
html body.admin-workspace .domain-link-form .domain-enable-choice{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:62px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;cursor:pointer;background:var(--card)}
html body.admin-workspace .domain-enable-choice input[type=checkbox]{appearance:auto;display:block;flex:0 0 20px;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;margin:0;padding:0;accent-color:var(--primary)}
.domain-enable-choice span{display:grid;gap:2px}
.domain-enable-choice b{font-size:13px}
.domain-enable-choice small{font-size:11px;color:var(--muted);font-weight:400}
.domain-enable-choice:has(input:disabled){opacity:.65;cursor:not-allowed}
.domain-enable-choice:has(input:focus-visible){outline:2px solid var(--primary);outline-offset:3px}
.domain-card-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.domain-card-actions form{margin:0}
html body.admin-workspace .domain-card-actions :is(.btn,.ghost){min-height:40px;padding:8px 16px;font-size:13px;border-radius:9px}
html body.admin-workspace .domain-card-actions .ghost{color:var(--experience-red,#b02d40)}
.domain-link-card .domain-connection-help{margin-block:12px;padding:10px 12px;background:var(--card)}
.domain-link-card .domain-connection-help summary{font-size:13px}
@media(max-width:700px){.domain-link-form>.form-grid{grid-template-columns:1fr}.domain-link-card{padding:14px}.domain-card-actions{gap:8px}}

/* Checkbox sizing is independent of text-input sizing. */
html body:is(.admin-workspace,.client-workspace) .field input:is([type=checkbox],[type=radio]){width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:0;padding:0;box-shadow:none;accent-color:var(--primary)}
.security-settings-panel .security-enable-choice{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--bg);cursor:pointer}
.security-enable-choice span{display:grid;gap:3px}
.security-enable-choice b{font-size:14px}
.security-enable-choice small{font-size:12px;color:var(--muted);font-weight:400}
.security-key-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:8px}
.security-settings-panel .security-key-fields input{min-height:42px;font-size:13px;padding:9px 12px}
.security-settings-panel>.flash{padding:12px 14px;font-size:13px}
.security-settings-panel form>.muted{font-size:12px;line-height:1.8}
.security-settings-panel .btn{min-height:40px;padding:9px 16px;font-size:13px}
@media(max-width:700px){.security-key-fields{grid-template-columns:1fr;gap:0}}

.customer-action-center{margin-bottom:18px}
.customer-priorities,.customer-service-shortcuts,.incident-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-block:14px}
.customer-priorities>article,.customer-service-shortcuts>article,.incident-summary>article{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--bg);min-width:0;overflow-wrap:anywhere}
.customer-service-shortcuts small,.customer-priorities small,.deployment-readiness small{color:var(--muted);font-size:12px}
.customer-service-shortcuts .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.customer-action-center .btn,.customer-action-center .ghost{min-height:40px;font-size:12px;padding:8px 12px}
.customer-action-center form{margin:0}
.incident-summary p{font-size:13px;color:var(--muted);margin:0}
.deployment-readiness{display:grid;gap:4px;padding:12px;margin-block:10px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
@media(max-width:600px){.customer-priorities,.customer-service-shortcuts,.incident-summary{grid-template-columns:1fr}}

body:is(.admin-workspace,.client-workspace){--launch-muted:var(--muted);--launch-border:var(--line)}
html[data-theme=dark] body:is(.admin-workspace,.client-workspace) .commerce-row:hover{background:var(--bg)}
@media(max-width:480px){.workspace-toolbar-actions{gap:6px}.workspace-toolbar-actions .workspace-preview{width:34px;height:34px}.workspace-profile>span:nth-child(2){display:none}.workspace-profile{gap:5px}.workspace-account{padding-inline-start:6px}}
.domain-setup-panel{max-width:1100px}.domain-dns-editor{margin-block:12px}.domain-cloudflare-fields{margin-block:14px;border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--bg)}.domain-cloudflare-fields[hidden]{display:none}.domain-cloudflare-fields legend{font-size:13px;font-weight:700}.domain-inline-check{display:flex;align-items:center;gap:10px}.domain-records{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}.domain-record-head{display:grid;gap:4px;margin-bottom:12px}.domain-record-head small,.domain-records>small{font-size:12px;color:var(--muted)}.domain-record{display:grid;grid-template-columns:60px minmax(0,1fr) minmax(0,1.3fr) auto;align-items:end;gap:10px;margin-bottom:12px}.domain-record label{display:grid;gap:4px;font-size:12px}.domain-record input{width:100%;font-size:12px!important;min-height:38px!important}.domain-link-card .domain-connection-help pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);padding:12px;border-radius:8px;font-size:12px}.domain-dns-target{grid-column:1/-1}@media(max-width:700px){.domain-record{grid-template-columns:60px minmax(0,1fr)}.domain-record label:nth-of-type(2){grid-column:1/-1}.domain-record .ghost{grid-column:1/-1}}

.payment-currency-totals{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.payment-currency-totals strong{font-size:clamp(22px,2.1vw,34px);line-height:1.25}.payment-currency-totals strong small{font-size:13px}
.customer-statistics .customer-stat-heading{display:flex;align-items:center;gap:10px;color:var(--muted)}
.customer-statistics .customer-stat-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:var(--primary-soft);color:var(--primary);font-style:normal}
.customer-statistics .customer-stat-icon svg{display:block;width:20px;height:20px}
.customer-statistics .stat-subscriptions{color:#087f72;background:#e1f4f0}.customer-statistics .stat-services{color:#a15b12;background:#fff0dc}.customer-statistics .stat-active{color:#7353ad;background:#eee8fa}
html[data-theme=dark] .customer-statistics .stat-subscriptions{color:#81dbcc;background:#153e3b}html[data-theme=dark] .customer-statistics .stat-services{color:#ffd198;background:#483522}html[data-theme=dark] .customer-statistics .stat-active{color:#c5adf5;background:#382e50}

html body.admin-workspace .customer-search-bar{display:grid;grid-template-columns:minmax(0,1fr) 140px 140px auto;align-items:end;gap:12px;margin:18px 0;padding:16px;background:var(--card);border:1px solid var(--line);border-radius:12px;color:var(--text)}
html body.admin-workspace .customer-search-bar .field{margin:0;min-width:0}
html body.admin-workspace .customer-search-bar label{display:block;margin-bottom:7px;color:var(--text);font-size:12px;font-weight:600}
html body.admin-workspace .customer-search-bar :is(input,select){box-sizing:border-box;width:100%;height:42px;min-height:42px;padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--text);font-size:13px;box-shadow:none}
html body.admin-workspace .customer-search-bar input::placeholder{color:var(--muted);opacity:1}
html body.admin-workspace .customer-search-bar :is(input,select):focus-visible{outline:2px solid var(--primary);outline-offset:2px}
html body.admin-workspace .customer-search-bar .customer-search-actions{display:flex;align-items:center;gap:8px;grid-column:auto}
html body.admin-workspace .customer-search-bar .customer-search-actions :is(.btn,.ghost){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:42px;height:42px;padding:8px 14px;border-radius:9px;font-size:12px;white-space:nowrap}
html body.admin-workspace .customer-search-bar .customer-search-actions .ghost{border:1px solid var(--line);background:var(--card);color:var(--text)}
@media(max-width:1100px){html body.admin-workspace .customer-search-bar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}html body.admin-workspace .customer-search-bar .customer-search-query{grid-column:1/-1}html body.admin-workspace .customer-search-bar .customer-search-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:500px){html body.admin-workspace .customer-search-bar{gap:10px;padding:12px}html body.admin-workspace .customer-search-bar .customer-search-actions :is(.btn,.ghost){flex:1}}

/* Compact customer workspace: one navigation row and one action per task. */
.admin-workspace .customer-workspace .client-identity>div{min-width:0}.admin-workspace .customer-workspace .client-identity p{overflow-wrap:anywhere}
.admin-workspace .customer-workspace .erp-overview-grid small{display:flex;align-items:center;gap:6px}.admin-workspace .customer-workspace .erp-overview-grid small svg{width:14px;height:14px;color:var(--primary)}.admin-workspace .customer-workspace .erp-direct-url{display:flex;justify-content:flex-end;align-items:center;gap:6px}.admin-workspace .customer-workspace .erp-direct-url svg{width:14px;height:14px}.admin-workspace .customer-workspace .erp-card-footer .actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center}.admin-workspace .customer-workspace .erp-card-footer .actions a:not(.client-icon-action){width:auto}
.admin-workspace .customer-workspace .erp-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.admin-workspace .customer-workspace .erp-overview-grid>div{display:flex;flex-direction:column;gap:3px;background:var(--bg);border:1px solid var(--line);min-width:0}.admin-workspace .customer-workspace .erp-card-primary-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-workspace .customer-workspace .client-profile-head{gap:14px;margin:0 0 12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px}
.admin-workspace .customer-workspace .client-identity{gap:10px;min-width:0}.admin-workspace .customer-workspace .client-identity>span{width:44px;height:44px;flex:none;border-radius:12px;font-size:19px}.admin-workspace .customer-workspace .client-identity h1{font-size:22px;line-height:1.35;margin:0}.admin-workspace .customer-workspace .client-identity :is(p,small){font-size:11px}.admin-workspace .customer-workspace .customer-profile-logo{width:100%;height:100%;object-fit:contain;border-radius:inherit}
.admin-workspace .customer-workspace .client-head-actions{gap:7px;flex-wrap:wrap}.admin-workspace .customer-workspace svg{width:18px;height:18px;flex:none;display:block}.admin-workspace .customer-workspace .client-icon-action{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:36px!important;height:36px;min-height:36px;padding:8px!important;border-radius:9px;flex:none!important;line-height:1}.admin-workspace .customer-workspace .client-icon-action:focus-visible,.admin-workspace .customer-workspace summary:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
.admin-workspace .customer-workspace .profile-login-toggle{margin:0}.admin-workspace .customer-workspace .profile-login-toggle label{min-height:36px;padding:5px 9px;gap:8px;border-color:var(--line);background:var(--primary-soft)}.admin-workspace .customer-workspace .login-state-copy small{font-size:9px}.admin-workspace .customer-workspace .login-state-copy b{font-size:11px}
.admin-workspace .customer-workspace .client-main-tabs{display:flex;gap:5px;padding:5px;margin-bottom:10px;border-radius:12px;overflow-x:auto;box-shadow:none}.admin-workspace .customer-workspace .client-main-tabs a{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-height:42px;padding:8px 12px;white-space:nowrap;box-shadow:none}.admin-workspace .customer-workspace .client-main-tabs a span{font-size:12px}.admin-workspace .customer-workspace .client-main-tabs a b{display:inline-grid;place-items:center;min-width:20px;height:20px;padding-inline:4px;border-radius:6px;background:var(--primary-soft);color:var(--primary);font-size:10px}
.admin-workspace .customer-workspace .client-tabs{gap:4px;padding:4px;margin-bottom:10px;border-radius:10px;box-shadow:none}.admin-workspace .customer-workspace .client-tabs a{display:flex;align-items:center;gap:8px;min-width:0;padding:7px 12px;min-height:34px}.admin-workspace .customer-workspace .client-tabs a small{display:none}.admin-workspace .customer-workspace .client-tabs a b{position:static}.admin-workspace .customer-workspace .client-tabs a span{font-size:11px}
.admin-workspace .customer-workspace .client-actionbar{position:static;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:48px;box-sizing:border-box;padding:7px 10px;margin:0 0 10px;border-radius:11px;box-shadow:none}.admin-workspace .customer-workspace .client-actionbar>strong{display:flex;align-items:center;gap:8px;font-size:12px}.admin-workspace .customer-workspace .action-group{gap:6px;padding:0;border:0;flex-wrap:wrap}.admin-workspace .customer-workspace :is(.action-group,.erp-card-primary-actions,.erp-card-footer .actions) :is(.btn,.ghost){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 11px;font-size:11px;line-height:1.4;border-radius:8px}.admin-workspace .customer-workspace .action-group>span{display:none}
.admin-workspace .customer-workspace .client-credentials{margin:0 0 12px;border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--text)}.admin-workspace .customer-workspace .client-credentials>summary{display:flex;align-items:center;gap:9px;min-height:42px;padding:9px 12px;box-sizing:border-box;cursor:pointer;font-size:11px;list-style:none}.admin-workspace .customer-workspace .client-credentials>summary::-webkit-details-marker{display:none}.admin-workspace .customer-workspace .client-credentials>summary:after{content:'⌄';margin-inline-start:auto;font-size:16px;color:var(--muted)}.admin-workspace .customer-workspace .client-credentials[open]>summary:after{transform:rotate(180deg)}.admin-workspace .customer-workspace .client-credentials summary :is(small,span){font-size:10px;color:var(--muted)}.admin-workspace .customer-workspace .client-credentials summary>span{margin-inline-start:auto}.admin-workspace .customer-workspace .onboarding-strip{gap:12px;margin:0;padding:10px 12px;border:0;border-top:1px solid var(--line);border-radius:0 0 11px 11px}.admin-workspace .customer-workspace .onboarding-strip code{font-size:12px}.admin-workspace .customer-workspace .onboarding-actions{gap:6px}.admin-workspace .customer-workspace .client-credentials>form{padding-inline:12px}
.admin-workspace .customer-workspace .erp-subscription-grid{gap:12px}.admin-workspace .customer-workspace .erp-subscription-card{padding:15px;border-radius:13px}.admin-workspace .customer-workspace .erp-card-head{gap:12px;margin-bottom:12px}.admin-workspace .customer-workspace .erp-card-title h2{font-size:17px;margin:2px 0 4px}.admin-workspace .customer-workspace .erp-card-title>small{display:none}.admin-workspace .customer-workspace .erp-card-title>span{font-size:11px}.admin-workspace .customer-workspace .erp-overview-grid{gap:8px;margin:12px 0}.admin-workspace .customer-workspace .erp-overview-grid>div{padding:10px;border-radius:9px}.admin-workspace .customer-workspace .erp-overview-grid b{font-size:14px}.admin-workspace .customer-workspace .erp-overview-grid :is(small,span){font-size:10px}.admin-workspace .customer-workspace .erp-card-footer{gap:10px;margin-top:10px;padding-top:10px}.admin-workspace .customer-workspace .erp-card-footer summary{font-size:11px}.admin-workspace .customer-workspace .erp-direct-url{font-size:11px;padding-block:6px;overflow-wrap:anywhere}
@media(max-width:760px){.admin-workspace .customer-workspace .client-profile-head{flex-direction:row;flex-wrap:wrap}.admin-workspace .customer-workspace .client-head-actions{width:auto;margin-inline-start:auto;justify-content:flex-end}.admin-workspace .customer-workspace .client-main-tabs a{flex:0 0 auto;min-width:100px}.admin-workspace .customer-workspace .client-actionbar>*{flex:initial;text-align:start}.admin-workspace .customer-workspace .client-credentials summary>span{display:none}.admin-workspace .customer-workspace .onboarding-strip{flex-direction:row;align-items:center;flex-wrap:wrap}.admin-workspace .customer-workspace .onboarding-actions>*{flex:initial}.admin-workspace .customer-workspace .client-identity h1{font-size:19px}}
@media(max-width:900px){.admin-workspace .customer-workspace .erp-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.admin-workspace .customer-workspace .erp-card-footer .actions a:not(.client-icon-action){flex:1}}

/* Section accents remain legible in both workspace themes. */
.admin-workspace .customer-workspace{--accent-blue:#3455be;--accent-teal:#08766c;--accent-amber:#91520a;--accent-purple:#143d56}
html[data-theme=dark] .admin-workspace .customer-workspace{--accent-blue:#a8bdff;--accent-teal:#82ded0;--accent-amber:#ffd092;--accent-purple:#a2c9dd}
.admin-workspace .customer-workspace .client-main-tabs a[data-section=overview]{--section-accent:var(--accent-blue)}
.admin-workspace .customer-workspace .client-main-tabs a[data-section=erp]{--section-accent:var(--accent-purple)}
.admin-workspace .customer-workspace .client-main-tabs a[data-section=services]{--section-accent:var(--accent-teal)}
.admin-workspace .customer-workspace .client-main-tabs a[data-section=financial]{--section-accent:var(--accent-amber)}
.admin-workspace .customer-workspace .client-main-tabs a[data-section=support]{--section-accent:var(--accent-blue)}
.admin-workspace .customer-workspace .client-main-tabs a{color:var(--section-accent);background:color-mix(in srgb,var(--section-accent) 7%,var(--card));border-color:color-mix(in srgb,var(--section-accent) 20%,var(--line));transition:background .16s ease,border-color .16s ease}
.admin-workspace .customer-workspace .client-main-tabs a.active{background:color-mix(in srgb,var(--section-accent) 15%,var(--card));border-color:var(--section-accent);box-shadow:inset 0 -3px var(--section-accent);color:var(--section-accent)}
.admin-workspace .customer-workspace :is(.client-icon-action,.erp-card-footer .ghost){background:var(--primary-soft);border-color:color-mix(in srgb,var(--primary) 25%,var(--line));color:var(--primary)}
.admin-workspace .customer-workspace .erp-card-footer summary,.admin-workspace .same-server-repair>summary{display:inline-flex;align-items:center;gap:7px;min-height:36px;box-sizing:border-box;padding:8px 12px;border:1px solid color-mix(in srgb,var(--primary) 28%,var(--line));border-radius:9px;background:var(--primary-soft);color:var(--primary);cursor:pointer;list-style:none}
.admin-workspace .customer-workspace .erp-card-footer summary:after,.admin-workspace .same-server-repair>summary:after{content:'⌄';margin-inline-start:7px}.admin-workspace .customer-workspace .erp-card-footer details[open]>summary:after{transform:rotate(180deg)}
.admin-workspace .customer-workspace :is(.client-kpis>div,.erp-overview-grid>div){--tile-accent:var(--accent-blue);border-inline-start:3px solid var(--tile-accent);background:color-mix(in srgb,var(--tile-accent) 6%,var(--card))}
.admin-workspace .customer-workspace :is(.client-kpis>div,.erp-overview-grid>div):nth-child(2){--tile-accent:var(--accent-teal)}
.admin-workspace .customer-workspace :is(.client-kpis>div,.erp-overview-grid>div):nth-child(3){--tile-accent:var(--accent-purple)}
.admin-workspace .customer-workspace :is(.client-kpis>div,.erp-overview-grid>div):nth-child(4){--tile-accent:var(--accent-amber)}
.admin-workspace .customer-workspace .client-profile-head{background:linear-gradient(110deg,var(--card) 65%,var(--primary-soft))}
.admin-workspace .erp-file .subscription-navigation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0;background:transparent;border:0}
.admin-workspace .erp-file .subscription-navigation button{--nav-accent:var(--primary);display:grid;grid-template-columns:24px minmax(0,1fr);gap:5px 9px;align-items:center;text-align:start;padding:13px 15px;min-width:0;border:1px solid var(--line);border-inline-start:3px solid var(--nav-accent);background:color-mix(in srgb,var(--nav-accent) 6%,var(--card));color:var(--text);border-radius:12px;box-shadow:none}
.admin-workspace .erp-file .subscription-navigation button:nth-child(2){--nav-accent:#527c96}.admin-workspace .erp-file .subscription-navigation button:nth-child(3){--nav-accent:#15978a}.admin-workspace .erp-file .subscription-navigation button:nth-child(4){--nav-accent:#b87b30}
.admin-workspace .erp-file .subscription-navigation button.active{border-color:var(--nav-accent);background:color-mix(in srgb,var(--nav-accent) 13%,var(--card))}
.admin-workspace .erp-file .subscription-navigation svg{width:21px;height:21px;color:var(--nav-accent)}.admin-workspace .erp-file .subscription-navigation button span{font-size:12px}.admin-workspace .erp-file .subscription-navigation :is(b,small){grid-column:2;overflow-wrap:anywhere}.admin-workspace .erp-file .subscription-navigation b{font-size:15px}.admin-workspace .erp-file .subscription-navigation small{font-size:10px;color:var(--muted)}
.admin-workspace .same-server-repair svg{width:18px;height:18px}.admin-workspace .same-server-repair>summary:focus-visible,.admin-workspace .subscription-navigation button:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
@media(max-width:850px){.admin-workspace .erp-file .subscription-navigation{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.admin-workspace .customer-workspace .client-main-tabs a{transition:none}}
.admin-workspace .customer-workspace .client-kpis small{display:flex;align-items:center;gap:7px}.admin-workspace .customer-workspace .client-kpis small svg{color:var(--tile-accent);width:17px;height:17px}
html body.admin-workspace .erp-file .tabs.subscription-navigation button.active{background:color-mix(in srgb,var(--nav-accent) 13%,var(--card))!important;border-color:var(--nav-accent);color:var(--text)!important;box-shadow:inset 0 -3px var(--nav-accent)}
html body.admin-workspace .erp-file .tabs.subscription-navigation button.active small{color:var(--muted)!important}

/* Petroleum blue accent requested for customer actions and ERP sections. */
.admin-workspace .customer-workspace{--primary:#143d56;--primary-soft:#e8f0f4}
html[data-theme=dark] .admin-workspace .customer-workspace{--primary:#a2c9dd;--primary-soft:#203d50}
html body.admin-workspace .customer-workspace :is(.btn,.primary){background:#143d56!important;border-color:#143d56!important;color:#fff!important}
html body.admin-workspace .license-stat-filters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
html body.admin-workspace .license-stat-filters a{display:flex;align-items:center;gap:7px;min-height:40px;padding:8px 11px;box-sizing:border-box;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--text);font-size:12px}
html body.admin-workspace .license-stat-filters svg{width:17px;height:17px;color:var(--primary)}
html body.admin-workspace .license-stat-filters b{padding:2px 7px;border-radius:6px;background:var(--primary-soft);font-size:13px}
html body.admin-workspace .license-stat-filters a[aria-current]{border-color:var(--primary);background:var(--primary-soft)}
html body.admin-workspace .license-stat-filters a:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
html body.admin-workspace .license-center>.hero{padding-block:16px;margin-bottom:12px}html body.admin-workspace .license-center>.hero h1{font-size:28px}
@media(max-width:500px){html body.admin-workspace .license-stat-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}html body.admin-workspace .license-stat-filters a{font-size:11px}html body.admin-workspace .license-stat-filters b{margin-inline-start:auto}}
html body.admin-workspace .plan-workspace .grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html body.admin-workspace .plan-workspace .grid label{min-width:0;font-size:12px;gap:6px}
html body.admin-workspace .plan-workspace .grid :is(input:not([type=checkbox]),select){box-sizing:border-box;min-height:38px;height:38px;padding:7px 10px;font-size:13px;border-radius:8px}
html body.admin-workspace .plan-workspace .erp-quota{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;gap:6px}
html body.admin-workspace .plan-workspace .erp-quota>label:first-child{grid-column:1/-1}
html body.admin-workspace .plan-workspace .erp-quota .quota-unlimited{display:flex;align-items:center;gap:6px;margin:0;font-size:11px}
html body.admin-workspace .plan-workspace .grid input[type=checkbox]{width:18px;height:18px;min-height:18px;accent-color:#143d56}
html body.admin-workspace .plan-workspace .erp-quota>small{font-size:10px;align-self:center;justify-self:end}
@media(max-width:1000px){html body.admin-workspace .plan-workspace .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){html body.admin-workspace .plan-workspace .grid{grid-template-columns:minmax(0,1fr)}}
html body.admin-workspace .customer-statistics .workspace-kpi{min-height:70px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;color:var(--text);border-radius:12px}
html body.admin-workspace .customer-statistics .workspace-kpi strong{font-size:24px;margin:0}
html body.admin-workspace .customer-statistics .workspace-kpi[aria-current]{background:var(--primary-soft);border-color:var(--primary)}
html body.admin-workspace .customer-statistics .workspace-kpi:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
html body.admin-workspace .customer-statistics .stat-active{color:#143d56;background:#e5eff4}html[data-theme=dark] body.admin-workspace .customer-statistics .stat-active{color:#a2c9dd;background:#203d50}
html body.admin-workspace .customer-statistics .workspace-kpi{flex-direction:row;box-sizing:border-box;border-block-start-width:2px;box-shadow:none}
html body.admin-workspace .customer-statistics .workspace-kpi>span{font-size:12px}
html body.admin-workspace .customer-statistics .customer-stat-icon{width:28px;height:28px;flex-basis:28px;border-radius:8px}
html body.admin-workspace .customer-statistics .customer-stat-icon svg{width:17px;height:17px}
html body.admin-workspace .customer-statistics .workspace-kpi:nth-child(4){border-block-start-color:#143d56}
html body.admin-workspace .erp-file .module-applied-state{display:inline-flex;align-items:center;gap:5px;width:fit-content;padding:4px 7px;border-radius:6px;font-size:10px;line-height:1.5;background:var(--primary-soft);color:var(--text)}
html body.admin-workspace .erp-file .module-applied-state:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
html body.admin-workspace .erp-file .module-applied-state.applied-enabled{color:#146b48;background:#e6f4ed}
html body.admin-workspace .erp-file .module-applied-state.applied-read_only{color:#235c94;background:#e9f2fb}
html body.admin-workspace .erp-file .module-applied-state.applied-disabled{color:#80520b;background:#fff1d6}
html body.admin-workspace .erp-file .module-applied-state.applied-hidden{color:var(--muted);background:var(--bg)}
html[data-theme=dark] body.admin-workspace .erp-file .module-applied-state.applied-enabled{color:#91dfb4;background:#203d35}html[data-theme=dark] body.admin-workspace .erp-file .module-applied-state.applied-read_only{color:#b4d5f5;background:#243b54}html[data-theme=dark] body.admin-workspace .erp-file .module-applied-state.applied-disabled{color:#ffda9c;background:#493b22}

/* A single compact identity area for the ERP subscription. */
html body.admin-workspace .subscription-workspace{--primary:inherit;--primary-soft:inherit}
html[data-theme=dark] body.admin-workspace .subscription-workspace{--primary:inherit;--primary-soft:inherit}
html body.admin-workspace .subscription-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin:0 0 12px;border:1px solid var(--line);border-radius:13px;background:linear-gradient(110deg,var(--card) 60%,var(--primary-soft));box-shadow:0 3px 12px #123d5605}
html body.admin-workspace .subscription-heading{min-width:0}.subscription-title-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
html body.admin-workspace .subscription-title-line h1{font-size:21px;line-height:1.4;margin:0}.subscription-title-line>small{color:var(--muted);font-size:11px}
html body.admin-workspace .subscription-header .state{padding:4px 9px;font-size:10px}
html body.admin-workspace .subscription-contact-line{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:5px;color:var(--muted);font-size:11px}
html body.admin-workspace .subscription-contact-line>span{display:inline-flex;align-items:center;gap:5px;min-width:0;overflow-wrap:anywhere}
html body.admin-workspace .subscription-header svg{width:16px;height:16px;flex:none}.subscription-contact-line svg{opacity:.7}
html body.admin-workspace .subscription-header-actions{display:flex;align-items:center;gap:7px;flex:none;flex-wrap:wrap}
html body.admin-workspace .subscription-header-actions :is(a,summary){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;box-sizing:border-box;padding:7px 10px;font-size:11px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--primary);cursor:pointer;list-style:none;text-decoration:none}
html body.admin-workspace .subscription-header-actions .subscription-domain{background:var(--primary-soft);border-color:color-mix(in srgb,var(--primary) 22%,var(--line))}
html body.admin-workspace .subscription-header-actions .subscription-back{width:34px;padding:7px}
html body.admin-workspace .subscription-header-actions :is(a,summary):focus-visible{outline:3px solid var(--primary);outline-offset:3px}
html body.admin-workspace .subscription-legal{position:relative}.subscription-legal>summary::-webkit-details-marker{display:none}
html body.admin-workspace .subscription-legal dl{position:absolute;z-index:12;top:100%;inset-inline-end:0;min-width:220px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--card);box-shadow:0 8px 24px #123d5618;font-size:11px}
html body.admin-workspace .subscription-workspace .tabs.subscription-navigation{margin:0 0 12px;gap:8px}
html body.admin-workspace .subscription-workspace .tabs.subscription-navigation button{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;justify-content:start;gap:3px 8px;padding:10px 12px;min-height:78px;text-align:start;border-radius:10px;transition:border-color .16s ease,background .16s ease}
html body.admin-workspace .subscription-workspace .tabs.subscription-navigation button>svg{grid-row:1/4;width:20px;height:20px;align-self:start;margin-top:3px}.subscription-workspace .subscription-navigation button span{grid-column:2}
html body.admin-workspace .subscription-workspace .tabs.subscription-navigation button.active{box-shadow:inset 0 -2px var(--nav-accent)}
html body.admin-workspace .subscription-workspace .subscription-form .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html body.admin-workspace .subscription-workspace .subscription-form label{font-size:11px;gap:5px}
html body.admin-workspace .subscription-workspace .subscription-form :is(input:not([type=checkbox]),select){height:38px;min-height:38px;padding:7px 10px;font-size:12px;border-radius:8px;box-sizing:border-box}
html body.admin-workspace .subscription-workspace .subscription-form input[type=checkbox]{width:17px;height:17px;min-height:17px}
html body.admin-workspace .subscription-workspace .subscription-form .erp-quota small{font-size:10px}.subscription-workspace .module-receipt-time{font-size:11px;color:var(--muted)}
@media(max-width:1100px){html body.admin-workspace .subscription-header{align-items:flex-start;flex-wrap:wrap}html body.admin-workspace .subscription-header-actions{margin-inline-start:auto}}
@media(max-width:1000px){html body.admin-workspace .subscription-workspace .subscription-form .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){html body.admin-workspace .subscription-header{padding:12px}.subscription-heading{width:100%}html body.admin-workspace .subscription-header-actions{justify-content:flex-start;width:100%;margin:0}.subscription-domain span{overflow-wrap:anywhere;max-width:190px}html body.admin-workspace .subscription-workspace .subscription-form .grid{grid-template-columns:minmax(0,1fr)}html body.admin-workspace .subscription-workspace .tabs.subscription-navigation button{padding:9px;min-height:76px}html body.admin-workspace .subscription-title-line h1{font-size:19px}}
@media(prefers-reduced-motion:reduce){html body.admin-workspace .subscription-workspace .tabs.subscription-navigation button{transition:none}}
@media(max-width:850px){html body.admin-workspace .subscription-workspace .tabs.subscription-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}html body.admin-workspace .subscription-workspace .tabs.subscription-navigation button{min-width:0}}
@media(max-width:550px){html body.admin-workspace .subscription-header-actions :is(a,summary){min-height:40px}}
html body.admin-workspace .subscription-workspace .subscription-form:not(.is-editing) .edit-only{display:none!important}
html body.admin-workspace .subscription-workspace .subscription-form.is-editing button.edit-only{display:inline-flex!important}
html body.admin-workspace .subscription-workspace .subscription-form.is-editing .url-preview.edit-only{display:block!important}
html body.admin-workspace .subscription-workspace .subscription-form .erp-quota>small{display:none}

/* Subscription list: shared light/dark surfaces and readable compact statistics. */
html body.admin-workspace .erp-subs{color:var(--text);--primary:inherit;--primary-soft:inherit}
html[data-theme=dark] body.admin-workspace .erp-subs{--primary:inherit;--primary-soft:inherit}
html body.admin-workspace .erp-subs :is(.kpis a,.setup-tools,.filters,.table-card){background:var(--card);border-color:var(--line);color:var(--text)}
html body.admin-workspace .erp-subs .kpis a{padding:10px 13px;box-shadow:none;border-radius:11px;transition:background .15s,border-color .15s}
html body.admin-workspace .erp-subs .kpis a:hover{background:var(--primary-soft);border-color:var(--primary)}
html body.admin-workspace .erp-subs .kpis b{font-size:21px;color:var(--text)}
html body.admin-workspace .erp-subs :is(.kpis small,.table-card small,.setup-tools>summary small,.setup-card p,.setup-note){color:var(--muted)}
html body.admin-workspace .erp-subs .setup-tools>summary{padding:12px 16px;color:var(--text);background:var(--card)}
html body.admin-workspace .erp-subs .setup-tools>summary:hover{background:var(--primary-soft)}
html body.admin-workspace .erp-subs .setup-tools[open]>summary{border-color:var(--line)}
html body.admin-workspace .erp-subs :is(.setup-card h2,.filters label span,.customer,.customer b){color:var(--text)}
html body.admin-workspace .erp-subs :is(.setup-form input,.filters input,.filters select){background:var(--bg);color:var(--text);border-color:var(--line)}
html body.admin-workspace .erp-subs :is(.filters button,.setup-form button){background:#143d56;color:#fff}
html body.admin-workspace .erp-subs :is(.filters a,.row-actions a){color:var(--primary);border-color:var(--line);background:var(--primary-soft)}
html body.admin-workspace .erp-subs .table-card th{background:var(--bg);color:var(--muted)}
html body.admin-workspace .erp-subs :is(.table-card td,.table-card footer){border-color:var(--line)}
html body.admin-workspace .erp-subs .runtime:not(.running):not(.stopped):not(.unhealthy){background:var(--primary-soft);color:var(--text)}
html body.admin-workspace .erp-subs :is(a,button,input,select,summary):focus-visible{outline:3px solid var(--primary);outline-offset:3px}
@media(prefers-reduced-motion:reduce){html body.admin-workspace .erp-subs .kpis a{transition:none}}
html body.admin-workspace .subscription-workspace .plan-customization{margin-top:14px;border:1px solid var(--line);border-radius:10px;background:var(--card);overflow:hidden}
html body.admin-workspace .subscription-workspace .plan-customization>summary{display:flex;align-items:center;gap:8px;padding:11px 13px;cursor:pointer;color:var(--primary);background:var(--primary-soft);font-size:12px;font-weight:700}
html body.admin-workspace .subscription-workspace .plan-customization>summary::after{content:'⌄';margin-inline-start:auto}.plan-customization>summary svg{width:17px;height:17px}
html body.admin-workspace .subscription-workspace .plan-customization>summary small{font-size:10px;color:var(--muted);font-weight:400}
html body.admin-workspace .subscription-workspace .plan-customization>p{margin:12px 13px;color:var(--muted);font-size:11px}
html body.admin-workspace .subscription-workspace .plan-customization>.grid{padding:0 13px 13px}
@media(max-width:550px){html body.admin-workspace .subscription-workspace .plan-customization>summary small{display:none}}
/* Transparent brand artwork and reliable customer logo fallbacks. */
html body.admin-workspace .dashboard-brand-logo{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
html body.admin-workspace .customer-cell>.customer-list-avatar{position:relative;display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;overflow:hidden;border-radius:10px;background:var(--primary-soft);color:var(--primary);font-size:17px;font-weight:800}
html body.admin-workspace .customer-list-avatar>.customer-list-initial{display:grid;place-items:center;width:100%;height:100%;background:transparent;color:inherit;border-radius:0;padding:0}
html body.admin-workspace .customer-list-avatar>img{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;object-fit:contain;background:var(--card)}
html body.admin-workspace .customer-list-avatar>img[hidden]{display:none}
html body.admin-workspace .erp-subs .table-card a.customer,
html body.admin-workspace .erp-subs .table-card a.customer .customer-title b{color:var(--text);font-weight:800}
html body.admin-workspace .erp-subs .table-card a.customer:hover .customer-title b{color:var(--primary);text-decoration:underline;text-underline-offset:3px}
html body.admin-workspace .erp-subs .table-card a.domain{color:var(--primary)}
html body.admin-workspace .svc-tabs .svc-tab{background:transparent;color:var(--text);box-shadow:none;border:1px solid transparent}
html body.admin-workspace .svc-tabs .svc-tab.active{background:#143d56;color:#fff;border-color:#426a80;box-shadow:none}
html body.admin-workspace .svc-tabs .svc-tab:hover:not(.active){background:var(--primary-soft);color:var(--text)}
html body.admin-workspace .svc-tabs .svc-tab:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
html body.admin-workspace .offering-editor summary .offering-availability{background:#e4f4ed;color:#166344;border:1px solid #b7decd;font-size:12px;white-space:nowrap;min-width:52px;text-align:center}
html body.admin-workspace .offering-editor summary .offering-availability.is-unavailable{background:#edf0f4;color:#4c596c;border-color:#ced5de}
html[data-theme=dark] body.admin-workspace .offering-editor summary .offering-availability{background:#173d35;color:#a0e4c6;border-color:#2d6553}
html[data-theme=dark] body.admin-workspace .offering-editor summary .offering-availability.is-unavailable{background:#29364a;color:#c8d3e3;border-color:#46556c}
/* Service editor is mounted on body; use workspace tokens outside app-main too. */
html body.admin-workspace .svc-modal-card{background:var(--card);color:var(--text);border:1px solid var(--line);border-radius:15px;max-height:90dvh}
html body.admin-workspace :is(.svc-modal-head,.svc-modal-foot){background:var(--bg);color:var(--text);border-color:var(--line);padding:13px 18px}
html body.admin-workspace .svc-modal-head h2{color:var(--text);font-size:18px}
html body.admin-workspace .svc-modal-body{padding:16px 18px}
html body.admin-workspace .svc-modal-body form{display:block!important}
html body.admin-workspace .svc-modal-body .form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
html body.admin-workspace .svc-modal-body :is(.field,.svc-family-field){min-width:0}
html body.admin-workspace .svc-modal-body :is(label,.check-row){color:var(--text);font-size:12px}
html body.admin-workspace .svc-modal-body :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box;width:100%;min-height:38px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 10px;font:inherit;font-size:12px}
html body.admin-workspace .svc-modal-body textarea{min-height:76px}
html body.admin-workspace .svc-modal-body input::placeholder{color:var(--muted);opacity:1}
html body.admin-workspace .svc-modal-body .check-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
html body.admin-workspace .svc-modal-body .check-row label{display:inline-flex;align-items:center;gap:6px}
html body.admin-workspace .svc-modal-body input[type=checkbox]{accent-color:#32708b;width:16px;height:16px}
html body.admin-workspace .svc-modal :is(.svc-modal-x,.svc-cancel){background:var(--card);color:var(--text);border:1px solid var(--line)}
html body.admin-workspace .svc-modal .svc-save{background:#143d56;color:#fff}
html body.admin-workspace .svc-modal :is(button,input,select,textarea):focus-visible{outline:3px solid var(--primary);outline-offset:2px}
@media(max-width:1000px){html body.admin-workspace .svc-modal-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){html body.admin-workspace .svc-modal-body .form-grid{grid-template-columns:minmax(0,1fr)}}
.wordpress-sites{max-width:1500px;margin:auto}.wordpress-filters,.wordpress-service-picker{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.wordpress-filters input{flex:1;min-width:180px}.wordpress-sites :is(input,select){background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:9px 11px;font:inherit;font-size:12px;min-height:40px}.wordpress-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}.wordpress-card{min-width:0;border:1px solid var(--line);border-radius:15px;background:var(--card);overflow:hidden}.wordpress-preview{position:relative;height:145px;display:grid;place-items:center;background:var(--primary-soft);border-bottom:1px solid var(--line)}.wordpress-mark{font:italic 64px Georgia,serif;color:var(--muted);opacity:.7}.wordpress-preview>a{position:absolute;top:10px;inset-inline-end:10px;font-size:11px}.wordpress-state{position:absolute;bottom:10px;inset-inline-start:10px;padding:4px 8px;border-radius:7px;background:var(--card);color:var(--muted);font-size:11px}.wordpress-state.connected{background:#173d35;color:#a0e4c6}.wordpress-state.stale{background:#583e15;color:#ffe1a4}.wordpress-card-body{padding:13px}.wordpress-card h2{font-size:15px;margin:0 0 6px;text-align:start;overflow-wrap:anywhere;color:var(--text)}.wordpress-card-body>small{display:block;color:var(--muted);font-size:11px}.wordpress-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0;color:var(--muted);font-size:11px}.wordpress-facts b{color:var(--text);margin-inline-start:5px}.wordpress-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.wordpress-actions form{margin:0}.wordpress-actions :is(a,button){font-size:11px;padding:8px}.wordpress-pagination{margin:16px 0}.wordpress-pagination svg{width:18px;height:18px}.wordpress-sites details summary{cursor:pointer;color:var(--text);font-weight:700}.wordpress-service-picker{margin:12px 0}.wordpress-service-picker select{flex:1}.wordpress-sites :is(a,button,input,select,summary):focus-visible{outline:3px solid var(--primary);outline-offset:3px}@media(max-width:1100px){.wordpress-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){.wordpress-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.wordpress-grid{grid-template-columns:minmax(0,1fr)}.wordpress-preview{height:125px}.wordpress-filters input{flex-basis:100%}}
html body.admin-workspace .wordpress-sites{--primary:inherit;--primary-soft:inherit}
html[data-theme=dark] body.admin-workspace .wordpress-sites{--primary:inherit;--primary-soft:inherit}

/* ERP operational panels share the selected theme instead of fixed white surfaces. */
html body.admin-workspace .erp-file :is(.release-update,.release-versions>div,.form-divider,.server-create-choice,.reinstall-panel){background:var(--bg)!important;border-color:var(--line);color:var(--text)}
html body.admin-workspace .erp-file :is(.release-versions code,.release-update h3,.form-divider b,.server-create-choice b,.reinstall-panel summary b){color:var(--text)!important}
html body.admin-workspace .erp-file :is(.release-versions small,.release-versions span,.release-update p,.release-update li,.form-divider span,.server-create-choice small,.reinstall-panel summary small){color:var(--muted)!important}
html body.admin-workspace .erp-file .infrastructure-form :is(input:not([type=checkbox]),select){background:var(--bg);color:var(--text);border-color:var(--line)}
html body.admin-workspace .erp-file .infrastructure-form input[type=checkbox]{accent-color:#32748c}
html body.admin-workspace .erp-file .reinstall-panel{border-inline-start:3px solid #ad7c34}
html body.admin-workspace .erp-file .reinstall-panel summary strong{background:#f6ead5;color:#775016}
html[data-theme=dark] body.admin-workspace .erp-file .reinstall-panel summary strong{background:#463722;color:#f4cf91}
html body.admin-workspace .license-center .agent-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px;align-items:center}
html body.admin-workspace .license-center .agent-actions>form{display:inline-flex;margin:0;min-width:0}
html body.admin-workspace .license-center .agent-actions .details-link{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 10px!important;border:1px solid var(--line)!important;border-radius:8px;font:inherit;font-size:11px;font-weight:700;line-height:1.4;text-decoration:none;cursor:pointer;box-shadow:none}
html body.admin-workspace .license-center .agent-actions .agent-status-button{background:#e6f0f5!important;color:#143d56!important;border-color:#b6cedb!important}
html body.admin-workspace .license-center .agent-actions .agent-restart-button{background:#f7eddd!important;color:#795419!important;border-color:#dfc59e!important}
html[data-theme=dark] body.admin-workspace .license-center .agent-actions .agent-status-button{background:#203f52!important;color:#c1e2f1!important;border-color:#426b80!important}
html[data-theme=dark] body.admin-workspace .license-center .agent-actions .agent-restart-button{background:#463722!important;color:#f4cf91!important;border-color:#7c6035!important}
html body.admin-workspace .license-center .agent-actions .release-command{flex-basis:100%;display:flex;align-items:center;gap:6px}
html body.admin-workspace .license-center .agent-actions .release-command input{width:110px;min-width:70px;flex:1;min-height:34px}
html body.admin-workspace .license-center .agent-actions .release-command button{font-size:11px;padding:7px 10px;min-height:34px}
html body.admin-workspace .license-center .agent-actions button:focus-visible{outline:3px solid var(--primary);outline-offset:3px}

/* Complete admin dark-theme contrast pass across settings and service editors. */
html[data-theme=dark] body.admin-workspace .finance-card:is(.expense,.alert-card) b{color:#f2a0aa}
html[data-theme=dark] body.admin-workspace .zatca-readiness{background:#40351f;border-color:#765e30;color:#f4d69e}
html[data-theme=dark] body.admin-workspace .zatca-readiness small{color:#eed6ae}
html[data-theme=dark] body.admin-workspace .zatca-readiness.ready{background:#183d32;border-color:#35644f;color:#a8e4c7}
html[data-theme=dark] body.admin-workspace .migration-dropzone>span{background:#234e64;color:#d0eaf5}
html body.admin-workspace .way-settings .bulk button{background:var(--primary-soft);color:var(--text);border-color:var(--line)}
html body.admin-workspace .cloud-settings .panel-head>span{background:var(--primary-soft);color:var(--text);border-color:var(--line)}
html body.admin-workspace .cloud-settings .domain-list :is(b,code){color:var(--text)}
html body.admin-workspace :is(.mail-stats b,.template-list code){color:var(--primary)}
html body.admin-workspace :is(.svc-add,.svc-next){background:#143d56;color:#fff;border:1px solid #426a80}

html body.admin-workspace .erp-file :is(.backup-last,.backup-form,.agent-reference-grid>article,.agent-command,.agent-relink-help,.agent-cases,.agent-cases-grid article,.timer-fix-grid article,.dockge-entitlement article,.dockge-download-form,.backup-destinations,.backup-update-report){background:var(--card)!important;border-color:var(--line);color:var(--text)}
html body.admin-workspace .erp-file :is(.backup-form select,.dockge-download-form input){background:var(--bg);color:var(--text);border-color:var(--line)}
html body.admin-workspace .erp-file :is(.agent-reference-grid,.agent-cases-grid,.timer-fix-grid,.dockge-entitlement) :is(h3,b,code){color:var(--text)}
html[data-theme=dark] body.admin-workspace .erp-file :is(.agent-health.warning,.agent-current-state.warning,.dockge-note){background:#40351f;color:#f4d69e;border-color:#765e30}
html[data-theme=dark] body.admin-workspace .erp-file :is(.agent-health.error,.agent-current-state.error){background:#472a34;color:#ffc0c7;border-color:#80505c}
html body.admin-workspace :is(.order-detail-row td,.order-detail-grid>aside){background:var(--card);color:var(--text);border-color:var(--line)}
html body.admin-workspace .order-summary-row:hover td{background:var(--primary-soft)}
html body.admin-workspace :is(.orders-table th,.manage-order[aria-expanded=true],.detail-service button,.detail-order-form button,.review-payment button){background:#143d56;color:#fff}
html body.admin-workspace :is(.manage-order,.receipt-button){background:var(--primary-soft);color:var(--text);border-color:var(--line)}
html[data-theme=dark] body.admin-workspace .review-payment{background:#40351f;color:#f4d69e}
html body.admin-workspace .profile-login-toggle:has(input[type=checkbox]:checked) .login-state-copy b{color:#16805e}
html[data-theme=dark] body.admin-workspace .profile-login-toggle:has(input[type=checkbox]:checked) .login-state-copy b{color:#a8e4c7}
html[data-theme=dark] body.admin-workspace .profile-login-toggle:has(input[type=checkbox]:not(:checked)) label{background:#472a34;border-color:#80505c}
html[data-theme=dark] body.admin-workspace .profile-login-toggle:has(input[type=checkbox]:not(:checked)) b{color:#ffc0c7}
html[data-theme=dark] body.admin-workspace .erp-file .agent-current-state.success{background:#183d32;color:#a8e4c7}
html[data-theme=dark] body.admin-workspace .erp-file .agent-current-state.success b{color:#a8e4c7}
html body.admin-workspace .erp-file .history-summary>article{background:var(--card);border-color:var(--line);color:var(--text)}
html body.admin-workspace .erp-file .history-summary small{color:var(--muted)}
html body.admin-workspace .erp-file .history-summary b{color:var(--text)}
html body.admin-workspace .erp-file .backup-update-report ul{color:var(--muted)}
html body.admin-workspace .erp-file .backup-update-report a{color:var(--primary)}
html[data-theme=dark] body.admin-workspace .erp-file .dockge-note :is(span,code){color:#f4d69e}

html body.admin-workspace .support-contact-settings{margin-bottom:17px}
html body.admin-workspace .support-contact-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html body.admin-workspace .support-contact-grid label{min-width:0;font-size:12px}
html body.admin-workspace .support-contact-settings :is(input,textarea){width:100%;box-sizing:border-box;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit}
html body.admin-workspace .support-contact-settings textarea{resize:vertical}
html body.admin-workspace .support-platform-brand{display:flex;align-items:center;gap:14px}
html body.admin-workspace .support-platform-brand img{width:110px;height:50px;object-fit:contain}
html body.admin-workspace .support-contact-settings .panel-head>svg{width:24px;height:24px;color:var(--primary);flex-shrink:0}
@media(max-width:900px){html body.admin-workspace .support-contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){html body.admin-workspace .support-contact-grid{grid-template-columns:1fr}}
html body.admin-workspace .support-contact-settings button{background:#143d56;color:#fff;border:1px solid #426a80}
html body.admin-workspace .support-contact-settings button:hover{background:#205873}

/* Account palette selections apply to administration actions as well. */
html body.admin-workspace{--on-primary:#fff}
html[data-theme=dark] body.admin-workspace{--on-primary:#152038}
html body.admin-workspace .app-main :is(.btn,.primary),html body.admin-workspace .app-main :is(.customer-workspace,.subscription-workspace,.license-center,.erp-subs,.wordpress-sites) :is(.btn,.primary){background:var(--primary)!important;border-color:var(--primary)!important;color:var(--on-primary)!important}
html body.admin-workspace .theme-picker button{width:44px;height:44px;position:relative}
html body.admin-workspace .theme-picker [data-theme=cloud]{background:linear-gradient(135deg,#384ee8 55%,#e56d20 56%)}
html body.admin-workspace .theme-picker [data-theme=green]{background:linear-gradient(135deg,#126948 55%,#e56d20 56%)}
html body.admin-workspace .theme-picker [data-theme=blue]{background:linear-gradient(135deg,#1853ad 55%,#e56d20 56%)}
html body.admin-workspace .theme-picker [data-theme=dark]{background:linear-gradient(135deg,#192438 55%,#a9b5ff 56%)}
html body.admin-workspace .theme-picker [aria-pressed=true]{outline:3px solid var(--primary);outline-offset:3px}
html body.admin-workspace .theme-picker [aria-pressed=true]:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;text-shadow:0 1px 3px #000;font-size:20px}
