.nav-dropdown{position:relative;align-self:stretch}
.nav-dropdown summary{height:100%;display:flex;align-items:center;gap:5px;padding:0 .7rem;color:#fff;cursor:pointer;list-style:none}
.nav-dropdown summary::-webkit-details-marker{display:none}
.nav-dropdown summary:hover,.nav-dropdown[open] summary{background:#ffffff20;border-radius:5px}
.nav-dropdown-menu{position:absolute;z-index:100;top:46px;left:0;width:210px;padding:6px 0;background:#fff;border:1px solid #ccd4dc;border-radius:5px;box-shadow:0 10px 25px #1720332b}
.topbar nav .nav-dropdown-menu a{display:block;padding:10px 14px;color:#34465a;background:#fff;white-space:nowrap}
.topbar nav .nav-dropdown-menu a:hover{background:#f2f5f8;border-radius:0;color:var(--dark)}
.billing-forms{display:grid;grid-template-columns:minmax(260px,.65fr) minmax(650px,2fr);gap:12px}
.billing-forms h2,.card>h2{margin:0 0 14px;font-size:16px}
.compact-form{display:grid;gap:12px;align-content:start}
.store-form{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:12px;align-items:end}
.store-form h2{grid-column:1/-1}
.inactive-row td{background:#eef1f4}
.status-pill{display:inline-block;padding:3px 7px;border-radius:4px;color:#fff;font-size:10px;font-weight:700}
.is-active{background:#15935b}
.is-inactive{background:#697784}
.dense-table{font-size:12px}
.mini-action{display:inline-flex;width:30px;height:30px;min-height:30px;padding:0;align-items:center;justify-content:center;border-radius:8px;font-size:16px}
.actions .mini-action.action-edit{background:#ffba08;border:1px solid #d99b00;color:#172033}
.actions .mini-action.action-delete{background:#dc3545;border:1px solid #dc3545;color:#fff}
.billing-tabs{display:flex;gap:6px;margin:0 0 12px;padding:5px;background:#e7edf4;border:1px solid var(--border);border-radius:10px}
.billing-tab{flex:1;max-width:180px;min-height:44px;display:flex;align-items:center;justify-content:center;padding:10px 18px;border-radius:7px;color:#52677f;font-weight:700}
.billing-tab:hover{background:#ffffff90}
.billing-tab.is-current{background:#fff;color:var(--dark);box-shadow:0 2px 8px #17203318}
.billing-tab-panel{min-width:0}
.group-form{max-width:520px}
.billing-panel-actions{display:flex;justify-content:flex-end;margin:0 0 12px}
.billing-create-action{display:inline-flex;min-height:44px;padding:0 18px;border-radius:8px;align-items:center;justify-content:center}
.billing-filters{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:12px;align-items:end;margin:0 0 8px}
.billing-filter-field{display:grid;gap:6px;color:var(--dark);font-size:12px;font-weight:700}
.billing-filters select,.billing-filters input{min-height:38px;padding:0 14px;border:1px solid #cfd8e3;border-radius:12px;background:#fff;color:var(--dark);font-size:14px}
.group-filters{grid-template-columns:repeat(3,minmax(170px,1fr)) auto}
.billing-filters-clear{display:flex;justify-content:flex-end;margin:0 0 14px}
.billing-filters-actions{display:flex;gap:10px;flex-wrap:wrap}
.billing-filters-clear .secondary,.billing-filters-actions .secondary{min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 16px;border:1px solid var(--border);border-radius:12px;background:#fff;color:#52677f;font-weight:700}
.stores-table-wrap{overflow:auto}
.stores-table{width:max-content;min-width:100%;table-layout:fixed}
.stores-table .store-name-col{width:112px}
.stores-table thead th{position:sticky;top:52px;z-index:4;background:#f4f6f8;text-transform:uppercase}
.billing-tab-panel table thead th{background:var(--blue);color:#fff}
.stores-table td{text-transform:uppercase}
.stores-table .store-name-column,.stores-table .store-name-cell{width:112px;min-width:112px;max-width:112px}
.stores-table .store-name-column{padding-left:10px}
.stores-table .store-name-cell{overflow:hidden;position:relative}
.stores-table .store-name-text{display:block;width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative;z-index:2}
.stores-table tbody td:not(.store-name-cell):not(.actions){text-align:center}
.stores-table .table-head-center{text-align:center}
.stores-table .table-cell-center{text-align:center}
.stores-table .head-break{display:block;line-height:1.1}
.stores-table .group-column{width:72px;min-width:72px;max-width:72px}
.stores-table .everest-code-column{width:72px;min-width:72px;max-width:72px}
.stores-table .group-everest-column{width:74px;min-width:74px;max-width:74px}
.stores-table .type-column{width:86px;min-width:86px;max-width:86px}
.stores-table .active-column{width:70px;min-width:70px;max-width:70px}
.stores-table .group-active-column{width:74px;min-width:74px;max-width:74px}
.stores-table .goals-column,.stores-table .goals-cell{width:116px;min-width:116px;max-width:116px}
.stores-table .goals-cell{overflow:visible;position:relative}
.stores-table .goals-text{display:inline-block;min-width:116px;width:max-content;max-width:none;overflow:visible;white-space:nowrap;position:relative;z-index:2;margin:0 auto}
.stores-table .pdv-column{width:44px;min-width:44px;max-width:44px}
.stores-table .koop-column{width:74px;min-width:74px;max-width:74px}
.stores-table .cnpj-column{width:128px;min-width:128px;max-width:128px}
.stores-table th:last-child,.stores-table td.actions,.stores-table .actions-column{width:96px;min-width:96px;max-width:96px}
.stores-table td.actions{justify-content:center}
.stores-table .actions,.stores-table .actions *,.stores-table .status-pill{text-transform:none}
.report-page-head{gap:16px}.report-head-actions{display:flex;gap:8px;align-items:flex-start}.report-export,.report-import>summary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;font-weight:700}.report-export{border:0;background:linear-gradient(90deg,var(--dark),var(--blue));color:#fff}.report-import{position:relative}.report-import>summary{cursor:pointer;list-style:none}.report-import>summary::-webkit-details-marker{display:none}.report-import form{position:absolute;z-index:20;top:48px;right:0;width:min(360px,calc(100vw - 24px));display:grid;gap:12px;padding:16px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 30px #1720332b}.report-import label{display:grid;gap:5px;color:var(--dark);font-size:12px;font-weight:700}.report-import select,.report-import input[type=file]{width:100%;min-height:42px;padding:8px;border:1px solid #cfd8e3;border-radius:8px;background:#fff}.report-import small{color:var(--muted);line-height:1.4}.report-filters{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr)) auto;gap:12px;align-items:end}.report-filter-actions{display:flex;gap:8px}.report-filter-actions>*{min-height:38px;white-space:nowrap}.report-metrics{display:grid;grid-template-columns:repeat(5,minmax(160px,1fr));gap:12px;margin-bottom:12px}.report-metrics article{min-width:0;padding:18px;background:#fff;border:1px solid var(--border);border-radius:10px}.report-metrics span{display:block;color:var(--muted);font-size:12px}.report-metrics strong{display:block;margin:8px 0 5px;font-size:23px;white-space:nowrap}.report-metrics small{font-size:11px}.report-metrics .metric-highlight{border-color:#9bc9f4;background:#f2f8fe}.positive{color:#11834e}.negative{color:#c63443}.report-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.report-section-head h2{margin:0;font-size:17px}.report-section-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.daily-chart{height:280px;display:flex;align-items:flex-end;gap:6px;overflow-x:auto;padding:34px 8px 3px;border-bottom:1px solid var(--border)}.daily-chart-column{position:relative;display:flex;flex:0 0 34px;height:100%;align-items:center;justify-content:flex-end;flex-direction:column;gap:6px}.daily-chart-bar{width:22px;min-height:2px;border-radius:5px 5px 0 0;background:linear-gradient(180deg,var(--blue),var(--dark))}.daily-chart-column time{font-size:9px;color:var(--muted);white-space:nowrap;transform:rotate(-45deg);transform-origin:center}.daily-chart-value{display:none}.daily-chart-column:hover .daily-chart-value{display:block;position:absolute;z-index:3;top:-28px;padding:4px 6px;border-radius:4px;background:var(--ink);color:#fff;font-size:10px;white-space:nowrap}.report-table{min-width:980px;font-size:12px}.report-table thead th{position:sticky;top:0;background:var(--blue);color:#fff}.report-table td:nth-child(n+5),.report-table th:nth-child(n+5){text-align:right}.report-table tfoot th{background:#e9eff5;color:var(--dark);border-top:2px solid #b5c3d2}.report-table tfoot th:first-child{text-align:left}
@media(max-width:1100px){.billing-forms{grid-template-columns:1fr}.store-form{grid-template-columns:repeat(2,1fr)}.billing-filters,.group-filters{grid-template-columns:repeat(2,minmax(160px,1fr))}}
@media(max-width:1200px){.report-filters{grid-template-columns:repeat(3,1fr)}.report-metrics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.nav-dropdown{flex:1 1 150px}.nav-dropdown summary{min-height:44px;justify-content:center}.nav-dropdown-menu{top:100%;left:0;max-width:calc(100vw - 24px)}}
@media(max-width:650px){.store-form{grid-template-columns:1fr}.billing-panel-actions{justify-content:stretch}.billing-create-action{width:100%}.billing-filters{grid-template-columns:1fr}.billing-filters input,.billing-filters select{min-height:44px;font-size:16px}.billing-filters-actions>*{width:100%}.billing-filters-clear{justify-content:stretch}.billing-filters-clear .secondary{width:100%}.report-page-head{align-items:stretch;flex-direction:column}.report-head-actions{display:grid;grid-template-columns:1fr 1fr}.report-export,.report-import>summary{width:100%}.report-import form{position:fixed;top:70px;right:12px;left:12px;width:auto}.report-import select,.report-import input[type=file]{min-height:44px;font-size:16px}.report-filters,.report-metrics{grid-template-columns:1fr}.report-filters input,.report-filters select{min-height:44px;font-size:16px}.report-filter-actions{display:grid;grid-template-columns:1fr 1fr}.report-filter-actions>*{min-height:44px;display:flex;align-items:center;justify-content:center}.report-metrics article{padding:15px}.report-chart-card,.report-detail-card{padding:12px}.daily-chart{height:240px}.report-table-wrap{margin-inline:-12px;padding-inline:12px}}
