/* Marcena360 Cloud v0.4.1 — adaptação visual baseada no código e nos assets da MASTER Windows v2.1.1.
   Somente apresentação: autenticação, persistência, cálculos, PDFs e SQL são os da v0.4.0.
   Não redistribuir fontes da MASTER; usar a fonte local do sistema. */
:root{
 --master-side:#032336;--master-navy:#071630;--master-ink:#101f39;
 --master-blue:#0064ff;--master-gold:#edba55;--master-muted:#617498;
 --master-bg:#f3f8fc;--master-border:#e1eaf3;
 font-family:'Segoe UI','Trebuchet MS',Arial,sans-serif;
 color:var(--master-ink);background:var(--master-bg);
}
body{background:var(--master-bg)}button,input,select,textarea{font-family:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--master-blue);outline-offset:2px}
.primary,.client-form-actions .primary,.commercial-footer .primary,.page-head .primary{
 background:var(--master-blue);border:1px solid var(--master-blue);border-radius:6px;
 color:white;font-weight:700;box-shadow:none;min-height:39px;padding:10px 16px;font-size:13px;
}
.primary:hover,.client-form-actions .primary:hover,.commercial-footer .primary:hover{background:#004ed0;color:#fff}
.outline,.client-actions .outline,.head-actions .outline{background:white;border:1px solid #d3dfef;border-radius:6px;color:#173556;padding:9px 13px;font-size:12px;box-shadow:none}
.outline:hover{background:#eef5ff;border-color:#92baff}
/* The original MASTER uses one full-bleed background photo, an information column on the left,
   and a translucent dark login panel on the right (not two white/blue panels). */
.auth-layout.desktop-reference{display:grid;grid-template-columns:30.5% minmax(0,69.5%);position:relative;isolation:isolate;
 min-height:700px;height:100dvh;background:#092638;overflow:hidden}
.auth-layout .auth-scene{position:absolute;inset:0;background:#092638 url('./assets/master-login.png') 56% 40% /cover no-repeat;
 width:100%;height:100%;pointer-events:none;overflow:hidden;z-index:0}
.auth-layout .auth-scene .scene-mask{inset:0;position:absolute;background:linear-gradient(90deg,
 rgba(0,27,45,.94) 0%,rgba(0,27,45,.91) 13%,rgba(0,27,45,.88) 20%,
 rgba(0,27,45,.75) 30%,rgba(0,27,45,.12) 43%,transparent 56%);}
.auth-layout .scene-content{position:relative;width:30.5%;height:100%;padding:0 38px 0;display:block}
.auth-layout .scene-logo{display:block;position:relative;width:min(300px,83%);height:125px;
 margin:43px auto 0;object-fit:contain;object-position:center center;max-width:none}
.auth-layout .scene-copy{width:100%;max-width:440px;margin:71px auto 0;text-align:center}
.auth-layout .scene-rule{height:1px;background:#cda253;opacity:.95;width:95%;margin:0 auto 32px}
.auth-layout .scene-copy h1{color:#fff;font-size:clamp(22px,2.12vw,34px);line-height:1.31;
 letter-spacing:0;font-weight:750;margin:0 auto 44px}
.auth-layout .scene-copy h1 em{color:#edc576;font-style:normal}
.auth-layout .scene-copy p{font-size:clamp(12px,1.06vw,17px);line-height:1.68;color:#dce6ef;margin:0 auto;max-width:380px}
.auth-layout .scene-benefits{position:absolute;left:55px;right:22px;bottom:12.5%;display:flex;flex-direction:column;gap:45px}
.auth-layout .scene-benefits>div{display:flex;align-items:center;text-align:left;gap:19px;color:white}
.auth-layout .scene-benefit-icon{width:38px;min-width:38px;display:grid;place-items:center;color:#edc576}
.auth-layout .scene-benefit-icon .ico{height:33px;width:33px}
.auth-layout .scene-benefits b{display:block;color:#fff;font-size:16px;margin-bottom:5px}
.auth-layout .scene-benefits small{display:block;color:#d1dfeb;font-size:14px;line-height:1.4}
.auth-layout .auth-side{grid-column:2;position:relative;z-index:1;display:grid;place-items:center;
 background:transparent;padding:20px 32px 0;min-width:0}
.auth-layout .auth-side-inner{width:min(552px,100%);max-width:552px;transform:translate(4vw,24px);display:flex;flex-direction:column;gap:34px}
.auth-layout .auth-card{position:relative;border:1px solid #b78e4a;border-radius:18px;padding:27px 34px 18px;
 background:#102e41;color:white;box-shadow:0 17px 45px #03142556}
.auth-layout .auth-heading{margin:0 0 21px;text-align:center}
.auth-layout .auth-heading .eyebrow{display:none}
.auth-layout .auth-heading h2{font-size:38px;line-height:1.25;letter-spacing:0;color:#fff;margin:0 0 7px;font-weight:800}
.auth-layout .auth-heading p{color:#d8e4ee;font-size:16px;line-height:1.4;margin:0}
.auth-layout .auth-form{display:flex;flex-direction:column;gap:0}
.auth-layout .auth-form>label{font-size:14px;color:#dce7f0;font-weight:500;margin:11px 0 9px}
.auth-layout .auth-input{display:flex;align-items:center;gap:12px;min-height:56px;padding:0 14px 0 17px;background:#193a4e;
 border:1px solid #69808f;border-radius:7px;color:#d9e5ec}
.auth-layout .auth-input>.ico{width:22px;height:22px;flex-shrink:0}
.auth-layout .auth-input input{flex:1;background:transparent;color:white;border:0;outline:0;box-shadow:none;
 font-size:15px;padding:0 2px;height:52px;min-width:0;margin:0}
.auth-layout .auth-input input::placeholder{color:#95a9b6;opacity:.8}
.auth-layout .auth-input button{background:none;border:0;color:#dce7f0;padding:6px;display:flex;align-items:center}
.auth-layout .auth-input button .ico{height:21px;width:21px}
.auth-layout .auth-input:focus-within{border-color:var(--master-gold);box-shadow:0 0 0 2px #edba5533}
.auth-layout .form-options{margin:20px 0 23px;display:flex;gap:10px;justify-content:space-between;align-items:center}
.auth-layout .form-options .remember-check{display:flex;align-items:center;gap:10px;color:#dce7f0;font-size:14px;font-weight:400;cursor:pointer;margin:0}
.auth-layout .remember-check input{width:19px;height:19px;accent-color:var(--master-gold);margin:0}
.auth-layout .form-options .link{color:#e8c886;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}
.auth-layout .form-options .link:hover{text-decoration:underline}
.auth-layout .primary.big{width:100%;min-height:54px;background:#e5b35c;color:#0b273b;font-size:20px;font-weight:800;
 border:1px solid #f1d18e;border-radius:7px;margin:0;position:relative;padding:12px 48px}
.auth-layout .primary.big:hover{background:#ffd078;color:#0b273b}
.auth-layout .primary.big>.ico{position:absolute;right:16px;top:50%;transform:translateY(-50%)}
.auth-layout .auth-notice{min-height:0;margin:8px 0 0;color:#ffe1a0;text-align:center;font-size:12px;line-height:1.45}
.auth-layout .auth-notice:empty{display:none}
.auth-layout .auth-date-card{min-height:127px;border:1px solid #80745d;border-radius:12px;
 background:#102e41;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;
 color:#d8e4ed;font-size:16px;box-shadow:0 10px 26px #03142540;padding:14px}
.auth-layout .auth-date-card strong{font-size:clamp(25px,3.0vw,43px);line-height:1.1;color:var(--master-gold);letter-spacing:1px;font-variant-numeric:tabular-nums}
.auth-layout .auth-copy{display:none}
.auth-layout .backlink{margin:15px 0 0;color:#f1cd83}
.auth-layout .auth-form:not(:has(.auth-input)) input{background:#193a4e;color:#fff;border:1px solid #69808f;min-height:50px;margin:4px 0 13px}
@media (max-height:800px) and (min-width:901px){
 .auth-layout .scene-logo{height:90px;margin-top:18px}.auth-layout .scene-copy{margin-top:30px}.auth-layout .scene-copy h1{margin-bottom:18px}
 .auth-layout .scene-benefits{bottom:5%;gap:18px}.auth-layout .auth-side-inner{gap:14px;transform:translateX(4vw)}
 .auth-layout .auth-date-card{min-height:92px}.auth-layout .auth-card{padding-top:18px;padding-bottom:14px}
}
@media(max-width:1050px){
 .auth-layout .scene-content{padding:0 20px}.auth-layout .scene-benefits{left:28px;right:12px;gap:17px;bottom:6%}
 .auth-layout .scene-benefits b{font-size:13px}.auth-layout .scene-benefits small{font-size:11px}
 .auth-layout .auth-side{padding:15px}.auth-layout .auth-card{padding:24px}
 .auth-layout .scene-copy h1{font-size:24px}.auth-layout .scene-copy p{font-size:13px}
}
@media(max-width:850px){
 .auth-layout.desktop-reference{display:flex;align-items:center;justify-content:center;min-height:100dvh;height:auto;padding:26px 12px}
 .auth-layout .auth-scene .scene-mask{background:rgba(0,27,45,.76)}
 .auth-layout .scene-content{display:none}.auth-layout .auth-side{display:block;width:100%;padding:0}
 .auth-layout .auth-side-inner{width:min(552px,100%);max-width:552px;margin:0 auto;transform:none;gap:14px}
 .auth-layout .auth-card{padding:23px 20px}.auth-layout .auth-date-card{min-height:90px}
 .auth-layout .auth-heading h2{font-size:30px}.auth-layout .auth-heading p{font-size:14px}
 .auth-layout .auth-form>label{font-size:13px}
}
/* MASTER navigation: continuous teal/navy gradient, gold selection, uncluttered rows. */
.shell.desktop-shell{grid-template-columns:280px minmax(0,1fr);background:var(--master-bg);min-height:100dvh}
.desktop-shell .sidebar{background:linear-gradient(180deg,#052a3e 0%,#001527 100%);width:280px;height:100dvh;min-height:620px;
 color:#f1f6fc;box-shadow:none;position:sticky;top:0;z-index:12;overflow:hidden}
.desktop-shell .side-brand{height:102px;min-height:102px;border:0;padding:17px 15px 8px;text-align:center;display:grid;place-items:center}
.desktop-shell .side-brand img{width:min(210px,100%);height:76px;object-fit:contain}
.desktop-shell .side-brand small{display:none}
.desktop-shell .sidebar nav{flex:1;min-height:0;padding:4px 10px 0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#526d78 transparent}
.desktop-shell .nav-group{margin:0 0 5px}.desktop-shell .nav-group:first-child .nav-label{display:none}
.desktop-shell .nav-label{margin:12px 8px 7px;color:#a6c3d1;letter-spacing:1px;font-size:9px;font-weight:600}
.desktop-shell .nav-button{display:flex;align-items:center;gap:15px;width:100%;min-height:41px;padding:7px 10px;margin:1px 0;
 text-align:left;color:#eff5fb;font-size:13.5px;letter-spacing:0;border:0;border-radius:6px;background:transparent;font-weight:450}
.desktop-shell .nav-button>.ico{color:inherit;width:21px;height:21px;flex-shrink:0;stroke-width:1.6}
.desktop-shell .nav-button span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.desktop-shell .nav-button.active{background:linear-gradient(90deg,#f0b94e,#e4ab46);color:#091d30;font-weight:800;
 border:1px solid #f6d181;border-left:3px solid #ffe099}
.desktop-shell .nav-button.active:before{display:none}
.desktop-shell .nav-button:not(.active):hover{background:#164259;color:white}
.desktop-shell .side-clock{padding:6px 12px 8px;margin:0 20px;border-top:1px solid #365060;
 display:flex;flex-direction:column;align-items:center;gap:2px;color:#bfd6ed;font-size:11px;text-transform:capitalize}
.desktop-shell .side-clock b{font-weight:800;color:#79b2ff;font-size:16px;letter-spacing:.6px;font-variant-numeric:tabular-nums}
.desktop-shell .sidebar-footer{height:65px;min-height:65px;border-top:0;gap:11px;padding:6px 14px;color:#fff}
.desktop-shell .avatar{width:40px;height:40px;background:#ffdc44;color:#071630;font-size:14px}
.desktop-shell .identity b{font-size:12px}.desktop-shell .identity small{font-size:11px;color:#d0e2f1}
.desktop-shell .sidebar-footer button{margin-left:auto}.desktop-shell .sidebar-footer button:hover{color:#ffdc44}
.desktop-shell.sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)}
.desktop-shell.sidebar-collapsed .sidebar{width:76px}
.desktop-shell.sidebar-collapsed .side-brand{padding:8px 5px;height:85px;min-height:85px}
.desktop-shell.sidebar-collapsed .side-brand img{width:62px}
.desktop-shell.sidebar-collapsed .nav-button{justify-content:center;padding:8px 4px}.desktop-shell.sidebar-collapsed .nav-button span,
.desktop-shell.sidebar-collapsed .nav-label,.desktop-shell.sidebar-collapsed .side-clock,
.desktop-shell.sidebar-collapsed .identity{display:none}
.desktop-shell.sidebar-collapsed .sidebar nav{padding:6px}.desktop-shell.sidebar-collapsed .sidebar-footer{padding:7px 5px;gap:0;justify-content:center}
.desktop-shell.sidebar-collapsed .sidebar-footer button{display:none}
/* Header exactly follows original: toggle / wide search / notifications / help / user. */
.desktop-shell .main-shell{min-width:0;background:var(--master-bg)}
.desktop-shell .topbar{height:65px;min-height:65px;background:#f9fcff;border-bottom:1px solid var(--master-border);padding:0 20px;gap:15px}
.desktop-shell .top-left{flex:1;min-width:0;display:flex;align-items:center;gap:12px}
.desktop-shell .top-right{display:flex;align-items:center;gap:17px;flex-shrink:0}
.desktop-shell .top-icon,.desktop-shell .mobile-menu{display:grid!important;place-items:center;width:32px;height:34px;border:0;background:transparent;
 border-radius:5px;color:#071630;cursor:pointer;padding:4px;flex-shrink:0}
.desktop-shell .top-icon .ico{height:22px;width:22px}
.desktop-shell .top-icon:hover{background:#e8f2ff}
.desktop-shell .global-search{height:44px;background:#fff;border:1px solid #d3dfef;border-radius:8px;display:flex;align-items:center;gap:10px;
 padding:0 13px;flex:1;max-width:680px;min-width:130px;color:#617498}
.desktop-shell .global-search .ico{width:20px;height:20px;flex-shrink:0}
.desktop-shell .global-search input{height:100%;width:100%;background:transparent;border:0;outline:0;box-shadow:none;font-size:13px;color:#071630;min-width:0}
.desktop-shell .global-search:focus-within{border-color:#7aaeff;box-shadow:0 0 0 2px #0064ff16}
.desktop-shell .top-separator{width:1px;height:30px;background:var(--master-border)}
.desktop-shell .tenant-pill{border:0;background:transparent;padding:0;max-width:230px;gap:4px;color:#183f62}
.desktop-shell .tenant-pill select{font-size:12px;color:#183f62;background:transparent;max-width:170px;font-weight:650}
.desktop-shell .user-initial{height:40px;width:40px;border-radius:50%;background:#e3ecf7;color:#173855}
.desktop-shell .top-user{display:flex;flex-direction:column;min-width:0;max-width:120px;gap:3px;font-size:12px}
.desktop-shell .top-user b{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.desktop-shell .top-user small{color:#617498;font-size:10px}
.desktop-shell .workspace{padding:24px 27px 34px;background:var(--master-bg);max-width:none;min-width:0}
.desktop-shell .footbar{background:var(--master-bg);color:#9ca9b8;border-top:1px solid #e9eff4}
/* Cards, headings, forms and tables from the MASTER palette and spacing. */
.desktop-shell .page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:19px;min-height:71px}
.desktop-shell .page-head .eyebrow{display:none}
.desktop-shell .page-head h1{font-size:31px;font-weight:800;line-height:1.25;letter-spacing:-.5px;margin:0 0 9px;color:var(--master-ink)}
.desktop-shell .page-head p{font-size:13px;color:var(--master-muted);line-height:1.5;margin:0}
.desktop-shell .head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.desktop-shell .head-actions select{height:40px;border:1px solid #d3dfef;border-radius:6px;background:white;color:#102747;padding:0 13px;font-size:12px}
.desktop-shell .head-actions .primary{font-size:12px;white-space:nowrap;min-height:40px}
.desktop-shell .healthy-dot{display:inline-block;width:9px;height:9px;background:#08a34c;border-radius:50%;vertical-align:middle;margin-left:10px}
.desktop-shell .dash-clock{display:flex;flex-direction:column;align-items:center;justify-content:center;width:218px;height:72px;
 background:white;border:1px solid var(--master-border);border-radius:10px;color:var(--master-blue);padding:8px;flex-shrink:0}
.desktop-shell .dash-clock span{font-size:10px;text-align:center;text-transform:capitalize;line-height:1.3}
.desktop-shell .dash-clock b{font-size:22px;font-variant-numeric:tabular-nums;line-height:1.35;color:var(--master-blue)}
.desktop-shell .dashboard-six{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 16px}
.desktop-shell .metric-desktop{background:white;border:1px solid #dce6f2;border-radius:10px;box-shadow:none;
 display:flex;gap:9px;align-items:flex-start;justify-content:flex-start;min-height:128px;padding:17px 11px;text-align:left;color:#071630;
 transition:border-color .16s,transform .16s}
.desktop-shell .metric-desktop:hover{transform:translateY(-1px);border-color:#96bded}
.desktop-shell .metric-desktop .metric-icon{display:grid;place-items:center;width:44px;height:51px;min-width:44px;border-radius:9px;background:#e7f2ff;color:var(--master-blue);order:0}
.desktop-shell .metric-desktop .metric-icon .ico{height:26px;width:26px}
.desktop-shell .metric-desktop .metric-icon.green{background:#e3f8ec;color:#08a34c}
.desktop-shell .metric-desktop .metric-icon.sky{background:#e2efff;color:#0064ff}
.desktop-shell .metric-desktop .metric-icon.violet{background:#f0e9ff;color:#8b3eff}
.desktop-shell .metric-desktop .metric-icon.amber{background:#fff3db;color:#db871e}
.desktop-shell .metric-desktop .metric-icon.rose{background:#ffecf1;color:#e24361}
.desktop-shell .metric-content{min-width:0;display:flex;flex-direction:column;gap:5px;align-self:stretch}
.desktop-shell .metric-content strong{font-size:clamp(16px,1.45vw,26px);font-weight:800;color:#111f3d;margin:0;letter-spacing:-.5px;line-height:1.25;
 font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.desktop-shell .metric-content .metric-label{font-size:12px;color:#233957;line-height:1.4;font-weight:600}
.desktop-shell .metric-content small{color:#617498;font-size:10px;margin-top:auto;line-height:1.35}
.desktop-shell .dashboard-master-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(270px,1fr);gap:15px 16px;align-items:stretch}
.desktop-shell .panel{border:1px solid var(--master-border);border-radius:11px;box-shadow:none;background:#fff}
.desktop-shell .dash-panel{min-height:255px;overflow:hidden;padding:0}
.desktop-shell .dash-panel .panel-title{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 19px 12px;border:0}
.desktop-shell .dash-panel .panel-title h3{margin:0;color:#102440;font-size:18px;letter-spacing:0}
.desktop-shell .dash-panel .panel-link{border:0;background:none;color:var(--master-blue);font-weight:700;font-size:12px;padding:5px;white-space:nowrap}
.desktop-shell .dash-panel .panel-link:hover{text-decoration:underline}
.desktop-shell .dash-panel .table-scroll{padding:0 15px 15px;overflow-x:auto}
.desktop-shell .dash-panel table{width:100%;border-collapse:collapse;font-size:12px;min-width:620px}
.desktop-shell .dash-panel table thead th{background:#eaf3ff;color:#1e3b61;padding:11px 12px;text-align:left;font-size:10px;font-weight:750}
.desktop-shell .dash-panel table thead th:first-child{border-radius:5px 0 0 5px}
.desktop-shell .dash-panel table thead th:last-child{border-radius:0 5px 5px 0}
.desktop-shell .dash-panel table td{height:37px;padding:9px 12px;border-bottom:1px solid #eef3f9;color:#233f65}
.desktop-shell .dash-panel tr[data-go]{cursor:pointer}.desktop-shell .dash-panel tr[data-go]:hover{background:#f6fbff}
.desktop-shell .dash-agenda-row{display:flex;align-items:flex-start;gap:13px;width:calc(100% - 30px);margin:0 15px 9px;border:1px solid #e1eaf3;
 border-radius:7px;padding:10px 12px;background:#f7faff;text-align:left;font-size:12px;color:#16395c}
.desktop-shell .dash-agenda-row>strong{color:var(--master-blue);min-width:40px}
.desktop-shell .dash-agenda-row span{display:flex;flex-direction:column;gap:5px}
.desktop-shell .dash-agenda-row small{color:#617498;font-size:11px}
.desktop-shell .dash-empty{padding:40px 18px;color:#617498;font-size:12px;text-align:center}
.desktop-shell .dash-alert{width:calc(100% - 30px);margin:0 15px 7px;padding:5px 8px;min-height:39px;background:white;border:1px solid #e5edf5;
 display:flex;align-items:center;gap:10px;border-radius:7px;color:#102a48;text-align:left;cursor:pointer}
.desktop-shell .dash-alert:hover{background:#f7fbff;border-color:#bdd6f1}
.desktop-shell .dash-alert span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.desktop-shell .dash-alert b{font-size:11px;font-weight:750}
.desktop-shell .dash-alert small{font-size:10px;color:#617498}
.desktop-shell .alert-icon{width:31px;height:31px;min-width:31px;border-radius:6px;display:grid;place-items:center}
.desktop-shell .alert-icon .ico{height:18px;width:18px}
.desktop-shell .alert-icon.sky{background:#e8f2ff;color:#0064ff}.desktop-shell .alert-icon.amber{background:#fff3d9;color:#cb830a}
.desktop-shell .alert-icon.green{background:#e2f8ec;color:#08a34c}.desktop-shell .alert-icon.violet{background:#f0eaff;color:#8b3eff}
.desktop-shell .dashboard-master-grid .dash-quotes,.desktop-shell .dashboard-master-grid .dash-agenda{min-height:245px}
.desktop-shell .dashboard-master-grid .dash-production,.desktop-shell .dashboard-master-grid .dash-alerts{min-height:290px}
/* Commercial/document and operational pages use the same original card/table language. */
.desktop-shell .welcome{display:none}
.desktop-shell .client-list,.desktop-shell .extra-panel,.desktop-shell .commercial-editor,.desktop-shell .client-edit{background:#fff;border:1px solid var(--master-border);
 border-radius:12px;box-shadow:none}
.desktop-shell .client-list{padding:18px 18px 0}
.desktop-shell .client-toolbar,.desktop-shell .extra-toolbar{gap:9px}
.desktop-shell .client-search,.desktop-shell .extra-toolbar>input{background:#fff;border:1px solid #d3dfef;border-radius:6px;min-height:39px;color:#071630}
.desktop-shell .client-search input{font-size:13px;color:#071630}
.desktop-shell .client-filter select,.desktop-shell .extra-toolbar select{background:#fff;border:1px solid #d3dfef;border-radius:6px;color:#193958;font-size:12px;min-height:36px}
.desktop-shell .table-scroll{overflow-x:auto}
.desktop-shell table{border-collapse:collapse;font-size:12px;color:#233e61}
.desktop-shell table th{background:#eaf3ff;text-align:left;padding:12px;color:#213c5e;font-size:10px;letter-spacing:.2px;text-transform:uppercase}
.desktop-shell table td{border-bottom:1px solid var(--master-border);padding:11px 12px}
.desktop-shell table tbody tr:nth-child(even){background:#fbfdff}
.desktop-shell table tbody tr:hover{background:#f5f9ff}
.desktop-shell .client-name-btn,.desktop-shell .table-code{color:#113a68;font-weight:800;font-size:12px}
.desktop-shell .client-status{color:#1e5284;background:#f6faff;border:1px solid #d5e4f2;border-radius:6px;font-size:11px;padding:7px}
.desktop-shell .status-badge{background:#e1efff;color:#15589b;border-radius:7px;padding:6px 10px;font-size:11px;white-space:nowrap}
.desktop-shell .panel-title h3,.desktop-shell .extra-panel>h3{color:#071f3a;font-size:18px;font-weight:750}
.desktop-shell .panel-title p{color:#617498;font-size:12px}
.desktop-shell .client-list-meta,.desktop-shell .client-pagination{color:#617498;font-size:12px}
.desktop-shell .client-edit,.desktop-shell .commercial-editor{padding:23px;margin-top:18px}
.desktop-shell .commercial-item{background:#fbfdff;border:1px solid var(--master-border);border-radius:9px}
.desktop-shell .commercial-total{background:#112e46;border:1px solid #446178;border-radius:9px;color:#fff}
.desktop-shell .commercial-total strong{color:var(--master-gold)}
.desktop-shell .client-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.desktop-shell .client-field.wide{grid-column:1/-1}
.desktop-shell .client-field span{color:#213b5b;font-size:12px;font-weight:750}
.desktop-shell .client-field input,.desktop-shell .client-field textarea,.desktop-shell .client-field select,
.desktop-shell .commercial-editor .client-field select,.desktop-shell .extra-panel .client-field select{
 min-height:40px;border:1px solid #d5e0ec;border-radius:6px;background:white;color:#122d4a;font-size:12px;box-shadow:none}
.desktop-shell .extra-summary article{border:1px solid var(--master-border);box-shadow:none;border-radius:9px}
.desktop-shell .extra-summary article strong{color:#071f3a}
.desktop-shell .error-banner{background:#fff0f1;border:1px solid #f2c9ce;color:#a12b42}
.desktop-shell .footbar{font-size:10px}
.help-popover{position:fixed;top:73px;right:24px;width:min(330px,calc(100vw - 35px));z-index:30;background:#fff;border:1px solid #b8cbe1;
 border-radius:10px;padding:22px;box-shadow:0 16px 50px #061f3940;color:#102b49;font-size:12px;line-height:1.65}
.help-popover h3{font-size:18px;margin-bottom:8px}.help-popover p{color:#607791}
/* Breakpoints keep desktop proportions at 1920x1080 while remaining usable on laptop/tablet/mobile. */
@media(max-width:1650px){
 .desktop-shell .dashboard-six{grid-template-columns:repeat(3,minmax(0,1fr))}
 .desktop-shell .metric-desktop{min-height:100px}
 .desktop-shell .metric-content strong{font-size:22px}
}
@media(max-width:1180px){
 .desktop-shell .dashboard-master-grid{grid-template-columns:minmax(0,1.65fr) minmax(250px,1fr)}
 .desktop-shell .dash-clock{width:170px}
 .desktop-shell .top-user{display:none}.desktop-shell .top-right{gap:8px}
 .desktop-shell .client-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:850px){
 .shell.desktop-shell{display:block}.desktop-shell .sidebar{position:fixed;left:-292px;top:0;bottom:0;transition:left .18s}
 .desktop-shell.menu-open .sidebar{left:0}.desktop-shell .topbar{padding:0 12px}
 .desktop-shell .workspace{padding:17px 12px 24px}.desktop-shell .tenant-pill{max-width:145px}.desktop-shell .tenant-pill select{max-width:100px}
 .desktop-shell .dash-clock{width:100%;max-width:170px;height:60px}
 .desktop-shell .dashboard-master-grid{grid-template-columns:1fr}.desktop-shell .dashboard-six{grid-template-columns:repeat(2,minmax(0,1fr))}
 .desktop-shell .page-head{align-items:flex-start;flex-wrap:wrap}
 .desktop-shell .global-search{max-width:none}.desktop-shell .top-right .top-icon:nth-of-type(2){display:none!important}
 .desktop-shell .client-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:550px){
 .desktop-shell .dashboard-six{grid-template-columns:1fr 1fr;gap:8px}.desktop-shell .metric-desktop{padding:10px;min-height:110px;gap:6px}
 .desktop-shell .metric-desktop .metric-icon{min-width:32px;width:32px;height:32px}.desktop-shell .metric-desktop .metric-icon .ico{width:20px;height:20px}
 .desktop-shell .metric-content strong{font-size:17px}.desktop-shell .metric-content .metric-label{font-size:11px}
 .desktop-shell .client-form-grid{grid-template-columns:1fr}.desktop-shell .client-field.wide{grid-column:auto}
 .desktop-shell .topbar .user-initial,.desktop-shell .topbar .top-separator{display:none}.desktop-shell .top-right{gap:3px}
 .desktop-shell .topbar .global-search{min-width:85px;padding:0 7px}.desktop-shell .dash-clock{max-width:140px}
 .desktop-shell .page-head h1{font-size:27px}
}
@media print{.desktop-shell .sidebar,.desktop-shell .topbar,.desktop-shell .footbar,.desktop-shell .dash-clock,.help-popover{display:none!important}
 .desktop-shell .workspace{padding:0!important}.desktop-shell .panel{break-inside:avoid}}
