/* Inserisci qui il tuo CSS personalizzato quando vuoi */

.customer-link-electric{color:#0a3fc7 !important;font-weight:700;text-decoration:none}
.customer-link-electric:hover{text-decoration:underline}

.erp-form-grid{display:grid;gap:12px;align-items:end}
.erp-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.erp-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.erp-form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.erp-form-grid.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.erp-form-grid.six{grid-template-columns:repeat(6,minmax(0,1fr))}
.field{min-width:0}
.field-span-2{grid-column:span 2}
.field-span-3{grid-column:span 3}
.field-actions-inline{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.field-actions-inline button,.field-actions-inline .btn{margin:0}

.customers-filter-panel .panel-inner{padding-top:14px}
.customers-filter-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.customers-filter-actions{justify-content:flex-start}
.customers-main-panel .table-wrap{max-width:100%}
.customers-bottom-grid{align-items:start}

.customers-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.customers-kpi-colored .kpi-card{border:0;color:#fff;padding:16px 18px}
.customers-kpi-colored .kpi-card .label,.customers-kpi-colored .kpi-card .sub{color:rgba(255,255,255,.92)}
.customers-kpi-colored .kpi-card .value{color:#fff}
.kpi-tone-blue{background:linear-gradient(#6ea5d8,#4f89c1)}
.kpi-tone-green{background:linear-gradient(#69bf52,#4da53b)}
.kpi-tone-slate{background:linear-gradient(#5d667d,#39455d)}
.kpi-tone-amber{background:linear-gradient(#efac16,#de9200)}
.kpi-tone-violet{background:linear-gradient(#8774c9,#6752ad)}

.btn.btn-light,.btn-light{background:linear-gradient(#ffffff,#ececec);border:1px solid #cccccc;color:#444;text-decoration:none;padding:10px 12px;border-radius:0;display:inline-flex;align-items:center}
.compact-list{display:flex;flex-direction:column;gap:10px}
.mini-line{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid #eef1f4;padding-bottom:8px}
.mini-line:last-child{border-bottom:none;padding-bottom:0}
.status-dot{display:inline-block;padding:4px 8px;border-radius:0;font-size:12px;text-transform:capitalize}
.status-attivo{background:#e8f7eb;color:#247443}
.status-normale{background:#eef3f8;color:#4c6077}
.status-inattivo{background:#f3f4f6;color:#6a717d}
.status-problemi_aperti{background:#fff0dd;color:#9a5c00}
.customer-form-stack .panel,.customer-tabs-shell,.nested-panel{margin-bottom:0}
.customer-form-grid{align-items:start}
.customer-form-head-grid{align-items:start}
.customer-form-footer{justify-content:flex-start}
.customer-note-box{line-height:1.6;min-height:88px}

.customer-tabs-shell{padding:0}
.customer-tabs-nav{display:flex;gap:8px;padding:14px 14px 0;border-bottom:1px solid #e7eaef;flex-wrap:wrap}
.customer-tab-btn{background:linear-gradient(#ffffff,#ececec);border:1px solid #d6dbe2;padding:9px 12px;border-radius:0;cursor:pointer}
.customer-tab-btn.active{background:#fff;border-bottom-color:#fff;color:#0a3fc7}
.customer-tab-panel{display:none;padding:14px}
.customer-tab-panel.active{display:block}
.pager-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}

.customer-detail-kpi-grid{margin-bottom:16px}
.customer-detail-top-grid,.customer-detail-side-grid,.customer-devices-grid,.customer-notes-grid{align-items:start}

@media (max-width:1400px){
  .customers-filter-grid,.erp-form-grid.six{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:1200px){
  .customers-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .erp-form-grid.four,.erp-form-grid.five{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .customers-filter-grid,.erp-form-grid.six,.erp-form-grid.five,.erp-form-grid.four,.erp-form-grid.three,.erp-form-grid.two{grid-template-columns:1fr 1fr}
  .field-span-2,.field-span-3{grid-column:span 2}
}
@media (max-width:760px){
  .customers-kpi-grid{grid-template-columns:1fr 1fr}
  .customers-filter-grid,.erp-form-grid.six,.erp-form-grid.five,.erp-form-grid.four,.erp-form-grid.three,.erp-form-grid.two{grid-template-columns:1fr}
  .field-span-2,.field-span-3{grid-column:span 1}
}


.customers-kpi-colored .kpi-card{min-height:104px;border-radius:0 !important;display:flex;flex-direction:column;justify-content:flex-start;box-shadow:none !important}
.customers-kpi-colored .kpi-card .label{font-size:12px;text-transform:uppercase;font-weight:700;letter-spacing:.02em}
.customers-kpi-colored .kpi-card .value{font-size:34px;line-height:1.1;margin-bottom:6px}
.customers-kpi-colored .kpi-card .sub{font-size:12px}
.kpi-tone-blue{background:#5d9bd3 !important}
.kpi-tone-green{background:#61b74a !important}
.kpi-tone-slate{background:#4d576d !important}
.kpi-tone-amber{background:#e3a10b !important}
.kpi-tone-violet{background:#6d5bb1 !important}
.btn-whatsapp{background:#2bb741;color:#fff;border:1px solid #23963a}
.customer-form-split{align-items:start}
#companyOnlySections{display:grid}
.customer-private-tax-panel{display:block}

.customers-kpi-grid-four{grid-template-columns:repeat(4,minmax(0,1fr));}
@media (max-width:1100px){.customers-kpi-grid-four{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:700px){.customers-kpi-grid-four{grid-template-columns:1fr;}}

/* Repairs form refinement */
.repair-form-page label{color:#33455d;font-weight:700}
.error-panel{border-color:#d69b9b;background:#fff4f4}
.error-panel .panel-inner{color:#8b2c2c;font-weight:600}
.repair-cost-panel{background:linear-gradient(180deg,#faf8f2 0%,#f1ece2 100%);border:1px solid #d8cfbd}
.cost-panel-title{background:linear-gradient(#fbfaf7,#ece5d7);color:#2c3340}
.cost-panel-inner{padding:16px}
.cost-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:14px 16px;margin-bottom:14px;background:#fff;border:1px solid #d9e2ec}
.cost-hero-label{font-size:12px;text-transform:uppercase;color:#51657d;font-weight:700;letter-spacing:.04em}
.cost-hero-value{display:flex;align-items:flex-start;gap:8px;color:#17395d}
.cost-hero-value span{font-size:26px;line-height:1.1;font-weight:700;margin-top:8px}
.cost-hero-value strong{font-size:46px;line-height:1;font-weight:800}
.cost-hero-sub{font-size:12px;color:#64758a;margin-top:6px}
.readonly-total{display:none}
.selected-parts-list{border:1px solid #d8d8d8;background:#fff;min-height:56px;padding:8px 10px}
.selected-parts-list .part-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #eef2f6;padding:10px 0}
.selected-parts-list .part-row:last-child{border-bottom:none}
.part-row-right{display:flex;align-items:center;gap:12px}
.part-line-total{font-weight:700;color:#17395d;min-width:72px;text-align:right}
.repair-modal-window.xxl{width:min(1380px,97vw)}
.parts-search-grid{align-items:end}
.parts-modal-table-wrap{border:1px solid #d8d8d8;background:#fff;max-height:420px;overflow:auto}
.parts-table{width:100%;border-collapse:collapse}
.parts-table th{position:sticky;top:0;background:#eef3f8;z-index:2}
.parts-table td,.parts-table th{padding:10px 12px;border-bottom:1px solid #e8edf3;vertical-align:middle}
.parts-name{font-weight:700;color:#243c5b}
.small{font-size:12px}
.parts-modal-bottom{margin-top:14px}
.selected-parts-panel .panel-inner{padding:10px 12px}
.inline-preview{margin-top:8px;color:#0b51b3;font-weight:700}
@media (max-width: 900px){
  .cost-hero{flex-direction:column;align-items:flex-start}
  .cost-hero-value strong{font-size:38px}
}

.repair-detail-grid{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:14px;align-items:start;margin-bottom:14px}
.repair-detail-bottom{align-items:start}
.repair-premium-panel{border-color:#cdbfa3;background:linear-gradient(180deg,#faf8f2 0%,#f2eadc 100%)}
.repair-premium-inner{padding:18px}
.repair-total-box{padding:16px 18px;border:1px solid #d8cfbd;background:#fff8ec;margin-bottom:14px}
.repair-total-label{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#5b6270;font-weight:700}
.repair-total-value{font-size:44px;line-height:1;font-weight:800;color:#1f3653;margin:8px 0}
.repair-total-sub{font-size:12px;color:#6b7380}
.repair-economy-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.metric-line{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;background:#fff;border:1px solid #ddd4c5;font-weight:600;color:#2f3d4f}
.metric-line strong{color:#132f55}
.repair-sale-banner{margin-top:14px;padding:12px 14px;background:#fff;border:1px solid #d8cfbd;color:#39495c}
.repair-text-stack{display:flex;flex-direction:column;gap:12px}
.repair-copy-box{margin-top:6px;padding:10px 12px;border:1px solid #e1e5ea;background:#fff;min-height:48px;line-height:1.55}
.panel-title-actions{display:flex;justify-content:space-between;align-items:center}
.inline-part-add-form{display:inline-flex;margin:0}
@media (max-width:1200px){.repair-detail-grid{grid-template-columns:1fr 1fr}}
@media (max-width:800px){.repair-detail-grid{grid-template-columns:1fr}.repair-economy-grid{grid-template-columns:1fr}.panel-title-actions{flex-direction:column;align-items:flex-start;gap:8px}}


.inventory-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:16px}
.inventory-kpi-colored .kpi-card{min-height:104px;border-radius:0 !important;display:flex;flex-direction:column;justify-content:flex-start;color:#fff;border:0}
.inventory-kpi-colored .kpi-card .label,.inventory-kpi-colored .kpi-card .sub,.inventory-kpi-colored .kpi-card .value{color:#fff}
.inventory-kpi-danger{background:linear-gradient(#d96d6b,#c44f4d) !important}
.inventory-filter-grid{align-items:end}
.inventory-filter-actions{justify-content:flex-start}
.inventory-price-panel{border-color:#d8cfbd;background:linear-gradient(180deg,#faf8f2 0%,#f1ece2 100%)}
.inventory-form-stack label{color:#33455d;font-weight:700}
.inventory-form-head-grid,.inventory-form-bottom-grid,.inventory-detail-bottom-grid,.inventory-detail-grid{align-items:start}
.inventory-margin-box{display:flex;flex-direction:column;justify-content:flex-end}
.inventory-margin-value{min-height:40px;display:flex;align-items:center;padding:0 12px;border:1px solid #cfd5de;background:#f8fafc;font-weight:800;color:#17395d}
.money-field{position:relative}
.money-field .currency-euro{position:absolute;left:0;top:31px;height:40px;width:42px;display:flex;align-items:center;justify-content:center;border:1px solid #cfd5de;background:#f5f7fa;font-weight:700;color:#2c3e55}
.money-field input{padding-left:52px}
.inventory-note-box{min-height:120px;line-height:1.65}
.inventory-stock-disponibile{background:#e8f7eb;color:#247443}
.inventory-stock-sottoscorta{background:#fff0dd;color:#9a5c00}
.inventory-stock-esaurito{background:#fff1f1;color:#b44846}
@media (max-width:1300px){.inventory-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.inventory-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:800px){.inventory-kpi-grid{grid-template-columns:1fr 1fr}.inventory-filter-grid{grid-template-columns:1fr}.inventory-detail-grid{grid-template-columns:1fr}}

.inventory-kpi-grid-six{grid-template-columns:repeat(6,minmax(0,1fr));}
.inventory-kpi-grid-six .kpi-card .value{font-size:24px;line-height:1.15}
.inventory-kpi-grid-six .kpi-card{padding:14px 16px;min-height:96px}
.inventory-form-stack .money-field{position:relative}
.inventory-form-stack .money-field .currency-euro{position:absolute;left:0;top:31px;height:40px;width:42px;display:flex;align-items:center;justify-content:center;border:1px solid #cfd5de;border-right:0;background:#f5f7fa;font-weight:700;color:#2c3e55;z-index:1}
.inventory-form-stack .money-field input{padding-left:56px !important}
.inventory-detail-hero-grid{display:grid;grid-template-columns:1.05fr .9fr .9fr;gap:14px;align-items:start;margin-bottom:14px}
.inventory-detail-stock-panel{border-color:#d8cfbd;background:linear-gradient(180deg,#faf8f2 0%,#f2eadc 100%)}
.inventory-stock-hero{display:flex;align-items:flex-end;gap:18px;padding:12px 14px;border:1px solid #d8cfbd;background:#fff8ec;margin-bottom:12px}
.inventory-stock-number{font-size:58px;line-height:1;font-weight:800;color:#183a61}
.inventory-stock-status{font-size:22px;font-weight:700;color:#243c5b}
.inventory-detail-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.inventory-mini-card{padding:12px 14px;background:#fff;border:1px solid #ddd4c5}
.inventory-mini-card span{display:block;font-size:12px;color:#6b7280;text-transform:uppercase;margin-bottom:6px}
.inventory-mini-card strong{font-size:28px;color:#17395d}
.inventory-note-box{min-height:120px;line-height:1.65;background:#fff}
@media (max-width:1500px){.inventory-kpi-grid-six{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media (max-width:1100px){.inventory-detail-hero-grid{grid-template-columns:1fr}.inventory-detail-mini-grid{grid-template-columns:1fr 1fr}}
@media (max-width:760px){.inventory-kpi-grid-six{grid-template-columns:1fr 1fr}.inventory-detail-mini-grid{grid-template-columns:1fr}}


/* Inventory final polish */
.inventory-form-head-grid-tight{grid-template-columns:1.12fr 1fr}
.inventory-ident-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.inventory-price-grid .field{min-width:0}
.money-box{display:flex;align-items:center;border:1px solid #cfd5de;background:#fff;min-height:40px}
.money-box span{width:42px;display:flex;align-items:center;justify-content:center;border-right:1px solid #cfd5de;background:#f5f7fa;font-weight:700;color:#2c3e55;height:40px;flex:0 0 42px}
.money-box input{border:0 !important;box-shadow:none !important;padding:0 10px !important;min-height:38px}
.inventory-form-stack .money-field,.sales-entry-grid .money-box{position:static !important}
.inventory-form-stack .money-field .currency-euro{display:none !important}
.inventory-kpi-grid-six{grid-template-columns:repeat(6,minmax(0,1fr)) !important;gap:12px}
.inventory-kpi-grid-six .kpi-card{padding:12px 14px !important;min-height:88px !important}
.inventory-kpi-grid-six .kpi-card .value{font-size:22px !important}
@media (max-width:1280px){.inventory-kpi-grid-six{grid-template-columns:repeat(3,minmax(0,1fr)) !important}}
@media (max-width:760px){.inventory-kpi-grid-six{grid-template-columns:1fr 1fr !important}}

/* Sales redesign */
.sales-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}
.sales-kpi-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.sales-kpi-card{min-height:110px;padding:18px;color:#fff;display:flex;flex-direction:column;justify-content:space-between}
.sales-kpi-card span{font-size:12px;text-transform:uppercase;font-weight:700;letter-spacing:.03em}
.sales-kpi-card strong{font-size:38px;line-height:1.05}
.sales-kpi-card small{font-size:13px;opacity:.95}
.sales-kpi-blue{background:linear-gradient(#6fa6d7,#568ebf)}
.sales-kpi-violet{background:linear-gradient(#7d6ac2,#6652a9)}
.sales-kpi-red{background:linear-gradient(#d66c69,#c6524f)}
.sales-kpi-dark{background:linear-gradient(#5b657d,#414b63)}
.sales-main-grid{display:grid;grid-template-columns:1fr;gap:16px}
.sales-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}
.sales-status{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;font-size:12px;font-weight:700}
.sales-status-preventivo{background:#f2ebff;color:#5f4aa9}
.sales-status-completata{background:#e7f7ea;color:#237242}
.sales-status-annullata{background:#fff0f0;color:#b34747}
.sales-amount-cell{font-weight:700;color:#17395d}
.sales-entry-shell{display:flex;flex-direction:column;gap:16px}
.sales-entry-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.sales-entry-grid{display:grid;grid-template-columns:1.05fr 1.2fr .75fr;gap:16px;align-items:start}
.sales-entry-note{min-height:140px}
.sales-side-summary{display:flex;flex-direction:column;gap:12px}
.sales-side-badge{display:inline-flex;align-items:center;justify-content:center;min-height:64px;padding:10px 14px;background:linear-gradient(#f7f1e5,#ede3d0);border:1px solid #d8cfbd;color:#243c5b;font-size:22px;font-weight:800}
@media (max-width:1200px){.sales-entry-grid{grid-template-columns:1fr}.sales-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.sales-kpi-strip{grid-template-columns:1fr}.sales-filter-grid{grid-template-columns:1fr}.sales-hero,.sales-entry-head{flex-direction:column;align-items:flex-start}}


.sales-origin-link{color:#0b4fd9;font-weight:700}
.sales-pos-shell{display:flex;flex-direction:column;gap:16px}
.sales-pos-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.sales-pos-grid{display:grid;grid-template-columns:1.15fr 1.05fr .8fr;gap:16px;align-items:start}
.sales-product-table-wrap{max-height:560px;overflow:auto}
.sales-product-table th{position:sticky;top:0;background:#eef3f8;z-index:2}
.sales-cart-list{border:1px solid #d8dde5;background:#fff;min-height:300px;padding:10px 12px}
.sales-cart-list.empty{display:flex;align-items:center;justify-content:center;color:#7c8797}
.sales-cart-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:10px 0;border-bottom:1px solid #eef2f6}
.sales-cart-row:last-child{border-bottom:none}
.sales-cart-edit{display:flex;align-items:center;gap:8px}
.sales-cart-edit input[type=number]{width:76px}
.sales-cart-total{min-width:90px;text-align:right;font-weight:700;color:#16395f}
.money-box.compact{min-width:118px}
.money-box.compact input{width:74px}
.sales-pos-checkout{display:flex;flex-direction:column;gap:14px}
.sales-pos-total-box{padding:14px 16px;background:linear-gradient(#faf8f2,#ece3d3);border:1px solid #d8cfbd}
.sales-pos-total-box span{display:block;font-size:12px;text-transform:uppercase;color:#64748b;font-weight:700;margin-bottom:6px}
.sales-pos-total-box strong{display:block;font-size:40px;line-height:1;color:#183a61}
.sales-pos-meta-grid{display:grid;grid-template-columns:1fr;gap:12px}
.sales-pos-summary{display:flex;flex-direction:column;gap:10px}
.sales-confirm-btn{min-height:44px;font-size:17px}
@media (max-width:1280px){.sales-pos-grid{grid-template-columns:1fr}.sales-cart-row{grid-template-columns:1fr}.sales-cart-edit{flex-wrap:wrap}}

.sales-product-table-wrap{overflow:auto;max-height:620px}.sales-product-table{width:100%;table-layout:fixed}.sales-product-table th:nth-child(1){width:20%}.sales-product-table th:nth-child(2){width:34%}.sales-product-table th:nth-child(3){width:8%}.sales-product-table th:nth-child(4){width:11%}.sales-product-table th:nth-child(5){width:11%}.sales-product-table th:nth-child(6){width:16%}.sales-product-table td:last-child,.sales-product-table th:last-child{text-align:center}.sales-add-product{display:inline-flex;min-width:90px;justify-content:center}.sales-pos-center .erp-form-grid.two{grid-template-columns:1fr 1fr}.sales-pos-center .field-actions-inline{align-items:end}.sales-origin-link{color:#0b4fd9;font-weight:700}

.sales-product-table-wrap-no-scroll{overflow-x:hidden;}
.sales-product-table table{min-width:0 !important;width:100%;table-layout:fixed;}
.sales-product-table th:nth-child(1),.sales-product-table td:nth-child(1){width:24%;}
.sales-product-table th:nth-child(2),.sales-product-table td:nth-child(2){width:40%;}
.sales-product-table th:nth-child(3),.sales-product-table td:nth-child(3){width:10%;}
.sales-product-table th:nth-child(4),.sales-product-table td:nth-child(4){width:13%;}
.sales-product-table th:nth-child(5),.sales-product-table td:nth-child(5){width:13%;}
.sales-product-table tbody tr{cursor:pointer;}
.sales-product-table tbody tr:hover td{background:#faf6ea;}

/* Orders redesign */
.orders-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}
.orders-kpi-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.orders-kpi-card{min-height:102px;padding:16px 18px;color:#fff;display:flex;flex-direction:column;justify-content:space-between}
.orders-kpi-card span{font-size:12px;text-transform:uppercase;font-weight:700;letter-spacing:.03em}
.orders-kpi-card strong{font-size:30px;line-height:1.08;color:#fff}
.orders-kpi-card small{font-size:12px;color:rgba(255,255,255,.95)}
.orders-kpi-card .orders-kpi-link{color:#fff;text-decoration:underline}
.orders-kpi-blue{background:linear-gradient(#6fa6d7,#568ebf)}
.orders-kpi-green{background:linear-gradient(#69bf52,#4da53b)}
.orders-kpi-amber{background:linear-gradient(#efac16,#de9200)}
.orders-kpi-slate{background:linear-gradient(#5b657d,#414b63)}
.orders-kpi-violet{background:linear-gradient(#7d6ac2,#6652a9)}
.orders-kpi-red{background:linear-gradient(#d66c69,#c6524f)}
.orders-main-grid,.orders-form-top,.orders-detail-bottom,.orders-detail-grid{align-items:start}
.orders-main-grid{grid-template-columns:1.35fr .65fr}
.orders-filter-grid{align-items:end}
.order-status-chip{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;font-size:12px;font-weight:700}
.status-ordinato{background:#fff0dd;color:#9a5c00}.status-arrivato{background:#e8f7eb;color:#247443}.status-annullato{background:#fff1f1;color:#b44846}.status-parziale{background:#eef3f8;color:#4c6077}.status-completo{background:#e8f7eb;color:#247443}
.amount-strong{font-weight:700;color:#17395d}
.orders-form-shell label{color:#33455d;font-weight:700}
.order-link-panel{border-color:#d8cfbd;background:linear-gradient(180deg,#faf8f2 0%,#f2eadc 100%)}
.orders-flow-box{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.orders-flow-step{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid #ddd4c5;background:#fff}
.orders-flow-step strong{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:#17395d;color:#fff}
.orders-detail-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:14px;margin-bottom:14px}
.orders-detail-premium{border-color:#cdbfa3;background:linear-gradient(180deg,#faf8f2 0%,#f2eadc 100%)}
.orders-total-box{padding:16px 18px;border:1px solid #d8cfbd;background:#fff8ec;margin-bottom:14px}
.orders-total-label{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#5b6270;font-weight:700}
.orders-total-value{font-size:42px;line-height:1;font-weight:800;color:#1f3653;margin:8px 0}
.orders-total-sub{font-size:12px;color:#6b7380}
.receive-inline-form{display:flex;gap:8px;align-items:center}
.receive-inline-form input{width:86px}
@media (max-width:1400px){.orders-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.orders-main-grid,.orders-detail-grid{grid-template-columns:1fr}.orders-flow-box{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){.orders-kpi-grid,.orders-kpi-grid-4{grid-template-columns:1fr 1fr}.orders-flow-box{grid-template-columns:1fr}.receive-inline-form{flex-direction:column;align-items:flex-start}}
@media (max-width:760px){.orders-kpi-grid,.orders-kpi-grid-4{grid-template-columns:1fr}.orders-filter-grid{grid-template-columns:1fr}}

.supplier-edit-row{display:none}.supplier-edit-row.open-inline,.supplier-edit-row .supplier-edit-box{display:table-row}.supplier-edit-row td{background:#fafafa}.supplier-edit-box{padding:10px 0}.suppliers-grid{align-items:start}

.settings-tabs-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.settings-tab-btn{background:#f4f4f4;border:1px solid #ccc;padding:10px 14px;cursor:pointer}.settings-tab-btn.active{background:#fff;color:#0b4fd9}.settings-tab-panel{display:none}.settings-tab-panel.active{display:block}.settings-chip-list{display:flex;flex-wrap:wrap;gap:8px}.settings-chip{display:inline-flex;align-items:center;gap:6px;background:#eef3f8;border:1px solid #d6dde8;padding:6px 8px}.chip-delete{border:none;background:transparent;cursor:pointer;font-weight:700}.settings-attribute-list{display:flex;flex-direction:column;gap:8px}.settings-attr-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #e3e7ed;padding:10px;background:#fff}.order-dynamic-attrs{padding:10px;border:1px solid #d6dde8;background:#fff;min-height:58px}.repair-modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:1000}.repair-modal-overlay.open{display:block}.repair-modal-window{background:#fff;max-width:1280px;margin:40px auto;padding:0}.repair-modal-head,.repair-modal-foot{padding:12px 16px;border-bottom:1px solid #ddd;display:flex;justify-content:space-between;align-items:center}.repair-modal-foot{border-top:1px solid #ddd;border-bottom:none}.repair-modal-body{padding:16px}.modal-close{background:none;border:none;font-size:24px;cursor:pointer}.field-span-2{grid-column:span 2}.btn-small{padding:6px 10px;font-size:12px}

.compact-money-input{display:flex;align-items:center;border:1px solid #cfd5de;background:#fff;min-width:120px}.compact-money-input span{padding:0 8px;border-right:1px solid #cfd5de;background:#f5f7fa;height:34px;display:flex;align-items:center}.compact-money-input input{border:0 !important;min-width:0;width:100%;padding:0 8px;height:34px}.pick-action-stack{display:grid;grid-template-columns:70px auto;gap:8px;align-items:center}.order-stock-pick-form{display:contents}.receive-inline-form{display:flex;gap:8px;align-items:center}
.inventory-add-stock-panel{margin-bottom:14px}
.inventory-add-stock-panel .money-box{display:flex;align-items:center;border:1px solid #cfd5de;background:#fff}
.inventory-add-stock-panel .money-box span{padding:0 10px;border-right:1px solid #cfd5de;background:#f5f7fa;height:40px;display:flex;align-items:center;font-weight:700;color:#2c3e55}
.inventory-add-stock-panel .money-box input{border:0 !important;flex:1}

.order-product-cell{max-width:220px;line-height:1.25}.order-product-main{font-weight:700;color:#2c3e55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}.order-product-meta{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}.wide-table table td{vertical-align:top}

.orders-detail-top-3{display:grid;grid-template-columns:1fr 1.2fr 1.4fr;gap:14px;align-items:start;margin-bottom:14px}.orders-receive-full{width:100%}.order-stock-pick-form td,.order-stock-pick-form .compact-money-input{white-space:nowrap}.sales-lot-select,.detail-lot-select{min-width:150px;max-width:180px}.sales-product-table td,.sales-product-table th{white-space:normal}.sales-product-table-wrap-no-scroll{overflow-x:visible}.sales-product-table{table-layout:fixed;width:100%}.sales-product-table th:nth-child(1){width:18%}.sales-product-table th:nth-child(2){width:27%}.sales-product-table th:nth-child(3){width:8%}.sales-product-table th:nth-child(4){width:20%}.sales-product-table th:nth-child(5){width:13%}.sales-product-table th:nth-child(6){width:14%}@media (max-width:1300px){.orders-detail-top-3{grid-template-columns:1fr}.sales-product-table{table-layout:auto}}


/* Orders layout sequence + POS lot visibility */
.orders-detail-top-sequence{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:14px;align-items:stretch}
.orders-detail-top-sequence>.panel{height:100%;display:flex;flex-direction:column}
.orders-detail-top-sequence>.panel .panel-inner,.orders-detail-top-sequence>.panel .table-wrap{flex:1}
.orders-add-line-panel .erp-form-grid{align-content:start}
.orders-summary-panel .compact-list{margin-top:10px}
.orders-data-panel .table-wrap table{height:100%}
.orders-receive-full .table-wrap table{table-layout:fixed;width:100%}
.orders-receive-full .table-wrap th:nth-child(1){width:20%}
.orders-receive-full .table-wrap th:nth-child(2){width:9%}
.orders-receive-full .table-wrap th:nth-child(3){width:7%}
.orders-receive-full .table-wrap th:nth-child(4){width:7%}
.orders-receive-full .table-wrap th:nth-child(5){width:8%}
.orders-receive-full .table-wrap th:nth-child(6){width:10%}
.orders-receive-full .table-wrap th:nth-child(7){width:8%}
.orders-receive-full .table-wrap th:nth-child(8){width:14%}
.orders-receive-full .table-wrap th:nth-child(9){width:8%}
.sales-product-table th:nth-child(4), .sales-product-table td:nth-child(4){width:24% !important}
.sales-product-table th:nth-child(5), .sales-product-table td:nth-child(5){width:10% !important}
.sales-product-table th:nth-child(6), .sales-product-table td:nth-child(6){width:10% !important}
.sales-product-table .sales-lot-select{width:100%;min-width:170px;max-width:100%;font-size:12px;padding:6px 8px;line-height:1.25;white-space:normal;background:#fff;border:1px solid #cfd5de}
.sales-product-table td{vertical-align:top}
.sales-product-table .parts-name{line-height:1.2}
@media (max-width:1450px){.orders-detail-top-sequence{grid-template-columns:1fr}.orders-detail-top-sequence>.panel{height:auto}}


.accounting-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-bottom:14px}
.accounting-kpi-card{min-height:106px;padding:16px 18px;color:#fff;display:flex;flex-direction:column;justify-content:space-between}
.accounting-kpi-card span{font-size:12px;text-transform:uppercase;font-weight:700;letter-spacing:.03em}
.accounting-kpi-card strong{font-size:28px;line-height:1.08;color:#fff}
.accounting-kpi-card small{font-size:12px;color:rgba(255,255,255,.95)}
.accounting-kpi-card.tone-blue{background:#5d95ca}
.accounting-kpi-card.tone-red{background:#d35f5f}
.accounting-kpi-card.tone-slate{background:#55617d}
.accounting-kpi-card.tone-green{background:#61b94a}
.accounting-kpi-card.tone-amber{background:#e5a10a}
.accounting-kpi-card.tone-violet{background:#6f5db7}
.accounting-filter-grid{align-items:end}
.accounting-top-grid{align-items:start}
.accounting-entry-grid textarea{min-height:88px}
.money-inline{display:flex;align-items:center;border:1px solid #d6dde6;background:#fff;height:40px}
.money-inline span{display:flex;align-items:center;justify-content:center;width:42px;height:38px;border-right:1px solid #d6dde6;background:#f3f5f8;color:#25364f;font-weight:700}
.money-inline input{border:0 !important;height:38px;flex:1}
.accounting-badge{display:inline-block;padding:4px 8px;font-size:12px}
.accounting-badge.income{background:#e6f5e7;color:#247443}
.accounting-badge.outcome{background:#fde9e9;color:#a53333}
.accounting-amount.income{color:#247443;font-weight:700}
.accounting-amount.outcome{color:#a53333;font-weight:700}
@media (max-width:1400px){.accounting-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){.accounting-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-filter-grid{grid-template-columns:1fr 1fr !important}}
@media (max-width:700px){.accounting-kpi-grid{grid-template-columns:1fr}.accounting-filter-grid{grid-template-columns:1fr !important}}


/* Accounting redesign v2 */
.accounting-shell{display:flex;flex-direction:column;gap:14px}
.accounting-hero{display:grid;grid-template-columns:1.2fr 1fr auto;gap:14px;align-items:stretch}
.accounting-hero-main{background:linear-gradient(135deg,#15263f,#223f68);color:#fff;padding:22px 24px;display:flex;flex-direction:column;justify-content:center}
.accounting-hero-label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:700;color:rgba(255,255,255,.82)}
.accounting-hero-value{font-size:44px;line-height:1;font-weight:800;margin:8px 0 10px}
.accounting-hero-sub{font-size:13px;color:rgba(255,255,255,.86)}
.accounting-hero-stats{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.hero-stat{padding:18px;border:1px solid #d7dde5;background:#fff;display:flex;flex-direction:column;justify-content:space-between}.hero-stat span{font-size:12px;text-transform:uppercase;font-weight:700;color:#5a6577}.hero-stat strong{font-size:24px;color:#1a3153;line-height:1.1}.hero-stat.income{background:#edf8ef}.hero-stat.outcome{background:#fff0f0}.hero-stat.neutral{background:#f5f7fa}
.accounting-hero-actions{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.accounting-toolbar .panel-inner{padding:12px 14px}.accounting-toolbar-form{display:grid;grid-template-columns:1.6fr repeat(4,minmax(0,1fr)) auto auto;gap:10px;align-items:center}.accounting-toolbar-form input,.accounting-toolbar-form select{height:40px}
.accounting-main-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:14px;align-items:start}
.accounting-chart{display:flex;flex-direction:column;gap:10px}.chart-row{display:grid;grid-template-columns:54px 1fr 260px;gap:12px;align-items:center}.chart-label{font-size:12px;color:#627289;font-weight:700}.chart-bars{display:flex;flex-direction:column;gap:6px}.chart-bar{height:12px}.chart-bar.income{background:#62b94a}.chart-bar.outcome{background:#d66161}.chart-values{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#546477}
.accounting-side-analytics{display:flex;flex-direction:column;gap:14px}
.accounting-modal-window{max-width:980px}
.accounting-entry-grid textarea{min-height:110px}
.accounting-table-panel .panel-title{display:flex;align-items:center;justify-content:space-between}
@media (max-width:1400px){.accounting-hero{grid-template-columns:1fr}.accounting-main-grid{grid-template-columns:1fr}.accounting-toolbar-form{grid-template-columns:1fr 1fr 1fr 1fr}.chart-row{grid-template-columns:50px 1fr 180px}}
@media (max-width:900px){.accounting-hero-stats{grid-template-columns:1fr 1fr}.accounting-toolbar-form{grid-template-columns:1fr 1fr}.chart-row{grid-template-columns:1fr}.chart-values{justify-content:flex-start;gap:20px}}
@media (max-width:700px){.accounting-hero-stats,.accounting-toolbar-form{grid-template-columns:1fr}.accounting-hero-value{font-size:36px}}

.expense-detail-block .nested-panel{margin-top:12px}.accounting-expense-only{display:none}.accounting-income-only{display:block}

/* Statistics unique page */
.stats-hero{display:grid;grid-template-columns:1.65fr .85fr;gap:18px;margin-bottom:18px}
.stats-hero-main,.stats-hero-side{display:flex;flex-direction:column;gap:18px}
.stats-hero-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.stats-hero-head h1{margin:0 0 6px;font-size:42px;line-height:1;color:#18385b}
.stats-period-switch{display:flex;gap:8px;flex-wrap:wrap}
.stats-period-switch button{border:1px solid #ced8e6;background:#f4f8fd;color:#294a6f;padding:10px 12px;font-weight:700;border-radius:999px;cursor:pointer}
.stats-period-switch button.active{background:#18385b;color:#fff;border-color:#18385b}
.stats-finance-strip{display:grid;grid-template-columns:1.15fr 1fr 1fr 1fr;gap:14px}
.finance-card{padding:18px;border-radius:16px;color:#fff;min-height:132px;display:flex;flex-direction:column;justify-content:space-between}
.finance-card span{font-size:12px;text-transform:uppercase;letter-spacing:.04em;opacity:.92;font-weight:700}
.finance-card strong{font-size:36px;line-height:1.02;display:block;margin:10px 0 8px}
.finance-card small{opacity:.88;font-size:12px}
.finance-balance{background:linear-gradient(135deg,#123459,#214f86)}
.finance-income{background:linear-gradient(135deg,#2d9854,#5ec06b)}
.finance-outcome{background:linear-gradient(135deg,#cf5c5c,#b43d3d)}
.finance-margin{background:linear-gradient(135deg,#7761c7,#5e4bb1)}
.stats-side-card{border-radius:18px;padding:18px}
.stats-side-card.dark{background:#101a28;color:#fff}
.stats-side-card.light{background:#f8f4ea;border:1px solid #e6dcc8}
.side-kpi{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08)}
.side-kpi:last-child{border-bottom:0;padding-bottom:0}
.side-kpi span{font-size:13px;opacity:.88}
.side-kpi strong{font-size:22px;white-space:nowrap}
.panel-title-lite{font-size:18px;font-weight:800;color:#18385b;margin-bottom:10px}
.stats-alerts-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:8px;color:#3d4653}
.stats-content-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:18px;margin-bottom:18px}
.stats-secondary-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}
.stats-panel{background:#fff;border:1px solid #dfe7f0;border-radius:18px;padding:0;overflow:hidden}
.stats-panel-head{padding:18px 18px 12px;border-bottom:1px solid #ecf0f5;display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.stats-panel-head h3{margin:0;font-size:22px;color:#1c3b5e}
.stats-panel-head span{font-size:12px;color:#6b7887}
.stats-bars-wrap{padding:14px 18px 18px;display:flex;flex-direction:column;gap:10px}
.stats-day-row{display:grid;grid-template-columns:68px 1fr 210px;gap:12px;align-items:center}
.stats-day-label{font-size:12px;font-weight:700;color:#637185}
.stats-day-bars{display:flex;flex-direction:column;gap:6px}
.bar-group{height:9px;border-radius:999px;background:#eef3f8;overflow:hidden}
.bar-group i{display:block;height:100%;border-radius:999px}
.bar-group.income i{background:#4caf65}
.bar-group.outcome i{background:#d75a5a}
.bar-group.revenue i{background:#5478c7}
.stats-day-values{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;font-size:12px;color:#556274;text-align:right}
.stats-rank-list{padding:8px 18px 18px;display:flex;flex-direction:column;gap:10px}
.stats-rank-list.compact{gap:8px}
.rank-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;background:#f7fafc;border:1px solid #e7edf3;border-radius:12px}
.rank-row strong{display:block;color:#203d5f}
.rank-row small{display:block;color:#6d7b8a;font-size:12px;margin-top:2px}
.rank-row span{font-weight:800;color:#203d5f;white-space:nowrap}
.stats-table-soft th{background:#f5f8fb}
.stats-table-soft td,.stats-table-soft th{padding:11px 12px}
@media (max-width:1400px){.stats-finance-strip{grid-template-columns:1fr 1fr}.stats-content-grid,.stats-secondary-grid,.stats-hero{grid-template-columns:1fr}}
@media (max-width:900px){.stats-hero-head{flex-direction:column}.stats-day-row{grid-template-columns:56px 1fr}.stats-day-values{grid-column:2;grid-template-columns:1fr 1fr 1fr;text-align:left}.finance-card strong{font-size:30px}}

/* Statistics unique redesign v2 */
.stats-neo-shell{display:flex;flex-direction:column;gap:18px}
.stats-neo-hero{display:grid;grid-template-columns:1.45fr .75fr;gap:18px}
.stats-neo-main{background:linear-gradient(135deg,#111a28 0%,#1a2740 58%,#243d66 100%);color:#fff;padding:28px;border-radius:24px;overflow:hidden;position:relative}
.stats-neo-main:after{content:"";position:absolute;right:-80px;top:-80px;width:260px;height:260px;background:radial-gradient(circle,rgba(122,165,255,.35),rgba(122,165,255,0));pointer-events:none}
.stats-neo-kicker{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#98afd1;margin-bottom:10px}
.stats-neo-headline-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
.stats-neo-headline-row h1{margin:0 0 8px;font-size:48px;line-height:.95;color:#fff}
.stats-neo-subtitle{margin:0;color:#bfcee7;max-width:760px;font-size:14px;line-height:1.55}
.stats-neo-switch{display:flex;gap:8px;flex-wrap:wrap}
.stats-neo-switch button{border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.08);color:#dce8fb;padding:10px 12px;border-radius:999px;font-weight:800;cursor:pointer}
.stats-neo-switch button.active{background:#fff;color:#163055;border-color:#fff}
.stats-neo-balance-card{display:flex;flex-direction:column;gap:16px;padding:22px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.06);backdrop-filter:blur(4px);border-radius:22px}
.stats-neo-balance-card .balance-meta{display:flex;justify-content:space-between;gap:12px;align-items:flex-end}
.stats-neo-balance-card .balance-meta span{font-size:13px;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:#a5bcde}
.stats-neo-balance-card .balance-meta small{color:#d6e4fb}
.balance-value{font-size:56px;font-weight:900;line-height:1;letter-spacing:-.03em}
.balance-foot{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.balance-foot div{padding:14px 16px;border-radius:16px;background:rgba(0,0,0,.16)}
.balance-foot strong{display:block;font-size:22px;color:#fff}
.balance-foot span{display:block;margin-top:4px;font-size:12px;color:#b7c7df;text-transform:uppercase}
.stats-neo-side{display:flex;flex-direction:column;gap:18px}
.stats-orbit-card,.stats-neo-alerts{background:#fff;border:1px solid #e0e7f0;border-radius:24px;padding:20px}
.stats-orbit-card{display:grid;grid-template-columns:170px 1fr;gap:18px;align-items:center}
.orbit-ring{--orbit-fill: 0%; --orbit-color:#67c587; width:156px;height:156px;border-radius:50%;background:conic-gradient(var(--orbit-color) var(--orbit-fill),#e9eef4 0);display:flex;align-items:center;justify-content:center}
.orbit-ring:before{content:"";width:118px;height:118px;border-radius:50%;background:#fff;position:absolute}
.orbit-center{position:relative;z-index:1;text-align:center}
.orbit-center strong{display:block;font-size:34px;color:#143254;line-height:1}
.orbit-center span{display:block;font-size:12px;text-transform:uppercase;color:#697789;font-weight:800;margin-top:4px}
.orbit-copy h3{margin:0 0 8px;font-size:24px;color:#173b61}
.orbit-copy p{margin:0;color:#667586;line-height:1.55}
.neo-alert-title{font-size:13px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#203d60;margin-bottom:12px}
.stats-neo-alerts ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:10px;color:#44505f}
.stats-mosaic-grid{display:grid;grid-template-columns:1fr 1.2fr .8fr;grid-template-areas:"spotlight chart expense" "dark chart expense";gap:18px}
.stats-neo-panel{background:#fff;border:1px solid #e1e8f0;border-radius:22px;overflow:hidden}
.stats-neo-panel.spotlight{grid-area:spotlight}
.stats-neo-panel.chart-panel{grid-area:chart}
.stats-neo-panel:nth-of-type(3){grid-area:expense}
.stats-neo-panel.dark-side{grid-area:dark;background:linear-gradient(135deg,#131c29,#1f2e45);color:#fff;border-color:#1f2e45}
.neo-panel-head{padding:18px 20px 12px;display:flex;justify-content:space-between;align-items:flex-end;gap:12px;border-bottom:1px solid #edf2f7}
.neo-panel-head.dark{border-bottom-color:rgba(255,255,255,.08)}
.neo-panel-head .eyebrow{display:block;font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#8292a5;margin-bottom:6px}
.neo-panel-head h3{margin:0;font-size:24px;color:#16365a}
.dark-side .neo-panel-head h3,.dark-side .neo-panel-head .eyebrow{color:#fff}
.legend-inline{font-size:12px;color:#677789;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.legend-inline i{display:inline-block;width:12px;height:12px;border-radius:999px;margin-right:3px}
.legend-inline i.income{background:#57b56a}.legend-inline i.outcome{background:#d56060}.legend-inline i.revenue{background:#5878c9}
.spotlight-grid{padding:18px 20px 10px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.spotlight-cell{padding:18px;border-radius:18px;color:#fff;min-height:110px;display:flex;flex-direction:column;justify-content:space-between}
.spotlight-cell span{font-size:12px;text-transform:uppercase;font-weight:800;opacity:.9}
.spotlight-cell strong{font-size:28px;line-height:1.05}
.spotlight-cell.blue{background:linear-gradient(135deg,#5d95ca,#447bb4)}
.spotlight-cell.green{background:linear-gradient(135deg,#61bb62,#45a254)}
.spotlight-cell.slate{background:linear-gradient(135deg,#58657d,#3f4a5f)}
.spotlight-cell.amber{background:linear-gradient(135deg,#e4a422,#d28e08)}
.margin-meter-wrap{padding:2px 20px 20px}
.margin-meter-labels{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;color:#506173;font-weight:700}
.margin-meter{height:12px;background:#eef3f8;border-radius:999px;overflow:hidden}.margin-meter i{display:block;height:100%;background:linear-gradient(90deg,#4ab26b,#6f65c6);border-radius:999px}
.stats-signal-chart{padding:18px 20px 20px;display:flex;flex-direction:column;gap:10px}
.signal-row{display:grid;grid-template-columns:58px 1fr 175px;gap:12px;align-items:center}
.signal-date{font-size:12px;font-weight:800;color:#647487}
.signal-bars{display:flex;flex-direction:column;gap:6px}.signal-bar{height:10px;background:#edf2f7;border-radius:999px;overflow:hidden}.signal-bar i{display:block;height:100%;border-radius:999px}.signal-bar.income i{background:#57b56a}.signal-bar.outcome i{background:#d56060}.signal-bar.revenue i{background:#5878c9}
.signal-values{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:right;font-size:12px;color:#526173}
.expense-stack{padding:14px 20px 20px;display:flex;flex-direction:column;gap:10px}
.expense-row{display:grid;grid-template-columns:1fr 150px;gap:12px;align-items:center;padding:12px 14px;border:1px solid #edf2f6;border-radius:14px;background:#fafcfe}
.expense-row strong{display:block;color:#1c3a5c}.expense-row small{color:#768394}.expense-right{display:flex;flex-direction:column;gap:8px;align-items:flex-end}.expense-right span{font-weight:900;color:#1c3a5c}.expense-right i{display:block;height:7px;width:100%;background:linear-gradient(90deg,#db6666,#f0c08a);border-radius:999px}
.duo-ranks{padding:10px 20px 20px;display:grid;grid-template-columns:1fr;gap:18px}.mini-title{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:#9fb1c7;margin-bottom:10px}.mini-rank{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08)}.mini-rank:last-child{border-bottom:0}.mini-rank span{color:#e6eef9}.mini-rank strong{color:#fff}.muted.light{color:#b7c6da}
.stats-bottom-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:18px}
.stats-table-wrap-dark{padding:0 18px 18px}.stats-table-neo th{background:#f4f7fb;color:#637386}.stats-table-neo td,.stats-table-neo th{padding:12px 12px}
.compact-side-panel .snapshot-grid{padding:14px 20px 20px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.snapshot-box{padding:18px;border:1px solid #edf2f6;border-radius:16px;background:#fafcfe}.snapshot-box span{display:block;font-size:12px;text-transform:uppercase;font-weight:800;color:#708096;margin-bottom:6px}.snapshot-box strong{font-size:24px;color:#1a385b;line-height:1.05}
@media (max-width:1400px){.stats-neo-hero,.stats-bottom-grid{grid-template-columns:1fr}.stats-mosaic-grid{grid-template-columns:1fr 1fr;grid-template-areas:"spotlight chart" "expense dark"}.balance-foot{grid-template-columns:1fr 1fr 1fr}}
@media (max-width:980px){.stats-neo-headline-row{flex-direction:column}.stats-orbit-card{grid-template-columns:1fr}.orbit-ring{margin:0 auto}.stats-mosaic-grid{grid-template-columns:1fr;grid-template-areas:"spotlight" "chart" "expense" "dark"}.signal-row{grid-template-columns:1fr}.signal-values{text-align:left}.compact-side-panel .snapshot-grid,.balance-foot,.spotlight-grid{grid-template-columns:1fr 1fr}}
@media (max-width:700px){.balance-value{font-size:42px}.stats-neo-headline-row h1{font-size:38px}.compact-side-panel .snapshot-grid,.balance-foot,.spotlight-grid{grid-template-columns:1fr}}


.stats-focus-shell{display:flex;flex-direction:column;gap:18px}
.stats-focus-hero{background:linear-gradient(135deg,#1d2734 0%,#233246 48%,#2e3d54 100%);color:#fff;padding:22px;border-radius:0}
.stats-focus-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}
.stats-focus-kicker{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#9ab4d8;font-weight:700}
.stats-focus-hero h1{margin:6px 0 8px 0;color:#fff}
.stats-focus-hero p{max-width:760px;color:#d7e2f0}
.stats-focus-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end;min-width:min(820px,100%)}
.stats-focus-filters .field{display:flex;flex-direction:column;gap:6px}.stats-focus-filters label{color:#d6e0ed;font-size:12px;font-weight:700}.stats-focus-filters input,.stats-focus-filters select{background:#fff;color:#233246}.stats-focus-filters .actions{flex-direction:row;align-items:end}
.stats-focus-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}
.focus-metric{padding:16px;border-radius:0;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}
.focus-metric strong{display:block;font-size:30px;line-height:1.1;color:#fff;margin:8px 0}.focus-metric span{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:#cfe0f7;font-weight:700}.focus-metric small{color:#dfe8f3}
.focus-metric.expense{background:linear-gradient(180deg,rgba(208,89,89,.26),rgba(122,47,47,.22));}.focus-metric.revenue{background:linear-gradient(180deg,rgba(82,167,110,.28),rgba(47,98,61,.22));}.focus-metric.margin{background:linear-gradient(180deg,rgba(101,119,208,.25),rgba(55,68,124,.22));}
.stats-focus-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:start}
.stats-card{background:#fff;border:1px solid #d7dde6;padding:16px}.stats-card.dark{background:#2a3443;color:#fff;border-color:#2a3443}.stats-card.wide{grid-column:1 / -1}.stats-card.tall{min-height:360px}.stats-card.compact{min-height:220px}
.stats-card-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:12px}.stats-card-head span{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#7590b8;font-weight:700}.stats-card.dark .stats-card-head span{color:#a7b8d0}.stats-card-head h3{margin:2px 0 0 0}
.focus-rank-list,.focus-provider-list,.snapshot-list{display:flex;flex-direction:column;gap:10px}
.focus-rank-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #edf1f5;padding-bottom:10px}.focus-rank-row:last-child{border-bottom:none;padding-bottom:0}.focus-rank-row small{display:block;color:#7b8795;margin-top:4px}
.focus-rank-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:180px}.focus-rank-right span{font-weight:700;color:#20324a}.focus-rank-right i{display:block;height:8px;background:#5f85d0;max-width:180px;width:0;align-self:stretch}
.provider-row,.snapshot-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.12)}.provider-row:last-child,.snapshot-row:last-child{border-bottom:none}.stats-card:not(.dark) .snapshot-row{border-bottom:1px solid #edf1f5}
.stats-compact-table th,.stats-compact-table td{white-space:nowrap}.stats-compact-table td:first-child,.stats-compact-table th:first-child{white-space:normal;min-width:220px}
@media (max-width:1200px){.stats-focus-filters{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.stats-focus-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-focus-grid{grid-template-columns:1fr}}
@media (max-width:760px){.stats-focus-filters{grid-template-columns:1fr}.stats-focus-strip{grid-template-columns:1fr}}


.expense-hero-light{background:linear-gradient(135deg,#f9fbfd 0%,#eef4fb 55%,#f8fafc 100%);color:#22364e;border:1px solid #d9e3ef}
.expense-hero-light h1{color:#22364e !important}
.expense-hero-light p{color:#5f7287 !important}
.expense-kicker{color:#5d84b6 !important}
.expense-filters-wide{grid-template-columns:repeat(5,minmax(0,1fr));min-width:min(1020px,100%)}
.expense-strip-light.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.focus-metric.soft-red{background:linear-gradient(180deg,#fff5f5,#fdecec);border:1px solid #f1d2d2}
.focus-metric.soft-amber{background:linear-gradient(180deg,#fffaf0,#f9f0dd);border:1px solid #ead8af}
.focus-metric.soft-blue{background:linear-gradient(180deg,#f5f9ff,#e9f0fb);border:1px solid #cedcf2}
.expense-strip-light .focus-metric strong{color:#22364e !important}
.expense-strip-light .focus-metric span{color:#60758f !important}
.expense-strip-light .focus-metric small{color:#6d7e90 !important}
.expense-grid-two{grid-template-columns:1fr 1fr}
.help-list .snapshot-row strong{font-size:12px;color:#60758f}
@media (max-width:1200px){.expense-filters-wide{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.expense-grid-two{grid-template-columns:1fr}.expense-strip-light.three{grid-template-columns:1fr}}


.expense-stats-shell{display:flex;flex-direction:column;gap:16px}.expense-stats-hero{background:#f7f8fb;border:1px solid #dfe4ea;padding:20px;display:grid;grid-template-columns:1.1fr 1.2fr;gap:18px;align-items:end}.expense-stats-kicker{font-size:12px;letter-spacing:.08em;color:#6e7c91;font-weight:700}.expense-filter-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:end}.expense-kpi-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.expense-kpi{padding:18px;border:1px solid #dde3ea;background:#fff}.expense-kpi span{display:block;font-size:12px;text-transform:uppercase;color:#6a7689;font-weight:700;margin-bottom:8px}.expense-kpi strong{display:block;font-size:28px;line-height:1.1;color:#1f3550}.expense-kpi small{display:block;margin-top:8px;color:#6f7b8b}.soft-green{background:#eef8f0}.soft-blue{background:#eef4fb}.soft-amber{background:#fbf6e8}.soft-rose{background:#fbefef}.expense-month-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.month-box{background:#fff;border:1px solid #e1e6ec;padding:14px}.month-label{font-size:12px;color:#77839a;font-weight:700;text-transform:uppercase}.month-value{font-size:26px;font-weight:800;color:#213a57;margin-top:8px}.expense-readable-table th,.expense-readable-table td{white-space:nowrap}.expense-readable-table td:first-child,.expense-readable-table th:first-child{white-space:normal;min-width:280px}.accounting-entry-grid .accounting-expense-only,.accounting-entry-grid .accounting-income-only{display:block}.money-inline{display:flex;align-items:center;border:1px solid #cfd5de;background:#fff}.money-inline span{padding:0 12px;border-right:1px solid #cfd5de;height:38px;display:flex;align-items:center;background:#f5f7fa}.money-inline input{border:0;flex:1}.small{font-size:12px}.expense-detail-block ul{margin:6px 0 0 16px;padding:0}.expense-detail-block li{margin:2px 0}@media (max-width:1200px){.expense-stats-hero{grid-template-columns:1fr}.expense-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}.expense-month-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.expense-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:760px){.expense-kpi-row,.expense-filter-bar,.expense-month-grid{grid-template-columns:1fr}}


/* Quotes redesign */
.quote-kpi-strip{grid-template-columns:repeat(5,minmax(0,1fr))}
.quote-kpi-green{background:linear-gradient(#67bb52,#489a38)}
.quote-kpi-amber{background:linear-gradient(#efb11a,#de9700)}
.quote-filter-grid{align-items:end}
.quote-filter-actions{justify-content:flex-start}
.quote-form-stack label{color:#33455d;font-weight:700}
.quote-form-top-grid,.quote-detail-grid{align-items:start}
.quote-side-panel textarea{min-height:132px}
.quote-note-callout{border:1px solid #d8cfbd;background:linear-gradient(#fbf9f4,#efe7d9);padding:16px;line-height:1.6;color:#39495c}
.quote-note-callout strong{display:block;color:#17395d;margin-bottom:8px}
.quote-detail-head{margin-bottom:16px}
.quote-detail-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;align-items:start;margin-bottom:14px}
@media (max-width:1300px){.quote-kpi-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.quote-detail-grid{grid-template-columns:1fr}}
@media (max-width:760px){.quote-kpi-strip{grid-template-columns:1fr 1fr}}

.quote-form-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;align-items:start}.quote-note-panel{border-style:dashed}.quote-detail-grid-redesign{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;align-items:start;margin-bottom:14px}.quote-mag-panel .quote-mag-hint{padding:16px;border:1px dashed #d8cfbd;background:linear-gradient(#fbf9f4,#efe7d9);color:#3d4f66;line-height:1.6}.inline-preview{font-weight:700;color:#0b51b3}.quote-kpi-strip.detail{margin-bottom:14px}.quote-kpi-strip.detail .sales-kpi-card{min-height:116px}.panel-title-actions{display:flex;justify-content:space-between;align-items:center}.btn-small{padding:6px 10px;font-size:12px}.quote-form-stack .repair-modal-window.large{width:min(1100px,95vw)}@media (max-width:1200px){.quote-form-layout,.quote-detail-grid-redesign{grid-template-columns:1fr}}


/* Quotes UI refinements */
.quote-kpi-strip-five{grid-template-columns:repeat(5,minmax(0,1fr)) !important;gap:12px}
.quote-kpi-strip-five .sales-kpi-card{min-height:116px;display:flex;flex-direction:column;justify-content:flex-start}
.quote-kpi-strip-five .sales-kpi-card span,.quote-kpi-strip-five .sales-kpi-card small,.quote-kpi-strip-five .sales-kpi-card strong{color:#fff !important}
.quote-kpi-strip-five .sales-kpi-card strong{font-size:26px;line-height:1.1}
.quote-kpi-strip .sales-kpi-blue{background:linear-gradient(180deg,#6fa0d6,#5a8fc8)}
.quote-kpi-strip .sales-kpi-violet{background:linear-gradient(180deg,#7e6bd0,#6757b7)}
.quote-kpi-strip .sales-kpi-dark{background:linear-gradient(180deg,#5e6983,#49536f)}
.quote-kpi-strip .quote-kpi-green{background:linear-gradient(180deg,#63b65e,#4b9846) !important}
.quote-kpi-strip .quote-kpi-amber{background:linear-gradient(180deg,#e2ab1d,#c98d04) !important}
.quote-kpi-strip .quote-kpi-amber strong,.quote-kpi-strip .quote-kpi-amber small,.quote-kpi-strip .quote-kpi-amber span{color:#fff !important}
.quote-form-layout-redesign{grid-template-columns:1.15fr .85fr;gap:18px;align-items:stretch}
.quote-form-layout-redesign .panel{height:100%}
.quote-side-panel-redesign .panel-inner{padding:18px 16px}
.quote-side-panel-redesign textarea{min-height:120px}
.quote-form-stack .top-actions{justify-content:flex-start;gap:10px}
.quote-form-stack > .top-actions:first-of-type{justify-content:flex-end}
.quote-form-stack #openQuoteCustomerModal.btn{background:#6ab14b;border-color:#5d9d42;color:#fff}
.quote-form-stack .panel-inner.erp-form-grid.three{grid-template-columns:1.3fr .7fr 1fr;gap:14px}
.quote-form-stack .panel{overflow:hidden}
.quote-note-panel{background:#faf8f3;border-color:#ddd3c4}
.quote-note-callout{padding:18px 20px;background:#fffdf8;border:1px solid #e0d8cb}
.quote-detail-grid-split{grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.quote-detail-grid-split .quote-full-width{grid-column:1 / -1}
.quote-detail-grid-split .panel{height:auto}
.quote-detail-grid-split .panel .table-wrap table th{width:180px}
.quote-detail-grid-split form.erp-form-grid.three{grid-template-columns:1fr 1fr;gap:14px}
.quote-detail-grid-split form.erp-form-grid.three .field-span-3{grid-column:1 / -1}
.quote-detail-grid-split form.erp-form-grid.three .field-actions-inline{align-self:end;justify-content:flex-start}
.quote-mag-panel .panel-inner{padding:18px}
.quote-mag-panel .quote-mag-hint{min-height:auto;padding:22px;border:1px dashed #d7cdbb;background:linear-gradient(180deg,#fdfbf6,#f2ecdf)}
.quote-detail-head .top-actions form{display:inline-block;margin:0}
@media (max-width:1500px){.quote-kpi-strip-five{grid-template-columns:repeat(5,minmax(0,1fr)) !important}.quote-kpi-strip-five .sales-kpi-card strong{font-size:23px}}
@media (max-width:1280px){.quote-kpi-strip-five{grid-template-columns:repeat(3,minmax(0,1fr)) !important}.quote-form-stack .panel-inner.erp-form-grid.three{grid-template-columns:1fr 1fr}.quote-form-layout-redesign,.quote-detail-grid-split{grid-template-columns:1fr}}
@media (max-width:760px){.quote-kpi-strip-five{grid-template-columns:1fr 1fr !important}.quote-form-stack .panel-inner.erp-form-grid.three{grid-template-columns:1fr}}


/* Quotes final UI refine */
.quote-kpi-strip-force{display:grid !important;grid-template-columns:repeat(5,minmax(0,1fr)) !important;gap:14px !important;align-items:stretch}
.quote-kpi-strip-force .sales-kpi-card{min-height:122px !important;border-radius:0 !important;display:flex !important;flex-direction:column !important;justify-content:flex-start !important;padding:18px 18px 16px !important;box-shadow:none !important}
.quote-kpi-strip-force .sales-kpi-card span,.quote-kpi-strip-force .sales-kpi-card small,.quote-kpi-strip-force .sales-kpi-card strong{color:#fff !important;opacity:1 !important}
.quote-kpi-strip-force .sales-kpi-card strong{font-size:24px !important;line-height:1.1}
.quote-kpi-strip-force .sales-kpi-blue{background:linear-gradient(180deg,#6fa1d8,#5588c1) !important}
.quote-kpi-strip-force .sales-kpi-violet{background:linear-gradient(180deg,#8171d2,#6555b7) !important}
.quote-kpi-strip-force .sales-kpi-dark{background:linear-gradient(180deg,#5e6982,#47536f) !important}
.quote-kpi-strip-force .quote-kpi-green{background:linear-gradient(180deg,#65bb64,#4d9a4a) !important}
.quote-kpi-strip-force .quote-kpi-amber{background:linear-gradient(180deg,#e2ad2b,#c88f0f) !important}
.quote-detail-grid-force{display:grid !important;grid-template-columns:1fr 1fr !important;gap:16px !important;align-items:start !important}
.quote-detail-grid-force .quote-half-panel{min-width:0;height:100%}
.quote-detail-grid-force .quote-full-width{grid-column:1 / -1 !important}
.quote-detail-grid-force .quote-half-panel .panel-inner,.quote-detail-grid-force .quote-half-panel .table-wrap{height:100%}
.quote-detail-grid-force .quote-half-panel .table-wrap table th{width:190px}
.quote-mag-panel-wide .panel-inner{padding:18px !important}
.quote-form-top-actions{justify-content:flex-end !important;gap:10px !important}
.quote-form-top-actions .quote-new-customer-btn{background:#68b34e !important;border-color:#5b9f44 !important;color:#fff !important}
.quote-form-layout-force{display:grid !important;grid-template-columns:1.05fr .95fr !important;gap:18px !important;align-items:start !important}
.quote-form-main-panel .panel-inner{padding:18px !important}
.quote-form-main-panel .erp-form-grid.three{display:grid !important;grid-template-columns:1.2fr .8fr 1fr !important;gap:14px !important}
.quote-form-main-panel .field-span-2{grid-column:span 2}
.quote-form-main-panel .field-span-3{grid-column:1 / -1}
.quote-side-panel-compact .panel-inner{padding:18px !important}
.quote-side-panel-compact textarea{min-height:132px !important}
.quote-note-panel{margin-top:2px}
.quote-note-panel .quote-note-callout{padding:18px 20px !important;line-height:1.65 !important}
@media (max-width:1400px){.quote-kpi-strip-force{grid-template-columns:repeat(3,minmax(0,1fr)) !important}.quote-form-layout-force{grid-template-columns:1fr !important}}
@media (max-width:1150px){.quote-detail-grid-force{grid-template-columns:1fr !important}.quote-form-main-panel .erp-form-grid.three{grid-template-columns:1fr 1fr !important}}
@media (max-width:760px){.quote-kpi-strip-force{grid-template-columns:1fr 1fr !important}.quote-form-main-panel .erp-form-grid.three{grid-template-columns:1fr !important}}


.checkbox-inline{display:flex;align-items:center;gap:8px;line-height:1.2}
.checkbox-inline input[type="checkbox"]{width:16px;height:16px;min-width:16px;min-height:16px;margin:0;vertical-align:middle;accent-color:#2f7d32}
