*{box-sizing:border-box}
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html,body,#root{margin:0;min-width:320px;min-height:100%;height:100%}
body{overflow:hidden}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.6;cursor:not-allowed}
.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

.app-shell{--page:#020817;--sidebar:#1c2f60;--sidebar-line:#2b4072;--card:#101b32;--card2:#111f38;--border:#22314a;--text:#f8fafc;--muted:#8ea3c3;--blue:#2f6df2;--blue2:#4383ff;--input:#101a2f;--hover:#17243d;display:flex;height:100vh;width:100vw;background:var(--page);color:var(--text)}
.app-shell.light{--page:#f1f5f9;--sidebar:#0f2d54;--sidebar-line:#1b467c;--card:#fff;--card2:#f8fafc;--border:#dce5ef;--text:#0f172a;--muted:#64748b;--input:#fff;--hover:#f1f5f9}
.sidebar{width:246px;flex:0 0 246px;background:var(--sidebar);border-right:1px solid var(--sidebar-line);display:flex;flex-direction:column;z-index:30;transition:.2s}
.sidebar-brand{padding:20px 19px;border-bottom:1px solid var(--sidebar-line)}
.brand{display:flex;gap:12px;align-items:center}.brand.compact{display:block}
.brand-icon{width:42px;height:42px;background:#fff;border-radius:9px;display:grid;place-items:center;color:#153d75;position:relative}
.brand-icon .online-dot{position:absolute;right:-2px;top:-2px;width:9px;height:9px;border-radius:50%;background:#31d5a1;border:2px solid var(--sidebar)}
.brand strong{display:block;font-size:14px;line-height:1.25;color:#fff}.brand span{display:block;font-size:10px;color:#8cb6ef;margin-top:2px}
.sidebar-nav{padding:18px 12px;flex:1;overflow:auto}
.nav-group{margin-bottom:25px}.nav-group-label{font-size:10px;letter-spacing:.12em;font-weight:800;color:#5e99e5;padding:0 12px 8px}
.nav-item{width:100%;border:0;background:transparent;color:#b8d3ff;display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:9px;font-size:13px;text-align:left;margin:2px 0}
.nav-item:hover{background:#27477b;color:white}.nav-item.active{background:var(--blue);color:white;box-shadow:inset 0 0 0 1px #ffffff12}
.sidebar-footer{border-top:1px solid var(--sidebar-line);padding:16px 20px;color:#5389d2;font-size:10px;display:flex;align-items:center;justify-content:space-between}
.logout-mini{background:transparent;border:0;color:#79a7e5;padding:4px}
.workspace{flex:1;min-width:0;display:flex;flex-direction:column}
.top-header{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:0 26px;background:var(--page)}
.header-copy h1{font-size:19px;margin:0;font-weight:700;letter-spacing:-.02em}.header-copy p{font-size:11px;color:#7fa9e7;margin:4px 0 0}
.header-actions{display:flex;align-items:center;gap:11px}.user-chip{display:flex;flex-direction:column;align-items:flex-end;color:var(--muted);font-size:10px;max-width:110px}.user-chip span{color:var(--text);font-weight:600}.user-chip small{font-size:9px;color:var(--muted)}
.mobile-menu{display:none;background:transparent;border:0;color:var(--text)}
.main-content{flex:1;overflow:auto;padding:24px 26px 32px}
.page-stack{display:flex;flex-direction:column;gap:16px}
.primary-btn,.secondary-btn,.ghost-btn,.whatsapp-btn{height:38px;border-radius:9px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:700;white-space:nowrap}
.primary-btn{border:1px solid #4a7fff;background:var(--blue);color:white}.primary-btn:hover{background:var(--blue2)}
.secondary-btn{border:1px solid var(--border);background:transparent;color:var(--text)}.secondary-btn:hover,.ghost-btn:hover{background:var(--hover)}
.ghost-btn{border:0;background:transparent;color:var(--muted)}
.whatsapp-btn{border:1px solid #159a68;background:#0e9f6e;color:#fff}
.icon-btn{width:36px;height:36px;border:0;border-radius:9px;background:transparent;color:var(--muted);display:grid;place-items:center}.icon-btn:hover{background:var(--hover);color:var(--text)}
.full{width:100%}.link-btn{border:0;background:transparent;color:#3a82ff;display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;padding:5px}.text-link{border:0;background:transparent;color:#5190ff;font-weight:700;padding:0}
.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.metric-card{background:var(--card);border:1px solid var(--border);border-radius:13px;padding:16px 16px 17px;min-height:95px}
.metric-head{display:flex;justify-content:space-between;color:#87b9ff;font-size:11px}.metric-card strong{display:block;font-size:22px;margin-top:14px}
.panel{background:var(--card);border:1px solid var(--border);border-radius:13px;overflow:hidden}
.panel-title-row{min-height:52px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);padding:0 18px}.panel-title-row h2{font-size:12px;margin:0}.form-panel{padding:18px}.form-panel h3{font-size:13px;margin:0 0 15px}
.empty-state{min-height:205px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;color:var(--muted)}.empty-state strong{font-size:12px;color:var(--text)}.empty-state p{font-size:10px;margin:7px 0 15px}
.recent-list{display:flex;flex-direction:column}.recent-row{border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);display:flex;justify-content:space-between;align-items:center;padding:13px 18px;text-align:left}.recent-row:hover{background:var(--hover)}.recent-row:last-child{border-bottom:0}.recent-row strong{font-size:12px}.recent-row span{display:block;font-size:10px;color:var(--muted);margin-top:3px}.recent-right{display:flex;align-items:center;gap:12px}
.status-badge{border-radius:999px;padding:3px 8px;font-size:9px;font-weight:700;border:1px solid #ffffff16}.status-badge.rascunho{color:#cbd5e1;background:#47556933}.status-badge.enviado{color:#69a6ff;background:#2563eb22;border-color:#2563eb66}.status-badge.aprovado{color:#50d39b;background:#10b98122;border-color:#10b98155}.status-badge.recusado{color:#fb7185;background:#ef444422;border-color:#ef444455}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px}.search-box{position:relative;max-width:330px;flex:1}.search-box>svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--muted)}.search-box input{padding-left:34px}
input,select,textarea{width:100%;border:1px solid var(--border);background:var(--input);color:var(--text);border-radius:8px;outline:none}input,select{height:36px;padding:0 11px}textarea{padding:10px 11px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#337cff;box-shadow:0 0 0 2px #337cff22}
.field{display:block}.field>span{display:block;font-size:10px;font-weight:700;color:var(--muted);margin-bottom:6px}.field b{color:#fb7185;margin-left:3px}
.form-stack{display:flex;flex-direction:column;gap:13px}.form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-actions{display:flex;gap:9px;margin-top:3px}
.error-box{display:flex;align-items:flex-start;gap:7px;background:#7f1d1d55;color:#fecaca;border:1px solid #ef444455;border-radius:8px;padding:10px 11px;font-size:10px}
.hint,.muted{color:var(--muted);font-size:10px}.center{text-align:center}.padded{padding:26px}
.table-panel{overflow:hidden}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:11px}.data-table th{text-align:left;color:var(--muted);font-size:9px;font-weight:700;padding:11px 15px;border-bottom:1px solid var(--border);white-space:nowrap}.data-table td{padding:11px 15px;border-bottom:1px solid var(--border);vertical-align:middle}.data-table tbody tr:hover{background:var(--hover)}.data-table tr:last-child td{border-bottom:0}.data-table td small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.right{text-align:right!important}.center{text-align:center!important}.table-icon{width:29px;height:29px;border-radius:7px;border:0;background:transparent;color:var(--muted);display:inline-grid;place-items:center}.table-icon:hover{background:var(--hover);color:var(--text)}.table-icon.danger:hover{color:#fb7185;background:#ef444416}.small-select{width:auto;min-width:95px;height:29px;font-size:10px}
.modal-overlay{position:fixed;inset:0;background:#000a;z-index:90;display:grid;place-items:center;padding:18px}.modal{width:min(430px,100%);background:var(--card);border:1px solid var(--border);border-radius:13px;box-shadow:0 22px 80px #0008}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-bottom:1px solid var(--border)}.modal-head h3{font-size:12px;margin:0}.modal-body{padding:16px}
.budget-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px}.budget-summary{position:sticky;top:0;height:max-content}.add-items-bar{display:flex;gap:10px;align-items:center}.segmented{display:flex;border:1px solid var(--border);border-radius:8px;overflow:hidden}.segmented button{height:34px;padding:0 13px;border:0;background:transparent;color:var(--muted);font-size:10px;font-weight:700}.segmented button.active{background:var(--blue);color:white}.catalog-list{max-height:210px;overflow:auto;margin-top:12px}.catalog-row{display:flex;align-items:center;justify-content:space-between;padding:9px 10px;border:1px solid var(--border);border-radius:8px;margin-bottom:6px}.catalog-row strong{display:block;font-size:11px}.catalog-row span{display:block;color:var(--muted);font-size:9px;margin-top:3px}.qty-input{width:58px;text-align:center}.price-input{width:94px;text-align:right}.summary-lines{border-top:1px solid var(--border);margin-top:16px;padding-top:12px;display:flex;flex-direction:column;gap:9px}.summary-lines>div{display:flex;justify-content:space-between;font-size:10px}.summary-lines span{color:var(--muted)}.summary-total{font-size:13px!important;padding-top:5px}.summary-total strong{color:#4e91ff;font-size:15px}
.quote-detail-wrap{max-width:800px;margin:0 auto}.detail-actions{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.detail-actions>div{display:flex;gap:8px}.quote-paper{background:var(--card);border:1px solid var(--border);border-radius:13px;padding:30px;color:var(--text)}.quote-header{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:26px}.quote-logo{display:flex;gap:11px;align-items:center}.quote-logo-icon{width:48px;height:48px;border-radius:10px;background:#fff;color:#17406e;display:grid;place-items:center}.quote-logo strong{display:block;font-size:16px}.quote-logo span{display:block;font-size:9px;color:var(--muted);margin-top:2px}.quote-meta{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:5px}.quote-meta>strong{font-size:13px}.quote-meta>span{font-size:9px;color:var(--muted)}.quote-client{display:grid;grid-template-columns:1fr 1fr;gap:20px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:16px 0}.quote-client label,.quote-notes label,.signature-area>label{display:block;color:var(--muted);font-size:9px;font-weight:700;margin-bottom:5px}.quote-client strong{display:block;font-size:11px}.quote-client span{display:block;color:var(--muted);font-size:9px;margin-top:2px}.quote-table{width:100%;border-collapse:collapse;margin-top:16px;font-size:10px}.quote-table th{text-align:left;color:var(--muted);font-size:9px;padding:8px 6px;border-bottom:1px solid var(--border)}.quote-table th:nth-child(n+2),.quote-table td:nth-child(n+2){text-align:right}.quote-table td{padding:10px 6px;border-bottom:1px solid var(--border)}.quote-totals{width:230px;margin:17px 0 17px auto;display:flex;flex-direction:column;gap:7px}.quote-totals>div{display:flex;justify-content:space-between;font-size:10px}.quote-totals span{color:var(--muted)}.quote-totals .grand{font-size:13px;padding-top:4px}.quote-totals .grand strong{color:#4e91ff}.quote-notes{border-top:1px solid var(--border);padding-top:15px}.quote-notes p{font-size:10px;white-space:pre-line}.signature-area{border-top:1px solid var(--border);padding-top:18px;margin-top:18px}.signed-block img{height:80px;max-width:260px;object-fit:contain;background:white}.signed-ok{display:flex;align-items:center;gap:5px;color:#34d399;font-size:9px;margin-top:5px}.signature-pad{max-width:500px}.signature-pad canvas{width:100%;height:135px;background:white;border:1px solid #cbd5e1;border-radius:8px;touch-action:none;cursor:crosshair}.signature-pad p{font-size:9px;color:var(--muted)}
.toast{position:fixed;right:20px;bottom:20px;z-index:110;background:#059669;color:white;border-radius:8px;padding:10px 13px;font-size:11px;font-weight:700;display:flex;gap:7px;align-items:center;box-shadow:0 15px 40px #0006}
.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top,#172554,#07101f 50%);color:#fff}.login-card{width:min(420px,100%);background:#101a2d;border:1px solid #263650;border-radius:17px;padding:31px;box-shadow:0 25px 80px #0008}.login-card .brand-icon{width:54px;height:54px;background:#2f6df2;color:white}.login-copy h1{font-size:23px;margin:20px 0 2px}.login-copy p{color:#9cb1d0;font-size:12px;margin:0 0 25px}.login-card .field{margin-top:13px}.boot-screen{min-height:100vh;background:#07101f;color:#9cb1d0;display:flex;align-items:center;justify-content:center;gap:8px;font:12px Inter,system-ui}
.mobile-overlay{display:none}

@media(max-width:900px){
 .sidebar{position:fixed;inset:0 auto 0 0;transform:translateX(-100%)}.sidebar.open{transform:translateX(0)}.mobile-overlay{display:block;position:fixed;inset:0;background:#0008;border:0;z-index:20}.mobile-menu{display:grid}.header-actions .user-chip{display:none}.budget-layout{grid-template-columns:1fr}.budget-summary{position:static}.metric-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
 .top-header{padding:0 14px}.main-content{padding:16px 14px}.header-copy h1{font-size:16px}.header-actions .primary-btn{display:none}.metric-grid{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.search-box{max-width:none}.form-grid-2{grid-template-columns:1fr}.detail-actions{align-items:stretch;flex-direction:column}.detail-actions>div{display:grid;grid-template-columns:1fr}.quote-paper{padding:18px}.quote-client{grid-template-columns:1fr}.add-items-bar{align-items:stretch;flex-direction:column}.recent-row{align-items:flex-start;gap:10px}.recent-right{flex-wrap:wrap;justify-content:flex-end}
}
@media print{
 body{overflow:visible;background:white}
 .no-print,.sidebar,.top-header{display:none!important}
 .app-shell,.workspace,.main-content{display:block!important;height:auto!important;width:auto!important;background:white!important;color:#0f172a!important;padding:0!important;overflow:visible!important}
 .quote-detail-wrap{max-width:none!important;margin:0!important}
 .quote-paper{border:0!important;background:white!important;color:#0f172a!important;padding:0!important}
 .quote-paper *{color:#0f172a!important;border-color:#cbd5e1!important;box-shadow:none!important}
 .quote-paper .grand strong{color:#1d4ed8!important}
 .quote-paper .status-badge{border:1px solid #cbd5e1!important}
}

.custom-logo{max-width:100%;max-height:100%;object-fit:contain;display:block}
.brand-icon .custom-logo{width:100%;height:100%;padding:4px}
.quote-logo-image{width:72px;height:46px;display:flex;align-items:center;justify-content:flex-start}
.quote-logo-image .custom-logo{max-width:72px;max-height:46px}
.address-section{border-top:1px solid var(--border);padding-top:13px;margin-top:2px}
.section-caption{font-size:10px;font-weight:800;color:#78aaf0;text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px}
.form-grid-address{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:13px}
.form-grid-3{display:grid;grid-template-columns:1fr 150px 1fr;gap:13px}
.photo-picker{display:flex;gap:14px;align-items:center;border:1px dashed var(--border);border-radius:10px;padding:12px;background:var(--card2)}
.photo-preview{width:92px;height:78px;border:1px solid var(--border);border-radius:9px;overflow:hidden;display:grid;place-items:center;color:var(--muted);background:var(--input);flex:0 0 auto}
.photo-preview img{width:100%;height:100%;object-fit:cover}
.photo-picker strong{font-size:11px}.photo-picker p{font-size:9px;color:var(--muted);margin:4px 0 8px}
.file-btn{position:relative;overflow:hidden;height:32px}.file-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}
.product-thumb,.catalog-thumb{width:46px;height:38px;border-radius:7px;object-fit:cover;border:1px solid var(--border);background:var(--input)}
.product-thumb.empty,.catalog-thumb.empty{display:grid;place-items:center;color:var(--muted)}
.catalog-item-main{display:flex;gap:10px;align-items:center;min-width:0}
.catalog-thumb{width:42px;height:36px;flex:0 0 auto}
@media(max-width:620px){.form-grid-address,.form-grid-3{grid-template-columns:1fr}.photo-picker{align-items:flex-start;flex-direction:column}}

.suggestion-panel{padding:16px 18px}
.suggestion-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}
.suggestion-head h3{margin:0;font-size:13px}
.suggestion-head p{margin:4px 0 0;color:var(--muted);font-size:9px}
.suggestion-badge{font-size:9px;font-weight:800;color:#6ee7b7;background:#10b9811f;border:1px solid #10b98155;border-radius:999px;padding:4px 8px}
.suggestion-list{display:flex;flex-direction:column;gap:8px}
.suggestion-row{border:1px solid var(--border);background:var(--card2);border-radius:9px;padding:11px 12px;display:flex;justify-content:space-between;align-items:center;gap:14px}
.suggestion-copy{min-width:0}
.suggestion-copy strong{display:block;font-size:11px}
.suggestion-copy span{display:block;color:var(--muted);font-size:9px;margin-top:3px}
.suggestion-copy small{display:block;color:#6aa8ff;font-size:8.5px;margin-top:4px}
.suggestion-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto}
.suggestion-actions b{font-size:10px}
.compact-btn{height:32px;padding:0 11px}
@media(max-width:620px){.suggestion-row{align-items:flex-start;flex-direction:column}.suggestion-actions{width:100%;justify-content:space-between}}

.brand-home{width:100%;border:0;background:transparent;text-align:left;cursor:pointer}
.brand-home:hover{background:#ffffff05}
.fiscal-section{border-top:1px solid var(--border);padding-top:14px;margin-top:3px}
.tax-hint{color:var(--muted);font-size:9px;line-height:1.45;margin:-4px 0 12px}
.product-form{max-height:76vh;overflow:auto;padding-right:3px}
.settings-tabs{display:flex;gap:8px}
.settings-tabs button{height:38px;border:1px solid var(--border);background:var(--card);color:var(--muted);border-radius:9px;padding:0 13px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700}
.settings-tabs button.active{background:var(--blue);border-color:#4a7fff;color:white}
.settings-form h3{font-size:14px;margin:0 0 14px}
.role-badge{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:800;border:1px solid var(--border)}
.role-badge.administrador{color:#c4b5fd;background:#8b5cf622}
.role-badge.socio{color:#f9a8d4;background:#ec489922}
.role-badge.gerente{color:#93c5fd;background:#3b82f622}
.role-badge.vendedor{color:#86efac;background:#22c55e22}

.quote-commercial-footer{border-top:1px solid var(--border);margin-top:20px;padding-top:15px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.pix-block label{display:block;color:var(--muted);font-size:9px;font-weight:700;margin-bottom:5px}
.pix-block strong{display:block;font-size:11px;word-break:break-all}
.pix-block span{display:block;color:var(--muted);font-size:9px;margin-top:3px}
.instagram-block{display:flex;flex-direction:column;align-items:center;gap:4px}
.instagram-block img{width:72px;height:72px;object-fit:contain;background:#fff;border-radius:8px}
.instagram-block span{font-size:8px;color:var(--muted)}
@media(max-width:620px){.quote-commercial-footer{align-items:flex-start;flex-direction:column}.instagram-block{align-items:flex-start}}
@media print{.quote-commercial-footer{break-inside:avoid}.instagram-block img{width:64px;height:64px}}


/* ===== v0.7 Premium Dashboard / visual inspirado no mockup aprovado ===== */
.app-shell.dark{
  --page:#030916;
  --sidebar:#071326;
  --sidebar-line:#152444;
  --card:#0b162b;
  --card2:#0d1930;
  --border:#1a2b4b;
  --text:#f5f8ff;
  --muted:#7f94b7;
  --blue:#1769ff;
  --blue2:#2c7cff;
  --input:#09152a;
  --hover:#10203b;
  background:
    radial-gradient(circle at 70% -20%, #0a2b6742, transparent 35%),
    linear-gradient(180deg,#030916,#020713 70%);
}
.sidebar{width:224px;flex-basis:224px;background:linear-gradient(180deg,#071427,#061122 60%,#050f1e);box-shadow:10px 0 35px #0004}
.sidebar-brand{padding:20px 18px}.sidebar .brand-icon{width:44px;height:44px;border-radius:10px}.sidebar .brand strong{font-size:14px}
.nav-item{padding:10px 12px;border-radius:9px;margin:3px 0;transition:.18s ease}.nav-item.active{background:linear-gradient(90deg,#1769ff,#236ee6);box-shadow:0 7px 22px #1769ff3d}.nav-item:hover{transform:translateX(2px)}
.nav-group-label{font-size:9px;color:#6388c5}.sidebar-footer{background:#051020}
.workspace{background:transparent}.top-header{min-height:72px;height:72px;padding:0 22px;background:#030916cc;backdrop-filter:blur(16px)}
.top-header .header-actions{display:none}
.header-copy h1{font-size:20px}.header-copy p{font-size:10px;color:#6ea2ed}
.main-content{padding:20px 22px 34px}

.premium-dashboard{display:flex;flex-direction:column;gap:16px}
.dashboard-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:-72px;height:72px;position:relative;z-index:5;padding-right:2px;pointer-events:none}
.dashboard-toolbar>*{pointer-events:auto}
.dash-period{height:40px;display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid var(--border);border-radius:10px;background:#071225;color:#7198d6}
.dash-period>div{display:flex;align-items:center;gap:8px}.dash-period small{display:none}.dash-period select{height:30px;width:auto;border:0;background:transparent;font-size:10px;color:var(--text);padding:0 23px 0 0}
.dashboard-new{height:40px;padding-inline:18px}
.dash-notification{position:relative;width:38px;height:38px;border:1px solid var(--border);background:#071225;color:#91a6c9;border-radius:10px;display:grid;place-items:center}.dash-notification span{position:absolute;right:-3px;top:-4px;width:16px;height:16px;border-radius:50%;background:#ef4444;color:white;font-size:8px;display:grid;place-items:center;border:2px solid #030916}
.dash-profile{display:flex;align-items:center;gap:8px;padding-left:5px}.profile-avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:linear-gradient(145deg,#2f75ff,#113b83);border:2px solid #ffffff1d}.dash-profile strong{font-size:10px;display:block}.dash-profile small{font-size:8px;color:var(--muted);display:block;margin-top:2px}

.premium-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) 190px;gap:11px}
.premium-kpi,.premium-new-card,.premium-card{border:1px solid #1b2d50;background:linear-gradient(145deg,#0d1930,#091427);border-radius:13px;box-shadow:inset 0 1px #ffffff05,0 16px 35px #0002}
.premium-kpi{min-height:135px;padding:15px 15px 13px;position:relative;overflow:hidden;transition:.2s ease}.premium-kpi:before{content:"";position:absolute;width:85px;height:85px;border-radius:50%;right:-25px;top:-32px;background:currentColor;opacity:.04;filter:blur(2px)}.premium-kpi:hover{transform:translateY(-2px);border-color:#315b9a}
.premium-kpi-top{display:flex;align-items:center;gap:8px}.premium-kpi-top>span{font-size:9px;color:#c2cee1}.premium-kpi-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center}
.premium-kpi.blue .premium-kpi-icon{color:#69a8ff;background:#1769ff2b}.premium-kpi.green .premium-kpi-icon{color:#42e0a1;background:#12b98126}.premium-kpi.violet .premium-kpi-icon{color:#ad8aff;background:#8b5cf629}.premium-kpi.cyan .premium-kpi-icon{color:#50d8ef;background:#06b6d429}.premium-kpi.amber .premium-kpi-icon{color:#ffc957;background:#f59e0b29}
.premium-kpi>strong{display:block;font-size:20px;margin:15px 0 8px;letter-spacing:-.025em}.kpi-delta{display:flex;align-items:center;gap:4px;font-size:8px}.kpi-delta b{font-size:8px}.kpi-delta span{color:#647a9d}.kpi-delta.positive{color:#27db9a}.kpi-delta.negative{color:#ff6772}.kpi-delta.negative svg{transform:rotate(180deg)}
.premium-new-card{border-color:#2875ff;background:linear-gradient(135deg,#2879ff,#0a5aeb);color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:12px;box-shadow:0 18px 45px #1465ff30}.premium-new-card:hover{filter:brightness(1.08);transform:translateY(-2px)}

.premium-main-grid{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(240px,.85fr) minmax(220px,.72fr);gap:12px}
.premium-card{overflow:hidden}.premium-card-head{display:flex;justify-content:space-between;align-items:flex-start;padding:15px 17px 8px}.premium-card-head h2{font-size:12px;margin:0}.premium-card-head p{font-size:8px;color:var(--muted);margin:4px 0 0}.premium-card-head>button{border:0;background:transparent;color:#4f8fff;font-size:8px}.mini-filter{font-size:8px;color:#93a6c4;border:1px solid var(--border);padding:5px 8px;border-radius:7px}
.premium-chart-card{min-height:310px}.bar-chart{height:250px;position:relative;margin:3px 17px 13px 58px;border-left:1px solid #18305a;border-bottom:1px solid #18305a}.chart-grid-lines{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between}.chart-grid-lines i{border-top:1px solid #142846;width:100%}.chart-y-labels{position:absolute;left:-56px;top:-5px;bottom:0;width:48px;display:flex;flex-direction:column;justify-content:space-between;color:#6f83a5;font-size:7px;text-align:right}.chart-bars{position:absolute;inset:9px 8px 18px;display:flex;align-items:flex-end;justify-content:space-around;gap:10px}.chart-month{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px}.bars{height:calc(100% - 18px);width:100%;max-width:52px;display:flex;align-items:flex-end;justify-content:center;gap:4px}.bar{width:35%;min-width:7px;border-radius:4px 4px 1px 1px;transition:.2s}.bar:hover{filter:brightness(1.3)}.bar.budget{background:linear-gradient(180deg,#3384ff,#0b5de7);box-shadow:0 0 16px #1769ff30}.bar.approved{background:linear-gradient(180deg,#27d89b,#079568);box-shadow:0 0 16px #0eba7d24}.chart-month>span{font-size:7px;color:#758bab}.chart-legend{position:absolute;top:-30px;left:8px;display:flex;gap:13px;font-size:7px;color:#7e92b1}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{width:7px;height:7px;border-radius:2px}.budget-dot{background:#2676ff}.approved-dot{background:#1ccb8c}

.status-card{min-height:310px}.status-content{display:flex;align-items:center;justify-content:center;gap:17px;padding:18px 14px 25px}.donut{width:142px;height:142px;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 30px #1769ff12}.donut-hole{width:92px;height:92px;border-radius:50%;background:#0b162b;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px #1b2d50}.donut-hole strong{font-size:24px}.donut-hole span{font-size:8px;color:var(--muted)}.status-legend{display:flex;flex-direction:column;gap:11px}.status-legend>div{display:grid;grid-template-columns:8px 65px 20px 35px;align-items:center;gap:5px;font-size:8px}.status-legend i{width:7px;height:7px;border-radius:50%}.status-legend b{text-align:right}.status-legend small{color:var(--muted);text-align:right}

.performance-card{min-height:310px}.performance-card .premium-card-head>svg{color:#ffd34d;background:#ffd34d12;padding:7px;width:31px;height:31px;border-radius:9px}.performance-lines{padding:4px 17px}.performance-lines>div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #142542;font-size:9px}.performance-lines span{color:#98aaca}.performance-lines strong{font-size:10px}.conversion{margin:15px 17px;padding-top:12px;border-top:1px solid #1c2f50}.conversion span{display:block;color:#7f94b7;font-size:8px}.conversion strong{font-size:24px;margin-top:4px;display:block}

.premium-secondary-grid{display:grid;grid-template-columns:1.7fr .85fr .85fr;gap:12px}.quick-card{min-height:165px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:3px 15px 15px}.quick-grid button{height:74px;border:1px solid #23385e;background:#0b172d;color:#dbe7fa;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:9px}.quick-grid button:hover{border-color:#377aff;background:#102344}.quick-grid .quick-primary{background:linear-gradient(135deg,#2478ff,#075bea);border-color:#367fff;color:white;box-shadow:0 10px 24px #1566ff28}
.ranking-card{min-height:165px}.ranking-list{padding:0 14px 10px}.ranking-item{height:34px;display:grid;grid-template-columns:24px 31px 1fr auto;align-items:center;gap:7px;border-bottom:1px solid #132442;font-size:8px}.ranking-item:last-child{border-bottom:0}.rank-number{width:19px;height:19px;border-radius:50%;background:#14274a;display:grid;place-items:center;color:#c8d6eb}.ranking-item img,.rank-icon{width:28px;height:28px;border-radius:7px;object-fit:cover;background:#f5f7fa}.rank-icon{display:grid;place-items:center;color:#4e83dd;background:#132746}.ranking-item strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:8px}.ranking-item>span:last-child{color:#95a8c7;font-size:7px}

.premium-bottom-grid{display:grid;grid-template-columns:1.7fr .9fr;gap:12px}.recent-premium{min-height:220px}.premium-table-wrap{padding:0 13px 12px;overflow:auto}.premium-table{width:100%;border-collapse:collapse;font-size:8px}.premium-table th{font-size:7px;text-align:left;color:#7488aa;font-weight:600;padding:7px 8px;border-bottom:1px solid #1c3154}.premium-table td{padding:8px;border-bottom:1px solid #122441}.premium-table tr:last-child td{border-bottom:0}.premium-table td:nth-child(2){display:flex;align-items:center;gap:6px}.client-avatar{width:21px;height:21px;border-radius:50%;background:linear-gradient(135deg,#246fff,#17479d);display:grid;place-items:center;color:white;font-size:8px;font-weight:800}.eye-btn{width:27px;height:27px;border:1px solid #1d3358;background:#0b1930;color:#7ea5e0;border-radius:7px;display:grid;place-items:center}
.premium-promo-card{position:relative;min-height:220px;overflow:hidden;border:1px solid #2351a0;border-radius:13px;background:radial-gradient(circle at 80% 55%,#1769ff70,transparent 26%),linear-gradient(135deg,#132e69,#081530 60%,#081326);box-shadow:inset 0 1px #ffffff0c}.promo-glow{position:absolute;width:240px;height:240px;border-radius:50%;background:#1774ff30;filter:blur(50px);right:-60px;bottom:-110px}.promo-content{position:relative;height:100%;padding:22px}.promo-content>span{font-size:18px;font-weight:900;font-style:italic;color:#63a5ff}.promo-content h2{font-size:19px;margin:8px 0 10px;line-height:1.08}.promo-content p{font-size:8px;color:#a6bbe0}.smart-home-art{position:absolute;right:24px;bottom:16px;color:#83b8ff;opacity:.9}.smart-home-art i{position:absolute;width:9px;height:9px;border:2px solid #5aa2ff;border-radius:50%;box-shadow:0 0 14px #4d9fff}.smart-home-art i:nth-child(2){left:-24px;top:18px}.smart-home-art i:nth-child(3){right:-14px;top:2px}.smart-home-art i:nth-child(4){right:-26px;bottom:2px}
.dashboard-loader,.mini-empty{min-height:120px;display:flex;align-items:center;justify-content:center;gap:7px;color:#6f86aa;font-size:8px}.dashboard-loader svg{width:18px}

@media(max-width:1350px){
 .premium-kpis{grid-template-columns:repeat(3,1fr)}.premium-new-card{min-height:120px}
 .premium-main-grid{grid-template-columns:1.6fr 1fr}.performance-card{grid-column:1/-1;min-height:auto}.performance-lines{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.performance-lines>div{border:0}
 .premium-secondary-grid{grid-template-columns:1.4fr 1fr}.premium-secondary-grid .ranking-card:last-child{grid-column:1/-1}
}
@media(max-width:1000px){
 .premium-main-grid,.premium-secondary-grid,.premium-bottom-grid{grid-template-columns:1fr}.premium-kpis{grid-template-columns:repeat(2,1fr)}
 .dashboard-toolbar{margin-top:0;height:auto;justify-content:flex-start;flex-wrap:wrap}.top-header{height:auto;min-height:66px}.main-content{padding-top:14px}.dashboard-toolbar .dash-profile{margin-left:auto}
 .premium-secondary-grid .ranking-card:last-child{grid-column:auto}
}
@media(max-width:620px){
 .premium-kpis{grid-template-columns:1fr}.premium-new-card{min-height:90px}.dash-notification,.dash-profile{display:none}.dashboard-toolbar{gap:7px}.dashboard-new{flex:1}.dash-period{flex:1}
 .premium-chart-card{min-height:280px}.bar-chart{margin-left:48px}.status-content{flex-direction:column}.quick-grid{grid-template-columns:1fr 1fr}.performance-lines{grid-template-columns:1fr 1fr}
 .premium-table{min-width:620px}.premium-promo-card{min-height:190px}
}


/* ===== v0.7.1 - Correções de layout + tipografia + sidebar premium ===== */

/* Header / toolbar: remove overlap and clipping */
.top-header{
  position:relative;
  z-index:8;
  height:84px;
  min-height:84px;
  padding:0 26px;
  overflow:visible;
}
.header-copy h1{font-size:24px;line-height:1.1}
.header-copy p{font-size:12px;margin-top:6px}
.premium-dashboard{padding-top:4px}
.dashboard-toolbar{
  position:relative;
  z-index:10;
  margin-top:0 !important;
  height:auto !important;
  min-height:48px;
  padding:0 0 4px;
  justify-content:flex-end;
  overflow:visible;
}
.dashboard-toolbar>*{position:relative;z-index:2}
.dash-period,.dashboard-new,.dash-notification{height:42px}
.dash-profile{min-width:128px}
.main-content{padding-top:16px}

/* Typography: increase readability throughout premium dashboard */
.premium-kpi-top>span{font-size:11px}
.premium-kpi>strong{font-size:24px}
.kpi-delta{font-size:10px}
.kpi-delta b{font-size:10px}
.premium-card-head h2{font-size:14px}
.premium-card-head p{font-size:10px}
.premium-card-head>button{font-size:10px}
.mini-filter{font-size:10px}
.chart-y-labels{font-size:9px}
.chart-month>span{font-size:9px}
.chart-legend{font-size:9px}
.status-legend>div{font-size:10px;grid-template-columns:8px 78px 24px 42px}
.performance-lines>div{font-size:11px}
.performance-lines strong{font-size:12px}
.conversion span{font-size:10px}
.quick-grid button{font-size:11px}
.ranking-item{font-size:10px;height:40px}
.ranking-item strong{font-size:10px}
.ranking-item>span:last-child{font-size:9px}
.premium-table{font-size:10px}
.premium-table th{font-size:9px}
.promo-content p{font-size:10px}
.dashboard-loader,.mini-empty{font-size:10px}

/* Sidebar: richer, more premium, more visual hierarchy */
.sidebar{
  width:250px;
  flex-basis:250px;
  background:
    radial-gradient(circle at 50% -5%, #173c7438, transparent 26%),
    linear-gradient(180deg,#07152a 0%,#071224 50%,#050f1e 100%);
  border-right:1px solid #17305a;
  box-shadow:14px 0 45px #0005;
}
.sidebar-brand{
  padding:20px 18px 18px;
  border-bottom:1px solid #18325b;
  background:linear-gradient(180deg,#0b1b35aa,#07142800);
}
.brand-home{
  border-radius:12px;
  transition:.2s ease;
}
.brand-home:hover{
  background:#10284a;
  transform:translateY(-1px);
}
.sidebar .brand-icon{
  width:50px;
  height:50px;
  border-radius:12px;
  box-shadow:0 8px 24px #0004,0 0 0 1px #ffffff12;
}
.sidebar .brand strong{
  font-size:16px;
  letter-spacing:-.01em;
}
.sidebar .brand span{
  font-size:10px;
  margin-top:4px;
}
.sidebar-nav{
  padding:20px 14px;
}
.nav-group{
  margin-bottom:24px;
}
.nav-group-label{
  padding:0 11px 8px;
  font-size:10px;
  letter-spacing:.14em;
  color:#7298d0;
}
.nav-item{
  min-height:43px;
  padding:0 13px;
  margin:4px 0;
  border-radius:10px;
  font-size:13px;
  color:#b8c9e5;
  position:relative;
  overflow:hidden;
}
.nav-item svg{
  width:18px;
  height:18px;
  color:#9ab4dd;
}
.nav-item:before{
  content:"";
  position:absolute;
  left:0;
  top:8px;
  bottom:8px;
  width:3px;
  border-radius:3px;
  background:transparent;
}
.nav-item:hover{
  background:linear-gradient(90deg,#102748,#0b1d38);
  color:#fff;
  transform:translateX(3px);
}
.nav-item.active{
  background:
    linear-gradient(90deg,#1f6fff 0%,#2f78f0 72%,#3176e0 100%);
  color:white;
  box-shadow:0 8px 24px #1769ff30,inset 0 1px #ffffff25;
}
.nav-item.active:before{
  background:#8fc1ff;
}
.nav-item.active svg{
  color:white;
}
.sidebar-footer{
  margin-top:auto;
  padding:14px;
  border-top:1px solid #18325b;
  background:linear-gradient(180deg,#071224,#050d19);
  display:block;
}
.sidebar-footer-card{
  border:1px solid #19335d;
  background:linear-gradient(145deg,#0d1d38,#08162b);
  border-radius:12px;
  padding:11px;
  display:flex;
  align-items:center;
  gap:9px;
  box-shadow:inset 0 1px #ffffff08;
}
.sidebar-footer-icon{
  width:32px;
  height:32px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:#1769ff22;
  color:#6fa8ff;
}
.sidebar-footer-card strong{
  display:block;
  color:#fff;
  font-size:11px;
}
.sidebar-footer-card span{
  display:block;
  color:#738caf;
  font-size:9px;
  margin-top:2px;
}
.sidebar-footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:9px 4px 0;
  color:#55769f;
  font-size:9px;
}
.logout-mini{
  width:28px;
  height:28px;
  border-radius:7px;
  display:grid;
  place-items:center;
}
.logout-mini:hover{
  background:#132745;
  color:#fff;
}

/* Cards less vertically sparse on wide screens */
.recent-premium{min-height:0}
.premium-table td{padding:10px 8px}
.premium-bottom-grid{align-items:start}

/* Better scaling on ultrawide / full HD */
@media(min-width:1600px){
  .main-content{padding:20px 28px 38px}
  .premium-dashboard{gap:18px}
  .premium-kpis{gap:13px}
  .premium-kpi{min-height:145px}
  .premium-main-grid,.premium-secondary-grid,.premium-bottom-grid{gap:14px}
}

@media(max-width:1000px){
  .top-header{height:72px;min-height:72px}
  .dashboard-toolbar{justify-content:flex-start}
  .sidebar{width:250px;flex-basis:250px}
}


/* ===== v0.8 — Reprodução visual do mockup aprovado ===== */

.app-shell.dark{
  --page:#020814;
  --sidebar:#06152a;
  --sidebar-line:#15315d;
  --card:#0b1730;
  --card2:#0d1b35;
  --border:#1b3159;
  --text:#f7f9fd;
  --muted:#8299bf;
  --blue:#1f6fff;
  --blue2:#2b79ff;
  --input:#08162d;
  --hover:#102344;
  background:#020814;
}

.sidebar{
  width:245px;
  flex:0 0 245px;
  background:
    radial-gradient(circle at 50% 0%,#123a7a42,transparent 24%),
    linear-gradient(180deg,#07172e 0%,#061328 48%,#041020 100%);
  border-right:1px solid #18335f;
  box-shadow:none;
}
.sidebar-brand{
  min-height:126px;
  padding:17px 20px 10px;
  border-bottom:0;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  background:transparent;
}
.sidebar .brand{
  flex-direction:column;
  gap:6px;
  align-items:center;
  text-align:center;
}
.sidebar .brand-icon{
  width:142px;
  height:82px;
  padding:0;
  background:transparent;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
}
.sidebar .brand-icon .custom-logo{
  width:142px;
  height:82px;
  padding:0;
  object-fit:contain;
}
.sidebar .brand .online-dot{display:none}
.sidebar .brand>div:last-child{display:none}

.sidebar-search{
  margin:3px 17px 15px;
  height:38px;
  border:1px solid #1a3766;
  border-radius:10px;
  background:#091830;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 11px;
  color:#7fa2d7;
  box-shadow:inset 0 1px #ffffff05;
}
.sidebar-search input{
  border:0;
  background:transparent;
  box-shadow:none;
  height:auto;
  padding:0;
  color:#c8d7ee;
  font-size:11px;
}
.sidebar-search input::placeholder{color:#6f88ae}
.sidebar-search input:focus{box-shadow:none;border:0}

.sidebar-nav{
  padding:0 12px 12px;
  flex:0 1 auto;
  overflow:visible;
}
.nav-group{margin-bottom:22px}
.nav-group-label{
  padding:0 12px 7px;
  font-size:9px;
  letter-spacing:.13em;
  font-weight:800;
  color:#6e91ca;
}
.nav-item{
  min-height:40px;
  padding:0 13px;
  margin:3px 0;
  border-radius:9px;
  font-size:12px;
  color:#b5c8e6;
  gap:11px;
  transform:none!important;
}
.nav-item svg{width:17px;height:17px;color:#9ebae5}
.nav-item:hover{
  transform:none;
  background:#0c2444;
  color:#fff;
}
.nav-item.active{
  background:linear-gradient(90deg,#1f6fff 0%,#2678ff 72%,#1378ff 100%);
  box-shadow:0 0 20px #1769ff6b,inset 0 1px #ffffff25;
  color:white;
}
.nav-item.active:before{display:none}
.nav-item.active svg{color:white}
.nav-chevron{margin-left:auto;opacity:.55}

.sidebar-promo{
  position:relative;
  height:194px;
  margin:2px 12px 0;
  border-radius:13px;
  border:1px solid #2c61be;
  overflow:hidden;
  background:linear-gradient(155deg,#102f6e,#092453 60%,#06152d);
  box-shadow:inset 0 1px #ffffff10;
}
.sidebar-promo:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 35%,#06152b10 55%,#06152be8 100%);
  pointer-events:none;
}
.sidebar-promo-copy{
  position:absolute;
  z-index:3;
  left:20px;
  top:18px;
  color:white;
}
.sidebar-promo-copy strong{
  font-size:16px;
  line-height:1.12;
  letter-spacing:-.02em;
}
.sidebar-promo img{
  position:absolute;
  right:-12px;
  bottom:-4px;
  width:178px;
  height:122px;
  object-fit:cover;
  object-position:center;
  filter:saturate(1.05) contrast(1.02);
}
.sidebar-promo-icons{
  position:absolute;
  z-index:4;
  left:16px;
  bottom:14px;
  display:flex;
  gap:7px;
}
.sidebar-promo-icons span{
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid #477bc7;
  color:#d7e8ff;
  background:#214c92d9;
  backdrop-filter:blur(6px);
}
.sidebar-footer{
  margin-top:auto;
  padding:0 18px 14px;
  background:transparent;
  border-top:0;
}
.sidebar-footer-bottom{
  border-top:1px solid #152d54;
  padding:15px 2px 0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  color:#6f89b2;
  font-size:9px;
}
.sidebar-footer-bottom>div{display:flex;flex-direction:column;gap:5px}
.sidebar-footer-bottom small{font-size:8px;color:#58739e}

/* Header exactly like the approved mockup */
.top-header{
  height:84px;
  min-height:84px;
  padding:0 28px;
  border-bottom:1px solid #162b4f;
  background:
    radial-gradient(circle at 70% 0%,#0d2c6540,transparent 30%),
    #030a17;
}
.header-copy h1{
  font-size:26px;
  line-height:1;
  font-weight:800;
  letter-spacing:-.025em;
}
.header-copy p{
  font-size:11px;
  color:#7897c8;
  margin-top:8px;
}
.main-content{padding:18px 24px 28px}

/* Toolbar sits on header line without clipping */
.dashboard-toolbar{
  margin-top:-76px!important;
  height:68px!important;
  min-height:68px;
  padding:0 1px 0 0;
  align-items:center;
  z-index:12;
}
.dash-period{
  height:40px;
  min-width:172px;
  border-color:#1e365f;
  background:#08152b;
  border-radius:10px;
}
.dash-period select{font-size:10px}
.dashboard-new{display:none}
.dash-notification{
  width:39px;height:39px;border-radius:50%;
  background:#09162b;border-color:#1d345c;
}
.dash-profile{gap:9px;min-width:137px}
.profile-avatar{width:36px;height:36px;border:2px solid #35527d;background:linear-gradient(145deg,#203b68,#0e1d35)}
.dash-profile strong{font-size:11px}
.dash-profile small{font-size:9px}

/* Exact dashboard composition */
.premium-dashboard{gap:14px}
.premium-kpis{
  grid-template-columns:repeat(5,minmax(0,1fr)) 192px;
  gap:12px;
}
.premium-kpi{
  min-height:138px;
  padding:16px;
  border-radius:13px;
  background:
    radial-gradient(circle at 20% 0%,#15356545,transparent 35%),
    linear-gradient(145deg,#0d1a33,#091529);
  border-color:#1e355f;
}
.premium-kpi-top>span{font-size:10px}
.premium-kpi-icon{width:34px;height:34px}
.premium-kpi>strong{font-size:22px;margin:15px 0 9px}
.kpi-delta{font-size:9px}
.kpi-delta b{font-size:9px}
.premium-new-card{
  min-height:138px;
  border-radius:13px;
  font-size:12px;
  background:linear-gradient(145deg,#2178ff,#0860ee);
}

.premium-main-grid{
  grid-template-columns:minmax(0,2.38fr) minmax(290px,.94fr) minmax(250px,.76fr);
  gap:12px;
}
.premium-card{
  border-radius:13px;
  border-color:#1c345f;
  background:
    radial-gradient(circle at 70% -20%,#153e7a33,transparent 30%),
    linear-gradient(145deg,#0b1830,#081426);
}
.premium-chart-card,.status-card,.performance-card{min-height:320px}
.premium-card-head{padding:15px 17px 8px}
.premium-card-head h2{font-size:12px}
.premium-card-head p{font-size:8px}
.bar-chart{height:252px}
.status-content{padding-top:25px}
.donut{width:150px;height:150px}
.donut-hole{width:94px;height:94px}
.performance-lines>div{padding:10px 0}
.conversion strong{font-size:27px}

.premium-secondary-grid{
  grid-template-columns:1.74fr .86fr .86fr;
  gap:12px;
}
.quick-card,.ranking-card{min-height:158px}
.quick-grid{padding:3px 15px 15px}
.quick-grid button{height:71px}
.ranking-item{height:36px}
.premium-bottom-grid{
  grid-template-columns:1.72fr .92fr;
  gap:12px;
}
.recent-premium,.premium-promo-card{min-height:222px}

.exact-banner-card{
  padding:0;
  background:#07142b;
  display:flex;
  align-items:stretch;
  justify-content:stretch;
}
.exact-banner-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Cleaner recent table like the approved reference */
.premium-table th{font-size:8px;color:#7b91b5}
.premium-table td{font-size:9px}
.client-avatar{width:23px;height:23px}
.eye-btn{width:29px;height:29px}

/* Responsive keeps the same visual language */
@media(max-width:1350px){
  .premium-kpis{grid-template-columns:repeat(3,1fr)}
  .premium-main-grid{grid-template-columns:1.5fr 1fr}
  .performance-card{grid-column:1/-1}
}
@media(max-width:1000px){
  .dashboard-toolbar{margin-top:0!important;height:auto!important}
  .sidebar{width:245px;flex-basis:245px}
}
@media(max-width:620px){
  .sidebar-promo{height:160px}
  .premium-kpis{grid-template-columns:1fr}
  .premium-main-grid,.premium-secondary-grid,.premium-bottom-grid{grid-template-columns:1fr}
}


/* ===== v0.8.1 — logo, topbar completa, foto de usuário e legibilidade ===== */

/* Logo */
.sidebar .brand-icon{
  width:150px!important;
  height:88px!important;
}
.sidebar .brand-icon .custom-logo{
  width:150px!important;
  height:88px!important;
  object-fit:contain!important;
  display:block!important;
}

/* Top controls */
.dashboard-toolbar{
  gap:12px!important;
}
.dash-theme{
  height:40px;
  min-width:78px;
  padding:3px;
  border:1px solid #1e365f;
  border-radius:999px;
  background:#08152b;
  color:#88a5cf;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.dash-theme>span{
  width:32px;
  height:32px;
  border-radius:50%;
  display:grid;
  place-items:center;
}
.dash-theme .theme-selected{
  background:#1870ff;
  color:#fff;
  box-shadow:0 0 18px #1769ff66;
}
.profile-avatar{
  overflow:hidden;
  background:#1c3156;
}
.profile-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* User photo picker */
.user-photo-picker{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border:1px dashed var(--border);
  border-radius:10px;
  background:var(--card2);
}
.user-photo-preview{
  width:64px;
  height:64px;
  border-radius:50%;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:var(--input);
  border:1px solid var(--border);
  color:var(--muted);
}
.user-photo-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Larger font sizes for comfortable reading */
body{font-size:15px}
.header-copy h1{font-size:27px!important}
.header-copy p{font-size:12px!important}
.nav-item{font-size:13px!important}
.nav-group-label{font-size:10px!important}
.sidebar-search input{font-size:12px!important}

.premium-kpi-top>span{font-size:12px!important}
.premium-kpi>strong{font-size:25px!important}
.kpi-delta,.kpi-delta b{font-size:10px!important}
.premium-card-head h2{font-size:15px!important}
.premium-card-head p{font-size:10px!important}
.premium-card-head>button,.mini-filter{font-size:10px!important}
.chart-y-labels,.chart-month>span,.chart-legend{font-size:10px!important}
.status-legend>div{font-size:11px!important}
.performance-lines>div{font-size:11px!important}
.performance-lines strong{font-size:12px!important}
.conversion span{font-size:10px!important}
.quick-grid button{font-size:12px!important}
.ranking-item{font-size:11px!important;height:42px!important}
.ranking-item strong{font-size:11px!important}
.ranking-item>span:last-child{font-size:10px!important}
.premium-table{font-size:11px!important}
.premium-table th{font-size:10px!important}
.premium-table td{padding:11px 8px!important}
.status-badge{font-size:10px!important}
.dash-period select{font-size:11px!important}
.dash-profile strong{font-size:12px!important}
.dash-profile small{font-size:10px!important}

/* Slightly taller cards to preserve spacing after font enlargement */
.premium-kpi{min-height:150px!important}
.quick-card,.ranking-card{min-height:172px!important}
.recent-premium,.premium-promo-card{min-height:230px!important}

@media(max-width:1000px){
  .dash-theme{min-width:70px}
}


/* v0.8.2 - readability and visible dashboard toolbar */
.premium-dashboard{padding-top:0!important}
.dashboard-toolbar{
  display:flex!important; visibility:visible!important; opacity:1!important;
  position:relative!important; z-index:100!important;
  min-height:76px!important; height:auto!important; overflow:visible!important;
  align-items:center!important; justify-content:flex-end!important;
  gap:14px!important; padding:12px 18px!important;
}
.dash-period,.dashboard-new,.dash-theme,.dash-notification,.dash-profile{
  display:flex!important; visibility:visible!important; opacity:1!important;
  position:relative!important; transform:none!important;
}
.dash-period{height:48px!important;min-width:180px!important;padding:0 14px!important}
.dash-period small{font-size:10px!important}
.dash-period select{font-size:14px!important;font-weight:700!important}
.dashboard-new{height:48px!important;font-size:14px!important;padding:0 18px!important}
.dash-theme{height:48px!important;min-width:90px!important}
.dash-theme>span{width:37px!important;height:37px!important}
.dash-notification{width:48px!important;height:48px!important}
.dash-profile{min-width:155px!important;gap:10px!important}
.profile-avatar{width:48px!important;height:48px!important}
.dash-profile strong{font-size:16px!important}
.dash-profile small{font-size:13px!important}

/* significantly larger typography */
body{font-size:18px!important;line-height:1.5!important}
.header-copy h1,.page-header h1{font-size:30px!important}
.header-copy p,.page-header p{font-size:14px!important}
.nav-item{font-size:15px!important;min-height:45px!important}
.nav-group-label{font-size:11px!important}
.sidebar-search input{font-size:14px!important}
.premium-kpi-top>span{font-size:14px!important}
.premium-kpi>strong{font-size:30px!important}
.kpi-delta,.kpi-delta b{font-size:12px!important}
.premium-card-head h2,.quick-card h2,.ranking-card h2,.recent-premium h2{font-size:18px!important}
.premium-card-head p{font-size:12px!important}
.chart-y-labels,.chart-month>span,.chart-legend{font-size:12px!important}
.status-legend>div,.performance-lines>div{font-size:13px!important}
.performance-lines strong{font-size:14px!important}
.quick-grid button{font-size:14px!important}
.ranking-item,.ranking-item strong{font-size:13px!important}
.ranking-item>span:last-child{font-size:12px!important}
.premium-table{font-size:13px!important}
.premium-table th{font-size:12px!important}
.premium-table td{padding:13px 9px!important}
.status-badge{font-size:11px!important}

/* quote details readability too */
.quote-sheet,.quote-details,.detail-page{font-size:15px!important}
.quote-sheet h1,.quote-details h1,.detail-page h1{font-size:26px!important}
.quote-sheet h2,.quote-details h2,.detail-page h2{font-size:18px!important}
.quote-sheet table,.quote-details table,.detail-page table{font-size:14px!important}

@media(max-width:1200px){
  .dashboard-toolbar{justify-content:flex-start!important;flex-wrap:wrap!important}
}


/* ===== v0.8.3 — topbar integrada ao header + glow premium ===== */

/* Dashboard top controls now live inside the real header: no clipping possible */
.top-header{
  overflow:visible!important;
  z-index:100!important;
}
.dashboard-header-actions{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  position:relative!important;
  z-index:110!important;
  visibility:visible!important;
  opacity:1!important;
}
.dashboard-header-actions .dash-period,
.dashboard-header-actions .dash-theme,
.dashboard-header-actions .dash-notification,
.dashboard-header-actions .dash-profile{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  margin:0!important;
  transform:none!important;
}
.dashboard-header-actions .dash-period{
  height:44px!important;
  min-width:170px!important;
  padding:0 13px!important;
  border-radius:12px!important;
  background:#09162d!important;
  border:1px solid #213b69!important;
  box-shadow:inset 0 1px #ffffff08,0 8px 22px #0003!important;
}
.dashboard-header-actions .dash-period select{
  font-size:14px!important;
  font-weight:700!important;
  color:#edf5ff!important;
}
.dashboard-header-actions .dash-theme{
  height:44px!important;
  min-width:86px!important;
  border-radius:999px!important;
  background:#09162d!important;
  border:1px solid #213b69!important;
  padding:3px!important;
  box-shadow:inset 0 1px #ffffff08,0 8px 22px #0003!important;
}
.dashboard-header-actions .dash-theme>span{
  width:35px!important;height:35px!important;
}
.dashboard-header-actions .dash-theme .theme-selected{
  background:#1374ff!important;
  color:white!important;
  box-shadow:0 0 12px #1976ff,0 0 28px #1976ff88!important;
}
.dashboard-header-actions .dash-notification{
  width:44px!important;height:44px!important;
  border-radius:50%!important;
  background:#09162d!important;
  border:1px solid #213b69!important;
  box-shadow:inset 0 1px #ffffff08,0 8px 22px #0003!important;
}
.dashboard-header-actions .dash-notification:hover{
  border-color:#2f7fff!important;
  box-shadow:0 0 12px #1769ff80,0 0 28px #1769ff40!important;
}
.dashboard-header-actions .dash-profile{
  min-width:142px!important;
  gap:10px!important;
}
.dashboard-header-actions .profile-avatar{
  width:44px!important;height:44px!important;
  border:2px solid #3a65a1!important;
  box-shadow:0 0 14px #1769ff45!important;
}
.dashboard-header-actions .dash-profile strong{font-size:15px!important}
.dashboard-header-actions .dash-profile small{font-size:12px!important;color:#93a9cb!important}

/* Remove obsolete in-content toolbar spacing */
.premium-dashboard{padding-top:12px!important}
.dashboard-toolbar{display:none!important}

/* Glow language like the approved reference */
.nav-item.active{
  box-shadow:
    0 0 10px #1670ffcc,
    0 0 26px #1670ff75,
    0 8px 24px #0005,
    inset 0 1px #ffffff30!important;
}
.nav-item.active svg{
  filter:drop-shadow(0 0 5px #a7d0ff);
}
.premium-kpi{
  transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease!important;
}
.premium-kpi:hover{
  transform:translateY(-2px)!important;
  border-color:#2d5da4!important;
  box-shadow:0 0 18px #1769ff22,0 16px 35px #0004!important;
}
.premium-kpi-icon{
  box-shadow:0 0 12px currentColor!important;
}
.premium-kpi.blue .premium-kpi-icon{box-shadow:0 0 14px #267bff88!important}
.premium-kpi.green .premium-kpi-icon{box-shadow:0 0 14px #16d99b77!important}
.premium-kpi.violet .premium-kpi-icon{box-shadow:0 0 14px #8857ff77!important}
.premium-kpi.cyan .premium-kpi-icon{box-shadow:0 0 14px #1bd5ef77!important}
.premium-kpi.amber .premium-kpi-icon{box-shadow:0 0 14px #ffc84b77!important}

.premium-new-card,
.quick-grid .quick-primary{
  box-shadow:
    0 0 12px #1769ffaa,
    0 0 30px #1769ff55,
    0 14px 28px #0004!important;
}
.premium-new-card:hover,
.quick-grid .quick-primary:hover{
  box-shadow:
    0 0 18px #2e82ffff,
    0 0 42px #1769ff88,
    0 16px 32px #0005!important;
}
.quick-grid button:hover{
  border-color:#337cff!important;
  box-shadow:0 0 14px #1769ff44!important;
}
.eye-btn:hover,.table-icon:hover,.secondary-btn:hover,.icon-btn:hover{
  border-color:#337cff!important;
  box-shadow:0 0 12px #1769ff55!important;
}

/* Header remains usable on narrower notebooks */
@media(max-width:1250px){
  .dashboard-header-actions{gap:8px!important}
  .dashboard-header-actions .dash-period{min-width:150px!important}
  .dashboard-header-actions .dash-profile{min-width:120px!important}
}
@media(max-width:1050px){
  .top-header{flex-wrap:wrap!important;height:auto!important;min-height:84px!important;padding-block:12px!important}
  .dashboard-header-actions{width:100%!important;margin-left:0!important;justify-content:flex-start!important;flex-wrap:wrap!important}
}


/* ===== v0.8.4 — correção de tema + submenu de período ===== */

/* BOTÃO DE TEMA */
.dashboard-header-actions .dash-theme{
  overflow:hidden!important;
}
.dashboard-header-actions .dash-theme > span{
  color:#6f89b1!important;
  background:transparent!important;
  box-shadow:none!important;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease!important;
}
.dashboard-header-actions .dash-theme > span.theme-selected{
  color:#fff!important;
  background:#1674ff!important;
  box-shadow:0 0 10px #1674ffcc,0 0 24px #1674ff77!important;
}
.dashboard-header-actions .dash-theme.light > span.theme-selected{
  color:#392b00!important;
  background:#ffd34d!important;
  box-shadow:0 0 10px #ffd34dcc,0 0 24px #ffd34d66!important;
}

/* SELECT / SUBMENU DO PERÍODO */
.dashboard-header-actions .dash-period select{
  color-scheme:dark!important;
  background:#09162d!important;
  color:#f3f7ff!important;
  border:0!important;
  outline:0!important;
}
.dashboard-header-actions .dash-period select option{
  background:#0a1730!important;
  color:#f3f7ff!important;
}
.app-shell.light .dashboard-header-actions .dash-period select{
  color-scheme:light!important;
  background:#ffffff!important;
  color:#0b1830!important;
}
.app-shell.light .dashboard-header-actions .dash-period select option{
  background:#ffffff!important;
  color:#0b1830!important;
}

/* =========================
   TEMA ESCURO
   ========================= */
.app-shell.dark{
  --page:#020814!important;
  --sidebar:#07162d!important;
  --sidebar-line:#17345f!important;
  --card:#0b1730!important;
  --card2:#0d1b35!important;
  --border:#1b3159!important;
  --text:#f5f8ff!important;
  --muted:#8198bb!important;
  --input:#08162d!important;
  --hover:#102344!important;
  color:#f5f8ff!important;
  background:#020814!important;
}
.app-shell.dark .workspace,
.app-shell.dark .main-content{
  background:#020814!important;
  color:#f5f8ff!important;
}
.app-shell.dark .top-header{
  background:
    radial-gradient(circle at 70% 0%,#0d2c6540,transparent 30%),
    #030a17!important;
  border-bottom-color:#162b4f!important;
}
.app-shell.dark .premium-kpi,
.app-shell.dark .premium-card{
  color:#f5f8ff!important;
}
.app-shell.dark .premium-kpi > strong,
.app-shell.dark .premium-card-head h2,
.app-shell.dark .performance-lines strong,
.app-shell.dark .conversion strong,
.app-shell.dark .ranking-item strong,
.app-shell.dark .premium-table td{
  color:#f5f8ff!important;
}

/* =========================
   TEMA CLARO
   ========================= */
.app-shell.light{
  --page:#edf3fb!important;
  --sidebar:#07162d!important;
  --sidebar-line:#17345f!important;
  --card:#ffffff!important;
  --card2:#f6f9fd!important;
  --border:#c9d7e8!important;
  --text:#0b1830!important;
  --muted:#617692!important;
  --input:#ffffff!important;
  --hover:#eaf2ff!important;
  color:#0b1830!important;
  background:#edf3fb!important;
}

/* fundo geral claro */
.app-shell.light .workspace,
.app-shell.light .main-content{
  background:
    radial-gradient(circle at 74% -8%,#d8e7ff 0,transparent 30%),
    #edf3fb!important;
  color:#0b1830!important;
}

/* header claro */
.app-shell.light .top-header{
  background:#f8fbfffa!important;
  border-bottom:1px solid #cbd8e8!important;
  box-shadow:0 5px 18px #17365f0f!important;
  backdrop-filter:blur(14px)!important;
}
.app-shell.light .header-copy h1{color:#0b1830!important}
.app-shell.light .header-copy p{color:#607491!important}

/* sidebar permanece escura por identidade visual */
.app-shell.light .sidebar{
  background:
    radial-gradient(circle at 50% 0%,#123a7a42,transparent 24%),
    linear-gradient(180deg,#07172e 0%,#061328 48%,#041020 100%)!important;
  border-right-color:#18335f!important;
}
.app-shell.light .sidebar-search{
  background:#091830!important;
  border-color:#1a3766!important;
}
.app-shell.light .sidebar-search input{color:#c8d7ee!important}
.app-shell.light .sidebar-search input::placeholder{color:#6f88ae!important}
.app-shell.light .nav-item{color:#b5c8e6!important}
.app-shell.light .nav-item:hover{background:#0c2444!important;color:#fff!important}
.app-shell.light .nav-item.active{
  color:#fff!important;
  background:linear-gradient(90deg,#1f6fff,#2678ff 72%,#1378ff)!important;
  box-shadow:0 0 10px #1670ffcc,0 0 26px #1670ff75!important;
}

/* controles superiores no claro */
.app-shell.light .dashboard-header-actions .dash-period,
.app-shell.light .dashboard-header-actions .dash-theme,
.app-shell.light .dashboard-header-actions .dash-notification{
  background:#ffffff!important;
  border-color:#c8d7e8!important;
  color:#385273!important;
  box-shadow:0 7px 20px #24466f14!important;
}
.app-shell.light .dashboard-header-actions .dash-profile strong{color:#0b1830!important}
.app-shell.light .dashboard-header-actions .dash-profile small{color:#617692!important}
.app-shell.light .dashboard-header-actions .profile-avatar{
  border-color:#8fb0db!important;
}

/* KPI e cards claros */
.app-shell.light .premium-kpi,
.app-shell.light .premium-card{
  background:
    radial-gradient(circle at 85% -15%,#e4edff 0,transparent 34%),
    linear-gradient(145deg,#ffffff,#f5f8fc)!important;
  border-color:#c8d7e8!important;
  color:#0b1830!important;
  box-shadow:0 10px 28px #183c7012,inset 0 1px #ffffff!important;
}
.app-shell.light .premium-kpi:hover,
.app-shell.light .premium-card:hover{
  border-color:#91b7ee!important;
  box-shadow:0 12px 30px #1769ff18!important;
}
.app-shell.light .premium-kpi-top > span,
.app-shell.light .premium-card-head p,
.app-shell.light .chart-y-labels,
.app-shell.light .chart-month > span,
.app-shell.light .performance-lines span,
.app-shell.light .conversion span,
.app-shell.light .ranking-item > span:last-child,
.app-shell.light .premium-table th{
  color:#617692!important;
}
.app-shell.light .premium-kpi > strong,
.app-shell.light .premium-card-head h2,
.app-shell.light .performance-lines strong,
.app-shell.light .conversion strong,
.app-shell.light .ranking-item strong,
.app-shell.light .premium-table td{
  color:#0b1830!important;
}

/* gráfico claro */
.app-shell.light .bar-chart{
  border-left-color:#cbd9ea!important;
  border-bottom-color:#cbd9ea!important;
}
.app-shell.light .chart-grid-lines i{
  border-top-color:#d9e3ef!important;
}
.app-shell.light .donut-hole{
  background:#ffffff!important;
  box-shadow:inset 0 0 0 1px #d2deec!important;
  color:#0b1830!important;
}
.app-shell.light .status-legend span,
.app-shell.light .status-legend b,
.app-shell.light .status-legend small{
  color:#385273!important;
}

/* tabelas e linhas claras */
.app-shell.light .premium-table th,
.app-shell.light .premium-table td,
.app-shell.light .ranking-item,
.app-shell.light .performance-lines > div{
  border-color:#d8e3ef!important;
}
.app-shell.light .client-avatar{
  color:#fff!important;
}

/* ações rápidas claras */
.app-shell.light .quick-grid button:not(.quick-primary){
  background:#ffffff!important;
  border-color:#c8d7e8!important;
  color:#18304f!important;
}
.app-shell.light .quick-grid button:not(.quick-primary):hover{
  background:#eef5ff!important;
  border-color:#76a7ed!important;
  box-shadow:0 0 14px #1769ff20!important;
}

/* inputs e painéis gerais no tema claro */
.app-shell.light input,
.app-shell.light textarea,
.app-shell.light select{
  background:#ffffff!important;
  color:#0b1830!important;
  border-color:#c7d6e8!important;
}
.app-shell.light .panel,
.app-shell.light .modal-card{
  background:#ffffff!important;
  color:#0b1830!important;
  border-color:#c7d6e8!important;
}

/* evita qualquer branco externo estranho quando dark */
html,body,#root{
  min-height:100%!important;
}
body{
  background:#020814;
}


/* ===== v0.8.5 — Central de notificações / pendências ===== */
.notification-wrap{
  position:relative;
  display:flex;
  align-items:center;
}
.dash-notification.open{
  border-color:#2d7cff!important;
  box-shadow:0 0 12px #1769ff99,0 0 28px #1769ff55!important;
}
.notification-backdrop{
  position:fixed;
  inset:0;
  z-index:998;
  border:0;
  background:transparent;
  cursor:default;
}
.notification-popover{
  position:absolute;
  z-index:999;
  top:54px;
  right:-18px;
  width:390px;
  max-height:min(560px,72vh);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #24436f;
  border-radius:14px;
  background:
    radial-gradient(circle at 85% 0%,#123d8140,transparent 30%),
    linear-gradient(180deg,#0b1b35,#071429);
  box-shadow:0 24px 70px #0009,0 0 30px #1769ff1f,inset 0 1px #ffffff0b;
  color:#f4f8ff;
  animation:notificationIn .16s ease-out;
}
@keyframes notificationIn{
  from{opacity:0;transform:translateY(-6px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.notification-popover:before{
  content:"";
  position:absolute;
  top:-7px;
  right:32px;
  width:13px;height:13px;
  transform:rotate(45deg);
  background:#0b1b35;
  border-left:1px solid #24436f;
  border-top:1px solid #24436f;
}
.notification-header{
  min-height:72px;
  padding:15px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #1b345d;
}
.notification-header strong{
  display:block;
  font-size:16px;
}
.notification-header small{
  display:block;
  margin-top:4px;
  font-size:11px;
  color:#7895bd;
}
.notification-close{
  width:31px;height:31px;
  border:1px solid #24436f;
  border-radius:8px;
  background:#0b1a32;
  color:#8fa8cc;
  font-size:20px;
  line-height:1;
}
.notification-close:hover{color:#fff;border-color:#3b7fe8}
.notification-list{
  overflow:auto;
  padding:7px;
}
.notification-item{
  width:100%;
  min-height:78px;
  padding:11px 10px;
  display:grid;
  grid-template-columns:38px 1fr 18px;
  align-items:center;
  gap:10px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:#dfeaff;
  text-align:left;
}
.notification-item:hover{
  background:#102545;
  border-color:#234a7c;
}
.notification-icon{
  width:36px;height:36px;
  border-radius:10px;
  display:grid;
  place-items:center;
}
.notification-item.rascunho .notification-icon{
  color:#ffd052;
  background:#f59e0b1c;
  box-shadow:0 0 12px #f59e0b18;
}
.notification-item.aguardando .notification-icon{
  color:#69a7ff;
  background:#1769ff22;
  box-shadow:0 0 12px #1769ff20;
}
.notification-copy{min-width:0}
.notification-copy strong{
  display:block;
  font-size:12px;
  color:#f4f8ff;
}
.notification-copy span{
  display:block;
  margin-top:4px;
  font-size:11px;
  line-height:1.35;
  color:#9bb0ce;
  white-space:normal;
}
.notification-copy small{
  display:block;
  margin-top:5px;
  font-size:9px;
  color:#607da7;
}
.notification-item>svg{color:#5f7da8}
.notification-empty{
  min-height:170px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  color:#7894bb;
  text-align:center;
  padding:20px;
}
.notification-empty>svg{color:#35ce95}
.notification-empty strong{color:#e8f1ff;font-size:13px}
.notification-empty span{font-size:10px}
.notification-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  min-height:51px;
  padding:9px 12px;
  border-top:1px solid #1b345d;
  background:#071326;
}
.notification-footer button{
  border:0;
  background:transparent;
  color:#70a7ff;
  font-size:10px;
  font-weight:700;
}
.notification-footer button:hover{color:#a9cbff}
.notification-footer button:disabled{opacity:.5}

/* Tema claro do popup */
.app-shell.light .notification-popover{
  background:linear-gradient(180deg,#ffffff,#f7faff);
  border-color:#c3d3e7;
  box-shadow:0 24px 70px #15396328,0 0 25px #1769ff12;
  color:#0b1830;
}
.app-shell.light .notification-popover:before{
  background:#fff;border-color:#c3d3e7;
}
.app-shell.light .notification-header,
.app-shell.light .notification-footer{
  border-color:#d8e3ef;
}
.app-shell.light .notification-header strong,
.app-shell.light .notification-copy strong,
.app-shell.light .notification-empty strong{color:#0b1830}
.app-shell.light .notification-header small,
.app-shell.light .notification-copy span{color:#607491}
.app-shell.light .notification-item:hover{
  background:#edf5ff;
  border-color:#b7d0f0;
}
.app-shell.light .notification-footer{background:#f5f9ff}
.app-shell.light .notification-close{background:#fff;color:#526d90;border-color:#c8d8e9}

@media(max-width:620px){
  .notification-popover{
    position:fixed;
    top:72px;
    right:10px;
    left:10px;
    width:auto;
    max-height:72vh;
  }
  .notification-popover:before{display:none}
}


/* ===== v0.8.6 — Login com logo central grande ===== */
.login-card{
  padding-top:28px!important;
}
.login-card .login-brand{
  width:100%!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  margin:0 auto 24px!important;
  text-align:center!important;
}
.login-card .login-logo-large{
  display:block!important;
  width:min(260px,72%)!important;
  height:auto!important;
  max-height:170px!important;
  object-fit:contain!important;
  margin:0 auto!important;
  filter:drop-shadow(0 10px 25px #00000028)!important;
}
.login-card .brand-icon{
  width:100%!important;
  height:auto!important;
  background:transparent!important;
  border:0!important;
  display:flex!important;
  justify-content:center!important;
}
.login-card .brand-icon img{
  width:min(260px,72%)!important;
  height:auto!important;
  max-height:170px!important;
  object-fit:contain!important;
}
.login-card .login-brand h1,
.login-card .login-brand p{
  display:none!important;
}
@media(max-width:600px){
  .login-card .login-logo-large,
  .login-card .brand-icon img{
    width:min(220px,78%)!important;
    max-height:145px!important;
  }
}


/* ===== v0.8.7 — acabamento final do tema claro ===== */

/* Superfície geral */
.app-shell.light .workspace,
.app-shell.light .main-content{
  background:
    radial-gradient(circle at 75% -10%, rgba(42,117,255,.10), transparent 28%),
    linear-gradient(180deg,#f5f8fd 0%,#edf3fa 100%)!important;
  color:#10213a!important;
}

/* Header */
.app-shell.light .top-header{
  background:rgba(255,255,255,.96)!important;
  border-bottom:1px solid #d5e0ee!important;
  color:#10213a!important;
}
.app-shell.light .top-header h1,
.app-shell.light .top-header strong{
  color:#10213a!important;
}
.app-shell.light .top-header p,
.app-shell.light .top-header small{
  color:#647996!important;
}

/* Cards */
.app-shell.light .premium-kpi,
.app-shell.light .premium-card{
  background:linear-gradient(145deg,#ffffff,#f8fbff)!important;
  border:1px solid #d3deeb!important;
  box-shadow:0 8px 24px rgba(30,65,110,.08)!important;
}
.app-shell.light .premium-kpi-top > span,
.app-shell.light .premium-card-head p,
.app-shell.light .chart-y-labels,
.app-shell.light .chart-month > span,
.app-shell.light .performance-lines span,
.app-shell.light .ranking-item > span:last-child,
.app-shell.light .premium-table th{
  color:#647996!important;
}
.app-shell.light .premium-kpi > strong,
.app-shell.light .premium-card-head h2,
.app-shell.light .performance-lines strong,
.app-shell.light .conversion strong,
.app-shell.light .ranking-item strong,
.app-shell.light .premium-table td{
  color:#10213a!important;
}

/* Linhas, gráfico e tabelas */
.app-shell.light .chart-grid-lines i{
  border-top-color:#dce5f0!important;
}
.app-shell.light .bar-chart{
  border-left-color:#cbd8e8!important;
  border-bottom-color:#cbd8e8!important;
}
.app-shell.light .premium-table th,
.app-shell.light .premium-table td,
.app-shell.light .ranking-item,
.app-shell.light .performance-lines > div{
  border-color:#dce5f0!important;
}

/* Controles superiores */
.app-shell.light .dashboard-header-actions .dash-period,
.app-shell.light .dashboard-header-actions .dash-theme,
.app-shell.light .dashboard-header-actions .dash-notification{
  background:#fff!important;
  border-color:#cbd9ea!important;
  color:#314c70!important;
}
.app-shell.light .dashboard-header-actions .dash-period select{
  background:#fff!important;
  color:#10213a!important;
  color-scheme:light!important;
}
.app-shell.light .dashboard-header-actions .dash-period select option{
  background:#fff!important;
  color:#10213a!important;
}

/* Botões de ação */
.app-shell.light .quick-grid button:not(.quick-primary){
  background:#fff!important;
  border-color:#cbd9ea!important;
  color:#193554!important;
}
.app-shell.light .quick-grid button:not(.quick-primary):hover{
  background:#eef5ff!important;
  border-color:#7da9e8!important;
}

/* Campos e modais */
.app-shell.light input,
.app-shell.light textarea,
.app-shell.light select{
  background:#fff!important;
  color:#10213a!important;
  border-color:#c8d6e7!important;
}
.app-shell.light input::placeholder,
.app-shell.light textarea::placeholder{
  color:#8294ab!important;
}
.app-shell.light .panel,
.app-shell.light .modal-card{
  background:#fff!important;
  color:#10213a!important;
  border-color:#cbd9ea!important;
}

/* Mantém a navegação lateral premium escura também no tema claro */
.app-shell.light .sidebar{
  color:#d9e7fb!important;
}
.app-shell.light .sidebar strong,
.app-shell.light .sidebar h1,
.app-shell.light .sidebar h2{
  color:#fff!important;
}

/* Login em tema claro */
body:has(.login-card) .app-shell.light,
.app-shell.light .login-page{
  background:
    radial-gradient(circle at 50% 20%,rgba(38,116,255,.12),transparent 28%),
    #eef4fb!important;
}
.app-shell.light .login-card{
  background:#fff!important;
  border-color:#ccd9e9!important;
  box-shadow:0 24px 65px rgba(27,60,105,.13)!important;
  color:#10213a!important;
}
.app-shell.light .login-card label{
  color:#334c6d!important;
}
.app-shell.light .login-card input{
  background:#f8fbff!important;
  color:#10213a!important;
  border-color:#bdcee3!important;
}

/* Evita áreas brancas/pretas herdadas fora do shell */
.app-shell.light{
  background:#edf3fa!important;
}

/* =========================================================
   v0.9.1 — Mobile / tema claro / cadastros / fiscal
   ========================================================= */

/* Modal de produto/fiscal mais largo no desktop */
.modal.modal-wide{width:min(860px,calc(100vw - 48px))}
.product-modal .modal-body,.fiscal-modal .modal-body{padding:20px 22px}
.product-form{max-height:78vh;overflow:auto;padding-right:5px}
.product-main-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.select-with-action{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.mini-add-btn{height:36px;padding:0 12px;border:1px solid var(--border);border-radius:8px;background:var(--card2);color:var(--text);font-weight:700;font-size:11px;display:flex;align-items:center;gap:5px;white-space:nowrap}
.mini-add-btn:hover{border-color:#337cff;box-shadow:0 0 12px #1769ff44}
.product-fiscal-shortcut{display:flex;gap:12px;align-items:flex-start;padding:13px 14px;border:1px solid var(--border);border-radius:10px;background:var(--card2);color:var(--muted)}
.product-fiscal-shortcut>svg{color:#4790ff;flex:0 0 auto;margin-top:2px}
.product-fiscal-shortcut strong{display:block;color:var(--text);font-size:12px;margin-bottom:3px}
.product-fiscal-shortcut span{display:block;font-size:10px;line-height:1.45}
.fiscal-product-cell{display:flex;align-items:center;gap:10px;min-width:220px}
.fiscal-product-cell>div:last-child{min-width:0}
.fiscal-product-cell strong,.fiscal-product-cell small{display:block}
.fiscal-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800}
.fiscal-status.ok{background:#064e3b66;color:#34d399;border:1px solid #10b98155}
.fiscal-status.pending{background:#78350f55;color:#fbbf24;border:1px solid #f59e0b55}
.compact-btn{min-height:34px!important;height:34px!important;padding:0 10px!important;font-size:10px!important}
.fiscal-product-header{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--card2)}
.fiscal-product-header img,.fiscal-product-header>div:first-child{width:54px;height:54px;border-radius:10px;object-fit:cover;background:var(--input);display:grid;place-items:center}
.fiscal-product-header strong{display:block;font-size:14px}
.fiscal-product-header span{display:block;color:var(--muted);font-size:10px;margin-top:3px}

/* Tema claro realmente completo: sidebar também clara */
.app-shell.light{--sidebar:#f7fbff!important;--sidebar-line:#d3dfed!important}
.app-shell.light .sidebar{
  background:linear-gradient(180deg,#ffffff 0%,#f5f9ff 56%,#edf4fc 100%)!important;
  border-right-color:#cbd9ea!important;
  color:#183653!important;
  box-shadow:8px 0 30px rgba(35,72,116,.08)!important;
}
.app-shell.light .sidebar-brand{background:transparent!important;border-color:#d7e2ef!important}
.app-shell.light .sidebar .brand-icon{background:transparent!important}
.app-shell.light .sidebar-search{background:#fff!important;border-color:#cbd9ea!important;color:#58779d!important}
.app-shell.light .sidebar-search input{color:#173452!important}
.app-shell.light .sidebar-search input::placeholder{color:#8094ac!important}
.app-shell.light .nav-group-label{color:#5a7eac!important}
.app-shell.light .nav-item{color:#2f4d70!important}
.app-shell.light .nav-item svg{color:#5275a0!important}
.app-shell.light .nav-item:hover{background:#e8f2ff!important;color:#102d50!important}
.app-shell.light .nav-item:hover svg{color:#246fe8!important}
.app-shell.light .nav-item.active{color:#fff!important;background:linear-gradient(90deg,#1f6fff,#2d7fff)!important;box-shadow:0 0 10px #1670ff99,0 0 24px #1670ff44!important}
.app-shell.light .nav-item.active svg{color:#fff!important}
.app-shell.light .sidebar-promo{border-color:#82a9df!important;box-shadow:0 8px 24px #315d9915!important}
.app-shell.light .sidebar-footer-bottom{border-color:#d5e1ef!important;color:#657d9b!important}
.app-shell.light .sidebar-footer-bottom small{color:#8395aa!important}
.app-shell.light .logout-mini{color:#47688f!important}
.app-shell.light .sidebar strong,.app-shell.light .sidebar h1,.app-shell.light .sidebar h2{color:inherit!important}

/* Logo sempre reconhecível e clicável */
.sidebar-brand.brand-home{cursor:pointer;width:100%;border:0;color:inherit}
.sidebar-brand.brand-home:focus-visible{outline:2px solid #2d7fff;outline-offset:-3px}
.sidebar .brand-icon .custom-logo{object-fit:contain!important;display:block!important;opacity:1!important;visibility:visible!important}
.quote-logo-image .custom-logo{object-fit:contain!important}

/* Maior legibilidade no detalhe/assinatura */
.quote-client strong{font-size:13px}
.quote-client span{font-size:11px;line-height:1.45}
.quote-client label,.quote-notes label,.signature-area>label{font-size:11px}
.quote-table{font-size:12px}.quote-table th{font-size:10px}.quote-table td{font-size:12px}
.quote-notes p{font-size:12px;line-height:1.55}
.signature-pad p{font-size:12px;line-height:1.45}
.signed-ok{font-size:11px}

@media(max-width:900px){
  /* Drawer realmente rolável em Chrome/Safari iOS */
  .sidebar{
    position:fixed!important;
    top:0!important;bottom:auto!important;left:0!important;
    height:100vh!important;height:100dvh!important;
    max-height:100dvh!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
    padding-bottom:max(28px,env(safe-area-inset-bottom))!important;
    z-index:300!important;
  }
  .sidebar.open{transform:translateX(0)!important}
  .mobile-overlay{z-index:250!important}
  .sidebar-brand{flex:0 0 auto!important;min-height:108px!important;padding-top:max(16px,env(safe-area-inset-top))!important}
  .sidebar .brand-icon{width:150px!important;height:82px!important}
  .sidebar .brand-icon .custom-logo{width:150px!important;height:82px!important}
  .sidebar-search{flex:0 0 auto!important}
  .sidebar-nav{flex:0 0 auto!important;overflow:visible!important;padding-bottom:14px!important}
  .sidebar-promo{flex:0 0 auto!important}
  .sidebar-footer{flex:0 0 auto!important;margin-top:18px!important;padding-bottom:max(18px,env(safe-area-inset-bottom))!important}

  /* Tabelas ficam roláveis sem esmagar texto */
  .table-scroll{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  .data-table{min-width:720px}
  .data-table td strong{font-size:14px!important}
  .data-table td,.data-table th{line-height:1.4!important}
}

@media(max-width:700px){
  html,body,#root{width:100%!important;min-width:0!important}
  body{font-size:16px!important}
  .app-shell{min-height:100dvh!important;height:100dvh!important;overflow:hidden!important}
  .workspace{min-width:0!important;width:100%!important}
  .main-content{padding:16px 12px 34px!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important}

  /* Cabeçalho: safe area do iPhone + organização em duas linhas */
  .top-header{
    box-sizing:border-box!important;
    min-height:0!important;height:auto!important;
    padding-top:max(14px,env(safe-area-inset-top))!important;
    padding-right:14px!important;padding-bottom:14px!important;padding-left:14px!important;
    display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;
    grid-template-areas:"menu title" "actions actions"!important;
    gap:12px 10px!important;align-items:center!important;overflow:visible!important;
    position:relative!important;z-index:180!important;
  }
  .mobile-menu{grid-area:menu!important;width:48px!important;height:48px!important;border:1px solid var(--border)!important;border-radius:13px!important;background:var(--card)!important;color:var(--text)!important;place-items:center!important}
  .mobile-menu svg{width:25px!important;height:25px!important}
  .header-copy{grid-area:title!important;min-width:0!important;align-self:center!important}
  .header-copy h1{font-size:27px!important;line-height:1.05!important;margin:0!important;white-space:normal!important}
  .header-copy p{font-size:14px!important;line-height:1.3!important;margin-top:6px!important}
  .dashboard-header-actions{grid-area:actions!important;display:grid!important;grid-template-columns:minmax(0,1fr) 94px 50px!important;gap:10px!important;width:100%!important;margin:0!important;align-items:center!important}
  .dashboard-header-actions .dash-period{min-width:0!important;width:100%!important;height:50px!important;padding:0 11px!important;border-radius:14px!important}
  .dashboard-header-actions .dash-period select{min-width:0!important;width:100%!important;height:48px!important;font-size:15px!important;font-weight:750!important}
  .dashboard-header-actions .dash-theme{width:94px!important;min-width:94px!important;height:50px!important;border-radius:14px!important}
  .dashboard-header-actions .dash-theme>span{width:40px!important;height:40px!important}
  .dashboard-header-actions .dash-notification{width:50px!important;height:50px!important;border-radius:14px!important}
  .dashboard-header-actions .dash-profile{grid-column:1/-1!important;width:100%!important;min-height:60px!important;padding:8px 12px!important;margin:0!important;border:1px solid var(--border)!important;border-radius:14px!important;background:var(--card)!important}
  .dashboard-header-actions .profile-avatar{width:44px!important;height:44px!important;flex:0 0 44px!important}
  .dashboard-header-actions .dash-profile strong{font-size:16px!important}.dashboard-header-actions .dash-profile small{font-size:14px!important}

  .premium-kpis{gap:12px!important}.premium-kpi{min-height:132px!important;padding:18px!important;border-radius:16px!important}
  .premium-kpi-top>span{font-size:14px!important}.premium-kpi>strong{font-size:29px!important;margin-top:17px!important}.premium-kpi-delta{font-size:12px!important}
  .premium-card{border-radius:16px!important}.premium-card-head h2{font-size:17px!important}.premium-card-head p{font-size:12px!important}
  .quick-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}.quick-grid button{min-height:82px!important;font-size:13px!important}

  button,.primary-btn,.secondary-btn,.ghost-btn,.danger-btn,.link-btn{min-height:44px}
  input,select{height:46px!important;font-size:16px!important}textarea{font-size:16px!important;line-height:1.45!important}
  .field>span{font-size:13px!important}.hint,.muted{font-size:12px!important}

  .modal-overlay{padding:0!important;align-items:end!important;place-items:end center!important}
  .modal,.modal.modal-wide{width:100%!important;max-width:none!important;max-height:92dvh!important;overflow:auto!important;border-radius:19px 19px 0 0!important}
  .modal-head{position:sticky!important;top:0!important;z-index:5!important;background:var(--card)!important;padding:16px!important}
  .modal-head h3{font-size:17px!important}.modal-body{padding:17px!important}
  .product-main-grid,.form-grid-3{grid-template-columns:1fr!important}
  .select-with-action{grid-template-columns:minmax(0,1fr) 88px!important}

  .quote-detail-wrap{max-width:none!important;width:100%!important}.quote-paper{padding:20px 15px!important}.quote-client{grid-template-columns:1fr!important;gap:16px!important}
  .quote-client label,.quote-notes label,.signature-area>label{font-size:13px!important}.quote-client strong{font-size:16px!important}.quote-client span{font-size:13px!important}
  .quote-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}.quote-table{min-width:540px!important;font-size:13px!important}.quote-table th{font-size:12px!important}.quote-table td{font-size:13px!important}
  .quote-notes p{font-size:14px!important}.signature-pad{max-width:none!important;width:100%!important}.signature-pad canvas{height:190px!important}.signature-pad p{font-size:14px!important}.signed-ok{font-size:13px!important}
  .signature-pad .form-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}.signature-pad .form-actions button{min-height:48px!important;font-size:14px!important}.signature-pad .form-actions .ghost-btn{grid-column:1/-1!important}

  .notification-popover{top:calc(max(14px,env(safe-area-inset-top)) + 120px)!important;right:8px!important;left:8px!important;max-height:70dvh!important}
}

@media(max-width:390px){
  .main-content{padding-inline:10px!important}.top-header{padding-left:10px!important;padding-right:10px!important}
  .header-copy h1{font-size:24px!important}.dashboard-header-actions{grid-template-columns:minmax(0,1fr) 86px 48px!important}
  .quick-grid{grid-template-columns:1fr!important}.signature-pad .form-actions{grid-template-columns:1fr!important}.signature-pad .form-actions .ghost-btn{grid-column:auto!important}
}

/* Auto House v0.9.2 — Dashboard interativo */
.premium-kpi-clickable{font:inherit;color:inherit;text-align:left;width:100%;cursor:pointer;appearance:none;-webkit-appearance:none;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.premium-kpi-clickable:hover{transform:translateY(-2px);border-color:#2f75ff!important;box-shadow:0 10px 28px rgba(25,100,255,.15)}
.premium-kpi-clickable:active{transform:translateY(0) scale(.995)}
.dashboard-detail-modal{width:min(920px,94vw);max-height:min(760px,88dvh)}
.dashboard-detail-modal .modal-body{overflow:auto}
.metric-detail-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:4px 2px 18px;border-bottom:1px solid var(--border)}
.metric-detail-head>div:first-child{display:flex;flex-direction:column;gap:6px}.metric-detail-head span{color:var(--muted);font-size:12px}.metric-detail-head strong{font-size:28px}
.metric-detail-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.metric-detail-summary b{font-size:12px}
.metric-detail-list{display:flex;flex-direction:column;padding-top:8px}.metric-detail-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 8px;border-bottom:1px solid var(--border)}
.metric-detail-row>div{display:flex;flex-direction:column;gap:4px}.metric-detail-row>div:last-child{text-align:right;align-items:flex-end}.metric-detail-row span,.metric-detail-row small{font-size:12px;color:var(--muted)}
.metric-detail-budget{width:100%;background:transparent;color:inherit;border:0;font:inherit;text-align:left;cursor:pointer}.metric-detail-budget:hover{background:rgba(47,117,255,.07)}
/* A legenda agora fica dentro da área do gráfico, sem colidir com o subtítulo. */
.chart-legend{top:4px!important;left:8px!important;z-index:3;background:var(--card);padding:3px 7px;border-radius:7px}
.bar-chart{padding-top:20px}
/* Banner: preto no escuro; integrado ao dashboard no claro. */
.app-shell.light .exact-banner-card{background:transparent!important;border-color:transparent!important;box-shadow:none!important;overflow:hidden}
.app-shell.light .exact-banner-card img{display:block;width:100%;border-radius:14px}
@media(max-width:700px){
 .dashboard-detail-modal{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;margin:0!important}
 .dashboard-detail-modal .modal-body{max-height:calc(100dvh - 64px)!important;padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}
 .metric-detail-head{align-items:flex-start;flex-direction:column}.metric-detail-summary{justify-content:flex-start}
 .metric-detail-row{padding:16px 4px}.metric-detail-row>div:first-child{min-width:0}.metric-detail-row>div:first-child strong{font-size:15px}.metric-detail-row>div:last-child strong{font-size:15px}
 .premium-kpi-clickable{min-height:140px}
}


/* =========================================================
   Auto House v0.9.2c — Legibilidade Desktop
   Aumentos leves e controlados somente acima de 900px.
   O mobile mantém as regras próprias já existentes.
   ========================================================= */
@media (min-width:901px){

  /* Sidebar — mais confortável sem ficar "gigante" */
  .sidebar-search input{
    font-size:12px!important;
  }
  .nav-group-label{
    font-size:11px!important;
    letter-spacing:.115em!important;
  }
  .nav-item{
    font-size:14px!important;
    line-height:1.3!important;
    min-height:39px!important;
  }
  .sidebar-footer-bottom{
    font-size:10px!important;
  }
  .sidebar-footer-bottom small{
    font-size:9px!important;
  }

  /* Cabeçalho */
  .header-copy h1{
    font-size:27px!important;
  }
  .header-copy p{
    font-size:13px!important;
  }
  .dash-period select{
    font-size:11px!important;
  }
  .dash-profile strong{
    font-size:12px!important;
  }
  .dash-profile small{
    font-size:10px!important;
  }

  /* KPIs */
  .premium-kpi-top>span{
    font-size:12px!important;
  }
  .premium-kpi>strong{
    font-size:25px!important;
  }
  .kpi-delta,.kpi-delta b{
    font-size:10.5px!important;
  }

  /* Títulos e subtítulos dos cards */
  .premium-card-head h2{
    font-size:15px!important;
    line-height:1.25!important;
  }
  .premium-card-head p{
    font-size:11px!important;
    line-height:1.4!important;
  }
  .premium-card-head>button,.mini-filter{
    font-size:10.5px!important;
  }

  /* Gráficos */
  .chart-y-labels{
    font-size:10px!important;
  }
  .chart-month>span{
    font-size:10px!important;
  }
  .chart-legend{
    font-size:10.5px!important;
  }
  .status-legend>div{
    font-size:11px!important;
    line-height:1.3!important;
  }
  .performance-lines>div{
    font-size:11.5px!important;
  }
  .performance-lines strong{
    font-size:13px!important;
  }
  .conversion span{
    font-size:10.5px!important;
  }

  /* Ações rápidas */
  .quick-grid button{
    font-size:12px!important;
  }

  /* Produtos / serviços mais vendidos */
  .ranking-item{
    height:42px!important;
    font-size:11px!important;
  }
  .ranking-item strong{
    font-size:11px!important;
  }
  .ranking-item>span:last-child{
    font-size:10px!important;
  }

  /* Orçamentos recentes */
  .premium-table{
    font-size:11px!important;
  }
  .premium-table th{
    font-size:10px!important;
    padding-top:9px!important;
    padding-bottom:9px!important;
  }
  .premium-table td{
    font-size:11px!important;
    padding-top:11px!important;
    padding-bottom:11px!important;
  }
  .client-avatar{
    font-size:9px!important;
  }
}

/* Em monitores grandes, sobe só mais um pequeno degrau */
@media (min-width:1500px){
  .nav-item{font-size:14.5px!important}
  .premium-kpi-top>span{font-size:12.5px!important}
  .premium-card-head h2{font-size:15.5px!important}
  .premium-card-head p{font-size:11.5px!important}
  .premium-table{font-size:11.5px!important}
  .premium-table th{font-size:10.5px!important}
  .ranking-item strong{font-size:11.5px!important}
}


/* =========================================================
   Auto House v0.9.2e — Correção do campo de busca no mobile
   Corrige borda superior "cortada" em navegadores móveis.
   Desktop permanece inalterado.
   ========================================================= */
@media (max-width:700px){
  .sidebar-search{
    box-sizing:border-box!important;
    width:auto!important;
    height:46px!important;
    min-height:46px!important;
    border-width:1px!important;
    border-style:solid!important;
    border-radius:12px!important;
    overflow:hidden!important;
    background-clip:padding-box!important;
    position:relative!important;
    isolation:isolate!important;
  }

  .sidebar-search input{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
    background:transparent!important;
    padding:0!important;
    margin:0!important;
    appearance:none!important;
    -webkit-appearance:none!important;
  }

  .sidebar-search svg{
    flex:0 0 auto!important;
    position:relative!important;
    z-index:1!important;
  }

  .app-shell.light .sidebar-search{
    border-color:#cbd9ea!important;
    background:#fff!important;
  }

  .app-shell.dark .sidebar-search{
    border-color:#1a3766!important;
    background:#091830!important;
  }
}

/* =========================================================
   Auto House v0.9.3 — Visualização de produto
   Foto ampliável + ficha completa somente leitura.
   ========================================================= */
.product-photo-button,.product-name-button{
  appearance:none;-webkit-appearance:none;border:0;background:transparent;color:inherit;font:inherit;padding:0;margin:0
}
.product-photo-button{display:inline-flex;border-radius:8px;cursor:zoom-in;transition:transform .15s ease,box-shadow .15s ease}
.product-photo-button:hover{transform:scale(1.06);box-shadow:0 0 0 2px #2f75ff66,0 8px 20px #0003}
.product-name-button{font-weight:800;cursor:pointer;text-align:left;border-bottom:1px dashed transparent;transition:color .15s ease,border-color .15s ease}
.product-name-button:hover{color:#3b82f6;border-bottom-color:#3b82f688}

.product-lightbox{position:fixed;inset:0;z-index:10000;background:rgba(1,8,20,.88);backdrop-filter:blur(8px);display:grid;place-items:center;padding:28px;animation:productFade .16s ease}
.product-lightbox-content{position:relative;display:flex;flex-direction:column;align-items:center;gap:13px;max-width:min(1100px,94vw);max-height:90dvh}
.product-lightbox-content img{display:block;max-width:94vw;max-height:82dvh;width:auto;height:auto;object-fit:contain;border-radius:16px;background:#fff;box-shadow:0 30px 90px #000b}
.product-lightbox-caption{color:#fff;font-weight:800;font-size:16px;text-align:center;text-shadow:0 2px 8px #000}
.product-lightbox-close{position:fixed;top:max(18px,env(safe-area-inset-top));right:20px;width:46px;height:46px;border-radius:50%;border:1px solid #ffffff38;background:#09172fd9;color:#fff;display:grid;place-items:center;cursor:pointer;z-index:2}
.product-lightbox-close:hover{background:#15305d}
@keyframes productFade{from{opacity:0}to{opacity:1}}

.product-detail-modal{width:min(980px,calc(100vw - 52px))!important;max-height:90dvh}
.product-detail-modal .modal-body{overflow:auto;padding:22px 24px 26px}
.product-detail{display:flex;flex-direction:column;gap:18px}
.product-detail-hero{display:grid;grid-template-columns:112px minmax(0,1fr) auto;align-items:center;gap:18px;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--card2)}
.product-detail-photo{width:112px;height:96px;border-radius:12px;border:1px solid var(--border);overflow:hidden;background:var(--input);padding:0;display:grid;place-items:center;cursor:zoom-in}
.product-detail-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .18s ease}
.product-detail-photo:hover img{transform:scale(1.05)}
.product-detail-photo.empty{color:var(--muted);cursor:default}
.product-detail-title{min-width:0}
.product-detail-kicker{display:inline-block;color:#4a90ff;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}
.product-detail-title h2{font-size:23px;line-height:1.15;margin:0;color:var(--text)}
.product-detail-title p{font-size:12px;color:var(--muted);margin:7px 0 0}
.product-detail-edit{white-space:nowrap;display:inline-flex;gap:7px;align-items:center;justify-content:center}
.product-detail-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.product-info-item{min-width:0;padding:12px 13px;border:1px solid var(--border);border-radius:11px;background:var(--card2)}
.product-info-item span{display:block;color:var(--muted);font-size:10px;font-weight:700;margin-bottom:5px}
.product-info-item b{display:block;color:var(--text);font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.product-info-item.strong{border-color:#2f75ff80;background:linear-gradient(135deg,#1769ff14,var(--card2))}
.product-info-item.strong b{color:#3b82f6;font-size:15px}
.product-detail-section{padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--card)}
.product-detail-section h4{font-size:13px;margin:0 0 12px;color:var(--text)}
.product-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.product-detail-grid.fiscal{grid-template-columns:repeat(4,minmax(0,1fr))}
.product-detail-note{padding:13px 14px;border-radius:10px;background:var(--card2);border:1px solid var(--border);color:var(--text);font-size:12px;line-height:1.55;white-space:pre-wrap}

@media(max-width:900px){
  .product-detail-modal{width:100%!important;max-width:none!important;max-height:94dvh!important}
  .product-detail-modal .modal-body{padding:17px!important}
  .product-detail-hero{grid-template-columns:84px minmax(0,1fr);gap:13px;padding:13px}
  .product-detail-photo{width:84px;height:78px}
  .product-detail-edit{grid-column:1/-1;width:100%;min-height:46px}
  .product-detail-title h2{font-size:20px}
  .product-detail-title p{font-size:12px}
  .product-detail-summary{grid-template-columns:1fr 1fr}
  .product-detail-summary .product-info-item:last-child{grid-column:1/-1}
  .product-detail-grid,.product-detail-grid.fiscal{grid-template-columns:1fr 1fr}
  .product-info-item span{font-size:11px!important}.product-info-item b{font-size:13px!important}
  .product-lightbox{padding:16px}.product-lightbox-content img{max-width:96vw;max-height:78dvh;border-radius:12px}
}
@media(max-width:430px){
  .product-detail-grid,.product-detail-grid.fiscal{grid-template-columns:1fr}
  .product-detail-summary{grid-template-columns:1fr 1fr}
  .product-detail-title h2{font-size:18px}
}
