/* Nossa História V4.3 — área gerencial com navegação lateral e métricas */
.dashboard-shell{width:min(1530px,calc(100% - 44px));}
.dashboard-shell>.app-header{padding:18px 0 19px;min-height:75px}
.dashboard-shell>.app-header .header-user{font-size:12px;color:#efc8dc;padding:9px 12px;background:#f7e8f207;border-radius:40px;border:1px solid #f1c5d828}
.dashboard-shell .app-header nav{align-items:center}
.dashboard-shell>main{padding-top:26px}
.dashboard-layout{display:grid;grid-template-columns:244px minmax(0,1fr);gap:29px;align-items:start;min-height:74vh}
.dashboard-sidebar{position:sticky;top:23px;align-self:start;border:1px solid #ba8aab59;border-radius:22px;background:linear-gradient(165deg,#3c243f 0%,#251729 100%);box-shadow:0 18px 40px #0b06102a;overflow:hidden}
.sidebar-header{display:flex;flex-direction:column;gap:7px;padding:26px 23px 21px;border-bottom:1px solid #efb9d01d}
.sidebar-kicker{color:#ffc5da;font-size:9px;letter-spacing:.17em;font-weight:800}
.sidebar-header strong{font-size:21px;color:#fff0f5;letter-spacing:-.5px}
.sidebar-header small{font-size:12px;color:#c6a8bb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-links{display:flex;flex-direction:column;gap:4px;padding:16px 12px}
.sidebar-link{display:flex;align-items:center;gap:12px;min-height:45px;padding:10px 13px;border-radius:12px;color:#e3c7d8;text-decoration:none;font-size:13px;font-weight:650;border:1px solid transparent}
.sidebar-link>span:first-child{font-size:18px;display:inline-flex;align-items:center;justify-content:center;width:24px;flex:none}
.sidebar-link:hover{color:#fff;border-color:#ffc5dd35;background:#fbd5ea12}
.sidebar-link.is-active{background:linear-gradient(100deg,#eeb8d6,#ffdfcb);color:#4a2b42;font-weight:850;box-shadow:0 8px 23px #f1b0d01a}
.sidebar-foot{border-top:1px solid #efb9d01d;padding:18px 23px 23px;display:flex;flex-direction:column;gap:11px;font-size:11px;color:#bba5b7;line-height:1.5}
.sidebar-foot a{color:#ffd1e0;text-decoration:none;font-size:12px;font-weight:800}
.dashboard-main{min-width:0}
.dashboard-main>.card:first-of-type{margin-top:16px}
.dashboard-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:26px}
.dashboard-heading h1{font-size:clamp(29px,4vw,44px);letter-spacing:-1.5px;margin:8px 0 8px}
.dashboard-heading p{font-size:13px;margin:0;max-width:690px;line-height:1.6}
.period-pill{flex:none;border:1px solid #eeb7d056;border-radius:22px;background:#3b2741;padding:9px 14px;color:#f6d6e5;font-size:12px;font-weight:750}
.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.dashboard-kpi{display:flex;min-height:160px;flex-direction:column;align-items:flex-start;gap:9px;border:1px solid #a16c8d7a;border-radius:18px;background:linear-gradient(140deg,#382340,#24162a);padding:20px;min-width:0;box-shadow:0 13px 26px #1307191c}
.dashboard-kpi .kpi-icon{display:grid;place-items:center;width:39px;height:39px;background:#fbc9de14;border:1px solid #ffb8d129;border-radius:12px;font-size:20px;margin-bottom:2px}
.dashboard-kpi small{font-size:11px;font-weight:750;color:#ebcbd9;line-height:1.4}
.dashboard-kpi strong{font-size:clamp(19px,2vw,29px);color:#fff0f3;letter-spacing:-.5px;line-height:1.16;max-width:100%;overflow-wrap:anywhere}
.dashboard-kpi>span:last-child{color:#c6abbd;font-size:10px;line-height:1.4}
.dashboard-charts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}
.dashboard-chart{margin:0!important;min-width:0;overflow:hidden;padding:24px 23px}
.chart-title{display:flex;align-items:start;justify-content:space-between;gap:12px}
.chart-title h2{font-size:18px;margin:0 0 7px}
.chart-title p{font-size:11px;margin:0}
.chart-title b{font-size:12px;color:#ffcfdf;white-space:nowrap;margin-top:2px}
.dashboard-bars{display:flex;align-items:stretch;gap:3px;height:200px;overflow:hidden;border-bottom:1px solid #a8739355;margin-top:22px}
.dashboard-bar-column{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;min-width:0;height:100%}
.dashboard-bar{height:2%;max-height:calc(100% - 22px);width:min(80%,19px);min-width:3px;border-radius:6px 6px 1px 1px;background:linear-gradient(#ffe2ed,#b96395);opacity:.95;min-height:2px}
.dashboard-bar.revenue{background:linear-gradient(#ffe7c2,#edb58f)}
.dashboard-bar-column small{font-size:8px;color:#c4a4b9;line-height:14px;height:14px}
.dashboard-shortcuts h2{font-size:21px}
.shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:20px}
.shortcut-grid a{display:flex;flex-direction:column;gap:10px;padding:19px 18px;background:#1b1223;border:1px solid #ab7a9a66;border-radius:16px;text-decoration:none}
.shortcut-grid strong{font-size:29px;color:#fff0f5}
.shortcut-grid span{font-size:12px;color:#f7cfdf;line-height:1.4}
.admin-filter-card{margin-top:0!important}
.admin-filter-card .panel-heading{align-items:start}
.admin-filter-card .panel-heading p{font-size:12px;margin:7px 0 0}
.admin-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin:18px 0 20px}
.admin-filters label{min-width:130px;flex:1;font-size:11px}
.admin-filters .filter-search{min-width:min(100%,230px);flex:2.2}
.admin-filters input,.admin-filters select{height:45px;min-height:45px;font-size:12px}
.admin-filters .button{height:45px;min-height:45px}
.dashboard-main .table-wrap{overflow-x:auto;border-radius:10px}
.dashboard-main table{min-width:920px}
.dashboard-main td{padding:15px 12px;font-size:12px;vertical-align:top;line-height:1.5}
.dashboard-main th{font-size:10px;letter-spacing:.025em;text-transform:uppercase;padding:14px 12px;color:#ffd3e2;white-space:nowrap}
.dashboard-main td strong{font-weight:800;color:#fff0f7}
.dashboard-main td small{margin-top:4px;color:#bda3b8;font-size:10px}
.admin-chip{display:inline-flex;border-radius:22px;font-size:10px;font-weight:800;padding:6px 9px;white-space:nowrap}
.admin-chip.is-good{color:#bdffe0;background:#1a624263}
.admin-chip.is-danger{color:#ffd4d4;background:#7c303a8a}
.admin-chip.is-waiting{color:#ffe5b7;background:#7251245c}
.admin-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:132px}
.admin-actions form{margin:0;display:flex;gap:6px;align-items:center;max-width:250px}
.admin-actions .button{font-size:11px;min-height:35px;white-space:normal}
.admin-actions .admin-grant{flex-wrap:wrap}
.admin-grant select{min-width:130px;width:auto;min-height:37px;font-size:11px;padding:6px}
.whatsapp-btn{background:#155c40!important;color:#ddffe8!important;border:1px solid #1e9b67!important}
.admin-pages{display:flex;justify-content:flex-end;align-items:center;gap:13px;margin-top:22px;font-size:12px;color:#eac8da}
.empty-state{padding:18px;color:#cbaabd;font-size:13px}
.dashboard-menu-toggle,.dashboard-backdrop{display:none}
.dashboard-main .customer-hero{margin-top:7px}
.dashboard-main .customer-site-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-main .customer-stats{gap:12px}
.dashboard-main .customer-tip{background:#ffeff607}
.dashboard-main #inicio,.dashboard-main #criar,.dashboard-main #surpresas,.dashboard-main #compras{scroll-margin-top:23px}
@media(max-width:1220px){.dashboard-layout{grid-template-columns:210px minmax(0,1fr);gap:19px}.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar-header{padding:22px 17px}.sidebar-link{font-size:12px}.dashboard-kpi{min-height:145px}.dashboard-main .customer-site-list{grid-template-columns:1fr}}
@media(max-width:920px){.dashboard-charts{grid-template-columns:1fr}.dashboard-shell{width:calc(100% - 28px)}.dashboard-layout{grid-template-columns:1fr;gap:0}.dashboard-menu-toggle{display:inline-flex;align-items:center;gap:8px;position:relative;z-index:100;min-height:42px;margin-bottom:16px;padding:9px 14px;color:#fff1f6;font-weight:800;background:#52344f;border:1px solid #ad84a3;border-radius:13px;cursor:pointer}.dashboard-sidebar{position:fixed;z-index:203;left:0;top:0;bottom:0;width:min(84vw,300px);border-radius:0 21px 21px 0;overflow-y:auto;transform:translateX(-105%);transition:transform .22s ease}.dashboard-backdrop{display:block;position:fixed;inset:0;background:#08040cbb;opacity:0;pointer-events:none;z-index:202;transition:opacity .2s}.sidebar-open .dashboard-sidebar{transform:translateX(0)}.sidebar-open .dashboard-backdrop{opacity:1;pointer-events:auto}.sidebar-open{overflow:hidden}.dashboard-heading{margin-bottom:20px}.dashboard-shell .app-header nav{gap:6px}}
@media(max-width:640px){.dashboard-shell{width:calc(100% - 24px)}.dashboard-shell>.app-header{min-height:58px}.dashboard-shell .header-user{display:none}.dashboard-shell .app-header nav a{font-size:12px}.dashboard-main .card{padding:18px}.dashboard-kpis{gap:10px}.dashboard-kpi{padding:15px;min-height:149px;border-radius:14px}.dashboard-kpi .kpi-icon{width:32px;height:32px;font-size:17px}.dashboard-kpi strong{font-size:19px}.dashboard-kpi small{font-size:10px}.dashboard-heading{align-items:flex-start;gap:7px}.dashboard-heading h1{font-size:31px}.dashboard-heading p{font-size:12px}.period-pill{font-size:10px;padding:6px 9px}.dashboard-chart{padding:17px!important}.dashboard-bars{height:155px;gap:1px}.dashboard-bar-column small{font-size:7px}.shortcut-grid{grid-template-columns:1fr;gap:10px}.shortcut-grid a{padding:13px 16px}.shortcut-grid strong{font-size:24px}.admin-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.admin-filters .filter-search{grid-column:1/-1}.admin-filters .button{width:100%}.dashboard-main .customer-site-list{grid-template-columns:1fr}.dashboard-main .customer-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-main .table-wrap{margin:0 -4px}.dashboard-main .panel-heading{gap:10px}.dashboard-main .panel-heading h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.dashboard-sidebar,.dashboard-backdrop{transition:none}}
