#store-tab{max-width:1400px;margin:auto;padding:24px}#store-tab h1{font-size:clamp(26px,3vw,40px);letter-spacing:-1px;margin:4px 0}.commerce-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.commerce-heading p{color:#69707a}.commerce-tabs{display:flex;gap:12px;overflow-x:auto;border-bottom:1px solid #e1e4e8;padding-bottom:10px}.commerce-tabs button{white-space:nowrap;border:0;background:none;color:#4c5562;padding:12px 16px}.commerce-tabs [aria-pressed=true]{background:#f4c400;color:#111;border-radius:8px}.commerce-purchase,.commerce-empty{padding:24px;background:white;border:1px solid #e1e4e8;border-radius:14px;margin:18px 0;color:#151619}.commerce-purchase header{display:flex;align-items:center;justify-content:space-between;gap:18px}.commerce-purchase h3{margin:5px 0;font-size:22px}.commerce-purchase p{color:#68707d}.commerce-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:15px;margin:20px 0}.commerce-metrics>div{display:grid;gap:10px;background:#f6f7f8;padding:20px;border-radius:10px}.commerce-metrics small{color:#677080}.commerce-metrics b{font-size:24px}.commerce-actions{display:flex;gap:12px}.commerce-business-home{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:20px 0}.commerce-business-home button{display:grid;gap:9px;text-align:left;padding:24px;background:#fff;color:#111;border:1px solid #e1e4e8;border-radius:14px;box-shadow:0 5px 18px #00000005}.commerce-business-home b{font-size:24px}.commerce-business-home small{font-size:14px;color:#677080}.commerce-business-home span{background:#f4c400;border-radius:8px;padding:10px;text-align:center;margin-top:8px}.gerencia-hub .commerce-business-home{display:none}.commerce-more{width:100%}.commerce-more summary{cursor:pointer;padding:15px;color:inherit}.commerce-more button{width:100%;text-align:left}.commerce-more .ui-nav-label{display:block}.commerce-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}#store-tab dialog{width:min(850px,94vw);max-height:90dvh;overflow:auto;background:#fff;color:#111;border:1px solid #ddd;border-radius:15px;padding:28px}#store-tab dialog::backdrop{background:#0008}.commerce-dialog-heading{display:flex;justify-content:space-between;align-items:center}.commerce-dialog-heading button{font-size:24px}.commerce-form-grid input,.commerce-form-grid select,#store-tab textarea{width:100%;padding:10px;background:#fff;color:#111;border:1px solid #c8ccd2;border-radius:7px}.commerce-cost-preview{padding:20px;background:#fff9da;margin:15px 0;border-radius:10px}.commerce-tabs button:focus-visible,.commerce-business-home button:focus-visible{outline:3px solid #806600;outline-offset:3px}@media(max-width:700px){#store-tab{padding:15px}.commerce-business-home{grid-template-columns:1fr}.commerce-business-home button{padding:18px}.commerce-heading,.commerce-purchase header{align-items:flex-start;flex-direction:column}.commerce-form-grid{grid-template-columns:1fr}.commerce-purchase{padding:16px}.commerce-metrics{grid-template-columns:1fr 1fr}.commerce-metrics>div{padding:12px}.commerce-metrics b{font-size:19px}.commerce-tabs{gap:5px}.commerce-tabs button{padding:10px}.commerce-actions{flex-wrap:wrap}}

.commerce-more button{display:flex;align-items:center;gap:12px;padding:12px 15px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit}.commerce-more button.active{background:#f4c400;color:#111}.commerce-more button:hover{background:#ffffff15}

/* Scope the new workspace so legacy dark-theme rules cannot erase contrast. */
#store-tab{background:#fff;color:#151619;min-height:calc(100dvh - 100px);border-radius:16px}
#store-tab .commerce-metrics b,#store-tab h1,#store-tab h2,#store-tab h3{color:#151619}
#store-tab .commerce-heading>button,#store-tab .commerce-heading>a{flex:0 0 auto;width:auto;max-width:100%}
#store-tab .commerce-heading>a{padding:12px 18px;border:1px solid #d5d9df;border-radius:8px;text-decoration:none;color:#111;background:#f5f6f7}
#store-tab .commerce-tabs button{width:auto;flex:0 0 auto}
.commerce-nav-brand{background:transparent;padding:12px;margin:0;width:100%;min-width:0;box-sizing:border-box}
.commerce-nav-brand img{display:block;width:100%;max-width:100%;height:64px;object-fit:contain}
@media(max-width:1024px){.exact-bottom-nav>.commerce-more,.exact-bottom-nav>.commerce-nav-brand{display:none!important}#store-tab{padding-bottom:100px}}

/* The desktop sidebar contains a logo and an expandable group, not only buttons. */
@media (min-width:1025px){
  #main-view#main-view .exact-bottom-nav,
  :root body.gerencia-mode #main-view#main-view .exact-bottom-nav{
    grid-template-rows:none!important;
    grid-auto-rows:max-content!important;
    align-content:start!important;
  }
  #main-view .exact-bottom-nav>.commerce-nav-brand{order:-1;min-height:88px;}
  :root body.gerencia-mode #main-view#main-view .exact-bottom-nav>#mobile-menu-toggle,
  #main-view .exact-bottom-nav>#mobile-menu-toggle{display:none!important;}
  #main-view .exact-bottom-nav>.commerce-more{height:auto;min-height:46px;min-width:0;}
  #main-view .commerce-more>summary{min-height:46px;line-height:1.35;overflow-wrap:anywhere;}
}

/* Each business route owns its list, calendar and creation actions. */
#dispatches-tab[data-business-kind] .dispatch-kind-switch,
#dispatches-tab[data-business-kind] .calendar-filters{display:none!important;}
#dispatches-tab[data-business-kind="rental"] .calendar-legend>span:has(i.production),
#dispatches-tab[data-business-kind="production"] .calendar-legend>span:has(i.rental),
#dispatches-tab[data-business-kind="production"] .calendar-legend>span:has(i.return){display:none;}

/* CRM status follows the expanded tools in normal sidebar flow. */
@media(min-width:1025px){
  #main-view#main-view .exact-bottom-nav .exact-sync-badge,
  :root body.gerencia-mode #main-view#main-view .exact-bottom-nav .exact-sync-badge{
    position:static!important;
    inset:auto!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:44px!important;
    margin:12px 0 0!important;
    padding:9px 10px!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    white-space:normal!important;
    flex:0 0 auto!important;
  }
  #main-view .exact-bottom-nav .exact-sync-badge i{flex:0 0 auto;}
  #main-view .exact-bottom-nav .exact-sync-badge b{min-width:0;line-height:1.35;overflow-wrap:anywhere;}
}

#store-tab .commerce-table-scroll{overflow-x:auto;max-width:100%}#store-tab table{width:100%;border-collapse:collapse}#store-tab th,#store-tab td{text-align:left;padding:12px;border-bottom:1px solid #ddd;vertical-align:top}#store-tab td small{overflow-wrap:anywhere}#commerce-manage-dialog input:not([type=checkbox]),#commerce-manage-dialog select,#commerce-manage-dialog textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #ccc;border-radius:7px;background:#fff;color:#111}#commerce-manage-dialog textarea{min-height:120px}#commerce-manage-dialog label{display:grid;gap:8px}#store-tab .commerce-metrics>div{min-width:0}#store-tab .commerce-metrics b{overflow-wrap:anywhere}@media(max-width:600px){#store-tab dialog{padding:16px;width:94vw;box-sizing:border-box}#store-tab .commerce-table-scroll table{min-width:650px}}

.commerce-web{background:#071f36;color:#f7fafc;border-radius:18px;overflow:hidden}.commerce-web-nav{display:flex;align-items:center;gap:24px;padding:16px 24px;border-bottom:1px solid #ffcc0033}.commerce-web-nav img{width:140px;height:60px;object-fit:contain;filter:brightness(0) invert(1)}.commerce-web-nav span{margin-left:auto;color:#ffcc00}.commerce-web-hero{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:40px 28px}.commerce-web-hero small{color:#ffcc00;letter-spacing:2px}.commerce-web-hero h2{color:white;font-size:clamp(28px,3vw,44px);line-height:1.1;margin:16px 0}.commerce-web-hero p{color:#b8c6d3}.commerce-web-hero aside{display:grid;grid-template-columns:1fr 1fr;gap:14px;background:#102f4c;border:1px solid #ffcc0033;padding:20px;border-radius:20px;align-self:center}.commerce-web-hero aside>div{display:grid;gap:10px;background:#071f36;padding:18px;border-radius:14px}.commerce-web-hero aside b{color:#ffcc00;font-size:20px}.commerce-web-hero aside span{color:#b8c6d3}.commerce-web-catalog{padding:24px}.commerce-web-catalog>label{display:grid;gap:8px}.commerce-web-catalog input{width:100%;background:#102f4c;color:white;border:1px solid #ffcc0033;border-radius:24px;padding:12px 18px}.commerce-web-catalog nav,.commerce-web-controls{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.commerce-web-catalog nav button{background:#102f4c;color:white;border:1px solid #ffcc0033;border-radius:24px;padding:10px 16px}.commerce-web-catalog nav button[aria-pressed=true],.commerce-web-controls button[aria-pressed=true]{background:#ffcc00;color:#071f36}.commerce-web-controls button{padding:12px 18px;border-radius:10px}.commerce-web-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.commerce-web-card{background:white;color:#071f36;border-radius:12px;overflow:hidden;min-width:0}.commerce-web-photo{border:0;border-radius:0;background:#f5f6f7;width:100%;min-height:220px;padding:0;color:#68707c}.commerce-web-photo img{height:220px;width:100%;object-fit:contain;padding:20px}.commerce-web-copy{display:grid;gap:10px;padding:20px}.commerce-web-copy p{color:#68707c;font-size:14px}.commerce-web-copy small{color:#68707c}.commerce-web-copy strong{font-size:23px}.commerce-web-name{background:none;border:0;color:#071f36;padding:0;text-align:left}.commerce-web-name h3{font-size:19px;margin:0}.commerce-web-variant{display:flex;flex-wrap:wrap;width:100%;justify-content:space-between;gap:8px;background:#f2f5f7;color:#071f36;border:0;margin-top:8px;padding:10px;font-size:13px}.commerce-web-card summary{cursor:pointer}.commerce-web-frame{width:100%;height:75dvh;border:1px solid #ddd;border-radius:18px;background:white}.commerce-web :focus-visible{outline:3px solid #ffcc00;outline-offset:3px}@media(max-width:1000px){.commerce-web-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-web-hero{grid-template-columns:1fr}}@media(max-width:600px){.commerce-web-hero,.commerce-web-catalog{padding:20px}.commerce-web-hero aside{padding:12px;gap:10px}.commerce-web-grid{grid-template-columns:1fr}.commerce-web-nav{gap:12px;padding:12px}.commerce-web-nav img{width:100px}.commerce-web-controls button{flex:1}.commerce-web-copy{padding:16px}}

#store-tab dialog label{color:#303846}#store-tab dialog p{color:#4c5562}
#store-tab dialog,#store-tab dialog *{box-sizing:border-box}
#store-tab .commerce-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#store-tab .commerce-form-grid label{min-width:0;overflow-wrap:anywhere}
#store-tab dialog input,#store-tab dialog select,#store-tab dialog textarea{min-width:0;max-width:100%}
@media(max-width:700px){#store-tab .commerce-form-grid{grid-template-columns:minmax(0,1fr)}}

#store-tab .commerce-purchase-order input:not([type=checkbox]),#store-tab .commerce-purchase-order select{width:100%;padding:10px;border:1px solid #c8ccd2;border-radius:7px;background:#fff;color:#111;font-size:16px}#store-tab .commerce-purchase-order td{min-width:110px}#store-tab .commerce-purchase-order td:first-child{min-width:170px}#store-tab .commerce-purchase-order fieldset{margin:20px 0;padding:14px;border:1px solid #c8ccd2;border-radius:10px}#store-tab .commerce-purchase-order label{display:grid;gap:7px}#store-tab .commerce-actions{flex-wrap:wrap}


.purchase-heading{flex-wrap:wrap;align-items:center}.purchase-heading>h2{flex:1 0 180px}.purchase-heading>.commerce-actions{display:flex;flex-wrap:wrap;gap:8px}.purchase-cost-summary{background:#fff9df;border:1px solid #e6d578;border-radius:12px;padding:14px;color:#151619;margin:10px 0}.purchase-heading>.purchase-cost-summary{flex:1 1 520px;margin:0}.purchase-cost-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:8px 0}.purchase-cost-grid span,.purchase-cost-grid strong{display:block}.purchase-cost-grid span,.purchase-cost-summary>small{font-size:12px}.purchase-cost-grid strong{font-size:20px;overflow-wrap:anywhere}.purchase-cost-summary>small{display:block}.purchase-cost-grid>div:last-child{border-left:2px solid #d9b800;padding-left:12px}@media(max-width:700px){.purchase-heading>.purchase-cost-summary{flex:auto;width:100%;box-sizing:border-box}.purchase-cost-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Match the rental catalogue workspace to the store presentation. */
#catalog-center-sheet > .catalog-center-card{max-width:1400px!important;background:#fff!important;color:#151619;border:1px solid #e1e4e8;border-radius:18px}
#catalog-center-sheet .catalog-center-heading h2{color:#151619}
#catalog-center-sheet .catalog-center-heading .eyebrow,#catalog-center-sheet .catalog-center-heading .account-help,#catalog-center-sheet .catalog-workspace-status{color:#69707a}
#catalog-center-sheet .catalog-top-tools{margin:8px 0 14px;gap:10px}
#catalog-center-sheet .catalog-top-tools>a{color:#071f36}
#catalog-center-sheet .catalog-view-switch{background:transparent;border:0;padding:0;gap:10px}
#catalog-center-sheet .catalog-top-tools button{border-radius:10px;padding:12px 18px;min-height:44px}
#catalog-center-sheet .catalog-view-switch button{color:#071f36;background:#f2f5f7}
#catalog-center-sheet .catalog-view-switch button[aria-pressed=true],#catalog-center-sheet #catalog-create-product{background:#ffcc00;color:#071f36}
#catalog-center-sheet .catalog-storefront-shell{background:#071f36;color:#f7fafc;border:0;border-radius:18px}
#catalog-center-sheet .catalog-storefront-nav{gap:24px;padding:16px 24px;background:#071f36;border-bottom:1px solid #ffcc0033}
#catalog-center-sheet .catalog-storefront-nav img{width:140px;height:60px;object-fit:contain;filter:brightness(0) invert(1)}
#catalog-center-sheet .catalog-storefront-nav>span{margin-left:auto;padding:0;background:none;color:#ffcc00;font-size:14px;font-weight:400}
#catalog-center-sheet .catalog-storefront-hero{grid-template-columns:1fr 1fr;gap:28px;padding:40px 28px;background:#071f36}
#catalog-center-sheet .catalog-storefront-hero small{color:#ffcc00;letter-spacing:2px}
#catalog-center-sheet .catalog-storefront-hero h2{color:#fff;font-size:clamp(28px,3vw,44px);line-height:1.1;margin:16px 0}
#catalog-center-sheet .catalog-storefront-hero p{color:#b8c6d3;font-size:16px;line-height:1.5}
#catalog-center-sheet .catalog-storefront-hero button{width:auto;background:#ffcc00;color:#071f36;border-radius:10px;padding:12px 18px}
#catalog-center-sheet .catalog-storefront-hero aside{display:grid;grid-template-columns:1fr 1fr;gap:14px;background:#102f4c;border:1px solid #ffcc0033;padding:20px;border-radius:20px;align-self:center}
#catalog-center-sheet .catalog-storefront-hero aside>div{gap:10px;background:#071f36;padding:18px;border-radius:14px}
#catalog-center-sheet .catalog-storefront-hero aside b{color:#ffcc00;font-size:20px}
#catalog-center-sheet .catalog-storefront-hero aside span{color:#b8c6d3;font-size:14px;line-height:1.5}
#catalog-center-sheet .catalog-storefront-filters{padding:24px 24px 0;color:#f7fafc}
#catalog-center-sheet .catalog-product-search input{width:100%;background:#102f4c;color:#fff;border:1px solid #ffcc0033;border-radius:24px;padding:12px 18px}
#catalog-center-sheet .catalog-product-search input::placeholder{color:#b8c6d3}
#catalog-center-sheet .catalog-product-categories,#catalog-center-sheet .catalog-status-filters{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
#catalog-center-sheet .catalog-product-categories button,#catalog-center-sheet .catalog-status-filters button{width:auto;background:#102f4c;color:#fff;border:1px solid #ffcc0033;border-radius:24px;padding:10px 16px}
#catalog-center-sheet .catalog-product-categories button.active,#catalog-center-sheet .catalog-status-filters button.active{background:#ffcc00;color:#071f36}
#catalog-center-sheet .catalog-results-count{color:#b8c6d3}
#catalog-center-sheet .catalog-storefront-toolbar{padding:0 24px;color:#fff}
#catalog-center-sheet .catalog-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:24px}
#catalog-center-sheet .catalog-web-card{background:#fff;color:#071f36;border:0;border-radius:12px;box-shadow:none;overflow:hidden;min-width:0}
#catalog-center-sheet .catalog-web-card.selected{outline:2px solid #ffcc00;outline-offset:2px}
#catalog-center-sheet .catalog-web-edit{display:block;width:100%;padding:0;background:#fff;color:#071f36;border:0;border-radius:0;text-align:left}
#catalog-center-sheet .catalog-web-photo{height:220px;background:#f5f6f7;border-radius:0}
#catalog-center-sheet .catalog-web-photo img{height:220px;width:100%;object-fit:contain;padding:20px;box-sizing:border-box}
#catalog-center-sheet .catalog-web-body{display:grid;gap:10px;padding:20px}
#catalog-center-sheet .catalog-web-body h3{font-size:19px;margin:0;color:#071f36}
#catalog-center-sheet .catalog-web-body p,#catalog-center-sheet .catalog-web-body>small,#catalog-center-sheet .catalog-web-body>span{color:#68707c;font-size:14px}
#catalog-center-sheet .catalog-web-body>strong{font-size:23px;color:#071f36}
#catalog-center-sheet .catalog-web-admin{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 20px 20px;background:#fff;border:0}
#catalog-center-sheet .catalog-web-admin button{padding:11px 10px;min-height:44px;border-radius:10px}
#catalog-center-sheet .catalog-web-admin [data-catalog-quick-edit]{grid-column:1/-1;background:#ffcc00;color:#071f36;font-weight:700;border:0}
#catalog-center-sheet .catalog-web-admin [data-catalog-organize-card]{background:#f2f5f7;color:#071f36;border:1px solid #d8e0e5}
#catalog-center-sheet .catalog-published-view>div{color:#69707a}
#catalog-center-sheet .is-editing .catalog-storefront-hero aside{display:none}
#catalog-center-sheet .is-organizing .catalog-web-edit{display:grid}
#catalog-center-sheet .is-organizing .catalog-web-photo,#catalog-center-sheet .is-organizing .catalog-web-photo img{height:72px}
#catalog-center-sheet .is-organizing .catalog-web-photo img{padding:4px}
#catalog-center-sheet .is-organizing .catalog-web-body{padding:0;gap:4px}
#store-tab .purchase-heading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center}
#store-tab .purchase-heading>h2{flex:none;margin:0}
#store-tab .purchase-heading>.purchase-cost-summary{flex:none;width:min(100%,900px);box-sizing:border-box;margin:0 auto}
#store-tab .purchase-heading>.commerce-actions{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px}
#store-tab .purchase-heading>.commerce-actions>button{flex:0 1 auto;width:auto;max-width:100%;min-height:44px;margin:0;padding:12px 20px}
@media(max-width:1000px){
 #catalog-center-sheet .catalog-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #catalog-center-sheet .catalog-storefront-hero{grid-template-columns:1fr}
 #catalog-center-sheet .is-editing .catalog-product-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
 #catalog-center-sheet .catalog-storefront-nav{gap:12px;padding:12px}
 #catalog-center-sheet .catalog-storefront-nav img{width:100px}
 #catalog-center-sheet .catalog-storefront-hero{padding:20px}
 #catalog-center-sheet .catalog-storefront-hero aside{padding:12px;gap:10px}
 #catalog-center-sheet .catalog-storefront-filters{padding:20px 20px 0}
 #catalog-center-sheet .catalog-product-grid{grid-template-columns:1fr;padding:20px}
 #catalog-center-sheet .catalog-web-body{padding:16px}
 #catalog-center-sheet .catalog-web-admin{padding:0 16px 16px}
 #store-tab .purchase-heading>.commerce-actions>button{flex:1 1 200px}
}

.sales-search{display:grid;gap:8px;max-width:540px;margin:20px 0}.sales-search input{width:100%;box-sizing:border-box;border:1px solid #c8ccd2;border-radius:10px;padding:12px;font:inherit;background:#fff;color:#151619}.sales-total{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.sales-total>strong{width:100%;font-size:25px;text-align:right}.sales-badge{padding:6px 10px;border-radius:30px;background:#edf2f6;color:#19384b;font-size:12px}.sales-badge.is-paid{background:#e3f5e9;color:#14643a}.sales-badge.is-unpaid{background:#fff1cb;color:#795900}.sales-card footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}.sales-items{border-top:1px solid #e1e4e8;margin-top:16px;padding-top:8px}.sales-card footer button{width:auto}.sales-panel .commerce-heading button{width:auto}@media(max-width:700px){.sales-total{justify-content:flex-start}.sales-total>strong{text-align:left}.sales-card footer{flex-wrap:wrap}}
