@layer brand-visibility,brand-fidelity,brand-palette,brand-layout,brand-density,brand-preview,brand-foundation,page-navigation;
/* Approved Island Depot interface. White page, fixed normal palette. */
@layer brand-density,brand-preview,page-navigation;
@layer brand-density{
@media screen{
html[data-brand504] #ticketsView504 .brand-toolbar{display:flex;align-items:center;gap:14px;padding:10px 14px;border-bottom:1px solid var(--brand504-line,#dce4ed);background:#fff;flex-shrink:0;}
html[data-brand504] #ticketsView504 .brand-toolbar .tiv-controls{display:flex!important;flex:1 1 46%!important;min-width:0!important;padding:0!important;gap:7px!important;border:0!important;}
html[data-brand504] #ticketsView504 .tiv-search-slot{min-width:0!important;flex:1!important;}
html[data-brand504] #ticketsView504 .tiv-search{height:36px!important;background:var(--brand504-soft,#f5f7fb)!important;border:1px solid var(--brand504-line,#ced9e6)!important;border-radius:7px!important;}
html[data-brand504] #ticketsView504 .tiv-view-choice{font-size:0!important;gap:0!important;}
html[data-brand504] #ticketsView504 .tiv-view-choice select{font-size:12px!important;width:112px!important;padding-left:9px!important;}
html[data-brand504] #ticketsView504 .brand-toolbar .tiv-summary{display:grid!important;flex:1 1 54%!important;grid-template-columns:.72fr 1.25fr 1fr .9fr!important;gap:6px!important;padding:0!important;border:0!important;min-width:0!important;background:transparent!important;}
html[data-brand504] #ticketsView504 .brand-toolbar .tiv-summary>div{min-width:0!important;padding:5px 9px!important;border:1px solid var(--brand504-line,#e0e7ef)!important;border-left:3px solid var(--brand504-line,#c4d3e5)!important;border-radius:6px!important;background:var(--brand504-soft,#f6f8fc)!important;}
html[data-brand504] #ticketsView504 .brand-toolbar .tiv-summary>div:nth-child(2){background:var(--brand504-money,#fff8df)!important;border-left-color:#f2c545!important;}
html[data-brand504] #ticketsView504 .brand-toolbar .tiv-summary>div:nth-child(4){border-left-color:#d9364d!important;}
html[data-brand504] #ticketsView504 .tiv-summary small{display:block!important;white-space:nowrap!important;font-size:11px!important;line-height:14px!important;margin:0!important;color:var(--brand504-muted,#52657c)!important;}
html[data-brand504] #ticketsView504 .tiv-summary strong{display:block!important;font-size:17px!important;font-weight:750!important;line-height:22px!important;color:#17324d!important;}
html[data-brand504] #ticketsView504 .tiv-body{grid-template-columns:clamp(248px,24vw,292px) minmax(0,1fr)!important;}
html[data-brand504] #ticketsView504 .tiv-index{background:var(--brand504-soft,#f6f8fb)!important;padding:10px!important;}
html[data-brand504] #ticketsView504 .tiv-index-heading{min-height:34px!important;margin-bottom:6px!important;padding:6px 9px!important;}
html[data-brand504] #ticketsView504 .tiv-index-heading h2{font-size:15px!important;font-weight:750!important;line-height:20px!important;}
html[data-brand504] #ticketsView504 .tiv-index-heading small{font-size:11px!important;}
html[data-brand504] #ticketsView504 .tiv-quick-status{display:flex!important;gap:2px!important;padding-bottom:8px!important;}
html[data-brand504] #ticketsView504 .tiv-quick-status button{flex:1!important;min-width:0!important;min-height:30px!important;padding:5px 3px!important;font-size:11px!important;font-weight:600!important;}
html[data-brand504] #ticketsView504 .tiv-ticket{padding:9px!important;gap:8px!important;border:1px solid var(--brand504-line,#d4dfeb)!important;background:#fff!important;box-shadow:0 2px 5px #17324d08!important;}
html[data-brand504] #ticketsView504 .tiv-ticket[aria-pressed=true]{background:var(--brand504-selected,#eaf0f8)!important;border-color:var(--brand504-line,#b7c9df)!important;box-shadow:inset 3px 0 #d9364d,0 2px 5px #17324d0a!important;}
html[data-brand504] #ticketsView504 .tiv-record-copy strong{font-size:14px!important;font-weight:700!important;line-height:19px!important;}
html[data-brand504] #ticketsView504 .tiv-record-copy small{font-size:11px!important;line-height:16px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-detail{padding:12px 14px!important;background:#fff!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-hero{align-items:center!important;padding:10px 12px!important;margin:0 0 10px!important;gap:12px!important;border:1px solid var(--brand504-line,#dbe4ef)!important;border-top:3px solid #17324d!important;border-radius:8px!important;background:#fff!important;box-shadow:0 2px 8px #17324d07!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-hero>div:first-child{min-width:0!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-detail-top{display:flex!important;justify-content:flex-start!important;align-items:center!important;gap:9px!important;margin:0 0 3px!important;font-size:11px!important;line-height:18px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-detail-top>span:first-child:before{content:'Ticket ';font-weight:600;color:#17324d;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-status{padding:1px 7px!important;font-size:10px!important;line-height:16px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-hero h2{font-size:21px!important;font-weight:750!important;line-height:26px!important;margin:0 0 2px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-hero p{font-size:12px!important;line-height:18px!important;margin:0!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-total{flex:none!important;min-width:132px!important;padding:8px 12px!important;border:1px solid #ead273!important;text-align:right!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-total small{font-size:11px!important;line-height:16px!important;margin:0!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-total strong{font-size:24px!important;line-height:30px!important;font-weight:750!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-detail-columns{display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr)!important;gap:10px!important;align-items:start!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-detail-columns>section{min-width:0!important;border:1px solid var(--brand504-line,#dce4ed)!important;border-radius:7px!important;overflow:hidden!important;background:#fff!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-items-heading{min-height:32px!important;border-radius:0!important;padding:6px 10px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-items-heading h3{font-size:13px!important;line-height:20px!important;font-weight:750!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-items-heading small{font-size:11px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-item{padding:9px 10px!important;margin:0!important;gap:9px!important;grid-template-columns:30px minmax(0,1fr) auto!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-item:last-child{border-bottom:0!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-item>div{display:block!important;min-width:0!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-item h3{font-size:14px!important;line-height:19px!important;font-weight:650!important;margin:0 0 3px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-item small{display:inline-block!important;font-size:11px!important;line-height:16px!important;margin:0 9px 0 0!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-item>strong{font-size:14px!important;line-height:19px!important;font-weight:700!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-information{padding:0!important;border-left:1px solid var(--brand504-line,#dce4ed)!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-data{display:block!important;margin:0!important;padding:0 10px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-data>div{display:grid!important;grid-template-columns:85px minmax(0,1fr)!important;gap:9px!important;padding:7px 0!important;border-bottom:1px solid var(--brand504-tint,#edf1f6)!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-data dt{font-size:11px!important;line-height:18px!important;margin:0!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-data dd{font-size:13px!important;font-weight:600!important;line-height:19px!important;margin:0!important;overflow-wrap:anywhere!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-totals{margin:0!important;padding:8px 10px!important;border-radius:0!important;gap:10px!important;background:var(--brand504-money,#fff7da)!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-totals small{font-size:10px!important;line-height:15px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-totals strong{font-size:13px!important;line-height:19px!important;font-weight:700!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-payment{margin:0!important;padding:8px 10px!important;font-size:12px!important;border-top:1px solid var(--brand504-line,#e1e7ef)!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-payment dl{padding-top:7px!important;font-size:12px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-actions{margin-top:10px!important;gap:7px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-detail-columns .tiv-actions{margin:0!important;padding:9px 10px!important;border-top:1px solid var(--brand504-line,#dce4ed)!important;background:var(--brand504-soft,#f7f9fc)!important;flex-wrap:wrap!important;}
html[data-brand504] .ticket-card-heading{padding:6px 10px!important;min-height:32px!important;}
html[data-brand504] .ticket-card{border:1px solid var(--brand504-line,#dce4ed)!important;border-radius:7px!important;overflow:hidden!important;}
@media(max-width:1099px){
html[data-brand504] #ticketsView504 .brand-toolbar{flex-wrap:wrap!important;gap:7px!important;padding:8px 12px!important;}
html[data-brand504] #ticketsView504 .brand-toolbar .tiv-controls,html[data-brand504] #ticketsView504 .brand-toolbar .tiv-summary{flex-basis:100%!important;}
html[data-brand504] #ticketsView504 .brand-toolbar .tiv-summary>div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;padding:4px 8px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-detail-columns{grid-template-columns:minmax(0,1fr)!important;}
}
@media(max-width:600px){
html[data-brand504] #ticketsView504 .brand-toolbar{gap:7px!important;padding:8px 10px!important;}
html[data-brand504] #ticketsView504 .brand-toolbar .tiv-controls{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;}
html[data-brand504] #ticketsView504 .tiv-search-slot{grid-column:1/-1!important;}
html[data-brand504] #ticketsView504 .tiv-view-choice{justify-content:flex-start!important;font-size:12px!important;gap:8px!important;}
html[data-brand504] #ticketsView504 .tiv-view-choice select{width:130px!important;font-size:13px!important;}
html[data-brand504] #ticketsView504 .tiv-search{height:44px!important;}
html[data-brand504] #ticketsView504 .brand-toolbar .tiv-summary{grid-template-columns:1fr 1fr!important;gap:5px!important;}
html[data-brand504] #ticketsView504 .tiv-summary small{font-size:10px!important;white-space:normal!important;line-height:14px!important;}
html[data-brand504] #ticketsView504 .tiv-summary strong{font-size:15px!important;line-height:22px!important;}
html[data-brand504] #ticketsView504 .tiv-quick-status button{min-height:44px!important;font-size:12px!important;}
html[data-brand504] #ticketsView504 .tiv-index{padding:10px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-detail{padding:10px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-hero{flex-wrap:wrap!important;gap:8px!important;padding:9px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-hero h2{font-size:19px!important;line-height:24px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-total{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:9px!important;width:100%!important;min-width:0!important;padding:5px 9px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-total strong{font-size:21px!important;line-height:28px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-item{grid-template-columns:26px minmax(0,1fr) auto!important;padding:8px!important;gap:7px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-item-symbol{width:26px!important;height:30px!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-mobile-back{margin-bottom:8px!important;}
}
}
}
@layer brand-preview{
@media screen{
html[data-brand504]{
 --b-navy:#17324d;--b-red:#d9364d;--b-yellow:#f2c545;--b-ink:#17324d;--b-muted:var(--brand504-muted,#5d6d80);--b-line:var(--brand504-line,#dce4ed);
 --b-title-bg:var(--brand504-tint,#edf3fa);--b-title-ink:#17324d;--b-red-bg:#fff0f2;--b-red-ink:#a3273d;--b-yellow-bg:var(--brand504-money,#fff7db);--b-yellow-ink:#6c520b;--b-selection:var(--brand504-selected,#f0f4fa);--b-button-bg:var(--brand504-tint,#e7eef8);--b-button-ink:#17324d;
 --fp-bg:#fff!important;--fp-ink:var(--b-navy)!important;
 --rc-bg:#fff!important;--rc-paper:#fff!important;--rc-soft:var(--brand504-soft,#f7f9fc)!important;--rc-ink:var(--b-ink)!important;--rc-muted:var(--b-muted)!important;--rc-line:var(--b-line)!important;--rc-accent:var(--b-navy)!important;--rc-on:#fff!important;--rc-wash:var(--b-selection)!important;
 --tv-paper:#fff!important;--tv-base:var(--brand504-soft,#f7f9fc)!important;--tv-ink:var(--b-ink)!important;--tv-muted:var(--b-muted)!important;--tv-line:var(--b-line)!important;--tv-soft:var(--brand504-tint,#edf3fa)!important;--tv-accent:var(--b-navy)!important;--tv-accent-ink:#fff!important;--tv-accent-soft:var(--b-yellow-bg)!important;
 background:#fff!important;color:var(--b-ink)!important;color-scheme:light!important;
}
html[data-brand504=normal]{--b-title-bg:#17324d;--b-title-ink:#fff;--b-red-bg:#d9364d;--b-red-ink:#fff;--b-yellow-bg:#f2c545;--b-yellow-ink:#17324d;--b-selection:var(--brand504-selected,#edf2fa);--b-button-bg:#17324d;--b-button-ink:#fff;}
html[data-brand504] body,html[data-brand504] main,html[data-brand504] #fp-stage,
html[data-brand504] [data-fp-page],html[data-brand504] [data-fp-page]>.dialog,html[data-brand504] [data-fp-page]>form,
html[data-brand504] :is(.rc-detail,.rc-rail,.rc-workspace,.tiv-detail,.tiv-body,.tiv-index,.tiv-hero,.pos-window-body,#detailBody,.ticket-card,.modal-body,.dialog-body){background:#fff!important;color:var(--b-ink)!important;}
html[data-brand504] #fp-navigation{background:#fff!important;color:var(--b-navy)!important;border-bottom:1px solid var(--b-line)!important;box-shadow:inset 0 2px var(--b-navy)!important;}
html[data-brand504] #ticketsView504 .tiv-index{--tv-side:#fff!important;--tv-side-ink:var(--b-ink)!important;--tv-side-muted:var(--b-muted)!important;--tv-side-active:var(--b-selection)!important;}
html[data-brand504] #ticketsView504 .tiv-index-heading,
html[data-brand504] :is(.tiv-items-heading,.rc-rail-head,.ticket-card-heading){background:var(--b-title-bg)!important;color:var(--b-title-ink)!important;border:0!important;border-left:3px solid var(--b-red)!important;border-radius:5px!important;padding:6px 9px!important;min-height:32px!important;box-sizing:border-box!important;}
html[data-brand504] #ticketsView504 .tiv-index-heading{margin-bottom:8px!important;}
html[data-brand504] #ticketsView504 .tiv-index-heading :is(h2,small),
html[data-brand504] :is(.tiv-items-heading,.rc-rail-head,.ticket-card-heading) :is(h2,h3,strong,small,.rc-count){color:var(--b-title-ink)!important;}
html[data-brand504] :is(.tiv-hero h2,.rc-record-title,.rc-heading h1,.title-row h1,.page-intro h1){color:var(--b-navy)!important;}
html[data-brand504] :is(.tiv-hero,.rc-detail-head){border-bottom:2px solid var(--brand504-tint,#edf1f6)!important;}
html[data-brand504] #ticketsView504 .tiv-ticket[aria-pressed=true],
html[data-brand504] .rc-record[aria-pressed=true]{background:var(--b-selection)!important;box-shadow:inset 3px 0 var(--b-red)!important;border-color:var(--b-line)!important;}
html[data-brand504] #ticketsView504 .tiv-avatar{background:var(--b-red-bg)!important;color:var(--b-red-ink)!important;}
html[data-brand504] #ticketsView504 .tiv-quick-status button[aria-pressed=true]{background:var(--b-red-bg)!important;color:var(--b-red-ink)!important;}
html[data-brand504] :is(.tiv-summary,.rc-metrics){background:#fff!important;border-color:var(--b-line)!important;}
html[data-brand504] #ticketsView504 .tiv-summary>div{border-right:0!important;border-left:3px solid #dce5f0!important;padding-left:10px!important;}
html[data-brand504] #ticketsView504 .tiv-summary>div:nth-child(2){border-left-color:var(--b-yellow)!important;}
html[data-brand504] #ticketsView504 .tiv-summary>div:nth-child(4){border-left:3px solid var(--b-red)!important;}
html[data-brand504] :is(.tiv-total,.tiv-totals,.ticket-payment .commercial-total){background:var(--b-yellow-bg)!important;color:var(--b-yellow-ink)!important;border:0!important;border-radius:6px!important;padding:8px 12px!important;}
html[data-brand504] :is(.tiv-total,.tiv-totals,.ticket-payment .commercial-total) :is(small,strong,b,span){color:var(--b-yellow-ink)!important;}
html[data-brand504] .ticket-payment .ticket-card-heading{background:var(--b-yellow-bg)!important;color:var(--b-yellow-ink)!important;border-left-color:var(--b-yellow)!important;}
html[data-brand504] .ticket-payment .ticket-card-heading h3{color:var(--b-yellow-ink)!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-primary,
html[data-brand504] .rc-actions button:first-child,
html[data-brand504] :is(#printInvoice,#saveProduct){background:var(--b-button-bg)!important;color:var(--b-button-ink)!important;border:1px solid #c5d2e3!important;}
html[data-brand504] :is(#ticketsView504,#ticketsCardsInspector504) .tiv-secondary{background:#fff!important;color:var(--b-navy)!important;border-color:var(--b-line)!important;}
html[data-brand504] :is(#goReturn,.danger,.button-danger){background:var(--b-red-bg)!important;color:var(--b-red-ink)!important;border:1px solid #e9b7bf!important;}
html[data-brand504] #ticketsView504 .tiv-item-symbol{background:var(--brand504-tint,#edf3fa)!important;color:var(--b-navy)!important;}
html[data-brand504] #ticketsView504 :is(.tiv-record-copy strong,.tiv-record-total,.tiv-item strong,.tiv-item h3){color:var(--b-navy)!important;}
html[data-brand504] #ticketsView504 .tiv-footer{background:#fff!important;color:var(--b-muted)!important;}
html[data-brand504] :is(.tiv-status,.payment-summary>span){background:var(--brand504-soft,#f1f5fa)!important;color:var(--b-navy)!important;border-color:var(--b-line)!important;}
html[data-brand504] [data-fp-page]>:is(.head,.dialog-head,.modal-head,.modal-title,.edit-heading),
html[data-brand504] [data-fp-page]>.dialog>header,
html[data-brand504] [data-fp-page]>.modal-card>.modal-head{background:var(--b-title-bg)!important;color:var(--b-title-ink)!important;border-bottom:2px solid var(--b-yellow)!important;}
html[data-brand504] [data-fp-page]>:is(.head,.dialog-head,.modal-head,.modal-title,.edit-heading) :is(h1,h2,h3,small,p),
html[data-brand504] [data-fp-page]>.dialog>header :is(h1,h2,h3,small,p){color:var(--b-title-ink)!important;}
html[data-brand504] [data-fp-page] :is(input,select,textarea){background:#fff!important;color:var(--b-ink)!important;border-color:var(--brand504-line,#ccd8e6)!important;}
html[data-brand504] [data-fp-page] :is(label,legend){color:var(--b-navy)!important;}
}
}

@layer brand-density,brand-preview,brand-foundation,page-navigation;
@layer brand-density{@media screen{html[data-brand-system504] [data-brand-ink=dark]{color:#17324d!important;}html[data-brand-system504] [data-brand-ink=light]{color:#fff!important;}}}
@layer brand-foundation{
@media screen{
html[data-brand-system504],html[data-brand-system504] body{
 color-scheme:light!important;background:#fff!important;background-image:none!important;color:#17324d!important;
 font-family:'Segoe UI',Arial,sans-serif!important;
}
html[data-brand-system504] :where(body,main,section,article,aside,nav,header,footer,form,dialog,div){
 --bg:#fff!important;--bg-app:#fff!important;--bg-app-alt:var(--brand504-soft,#f6f8fb)!important;--bg-card:#fff!important;--bg-hover:var(--brand504-tint,#edf3fa)!important;
 --base:#fff!important;--a-base:#fff!important;--canvas:#fff!important;--surface:#fff!important;--card:#fff!important;--panel:#fff!important;--card-bg:#fff!important;--a-panel:#fff!important;--ui-bg:#fff!important;--ui-white:#fff!important;--pos-surface:#fff!important;
 --ink:#17324d!important;--text:#17324d!important;--text-main:#17324d!important;--text-primary:#17324d!important;--ui-ink:#17324d!important;--ui-text:#17324d!important;--pos-ink:#17324d!important;--a-text:#17324d!important;--cw-ink:#17324d!important;--q-ink:#17324d!important;
 --muted:var(--brand504-muted,#52657c)!important;--text-muted:var(--brand504-muted,#52657c)!important;--ui-muted:var(--brand504-muted,#52657c)!important;--a-muted:var(--brand504-muted,#52657c)!important;--pos-muted:var(--brand504-muted,#52657c)!important;--cw-muted:var(--brand504-muted,#52657c)!important;--q-softink:var(--brand504-muted,#52657c)!important;
 --navy:#17324d!important;--navy2:#234762!important;--navy-2:#234762!important;--navy-light:var(--brand504-tint,#edf3fa)!important;--ui-navy:#17324d!important;--ui-navy-light:var(--brand504-tint,#edf3fa)!important;--pos-navy:#17324d!important;--cw-navy:#17324d!important;
 --accent:#17324d!important;--control-accent:#17324d!important;--blue:#17324d!important;--blue2:#234762!important;--blue-dark:#17324d!important;--blue-soft:var(--brand504-tint,#edf3fa)!important;--ui-blue:#17324d!important;--cw-blue:#17324d!important;--q-blue:#17324d!important;--brand-blue:#17324d!important;--hot:#d9364d!important;
 --red:#d9364d!important;--brand-red:#d9364d!important;--ui-red:#d9364d!important;--cw-red:#d9364d!important;--q-red:#d9364d!important;--red-soft:#fff0f2!important;--red-bg:#fff0f2!important;
 --yellow:#f2c545!important;--brand-yellow:#f2c545!important;--ui-yellow:#f2c545!important;--gold:#f2c545!important;--orange:#f2c545!important;--brand-orange:#f2c545!important;--ui-orange:#f2c545!important;--cw-yellow:#f2c545!important;--q-yellow:#f2c545!important;--ui-amber:#f2c545!important;
 --green:#17324d!important;--q-green:#17324d!important;--greenSoft:var(--brand504-tint,#edf3fa)!important;--green-soft:var(--brand504-tint,#edf3fa)!important;--purple:#17324d!important;--teal:#17324d!important;
 --line:var(--brand504-line,#dce4ed)!important;--edge:var(--brand504-line,#dce4ed)!important;--border:var(--brand504-line,#dce4ed)!important;--border-color:var(--brand504-line,#dce4ed)!important;--ui-line:var(--brand504-line,#dce4ed)!important;--a-line:var(--brand504-line,#dce4ed)!important;--cw-line:var(--brand504-line,#dce4ed)!important;--pos-line:var(--brand504-line,#dce4ed)!important;--q-line:var(--brand504-line,#dce4ed)!important;
 --soft:var(--brand504-soft,#f6f8fb)!important;--tint:var(--brand504-tint,#edf3fa)!important;--glass:#fff!important;--a-soft:var(--brand504-soft,#f6f8fb)!important;--a-head:var(--brand504-tint,#edf3fa)!important;--a-active:var(--brand504-tint,#edf3fa)!important;--q-pale:var(--brand504-soft,#f6f8fb)!important;--q-selected:var(--brand504-tint,#edf3fa)!important;
 --picker-bg:#fff!important;--picker-text:#17324d!important;--picker-line:var(--brand504-line,#dce4ed)!important;--picker-muted:var(--brand504-muted,#52657c)!important;--picker-hover:var(--brand504-tint,#edf3fa)!important;
 --account-bg:#fff!important;--account-text:#17324d!important;--account-line:var(--brand504-line,#dce4ed)!important;--account-muted:var(--brand504-muted,#52657c)!important;--account-hover:var(--brand504-tint,#edf3fa)!important;
 --result-bg:#fff!important;--result-ink:#17324d!important;--result-muted:var(--brand504-muted,#52657c)!important;--result-line:var(--brand504-line,#dce4ed)!important;--result-soft:var(--brand504-soft,#f6f8fb)!important;--result-active:var(--brand504-tint,#edf3fa)!important;--result-price:#17324d!important;
 --series:#17324d!important;--series-dark:#17324d!important;--series-soft:var(--brand504-tint,#edf3fa)!important;--series-line:var(--brand504-line,#dce4ed)!important;
 --ui-radius:8px!important;--radius:8px!important;--shadow:0 2px 8px #17324d0a!important;--ui-shadow:0 2px 8px #17324d0a!important;--a-shadow:0 2px 8px #17324d0a!important;
}
html[data-brand-system504] :is(main,.app,.app-shell,.page,.page-shell,.workspace,.content,.main-content,.module-card,.m504,.m504-main,.m504-header,.m504-band,.m504-menu,.cw,.cw-app,.cw-header,.cw-tools,.cw-actionbar,.cw-bottom,#app-sidebar,.side,.sidebar,.frame-rail,.modal-card,.dialog-card,.dialog-body,.modal-body,.pos-window-body,.p66-window-body,.cons-form,.cp73-body,.cs74-body,.inv74-body,.backup69-body,.db-import-body,#admin-loading,#admin-startup-screen,#login-screen,#password-change-screen){background:#fff!important;background-image:none!important;color:#17324d!important;}
html[data-brand-system504] .m504:before,html[data-brand-system504] .m504:after{display:none!important;}
html[data-brand-system504] :is(.m504-themes,.appearance504-controls,[data-appearance-settings],[data-appearance-trigger],#appearance504-picker){display:none!important;}
html[data-brand-system504] :is(h1,h2,h3,h4,legend){color:#17324d!important;font-weight:750!important;letter-spacing:-.015em!important;}
html[data-brand-system504] h1{font-size:22px!important;line-height:28px!important;margin-top:0!important;margin-bottom:6px!important;}
html[data-brand-system504] h2{font-size:18px!important;line-height:24px!important;}
html[data-brand-system504] h3{font-size:15px!important;line-height:21px!important;}
html[data-brand-system504] :is(p,small,dt,.muted,.help,.eyebrow){color:var(--brand504-muted,#52657c);}
html[data-brand-system504] :is(button,.btn,.button,[role=button],input,select,textarea){font-family:inherit!important;box-sizing:border-box!important;}
html[data-brand-system504] :is(button,.btn,.button,[role=button]){border-radius:6px!important;font-weight:650!important;font-size:13px!important;min-height:32px;padding:6px 10px;box-shadow:none!important;}
html[data-brand-system504] :is(button,.btn,.button){background:#fff!important;color:#17324d!important;border:1px solid var(--brand504-line,#ccd8e6)!important;}
html[data-brand-system504] :is(button,.btn,.button):hover:not(:disabled){background:var(--brand504-tint,#edf3fa)!important;border-color:#9eb4cc!important;}
html[data-brand-system504] :is(button,.btn,.button):disabled{opacity:.55;}
html[data-brand-system504] :is(.primary,.confirm,.login-submit,.p66-primary,.cons-primary,.cw-primary,.btn-primary,.submit,[type=submit],#printInvoice,#saveProduct,#saveClient,#addProduct,#checkout,.m504-card-action){background:#17324d!important;color:#fff!important;border-color:#17324d!important;}
html[data-brand-system504] :is(.primary,.confirm,.login-submit,.p66-primary,.cons-primary,.cw-primary,.btn-primary,.submit,[type=submit],#printInvoice,#saveProduct,#saveClient,#addProduct,#checkout):hover:not(:disabled){background:#234762!important;color:#fff!important;}
html[data-brand-system504] :is(.danger,.delete,.cw-danger,.cs75-delete,.button-danger,[data-delete],[data-remove]){background:#fff0f2!important;color:#a3273d!important;border-color:#edbdc6!important;}
html[data-brand-system504] :is(button,[role=tab])[aria-pressed=true],html[data-brand-system504] [role=tab][aria-selected=true]{background:#d9364d!important;border-color:#d9364d!important;color:#fff!important;}
html[data-brand-system504] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea){background:#fff!important;color:#17324d!important;border:1px solid var(--brand504-line,#ccd8e6)!important;border-radius:6px!important;font-size:14px!important;}
html[data-brand-system504] :is(input,select,textarea):focus{outline:2px solid #17324d!important;outline-offset:1px!important;}
html[data-brand-system504] :is(input[type=radio],input[type=checkbox]){accent-color:#d9364d!important;}
html[data-brand-system504] :is(input,textarea)::placeholder{color:#66798d!important;opacity:1!important;}
html[data-brand-system504] :is(a){color:#17324d;}
html[data-brand-system504] [data-brand-panel]{background:#fff!important;color:#17324d!important;border:1px solid var(--brand504-line,#dce4ed)!important;border-radius:8px!important;box-shadow:0 2px 8px #17324d07!important;}
html[data-brand-system504] :is(.panel,.card,.empresa-fiscal,.uploadCard,.resultCard){padding:12px!important;}
html[data-brand-system504] [data-brand-heading]{background:var(--brand504-tint,#edf3fa)!important;color:#17324d!important;border-left:3px solid #d9364d!important;border-radius:5px!important;padding:6px 9px!important;min-height:32px;box-sizing:border-box!important;}
html[data-brand-system504] [data-brand-heading] :is(h1,h2,h3,h4,p,small,strong){color:inherit!important;margin-top:0!important;margin-bottom:0!important;}
html[data-brand-system504] :is(.rc-rail-head,.ticket-card-heading,.tiv-items-heading){background:#17324d!important;color:#fff!important;}
html[data-brand-system504] :is(.rc-rail-head,.ticket-card-heading,.tiv-items-heading) :is(h1,h2,h3,h4,small,strong){color:#fff!important;}
html[data-brand-system504] :is(.modal-head,.dialog-head,.window-head,.p66-window-head,.cons-window-head,.modal-title,.edit-heading,.product-editor-head){background:#17324d!important;color:#fff!important;border-bottom:2px solid #f2c545!important;box-shadow:none!important;}
html[data-brand-system504] :is(.modal-head,.dialog-head,.window-head,.p66-window-head,.cons-window-head,.modal-title,.edit-heading,.product-editor-head) :is(h1,h2,h3,p,small,strong){color:#fff!important;}
html[data-brand-system504] :is(.modal-head,.dialog-head,.window-head,.p66-window-head,.cons-window-head,.modal-title,.edit-heading,.product-editor-head) :is(button,.close){background:transparent!important;color:#fff!important;border-color:#ffffff45!important;}
html[data-brand-system504] :is(.modal-body,.dialog-body,.pos-window-body,.p66-window-body,.cp73-body,.cs74-body,.cons-form){padding:12px!important;gap:10px!important;}
html[data-brand-system504] :is(.dialog-actions,.modal-actions,.dialog-footer,.pos-window-footer,.p66-window-foot,.cons-window-foot){background:#fff!important;border-top:1px solid var(--brand504-line,#dce4ed)!important;padding:8px 12px!important;gap:8px!important;}
html[data-brand-system504] :is(.kpis,.overview,.stats,.metrics,.cp73-stats){gap:8px!important;margin-top:8px!important;margin-bottom:8px!important;}
html[data-brand-system504] :is(.kpis,.overview,.stats,.metrics,.cp73-stats)>:is(article,.stat,.metric,div){background:var(--brand504-soft,#f6f8fb)!important;color:#17324d!important;border:1px solid var(--brand504-line,#dce4ed)!important;border-left:3px solid #17324d!important;border-radius:6px!important;padding:8px 10px!important;box-shadow:none!important;}
html[data-brand-system504] :is(.kpis,.overview,.stats,.metrics,.cp73-stats)>:nth-child(2){background:var(--brand504-money,#fff8df)!important;border-left-color:#f2c545!important;}
html[data-brand-system504] :is(.kpis,.overview,.stats,.metrics,.cp73-stats)>:last-child{border-left-color:#d9364d!important;}
html[data-brand-system504] :is(.kpis,.overview,.stats,.metrics,.cp73-stats) :is(b,strong){font-size:19px!important;line-height:25px!important;color:#17324d!important;}
html[data-brand-system504] :is(.total-box,.checkout-total,.commercial-total,.grand-total,.payment-total,.summary-total){background:var(--brand504-money,#fff7da)!important;color:#17324d!important;border-color:#ead273!important;}
html[data-brand-system504] :is(th,thead){background:var(--brand504-tint,#edf3fa)!important;color:#17324d!important;border-color:var(--brand504-line,#dce4ed)!important;}
html[data-brand-system504] :is(td,th){padding-top:9px!important;padding-bottom:9px!important;border-color:var(--brand504-line,#dce4ed)!important;}
html[data-brand-system504] :is(.badge,.status,.pill,.chip,.cw-chip){background:var(--brand504-tint,#edf3fa)!important;color:#17324d!important;border-color:var(--brand504-line,#dce4ed)!important;}
html[data-brand-system504] :is(.error,.invalid,.bad,[role=alert]){color:#a3273d!important;}
html[data-brand-system504] :is(.warning,.note,.p66-note,.backup69-note){background:var(--brand504-money,#fff8df)!important;color:#6c520b!important;border-color:#eadb9a!important;}
html[data-brand-system504] :is(.module-bar,.moduleHeader,.topbar,.screenTop,.repairHead,.cloud-header,.cw-header){background:#fff!important;color:#17324d!important;border-bottom:1px solid var(--brand504-line,#dce4ed)!important;box-shadow:none!important;min-height:48px!important;padding:7px 14px!important;}
html[data-brand-system504] :is(.title-row,.page-intro,.cp73-head,.module-head,.top){margin-bottom:10px!important;gap:10px!important;}
html[data-brand-system504] :is(.toolbar,.filters,.filter-bar,.cp73-toolbar,.cw-tools){background:#fff!important;border-color:var(--brand504-line,#dce4ed)!important;padding:8px 10px!important;gap:8px!important;}
html[data-brand-system504] :is(.m504,.m504-header,.m504-band,.m504-menu,.m504-card){--text:#17324d!important;--muted:var(--brand504-muted,#52657c)!important;--base:#fff!important;--surface:#fff!important;--glass:#fff!important;--edge:var(--brand504-line,#dce4ed)!important;}
html[data-brand-system504] .m504-header{padding:12px 20px!important;gap:12px!important;}
html[data-brand-system504] .m504-logo{background:#d9364d!important;border-color:#d9364d!important;box-shadow:none!important;width:42px!important;height:42px!important;border-radius:10px!important;font-size:21px!important;}
html[data-brand-system504] .m504-brand strong{font-size:23px!important;}
html[data-brand-system504] .m504-band{margin:0 16px!important;padding:7px!important;border-radius:8px!important;box-shadow:none!important;}
html[data-brand-system504] .m504-main{padding:16px 20px!important;}
html[data-brand-system504] .m504-heading{margin-bottom:12px!important;}
html[data-brand-system504] .m504-heading p{font-size:14px!important;}
html[data-brand-system504] .m504-grid{gap:12px!important;}
html[data-brand-system504] :is(.m504-card,.access-card,.sub-card){background:#fff!important;color:#17324d!important;background-image:none!important;border:1px solid var(--brand504-line,#dce4ed)!important;border-top:3px solid #17324d!important;border-radius:8px!important;box-shadow:0 2px 8px #17324d08!important;padding:14px!important;}
html[data-brand-system504] :is(.m504-card,.access-card,.sub-card):nth-child(3n+2){border-top-color:#d9364d!important;}
html[data-brand-system504] :is(.m504-card,.access-card,.sub-card):nth-child(3n){border-top-color:#f2c545!important;}
html[data-brand-system504] :is(.access-icon,.sub-icon,.m504-medallion,.stat-symbol,.metric .ico){background:var(--brand504-tint,#edf3fa)!important;color:#17324d!important;box-shadow:none!important;border:1px solid var(--brand504-line,#dce4ed)!important;}
html[data-brand-system504] :is(.menu-item.active,.nav.active,.m504-navbutton.m504-active,.frame-rail [aria-current=page],.cw-quick [aria-current=page]){background:var(--brand504-tint,#edf3fa)!important;color:#17324d!important;box-shadow:inset 3px 0 #d9364d!important;border-color:var(--brand504-line,#dce4ed)!important;}
html[data-brand-system504] .menu-item{margin-bottom:5px!important;padding:10px 12px!important;}
html[data-brand-system504] .rc-metrics>article{padding:6px 10px!important;gap:2px!important;}
html[data-brand-system504] .rc-workspace{grid-template-columns:minmax(240px,27%) minmax(0,1fr)!important;border-radius:7px!important;}
html[data-brand-system504] .rc-rail{background:var(--brand504-soft,#f6f8fb)!important;padding:10px!important;}
html[data-brand-system504] .rc-record{padding:9px 10px!important;margin-bottom:5px!important;border:1px solid var(--brand504-line,#dce4ed)!important;border-radius:6px!important;background:#fff!important;}
html[data-brand-system504] .rc-record[aria-pressed=true]{background:var(--brand504-selected,#eaf0f8)!important;box-shadow:inset 3px 0 #d9364d!important;}
html[data-brand-system504] .rc-detail{padding:12px!important;}
html[data-brand-system504] .rc-detail-head{padding:10px 12px!important;margin-bottom:10px!important;border:1px solid var(--brand504-line,#dce4ed)!important;border-top:3px solid #17324d!important;border-radius:7px!important;background:#fff!important;color:#17324d!important;}
html[data-brand-system504] :is(.product-section-icon,.cw-icon,.sidebar-brand .logo-box-mini){color:#17324d!important;}
html[data-brand-system504] #productForm{background:#fff!important;}
html[data-brand-system504] .product-editor-head{padding:8px 16px!important;min-height:48px!important;}
html[data-brand-system504] .product-editor-head :is(.product-eyebrow,p){display:none!important;}
html[data-brand-system504] :is(.module-header-504,.titlebar,body>header,.main-container>header){background:#fff!important;color:#17324d!important;background-image:none!important;border-bottom:1px solid var(--brand504-line,#dce4ed)!important;box-shadow:none!important;}
html[data-brand-system504] :is(.module-header-504,.titlebar,body>header) :is(h1,h2,h3,p,small,span,b,strong,a){color:#17324d!important;}
html[data-brand-system504] .main-container>header{height:64px!important;min-height:64px!important;padding:10px 20px!important;}
html[data-brand-system504] .sidebar-brand{height:64px!important;min-height:64px!important;padding:10px 20px!important;}
html[data-brand-system504] :is(.sidebar-brand .logo-box-mini,.titlebar .brand>span){background:#d9364d!important;color:#fff!important;box-shadow:none!important;}
html[data-brand-system504] :is(.access-info p,.sub-text p,.menu-item){font-weight:550!important;}
html[data-brand-system504] :is(.user-button.reference-seller-card,.checkout-corner,.checkout-breakdown,.checkout-total-row,.checkout-breakdown>div){background:#fff!important;color:#17324d!important;border-color:var(--brand504-line,#dce4ed)!important;background-image:none!important;}
html[data-brand-system504] :is(.checkout-breakdown,.checkout-total-row,.reference-seller-card) :is(span,small,strong,em){color:#17324d!important;}
html[data-brand-system504] .checkout-total{background:#f2c545!important;color:#17324d!important;}
html[data-brand-system504] .checkout-total :is(span,strong){color:#17324d!important;}
html[data-brand-system504] :is(.corner-pay-button,#checkoutBtn){background:#17324d!important;color:#fff!important;border-color:#17324d!important;}
html[data-brand-system504] :is(.corner-pay-button,#checkoutBtn) :is(span,kbd){color:#fff!important;}
html[data-brand-system504] :is(.frame-rail-icon,.quick-nav button svg,.avatar){background:var(--brand504-tint,#edf3fa)!important;color:#17324d!important;background-image:none!important;box-shadow:none!important;border-color:var(--brand504-line,#dce4ed)!important;}
html[data-brand-system504] .is-danger .frame-rail-icon{background:#fff0f2!important;color:#d9364d!important;}
html[data-brand-system504] :is(button,a) svg{background-color:transparent!important;color:inherit!important;}
html[data-brand-system504] .product-section-icon{background:var(--brand504-tint,#edf3fa)!important;border-color:var(--brand504-line,#dce4ed)!important;}
html[data-brand-system504] .m504-support a{background:#17324d!important;color:#fff!important;border:1px solid #17324d!important;border-radius:6px!important;}
html[data-brand-system504] :is(.logo-placeholder,.brand-block){color:#17324d!important;}
html[data-brand-system504] .logo-placeholder>span{color:#17324d!important;}
html[data-brand-system504] :is(.login-card,.empresa-fiscal){border-top:3px solid #17324d!important;padding:18px!important;border-radius:8px!important;}
html[data-brand-system504] :is(#app-sidebar,.side,.frame-rail){border-right:1px solid var(--brand504-line,#dce4ed)!important;}
@media(max-width:600px){
html[data-brand-system504] :is(button,.btn,.button,[role=button]){min-height:44px;}
html[data-brand-system504] :is(.module-bar,.moduleHeader,.topbar,.screenTop,.repairHead,.cloud-header,.cw-header){min-height:56px!important;padding:6px 10px!important;}
html[data-brand-system504] .rc-workspace{grid-template-columns:minmax(0,1fr)!important;}
html[data-brand-system504] .m504-header,html[data-brand-system504] .m504-main{padding:10px!important;}
html[data-brand-system504] .m504-band{margin:0 10px!important;}
html[data-brand-system504] :is(.modal-body,.dialog-body,.pos-window-body,.p66-window-body,.cp73-body,.cs74-body,.cons-form){padding:10px!important;}
}
}
}

/* Layout corrections verified against the real module entries, not just the page frame. */
@layer brand-visibility{@media screen{html[data-brand-system504] [hidden]{display:none!important;}}}
@layer brand-layout{
@media screen{
html[data-brand-system504] .commercial-nav{align-self:start!important;grid-column:1/-1!important;height:auto!important;min-height:0!important;max-height:none!important;padding:6px!important;margin:0 0 8px!important;gap:6px!important;border-radius:6px!important;background:var(--brand504-soft,#f6f8fb)!important;}
html[data-brand-system504] .commercial-nav a{min-height:32px!important;padding:6px 9px!important;font-size:12px!important;border-radius:5px!important;gap:6px!important;box-sizing:border-box!important;}
html[data-brand-system504] .commercial-nav>span{display:none!important;}
html[data-brand-system504][data-fp-embedded] .commercial-nav .nav-home{display:none!important;}
html[data-brand-system504][data-fp-embedded] .commercial-nav:not(:has(a:not(.nav-home))){display:none!important;}
html[data-brand-system504] .brand-query-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;grid-column:1/-1!important;margin-bottom:8px!important;}
html[data-brand-system504] .brand-query-toolbar>.commercial-nav{margin:0!important;border:0!important;background:transparent!important;padding:0!important;}
html[data-brand-system504] .brand-query-toolbar>.rc-heading{margin:0!important;min-height:0!important;flex:0 1 auto!important;gap:6px!important;}
html[data-brand-system504] .brand-query-toolbar>.rc-heading>div:empty{display:none!important;}
html[data-brand-system504] .tiv-source{display:none!important;}
html[data-brand-system504][data-fp-embedded].rc-page body>header:not(#fp-navigation){display:none!important;}
html[data-brand-system504][data-fp-embedded] body.clients-only>main{display:block!important;padding:10px 12px!important;}
html[data-brand-system504][data-fp-embedded] body.clients-only .rc-heading{display:none!important;}
html[data-brand-system504][data-fp-embedded] body.clients-only .commercial-nav:not(:has(.nav-return)){display:none!important;}
html[data-brand-system504] body.clients-only .rc-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;gap:6px!important;margin:0 0 8px!important;}
html[data-brand-system504] body.clients-only .rc-metrics article{display:flex!important;justify-content:space-between!important;min-width:0!important;padding:7px 10px!important;}
/* Inventory: the list and the action rail are explicit grid areas. Related links
   remain available under Exportar y consultar; they cannot become a grid column. */
html[data-brand-system504] body.inventory-compact main:not(#fp-stage){display:grid!important;grid-template-columns:minmax(0,1fr) 210px!important;grid-template-areas:'list tools'!important;grid-template-rows:minmax(0,1fr)!important;align-items:start!important;gap:12px!important;width:100%!important;max-width:none!important;padding:10px 12px!important;box-sizing:border-box!important;}
html[data-brand-system504] body.inventory-compact main>.commercial-nav{display:none!important;}
html[data-brand-system504] body.inventory-compact .inventory-list-area{grid-area:list!important;padding:0!important;width:100%!important;min-width:0!important;}
html[data-brand-system504] body.inventory-compact .inventory-rail{grid-area:tools!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;padding-left:12px!important;gap:7px!important;}
html[data-brand-system504] body.inventory-compact .inventory-rail h2{font-size:12px!important;line-height:18px!important;margin:0!important;}
html[data-brand-system504] body.inventory-compact .inventory-rail p{font-size:12px!important;line-height:18px!important;margin:0!important;overflow-wrap:anywhere!important;}
html[data-brand-system504][data-fp-embedded] body.inventory-compact>.topbar{display:none!important;}
html[data-brand-system504][data-fp-embedded] body.inventory-compact main:not(#fp-stage){height:100dvh!important;overflow:hidden!important;}
html[data-brand-system504][data-fp-embedded] body.inventory-compact .inventory-list-area{height:100%!important;}
html[data-brand-system504][data-fp-embedded] body.inventory-compact .inventory-rail{max-height:100%!important;overflow:auto!important;}
html[data-brand-system504] body.inventory-compact .page-head{margin:0 0 8px!important;}
html[data-brand-system504] body.inventory-compact .page-head h1{font-size:18px!important;line-height:24px!important;margin:0!important;}
html[data-brand-system504][data-fp-embedded] body.inventory-compact .page-head{display:none!important;}
html[data-brand-system504] body.inventory-compact .summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;margin:0 0 8px!important;}
html[data-brand-system504] body.inventory-compact .summary article{padding:7px 9px!important;}
html[data-brand-system504] body.inventory-compact .summary span{font-size:12px!important;line-height:16px!important;}
html[data-brand-system504] body.inventory-compact .catalog{flex:1!important;min-height:0!important;}
html[data-brand-system504] body.inventory-compact .catalog>.table-wrap{flex:1!important;max-height:none!important;}
html[data-brand-system504] body.inventory-compact .tools .search{flex:1!important;min-width:0!important;}
html[data-brand-system504] body.inventory-compact .tools .search input{min-width:0!important;width:100%!important;border:0!important;}
html[data-brand-system504] body.inventory-compact .inventory-pages{display:flex!important;align-items:center!important;flex-wrap:wrap!important;font-size:12px!important;padding:0 0 8px!important;}
html[data-brand-system504] body.inventory-compact .inventory-pages label{margin-left:auto!important;}
/* Embedded modules share the navigation title. Keep their actions, remove the duplicate branding. */
html[data-brand-system504][data-fp-embedded][data-brand-page504=ajustes-inventario] body>.module-bar,
html[data-brand-system504][data-fp-embedded][data-brand-page504=usuarios] body>.topbar{display:none!important;}
html[data-brand-system504][data-fp-embedded][data-brand-page504=usuarios] main.workspace{max-width:none!important;padding:10px 12px!important;}
html[data-brand-system504][data-fp-embedded][data-brand-page504=usuarios] .module-head{padding:8px 10px!important;}
html[data-brand-system504][data-fp-embedded][data-brand-page504=ajustes-inventario] main{padding:10px 12px!important;}
html[data-brand-system504][data-fp-embedded] .page-title{margin:0 0 10px!important;gap:8px!important;}
html[data-brand-system504][data-fp-embedded] .page-title small{display:none!important;}
html[data-brand-system504] .moduleHeader{min-height:0!important;padding:8px 10px!important;margin-bottom:8px!important;gap:10px!important;}
html[data-brand-system504] .moduleHeader h1{font-size:19px!important;line-height:25px!important;}
html[data-brand-system504][data-fp-embedded] .moduleHeader :is(.heading,.brandHead){display:none!important;}
html[data-brand-system504][data-fp-embedded] .moduleHeader #back{display:none!important;}
html[data-brand-system504][data-fp-embedded] .converterApp>.moduleHeader{display:none!important;}
html[data-brand-system504][data-fp-embedded] .module-frame-head{display:none!important;}
html[data-brand-system504] .reception-standalone-panel{position:static!important;inset:auto!important;width:100%!important;height:100dvh!important;max-width:none!important;max-height:none!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;}
html[data-brand-system504][data-fp-embedded] .reception-standalone-head{display:none!important;}
html[data-brand-system504] .reception-standalone-body{min-height:0!important;overflow:auto!important;}
html[data-brand-system504] .reception-toolbar{padding:6px 12px!important;}
html[data-brand-system504] body.reception-compact .pcg-journey{margin-bottom:8px!important;}
html[data-brand-system504] body.reception-compact .pcg-journey li{padding:8px!important;}
html[data-brand-system504] .converterApp{padding:12px!important;}
html[data-brand-system504] .converterApp #pdfFile{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;max-width:1px!important;min-height:0!important;padding:0!important;margin:0!important;clip-path:inset(50%)!important;overflow:hidden!important;}
html[data-brand-system504] .seriesApp,html[data-brand-system504] .app:has(>.series-progress){padding:10px 12px!important;}
/* Cotizaciones keeps its original adapter and actions, with no desktop frame. */
html[data-brand-system504] body.cot-desktop main.cot-window{position:static!important;inset:auto!important;transform:none!important;translate:none!important;width:100%!important;height:100dvh!important;min-height:0!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;overflow:auto!important;}
html[data-brand-system504] :is(.cot-taskbar,.cot-window-controls,.cot-resize){display:none!important;}
html[data-brand-system504] body.cot-desktop main.cot-window>.title{height:auto!important;min-height:44px!important;padding:6px 12px!important;background:#fff!important;border-bottom:1px solid var(--brand504-line,#dce4ed)!important;box-shadow:none!important;cursor:default!important;touch-action:auto!important;}
html[data-brand-system504][data-fp-embedded] body.cot-desktop main.cot-window>.title>div{display:none!important;}
html[data-brand-system504] .cot-window .panel{flex:1!important;min-height:0!important;}
html[data-brand-system504] .cot-window .rc-workspace{min-height:260px!important;}
html[data-brand-system504][data-fp-embedded][data-brand-page504=cierres-caja] main>h1,
html[data-brand-system504][data-fp-embedded][data-brand-page504=cierres-caja] main>h1+p{display:none!important;}
@media(max-width:850px){
html[data-brand-system504] body.inventory-compact main:not(#fp-stage){display:flex!important;flex-direction:column!important;height:auto!important;overflow:visible!important;gap:12px!important;}
html[data-brand-system504][data-fp-embedded] body.inventory-compact main:not(#fp-stage){height:auto!important;min-height:100dvh!important;overflow:visible!important;}
html[data-brand-system504] body.inventory-compact .inventory-list-area{height:auto!important;flex:none!important;}
html[data-brand-system504][data-fp-embedded] body.inventory-compact .inventory-list-area{height:auto!important;}
html[data-brand-system504] body.inventory-compact .inventory-rail{display:grid!important;grid-template-columns:1fr 1fr!important;max-height:none!important;padding:10px 0 0!important;overflow:visible!important;border-left:0!important;border-top:1px solid var(--brand504-line,#dce4ed)!important;}
html[data-brand-system504][data-fp-embedded] body.inventory-compact .inventory-rail{max-height:none!important;height:auto!important;flex:none!important;overflow:visible!important;}
html[data-brand-system504] body.inventory-compact .inventory-rail :is(.head-actions,.inventory-general-tools,.inventory-export-tools,.inventory-selected-tools){display:grid!important;gap:6px!important;}
html[data-brand-system504] body.inventory-compact .inventory-rail :is(h2,#inventorySelectedName,.inventory-selected-tools,small){grid-column:1/-1!important;}
html[data-brand-system504] body.inventory-compact .catalog>.table-wrap{max-height:none!important;overflow:visible!important;}
html[data-brand-system504] body.inventory-compact .catalog table{min-width:0!important;}
html[data-brand-system504] body.inventory-compact #productRows>tr>td{height:auto!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
html[data-brand-system504] body.inventory-compact #productRows .product-name{font-size:14px!important;line-height:19px!important;white-space:normal!important;}
html[data-brand-system504] body.inventory-compact .summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
html[data-brand-system504] body.inventory-compact .catalog>.tools{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:6px!important;align-items:center!important;}
html[data-brand-system504] body.inventory-compact .tools .search{flex-basis:100%!important;}
html[data-brand-system504] body.inventory-compact .tools .search{width:100%!important;align-self:stretch!important;height:44px!important;min-height:44px!important;max-height:44px!important;box-sizing:border-box!important;}
html[data-brand-system504] body.inventory-compact .tools .search input{height:42px!important;min-height:42px!important;}
html[data-brand-system504] body.inventory-compact .tools select{width:auto!important;flex:1!important;min-width:0!important;}
html[data-brand-system504] body.inventory-compact .tools #newProduct{min-height:44px!important;white-space:nowrap!important;}
html[data-brand-system504] body.inventory-compact #productRows>tr>td:nth-child(4):before{display:block!important;content:'Existencia'!important;}
html[data-brand-system504] body.inventory-compact .inventory-pages label{margin-left:0!important;}
html[data-brand-system504] .brand-query-toolbar{align-items:stretch!important;flex-direction:column!important;gap:6px!important;}
html[data-brand-system504] .brand-query-toolbar>.rc-heading{justify-content:flex-end!important;}
html[data-brand-system504] .commercial-nav{flex-wrap:nowrap!important;overflow-x:auto!important;}
html[data-brand-system504] .commercial-nav a{white-space:nowrap!important;flex-shrink:0!important;}
html[data-brand-system504] .rc-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;}
html[data-brand-system504] .rc-metrics>article{min-width:0!important;width:auto!important;flex:auto!important;}
html[data-brand-system504] body.clients-only .rc-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
html[data-brand-system504] body.clients-only .rc-metrics article{display:block!important;}
}
@media(max-width:600px){
html[data-brand-system504][data-brand-page504=pos] body .topbar{display:block!important;padding:6px 10px!important;min-height:0!important;margin:0!important;}
html[data-brand-system504][data-brand-page504=pos] .topbar .brand-block{display:none!important;}
html[data-brand-system504][data-brand-page504=pos] .topbar .right-hub{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:44px 44px!important;gap:6px!important;width:100%!important;}
html[data-brand-system504][data-brand-page504=pos] .topbar .reference-seller-card{min-width:0!important;min-height:44px!important;height:44px!important;width:100%!important;padding:4px 6px!important;}
html[data-brand-system504][data-brand-page504=pos] .topbar .user-copy{min-width:0!important;}
html[data-brand-system504][data-brand-page504=pos] .topbar .user-copy strong{font-size:12px!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;}
html[data-brand-system504][data-brand-page504=pos] .topbar .user-copy small{font-size:9px!important;}
html[data-brand-system504][data-brand-page504=pos] .topbar .quick-nav{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;width:100%!important;}
html[data-brand-system504][data-brand-page504=pos] .topbar .quick-nav button{min-width:0!important;min-height:44px!important;padding:4px!important;gap:3px!important;font-size:11px!important;}
html[data-brand-system504][data-brand-page504=pos] .topbar .quick-nav button svg{width:14px!important;height:14px!important;}
html[data-brand-system504][data-brand-page504=pos] .topbar .quick-nav>*{grid-column:auto!important;grid-row:auto!important;min-width:0!important;width:100%!important;height:44px!important;}
html[data-brand-system504][data-brand-page504=pos] .topbar .quick-nav button{flex-direction:column!important;justify-content:center!important;font-size:10px!important;}
html[data-brand-system504] :is(.commercial-nav a,.inventory-pages button,.inventory-pages select,.inventory-rail .btn){min-height:44px!important;}
html[data-brand-system504] .moduleHeader .headerTools{display:flex!important;flex-wrap:wrap!important;width:100%!important;gap:6px!important;}
html[data-brand-system504] .moduleHeader .versionPill{display:none!important;}
html[data-brand-system504] .rc-heading .actions{display:flex!important;gap:6px!important;flex-wrap:wrap!important;}
}
}
}

/* The approved Tickets composition, shared by the other read-only consultations.
   Screen only: original source tables and saved closing reports still own print. */
@layer brand-layout{@media screen{
html[data-brand-system504] body>main.rc-query-page{align-items:stretch!important;}
html[data-brand-system504] .rc-query-page>:is(.rc-query-bar,.results,.panel,.ledger,.rc-closings){width:100%!important;max-width:none!important;align-self:stretch!important;box-sizing:border-box!important;}
html[data-brand-system504] .rc-detail-columns:has(>.rc-info-card:only-child){grid-template-columns:minmax(0,1fr)!important;}
html[data-brand-system504] body>main.rc-query-page{display:flex!important;flex-direction:column!important;gap:0!important;max-width:none!important;width:100%!important;padding:0!important;margin:0!important;box-sizing:border-box!important;min-height:calc(100dvh - 48px)!important;background:#fff!important;}
html[data-brand-system504][data-fp-embedded] body>main.rc-query-page{height:100dvh!important;min-height:0!important;overflow:hidden!important;}
html[data-brand-system504] .rc-query-page>.rc-heading,html[data-brand-system504] .rc-query-duplicate{display:none!important;}
html[data-brand-system504] .rc-query-bar{display:flex!important;align-items:center!important;gap:14px!important;padding:10px 14px!important;border-bottom:1px solid var(--brand504-line,#dce4ed)!important;background:#fff!important;flex:0 0 auto!important;min-width:0!important;}
html[data-brand-system504] .rc-query-controls{display:flex!important;align-items:center!important;flex:1 1 46%!important;gap:7px!important;min-width:0!important;}
html[data-brand-system504] .rc-query-search{display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;flex:1 1 180px!important;min-width:80px!important;margin:0!important;padding:0 9px!important;background:var(--brand504-soft,#f6f8fb)!important;border:1px solid var(--brand504-line,#ccd8e6)!important;border-radius:7px!important;height:36px!important;overflow:hidden!important;font-size:0!important;}
html[data-brand-system504] .rc-query-search:before{content:'⌕';font-size:22px!important;color:var(--brand504-muted,#52657c)!important;flex:none!important;}
html[data-brand-system504] .rc-query-search>span{display:none!important;}
html[data-brand-system504] .rc-query-search input{background:transparent!important;border:0!important;box-shadow:none!important;min-width:0!important;width:100%!important;max-width:100%!important;height:34px!important;min-height:0!important;padding:0!important;font-size:13px!important;}
html[data-brand-system504] .rc-query-controls :is(button,a){white-space:nowrap!important;}
html[data-brand-system504] .rc-query-period{display:flex!important;align-items:center!important;gap:8px!important;font-size:12px!important;flex:1!important;min-width:0!important;}
html[data-brand-system504] .rc-query-period select{flex:1!important;min-width:0!important;height:36px!important;}
html[data-brand-system504] .rc-query-filter-toggle{height:36px!important;flex:none!important;}
html[data-brand-system504] .rc-query-actions,html[data-brand-system504] .rc-query-actions>:is(.export,.actions,.ledger-actions){display:flex!important;gap:6px!important;align-items:center!important;flex:none!important;}
html[data-brand-system504] .rc-rail .rc-query-actions,html[data-brand-system504] .rc-rail .rc-query-actions>:is(.export,.actions,.ledger-actions){flex-wrap:wrap!important;}
html[data-brand-system504] .rc-query-actions button{font-size:12px!important;padding:6px 8px!important;min-height:36px!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics{display:flex!important;flex:1.15 1 54%!important;gap:6px!important;min-width:0!important;margin:0!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics>article{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;flex:1 1 0!important;width:auto!important;min-width:0!important;min-height:48px!important;padding:6px 9px!important;gap:2px!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics :is(span,small){font-size:11px!important;line-height:15px!important;margin:0!important;overflow-wrap:anywhere!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics :is(b,strong){font-size:18px!important;line-height:22px!important;white-space:nowrap!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics .stat-top{display:block!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics :is(.stat-symbol,article>small){display:none!important;}
html[data-brand-system504] .rc-query-filters{margin:0!important;padding:8px 14px!important;background:var(--brand504-soft,#f6f8fb)!important;border:0!important;border-bottom:1px solid var(--brand504-line,#dce4ed)!important;border-radius:0!important;flex:none!important;}
html[data-brand-system504] .rc-query-filters :is(.toolbar,.filters,.filter-bar,.history-tools){display:flex!important;align-items:flex-end!important;flex-wrap:wrap!important;gap:8px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;}
html[data-brand-system504] .rc-query-filters :is(label,.filter-item){flex:1 1 130px!important;min-width:100px!important;margin:0!important;font-size:11px!important;}
html[data-brand-system504] .rc-query-filters :is(input,select){width:100%!important;min-width:0!important;min-height:32px!important;}
html[data-brand-system504] .rc-query-filters :is(.filter-grid,.cot-filterline){display:contents!important;}
html[data-brand-system504] .rc-query-page>.brand-query-toolbar{display:none!important;}
html[data-brand-system504] .rc-query-page>:is(.results,.panel,.ledger){display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;}
html[data-brand-system504] .rc-query-page>:is(#reportNote,#historyStatus):empty{display:none!important;}
html[data-brand-system504] .rc-query-page>:is(#reportNote,#historyStatus){margin:0!important;padding:4px 14px!important;font-size:11px!important;line-height:16px!important;flex:none!important;}
html[data-brand-system504] .rc-query-page .ledger-subhead{padding:4px 14px!important;margin:0!important;font-size:11px!important;}
html[data-brand-system504] .rc-query-page .ledger-foot{padding:4px 14px!important;min-height:36px!important;}
html[data-brand-system504] .rc-workspace,html[data-brand-system504] .rc-closings{display:grid!important;grid-template-columns:clamp(248px,24vw,292px) minmax(0,1fr)!important;gap:0!important;min-width:0!important;min-height:260px!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;background:#fff!important;}
html[data-brand-system504] .rc-query-page :is(.rc-workspace,.rc-closings){flex:1 1 auto!important;height:100%!important;min-height:0!important;}
html[data-brand-system504] :is(.rc-rail,.rc-closing-rail){display:flex!important;flex-direction:column!important;gap:7px!important;background:var(--brand504-soft,#f6f8fb)!important;border-right:1px solid var(--brand504-line,#dce4ed)!important;padding:10px!important;min-width:0!important;max-height:none!important;overflow:auto!important;}
html[data-brand-system504] .rc-rail-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:34px!important;margin:0!important;padding:6px 9px!important;border-left:3px solid #d9364d!important;border-radius:5px!important;font-size:15px!important;line-height:20px!important;background:#17324d!important;color:#fff!important;}
html[data-brand-system504] .rc-rail-head .rc-count{border:0!important;padding:0!important;font-size:11px!important;color:#fff!important;}
html[data-brand-system504] .rc-records{display:flex!important;flex-direction:column!important;gap:7px!important;overflow:visible!important;}
html[data-brand-system504] .rc-record{display:grid!important;grid-template-columns:30px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;text-align:left!important;width:100%!important;padding:10px 9px!important;margin:0!important;border:1px solid var(--brand504-line,#dce4ed)!important;border-left:3px solid transparent!important;border-radius:6px!important;background:#fff!important;min-height:72px!important;box-shadow:0 2px 5px #17324d06!important;}
html[data-brand-system504] .rc-record[aria-pressed=true]{background:var(--brand504-selected,#eaf0f8)!important;border-color:var(--brand504-line,#b9cce1)!important;border-left-color:#d9364d!important;color:#17324d!important;box-shadow:0 2px 5px #17324d0a!important;}
html[data-brand-system504] .rc-record-avatar{display:grid!important;place-items:center!important;width:30px!important;height:32px!important;background:#d9364d!important;border-radius:7px!important;color:#fff!important;font-size:12px!important;font-weight:700!important;}
html[data-brand-system504] .rc-record-copy{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;}
html[data-brand-system504] .rc-record-copy>strong{font-size:14px!important;line-height:18px!important;color:#17324d!important;white-space:normal!important;overflow-wrap:anywhere!important;}
html[data-brand-system504] .rc-record-copy>span{font-size:11px!important;line-height:15px!important;color:var(--brand504-muted,#52657c)!important;white-space:normal!important;overflow-wrap:anywhere!important;}
html[data-brand-system504] .rc-record>.rc-amount{align-self:start!important;font-size:12px!important;font-weight:650!important;white-space:nowrap!important;color:#17324d!important;margin:0!important;}
html[data-brand-system504] .rc-detail{padding:12px 14px!important;min-width:0!important;max-height:none!important;overflow:auto!important;background:#fff!important;}
html[data-brand-system504] .rc-record-hero{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;padding:10px 12px!important;margin:0 0 10px!important;min-height:82px!important;background:#fff!important;border:1px solid var(--brand504-line,#dce4ed)!important;border-top:3px solid #17324d!important;border-radius:8px!important;}
html[data-brand-system504] .rc-record-identity{display:block!important;flex:1!important;min-width:0!important;}
html[data-brand-system504] .rc-detail-top{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:8px!important;margin:0 0 4px!important;}
html[data-brand-system504] .rc-detail-top :is(.rc-kicker,.rc-muted){font-size:11px!important;line-height:16px!important;letter-spacing:0!important;text-transform:none!important;}
html[data-brand-system504] .rc-detail-top>.rc-value{font-size:11px!important;}
html[data-brand-system504] .rc-record-title{font-size:21px!important;line-height:26px!important;margin:0 0 3px!important;overflow-wrap:anywhere!important;}
html[data-brand-system504] .rc-subtitle,html[data-brand-system504] .rc-subtitle .rc-value{font-size:12px!important;line-height:17px!important;color:var(--brand504-muted,#52657c)!important;margin:0!important;}
html[data-brand-system504] .rc-subtitle .rc-value{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:5px!important;}
html[data-brand-system504] .rc-record-total{display:flex!important;flex-direction:column!important;align-items:flex-end!important;justify-content:center!important;gap:3px!important;min-width:132px!important;max-width:45%!important;padding:9px 12px!important;border-radius:6px!important;background:#f2c545!important;color:#17324d!important;}
html[data-brand-system504] .rc-record-total>span{font-size:11px!important;line-height:15px!important;color:#17324d!important;}
html[data-brand-system504] .rc-record-total .rc-value,html[data-brand-system504] .rc-record-total :is(b,strong){font-size:24px!important;line-height:29px!important;font-weight:750!important;color:#17324d!important;white-space:nowrap!important;}
html[data-brand-system504] .rc-detail-columns{display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr)!important;align-items:start!important;gap:10px!important;}
html[data-brand-system504] :is(.rc-info-card,.rc-summary-card){min-width:0!important;border:1px solid var(--brand504-line,#dce4ed)!important;border-radius:7px!important;background:#fff!important;overflow:hidden!important;}
html[data-brand-system504] .rc-card-heading{margin:0!important;padding:7px 10px!important;background:#17324d!important;color:#fff!important;border-left:3px solid #d9364d!important;border-radius:0!important;font-size:14px!important;line-height:20px!important;}
html[data-brand-system504] .rc-fields{display:block!important;margin:0!important;padding:0 10px!important;}
html[data-brand-system504] .rc-field{display:grid!important;grid-template-columns:minmax(94px,32%) minmax(0,1fr)!important;align-items:baseline!important;gap:10px!important;min-width:0!important;padding:9px 0!important;border:0!important;border-bottom:1px solid var(--brand504-line,#e7edf4)!important;}
html[data-brand-system504] .rc-field:last-child{border-bottom:0!important;}
html[data-brand-system504] .rc-field dt{font-size:11px!important;line-height:16px!important;letter-spacing:0!important;text-transform:none!important;font-weight:400!important;color:var(--brand504-muted,#52657c)!important;}
html[data-brand-system504] .rc-field dd{margin:0!important;min-width:0!important;font-size:13px!important;line-height:19px!important;color:#17324d!important;overflow-wrap:anywhere!important;}
html[data-brand-system504] .rc-field .rc-value{font-size:13px!important;line-height:19px!important;}
html[data-brand-system504] .rc-value small{font-size:11px!important;line-height:16px!important;}
html[data-brand-system504] .rc-money-fields .rc-field{grid-template-columns:minmax(0,1fr) auto!important;}
html[data-brand-system504] .rc-money-fields .rc-field:last-child{background:var(--brand504-money,#fff7da)!important;margin:0 -10px!important;padding:10px!important;}
html[data-brand-system504] .rc-money-fields dd{font-weight:650!important;white-space:nowrap!important;}
html[data-brand-system504] .rc-actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin:0!important;padding:9px 10px!important;border-top:1px solid var(--brand504-line,#dce4ed)!important;background:var(--brand504-soft,#f6f8fb)!important;}
html[data-brand-system504] .rc-actions .rc-value,html[data-brand-system504] .rc-actions :is(.row-actions,.row-links,.row-tools){display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;}
html[data-brand-system504] .rc-actions button{min-height:36px!important;font-size:13px!important;}
html[data-brand-system504] .rc-actions .rc-value>button:first-child,html[data-brand-system504] .rc-actions .row-actions>button:first-child{background:#17324d!important;color:#fff!important;}
html[data-brand-system504] .rc-rail>.commercial-nav{display:flex!important;flex-wrap:wrap!important;gap:5px!important;background:transparent!important;padding:10px 0 0!important;margin:8px 0 0!important;border:0!important;border-top:1px solid var(--brand504-line,#dce4ed)!important;overflow:visible!important;}
html[data-brand-system504] .rc-rail>.commercial-nav a{font-size:10px!important;padding:4px 6px!important;}
html[data-brand-system504] .rc-rail>.additional-reports{margin:0!important;font-size:11px!important;}
html[data-brand-system504] .rc-query-page .cot-titlebar{display:none!important;}
html[data-brand-system504] .rc-rail .cot-selectionbar{display:block!important;padding:8px 0!important;border:0!important;background:transparent!important;}
html[data-brand-system504] .rc-rail .cot-selectioninfo{display:none!important;}
html[data-brand-system504] .rc-rail .cot-selected-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;}
html[data-brand-system504] .rc-rail .cot-selected-actions button{font-size:12px!important;min-height:36px!important;}
html[data-brand-system504] .rc-closing-rail #closingList{display:flex!important;flex-direction:column!important;gap:7px!important;}
html[data-brand-system504] .rc-closing-rail{grid-column:1!important;grid-row:1!important;}
html[data-brand-system504] :is(.rc-closing-detail,.rc-closing-empty){grid-column:2!important;grid-row:1!important;}
html[data-brand-system504] .rc-closing-detail .report-actions{display:flex!important;align-items:flex-end!important;flex-wrap:wrap!important;}
html[data-brand-system504] .rc-closing-rail .closing-card{padding:9px!important;border:1px solid var(--brand504-line,#dce4ed)!important;border-left:3px solid #d9364d!important;border-radius:6px!important;background:#fff!important;}
html[data-brand-system504] .rc-closing-rail .closing-card h2{font-size:14px!important;line-height:19px!important;margin:0 0 5px!important;}
html[data-brand-system504][data-fp-embedded] body.clients-only>main.rc-query-page{display:flex!important;padding:0!important;}
/* The real POS credit surface is also the Administration credit entry. */
html[data-brand-system504] #creditsDialog[data-fp-page]{padding:0!important;}
html[data-brand-system504] #creditsDialog[data-fp-page]>.modal-card{padding:0!important;display:flex!important;flex-direction:column!important;}
html[data-brand-system504] #creditsDialog[data-fp-page] .modal-head{display:none!important;}
html[data-brand-system504] #creditsDialog .pos-window-body{padding:0!important;flex:1!important;overflow:auto!important;}
html[data-brand-system504] .rc-credit-bar{padding:10px 14px!important;border-bottom:1px solid var(--brand504-line,#dce4ed)!important;background:#fff!important;}
html[data-brand-system504] .rc-credit-bar .credits-search{max-width:540px!important;}
html[data-brand-system504] .rc-credit-bar .credits-search>span{display:none!important;}
html[data-brand-system504] .rc-credit-bar input{height:36px!important;min-height:36px!important;background:var(--brand504-soft,#f6f8fb)!important;font-size:13px!important;}
html[data-brand-system504] #creditsDialog .credits-pos-layout{display:grid!important;grid-template-columns:clamp(248px,24vw,292px) minmax(0,1fr)!important;gap:0!important;min-height:0!important;margin:0!important;}
html[data-brand-system504] #creditsDialog .credits-customer-panel{padding:10px!important;border:0!important;border-right:1px solid var(--brand504-line,#dce4ed)!important;border-radius:0!important;background:var(--brand504-soft,#f6f8fb)!important;}
html[data-brand-system504] #creditsDialog .credit-customer-list{max-height:none!important;gap:7px!important;margin-top:7px!important;}
html[data-brand-system504] #creditsDialog .credit-customer-list>button{display:grid!important;grid-template-columns:30px minmax(0,1fr) auto!important;gap:8px!important;min-height:72px!important;padding:9px!important;border-left:3px solid transparent!important;border-radius:6px!important;background:#fff!important;}
html[data-brand-system504] #creditsDialog .credit-customer-list>button.selected{background:var(--brand504-selected,#eaf0f8)!important;border-left-color:#d9364d!important;box-shadow:none!important;}
html[data-brand-system504] #creditsDialog .credit-customer-list strong{font-size:14px!important;line-height:18px!important;white-space:normal!important;}
html[data-brand-system504] #creditsDialog .credit-customer-list small{font-size:10px!important;line-height:15px!important;overflow-wrap:anywhere!important;}
html[data-brand-system504] #creditsDialog .credit-payment-panel{display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr)!important;align-content:start!important;align-items:start!important;gap:10px!important;padding:12px 14px!important;border:0!important;border-radius:0!important;background:#fff!important;min-width:0!important;overflow:auto!important;}
html[data-brand-system504] #creditsDialog .credit-selected-head{grid-column:1/-1!important;padding:10px 12px!important;border:1px solid var(--brand504-line,#dce4ed)!important;border-top:3px solid #17324d!important;border-radius:8px!important;background:#fff!important;}
html[data-brand-system504] #creditsDialog .credit-selected-head h3{font-size:21px!important;line-height:26px!important;}
html[data-brand-system504] #creditsDialog .credit-selected-head>div:last-child{padding:9px 12px!important;background:#f2c545!important;border-radius:6px!important;color:#17324d!important;}
html[data-brand-system504] #creditsDialog .credit-selected-head strong{color:#17324d!important;font-size:24px!important;}
html[data-brand-system504] #creditsDialog :is(.credit-invoices,.credit-payment-form,.credit-recent){margin:0!important;border:1px solid var(--brand504-line,#dce4ed)!important;border-radius:7px!important;padding:10px!important;min-width:0!important;overflow:hidden!important;}
html[data-brand-system504] #creditsDialog :is(.credit-invoices,.credit-recent)>h4{background:#17324d!important;color:#fff!important;border-left:3px solid #d9364d!important;margin:-10px -10px 10px!important;padding:7px 10px!important;font-size:14px!important;}
html[data-brand-system504] #creditsDialog .credit-payment-form>.rc-card-heading{grid-column:1/-1!important;margin:-10px -10px 0!important;}
html[data-brand-system504] #creditsDialog .credit-payment-form{grid-template-columns:minmax(0,1fr)!important;gap:8px!important;}
html[data-brand-system504] #creditsDialog .credit-payment-form>*{grid-column:1!important;min-width:0!important;}
html[data-brand-system504] #creditsDialog #creditPaymentError:empty{display:none!important;}
html[data-brand-system504] #creditsDialog .credit-payment-form button{margin:0!important;min-height:36px!important;background:#17324d!important;color:#fff!important;}
html[data-brand-system504] #creditsDialog .credit-invoices table{min-width:0!important;}
html[data-brand-system504] #creditsDialog .credit-invoices :is(.credit-invoice-help,#creditDistributionSummary){font-size:11px!important;line-height:16px!important;}
html[data-brand-system504] #creditsDialog .credit-invoices #creditDistributionSummary{background:var(--brand504-money,#fff7da)!important;padding:8px!important;border-radius:5px!important;}
html[data-brand-system504] #creditsDialog .credit-recent{grid-column:1/-1!important;}
html[data-brand-system504] .rc-credit-back{display:none!important;}
/* Caja's original daily-sales query uses the same full-page record view. */
html[data-brand-system504] #listDialog[data-fp-page] .modal-head{display:none!important;}
html[data-brand-system504] #listDialog .rc-actions button{display:inline-flex!important;align-items:center!important;gap:6px!important;}
html[data-brand-system504] #listDialog .rc-actions svg{width:16px!important;height:16px!important;flex:none!important;}
html[data-brand-system504] #listDialog .status-pill{background:var(--brand504-tint,#edf3fa)!important;color:#17324d!important;}
html[data-brand-system504] #listDialog .commercial-sale-detail{border:1px solid var(--brand504-line,#dce4ed)!important;border-radius:7px!important;overflow:hidden!important;margin:0 0 10px!important;}
html[data-brand-system504] #listDialog .commercial-sale-detail>h3{margin:0!important;padding:7px 10px!important;background:#17324d!important;color:#fff!important;border-left:3px solid #d9364d!important;}
html[data-brand-system504] .rc-closing-detail{padding:12px 14px!important;min-width:0!important;overflow:auto!important;background:#fff!important;}
html[data-brand-system504] .rc-closing-detail .report-actions{gap:6px!important;padding:0 0 8px!important;}
html[data-brand-system504] .rc-closing-detail .report-actions button{font-size:12px!important;}
html[data-brand-system504] .rc-closing-detail #savedReport{border-top:3px solid #17324d!important;padding:10px 12px!important;}
html[data-brand-system504] .rc-closing-detail #savedReport>.report-head{padding:0 0 9px!important;gap:10px!important;min-height:0!important;}
html[data-brand-system504] .rc-closing-detail #savedReport>.report-head img{width:auto!important;max-width:90px!important;max-height:34px!important;}
html[data-brand-system504] .rc-closing-detail #savedReport>.report-head h2{font-size:18px!important;margin:3px 0!important;}
html[data-brand-system504] .rc-closing-detail #savedReport>.result-grid{gap:7px!important;border:0!important;margin:8px 0 10px!important;}
html[data-brand-system504] .rc-closing-detail #savedReport>.result-grid>div{background:var(--brand504-soft,#f6f8fb)!important;border:1px solid var(--brand504-line,#dce4ed)!important;border-radius:6px!important;padding:8px 10px!important;}
html[data-brand-system504] .rc-closing-detail #savedReport>.result-grid>div:nth-child(2){background:var(--brand504-money,#fff7da)!important;border-left:3px solid #f2c545!important;}
html[data-brand-system504] .rc-closing-detail #savedReport>h3{background:#17324d!important;color:#fff!important;border-left:3px solid #d9364d!important;border-radius:5px!important;padding:7px 10px!important;margin:10px 0 0!important;}
html[data-brand-system504] .rc-closing-detail #savedReport>table{border:1px solid var(--brand504-line,#dce4ed)!important;border-radius:6px!important;margin:0 0 8px!important;}
html[data-brand-system504] .rc-closing-detail .closing-print-help{font-size:11px!important;margin:4px 0!important;}
@media(max-width:1100px){
html[data-brand-system504] .rc-query-bar{flex-wrap:wrap!important;gap:7px!important;}
html[data-brand-system504] .rc-query-controls{flex-basis:100%!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics{flex-basis:100%!important;}
html[data-brand-system504] .rc-detail-columns{grid-template-columns:minmax(0,1fr)!important;}
html[data-brand-system504] #creditsDialog .credit-payment-panel{grid-template-columns:minmax(0,1fr)!important;}
}
@media(max-width:767px){
html[data-brand-system504][data-fp-embedded] body>main.rc-query-page{height:100dvh!important;overflow:hidden!important;}
html[data-brand-system504] .rc-query-bar{padding:8px 10px!important;gap:7px!important;}
html[data-brand-system504] .rc-query-controls{flex-wrap:wrap!important;gap:6px!important;}
html[data-brand-system504] .rc-query-search{flex-basis:calc(100% - 100px)!important;height:44px!important;}
html[data-brand-system504] .rc-query-search input{height:42px!important;}
html[data-brand-system504] .rc-query-filter-toggle{height:44px!important;min-height:44px!important;}
html[data-brand-system504] .rc-query-actions{flex:1 1 100%!important;flex-wrap:wrap!important;}
html[data-brand-system504] .rc-query-actions button{min-height:44px!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics>article{padding:5px 8px!important;min-height:44px!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics :is(b,strong){font-size:17px!important;line-height:21px!important;}
html[data-brand-system504] :is(.rc-workspace,.rc-closings){grid-template-columns:minmax(0,1fr)!important;min-height:200px!important;}
html[data-brand-system504] .rc-workspace:not(.rc-selected-mobile)>.rc-detail{display:none!important;}
html[data-brand-system504] .rc-workspace.rc-selected-mobile>.rc-rail{display:none!important;}
html[data-brand-system504] .rc-workspace.rc-selected-mobile>.rc-detail{display:block!important;}
html[data-brand-system504] .rc-detail{padding:8px 10px!important;}
html[data-brand-system504] .rc-record-hero{gap:8px!important;flex-wrap:wrap!important;padding:9px!important;}
html[data-brand-system504] .rc-record-title{font-size:19px!important;line-height:24px!important;}
html[data-brand-system504] .rc-record-total{min-width:110px!important;max-width:100%!important;margin-left:auto!important;padding:7px 10px!important;}
html[data-brand-system504] .rc-record-total .rc-value,html[data-brand-system504] .rc-record-total :is(b,strong){font-size:22px!important;line-height:26px!important;}
html[data-brand-system504] .rc-mobile-back{min-height:44px!important;margin:0 0 7px!important;}
html[data-brand-system504] .rc-query-filters :is(input,select,button){min-height:44px!important;}
html[data-brand-system504] .rc-field{grid-template-columns:minmax(85px,32%) minmax(0,1fr)!important;}
html[data-brand-system504] .rc-actions button{min-height:44px!important;}
html[data-brand-system504] .rc-closings:not(.rc-has-closing)>.rc-closing-detail,html[data-brand-system504] .rc-closings.rc-has-closing>.rc-closing-rail{display:none!important;}
html[data-brand-system504] .rc-closings.rc-has-closing>.rc-closing-detail{display:block!important;}
html[data-brand-system504] :is(.rc-closing-detail,.rc-closing-empty){grid-column:1!important;}
html[data-brand-system504] #creditsDialog .credits-pos-layout{grid-template-columns:minmax(0,1fr)!important;}
html[data-brand-system504] .rc-credit-bar{padding:8px 10px!important;}
html[data-brand-system504] .rc-credit-bar input{height:44px!important;min-height:44px!important;}
html[data-brand-system504] #creditsDialog .credits-pos-layout.rc-credit-selected:not(.rc-credit-browse)>.credits-customer-panel{display:none!important;}
html[data-brand-system504] #creditsDialog .credits-pos-layout:is(:not(.rc-credit-selected),.rc-credit-browse)>.credit-payment-panel{display:none!important;}
html[data-brand-system504] .rc-credit-back{display:block!important;grid-column:1/-1!important;min-height:44px!important;justify-self:start!important;}
html[data-brand-system504] #creditsDialog .credit-selected-head{flex-wrap:wrap!important;gap:8px!important;}
}
}}
@media print{.rc-query-controls,.rc-credit-bar{display:none!important;}.rc-query-bar{display:block!important;}}

/* Screen palettes only. Canvas and business/document controllers stay unchanged. */
@layer brand-palette{@media screen{
html[data-brand-system504]{
 --brand504-tint:#edf6ff;--brand504-soft:#fff;--brand504-selected:#fff0f2;--brand504-line:#d1e1f1;--brand504-muted:#4d6884;
 --brand504-heading:#17324d;--brand504-heading-ink:#fff;--brand504-hero:#fff;--brand504-document-edge:#f2c545;
 --brand504-money:#fff5d6;--brand504-total:#fff5d6;
 --b-line:var(--brand504-line)!important;--b-muted:var(--brand504-muted)!important;--b-selection:var(--brand504-selected)!important;
 --b-title-bg:var(--brand504-heading)!important;--b-title-ink:var(--brand504-heading-ink)!important;
 --b-yellow-bg:var(--brand504-total)!important;--b-yellow-ink:#17324d!important;
}
html[data-brand-palette504=azul]{
 --brand504-tint:#eaf5ff;--brand504-selected:#e0efff;--brand504-line:#cddff0;
 --brand504-heading:#eaf5ff;--brand504-heading-ink:#17324d;--brand504-hero:#eaf5ff;--brand504-document-edge:#17324d;
 --brand504-money:#fff4ce;--brand504-total:#fff4ce;
}
html[data-brand-palette504=crema]{
 --brand504-tint:#fff5d8;--brand504-selected:#ffebef;--brand504-line:#e9dcbf;
 --brand504-heading:#fff5d8;--brand504-heading-ink:#17324d;--brand504-hero:#fff5d8;--brand504-document-edge:#d9364d;
 --brand504-money:#fff9e8;--brand504-total:#f2c545;
}
html[data-brand-system504] :is(.rc-rail,.rc-closing-rail,.tiv-index,.credits-customer-panel,.rc-actions,.tiv-actions){background:#fff!important;}
html[data-brand-system504] :is([data-brand-heading]:not(.rc-detail-head),.rc-rail-head,.rc-card-heading,.tiv-index-heading,.tiv-items-heading,.ticket-card-heading,#creditsDialog .credit-invoices>h4,#creditsDialog .credit-recent>h4,#listDialog .commercial-sale-detail>h3){background:var(--brand504-heading)!important;color:var(--brand504-heading-ink)!important;border-left-color:#d9364d!important;}
html[data-brand-system504] :is([data-brand-heading]:not(.rc-detail-head),.rc-rail-head,.rc-card-heading,.tiv-index-heading,.tiv-items-heading,.ticket-card-heading,#creditsDialog .credit-invoices>h4,#creditsDialog .credit-recent>h4,#listDialog .commercial-sale-detail>h3) :is(h1,h2,h3,h4,p,small,strong,span,.rc-count){color:var(--brand504-heading-ink)!important;}
html[data-brand-system504] :is(.rc-record-hero,.tiv-hero,.credit-selected-head){background:var(--brand504-hero)!important;color:#17324d!important;border-top-color:var(--brand504-document-edge)!important;}
html[data-brand-system504] :is(.rc-record-total,.tiv-total,.checkout-total,.credit-selected-head .credit-balance){background:var(--brand504-total)!important;color:#17324d!important;}
html[data-brand-system504] :is(.rc-money-fields .rc-field:last-child,.tiv-totals,.commercial-total,.credit-invoices #creditDistributionSummary){background:var(--brand504-money)!important;color:#17324d!important;}
html[data-brand-system504] :is(.rc-metrics>article,.tiv-summary>div,.kpis>div,.overview>div,.stats>div,.metrics>div,.summary>article){background:var(--brand504-tint)!important;}
html[data-brand-system504] :is(.rc-metrics>article:nth-child(2),.tiv-summary>div:nth-child(2),.kpis>div:nth-child(2),.overview>div:nth-child(2),.stats>div:nth-child(2),.metrics>div:nth-child(2),.summary>article:nth-child(2)){background:var(--brand504-money)!important;}
html[data-brand-system504] :is(.rc-record[aria-pressed=true],.tiv-ticket[aria-pressed=true],.credits-customer.selected,.credits-customer-panel [data-credit-customer].selected,.menu-item.active,.m504-navbutton.m504-active){background:var(--brand504-selected)!important;color:#17324d!important;}
html[data-brand-system504] :is(.rc-query-search,.tiv-search){background:#fff!important;}
html[data-brand-system504] :is([data-brand-heading],.product-editor-head,.dialog-head,.modal-head,.edit-heading,.head) :is(button.close,button[aria-label^="Cerrar"],button[data-close]){background:#fff!important;color:#17324d!important;border-color:var(--brand504-line)!important;}
html[data-brand-system504] :is([data-brand-heading],.product-editor-head,.dialog-head,.modal-head,.edit-heading,.head) :is(button,a) :is(span,small,strong){color:inherit!important;}
html[data-brand-system504] #brand-palette504{display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;min-width:0!important;max-width:156px!important;margin-left:auto!important;vertical-align:middle!important;}
html[data-brand-system504] .module-frame-head:has(>#brand-palette504){display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;}
html[data-brand-system504] .module-frame-head:has(>#brand-palette504)>h1{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
html[data-brand-system504] .brand-palette-row:not([hidden]){display:flex!important;justify-content:flex-end!important;align-items:center!important;padding:6px 12px!important;background:#fff!important;}
html[data-brand-system504] .main-container>header #header-title{min-width:0!important;}
html[data-brand-system504] .brand-block:has(#brand-palette504){display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;}
html[data-brand-page504=workspace] .titlebar:has(>#brand-palette504){gap:6px!important;}
html[data-brand-page504=workspace] .titlebar:has(>#brand-palette504)>.status{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
html[data-brand-page504=workspace] .titlebar:has(>#brand-palette504)>.window-actions{margin-left:0!important;flex:0 0 auto!important;}
@media(max-width:600px){
 html[data-brand-system504] #brand-palette504{max-width:44px!important;}
 html[data-brand-system504] .module-frame-head:has(>#brand-palette504){gap:6px!important;}
 html[data-brand-system504] .module-frame-head:has(>#brand-palette504)>span:not(#brand-palette504){display:none!important;}
 html[data-brand-system504] .module-frame-head:has(>#brand-palette504)>a{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;padding:0!important;font-size:0!important;}
 html[data-brand-system504] .module-frame-head:has(>#brand-palette504)>a:before{content:'←';font-size:18px!important;}
 html[data-brand-system504] .main-container>header:has(#brand-palette504){display:flex!important;flex-wrap:nowrap!important;gap:6px!important;padding:8px 10px!important;}
 html[data-brand-system504] .main-container>header:has(#brand-palette504) #header-title{flex:1 1 auto!important;min-width:0!important;white-space:normal!important;font-size:14px!important;line-height:18px!important;margin:0!important;}
 html[data-brand-system504] .main-container>header:has(#brand-palette504) :is(#mobileMenuToggle,#user-badge-text,#configureAdminPin){flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;overflow:hidden!important;font-size:0!important;}
 html[data-brand-system504] .main-container>header:has(#brand-palette504) #mobileMenuToggle:before{content:'☰';font-size:18px!important;}
 html[data-brand-system504] .main-container>header:has(#brand-palette504) #configureAdminPin:before{content:'PIN';font-size:11px!important;}
 html[data-brand-system504] .main-container>header:has(#brand-palette504) #user-badge-text svg{width:18px!important;height:18px!important;margin:0!important;}
 html[data-brand-system504] .main-container>header:has(#brand-palette504) #user-badge-text :is(span,strong,small){display:none!important;}
 html[data-brand-page504=workspace] .titlebar:has(>#brand-palette504)>.brand :is(b,i,small){display:none!important;}
 html[data-brand-page504=workspace] .titlebar:has(>#brand-palette504)>.brand{flex:0 0 auto!important;min-width:0!important;gap:0!important;}
}
}}
@media print{#brand-palette504,.brand-palette-row{display:none!important;}}

/* Geometry and surfaces from the approved paletas-vivas-504 proposal.
   Screen presentation only: source controls, business data and print stay intact. */
@layer brand-fidelity{@media screen{
html[data-brand-system504]{--brand504-radius:9px;}
html[data-brand-system504] #app-sidebar>.sc504-launchers{display:grid!important;grid-template-columns:1fr!important;gap:6px!important;margin:8px 12px!important;}
html[data-brand-system504] #app-sidebar>.sc504-launchers button{width:100%!important;text-align:left!important;white-space:normal!important;}
html[data-brand-page504=servicio-tecnico] .global-nav{background:#fff!important;border-bottom:1px solid var(--brand504-line)!important;}
html[data-brand-page504=servicio-tecnico] .brand-mark{background:#17324d!important;color:#fff!important;box-shadow:inset 0 -3px #f2c545!important;border-radius:6px!important;}
html[data-brand-page504=servicio-tecnico] :is(.workspace,.detail-view){max-width:none!important;background:#fff!important;}
html[data-brand-page504=servicio-tecnico] :is(.orders-section,.detail-heading,.next-step){background:#fff!important;border:1px solid var(--brand504-line)!important;border-top:3px solid var(--brand504-document-edge)!important;border-radius:9px!important;}
html[data-brand-page504=servicio-tecnico] .detail-heading{padding:17px 20px!important;}
html[data-brand-page504=servicio-tecnico] .metric{background:var(--brand504-tint)!important;border:1px solid var(--brand504-line)!important;border-radius:7px!important;box-shadow:none!important;}
html[data-brand-page504=servicio-tecnico] .metric:nth-child(2){background:var(--brand504-money)!important;border-left:3px solid #f2c545!important;}
html[data-brand-page504=servicio-tecnico] .metric:last-child{border-left:3px solid #d9364d!important;}
html[data-brand-page504=servicio-tecnico] :is(.section-heading,.panel>h2,.form-section>h3){background:var(--brand504-heading)!important;color:var(--brand504-heading-ink)!important;border-left:3px solid #d9364d!important;padding:9px 14px!important;border-radius:0!important;}
html[data-brand-page504=servicio-tecnico] .section-heading h2{color:inherit!important;}
html[data-brand-page504=servicio-tecnico] .panel>h2{margin:-12px -12px 14px!important;font-size:16px!important;}
html[data-brand-page504=servicio-tecnico] .detail-sidebar .panel:has([data-tab=quote]){background:var(--brand504-money)!important;}
html[data-brand-system504] :is(.sc504-dialog,[data-brand-page504=servicio-tecnico] dialog)>.dialog-heading{border-left:3px solid #d9364d!important;cursor:default!important;touch-action:auto!important;}
html[data-brand-system504] .rc-query-page>:is(.results,.panel,.ledger){border:0!important;border-radius:0!important;box-shadow:none!important;}
html[data-brand-system504] .rc-query-bar{padding:14px 20px!important;gap:16px!important;}
html[data-brand-system504] .rc-query-bar:has(>.rc-metrics){display:grid!important;grid-template-columns:minmax(270px,1fr) minmax(410px,1.25fr)!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics{display:grid!important;grid-template-columns:.75fr 1.2fr .9fr .8fr!important;gap:6px!important;border:0!important;box-shadow:none!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics:has(>article:nth-child(5)){grid-template-columns:repeat(6,minmax(0,1fr))!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics>article{padding:8px 10px!important;border:0!important;border-radius:7px!important;box-shadow:none!important;gap:0!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics>article:nth-child(2){box-shadow:inset 3px 0 #f2c545!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics>article:last-child{box-shadow:inset 3px 0 #d9364d!important;}
html[data-brand-system504] .rc-query-bar>.rc-metrics :is(b,strong){font-size:18px!important;font-weight:650!important;line-height:26px!important;}
html[data-brand-system504] .rc-query-search{height:39px!important;border-color:var(--brand504-line)!important;}
html[data-brand-system504] .rc-query-controls button{font-size:14px!important;font-weight:400!important;}
html[data-brand-system504] :is(.rc-workspace,.rc-closings,#ticketsView504 .tiv-body){grid-template-columns:236px minmax(0,1fr)!important;}
html[data-brand-system504] :is(.rc-rail,.rc-closing-rail,#ticketsView504 .tiv-index){padding:16px 14px!important;background:#fff!important;gap:0!important;}
html[data-brand-system504] .rc-rail .rc-query-actions,html[data-brand-system504] .rc-rail .rc-query-actions>:is(.export,.actions,.ledger-actions){width:100%!important;max-width:100%!important;min-width:0!important;flex-wrap:wrap!important;}
html[data-brand-system504] .rc-rail .rc-query-actions :is(button,a){max-width:100%!important;white-space:normal!important;}
html[data-brand-system504] :is(.rc-rail-head,#ticketsView504 .tiv-index-heading){padding:9px 10px!important;margin:0 0 12px!important;min-height:38px!important;border-radius:6px!important;font-size:14px!important;line-height:20px!important;font-weight:650!important;}
html[data-brand-system504] :is(.rc-rail-head strong,#ticketsView504 .tiv-index-heading h2){font-size:14px!important;font-weight:650!important;}
html[data-brand-system504] :is(.rc-count,#ticketsView504 .tiv-index-heading small){font-size:11px!important;font-weight:400!important;}
html[data-brand-system504] .rc-record{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:10px!important;padding:13px 11px!important;border-left-width:3px!important;border-radius:7px!important;}
html[data-brand-system504] .rc-record-avatar{width:32px!important;height:32px!important;flex:0 0 32px!important;border-radius:8px!important;}
html[data-brand-system504] .rc-record-copy{min-width:0!important;flex:1!important;}
html[data-brand-system504] .rc-record-copy>strong{display:block!important;font-size:13px!important;line-height:19px!important;font-weight:650!important;}
html[data-brand-system504] .rc-record-copy>span:not(.rc-record-bottom){display:block!important;font-size:11px!important;line-height:16px!important;margin-top:3px!important;color:var(--brand504-muted)!important;overflow-wrap:anywhere!important;}
html[data-brand-system504] .rc-record-bottom{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:5px!important;margin-top:9px!important;font-size:12px!important;}
html[data-brand-system504] .rc-record-state{font-size:11px!important;font-weight:400!important;}
html[data-brand-system504] .rc-record-state:before{content:'';display:inline-block;width:5px;height:5px;background:#17324d;border-radius:50%;margin-right:5px;vertical-align:2px;}
html[data-brand-system504] .rc-amount{font-size:12px!important;white-space:nowrap!important;margin-left:auto!important;}
html[data-brand-system504] :is(.rc-detail,#ticketsView504 .tiv-detail,#ticketsCardsInspector504 .tiv-detail){padding:18px!important;background:#fff!important;}
html[data-brand-system504] :is(.rc-document,.tiv-document){border:1px solid var(--brand504-line)!important;border-top:3px solid var(--brand504-document-edge)!important;border-radius:9px!important;background:#fff!important;box-shadow:0 4px 16px #17324d0a!important;overflow:hidden!important;min-width:0!important;}
html[data-brand-system504] :is(.rc-document>.rc-record-hero,.tiv-document>.tiv-hero){display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;padding:17px 20px!important;margin:0!important;min-height:0!important;border:0!important;border-bottom:1px solid var(--brand504-line)!important;border-radius:0!important;box-shadow:none!important;background:var(--brand504-hero)!important;}
html[data-brand-system504] :is(.rc-record-identity,.tiv-hero>div:first-child){min-width:0!important;}
html[data-brand-system504] :is(.rc-record-title,.tiv-document .tiv-hero h2){font-size:23px!important;line-height:33px!important;font-weight:650!important;letter-spacing:-.5px!important;margin:0 0 4px!important;}
html[data-brand-system504] :is(.rc-detail-top,.tiv-detail-top){font-size:12px!important;line-height:17px!important;color:var(--brand504-muted)!important;margin:0 0 5px!important;}
html[data-brand-system504] :is(.rc-subtitle,.tiv-document .tiv-hero p){font-size:12px!important;line-height:18px!important;color:var(--brand504-muted)!important;margin:0!important;}
html[data-brand-system504] .rc-subtitle .rc-value{display:flex!important;align-items:baseline!important;gap:5px!important;flex-wrap:wrap!important;font-size:12px!important;font-weight:400!important;}
html[data-brand-system504] .rc-subtitle :is(b,small){font:inherit!important;}
html[data-brand-system504] .rc-subtitle small:before{content:'· ';}
html[data-brand-system504] .rc-note{margin-right:auto!important;font-size:11px!important;color:var(--brand504-muted)!important;}
html[data-brand-system504] .rc-document-status{flex:none!important;font-size:11px!important;}
html[data-brand-system504] :is(.rc-document-status .status,.tiv-document>.tiv-hero>.tiv-status){background:var(--brand504-tint)!important;color:#17324d!important;border:1px solid var(--brand504-line)!important;border-radius:12px!important;padding:3px 8px!important;font-size:11px!important;line-height:16px!important;font-weight:400!important;}
html[data-brand-system504] :is(.rc-document>.rc-detail-columns,.tiv-document>.tiv-detail-columns){display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(195px,1fr)!important;align-items:stretch!important;gap:0!important;margin:0!important;}
html[data-brand-system504] :is(.rc-document>.rc-detail-columns>.rc-info-card,.rc-document>.rc-detail-columns>.rc-summary-card,.tiv-document>.tiv-detail-columns>section){min-width:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0 0 18px!important;margin:0!important;overflow:hidden!important;background:#fff!important;}
html[data-brand-system504] :is(.rc-document .rc-card-heading,.tiv-document .tiv-items-heading,.tiv-finance-heading){display:flex!important;align-items:center!important;gap:7px!important;background:var(--brand504-heading)!important;color:var(--brand504-heading-ink)!important;border:0!important;border-left:3px solid #d9364d!important;border-radius:0!important;padding:9px 14px!important;margin:0 0 17px!important;min-height:38px!important;font-size:14px!important;font-weight:650!important;line-height:20px!important;}
html[data-brand-system504] :is(.rc-summary-card>.rc-card-heading,.tiv-finance-heading){border-left:0!important;padding:10px 14px!important;margin-bottom:15px!important;}
html[data-brand-system504] .rc-document .rc-info-card>.rc-fields{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:17px 18px!important;padding:0 20px!important;margin:0!important;}
html[data-brand-system504] .rc-document .rc-info-card .rc-field{display:block!important;padding:0!important;border:0!important;min-width:0!important;}
html[data-brand-system504] .rc-document .rc-field dt{font-size:11px!important;line-height:16px!important;color:var(--brand504-muted)!important;margin-bottom:4px!important;}
html[data-brand-system504] .rc-document .rc-field dd{font-size:13px!important;line-height:19px!important;font-weight:500!important;margin:0!important;overflow-wrap:anywhere!important;}
html[data-brand-system504] :is(.rc-document>.rc-detail-columns>.rc-summary-card,.tiv-document>.tiv-detail-columns>.tiv-information){background:var(--brand504-money)!important;border-left:1px solid #ecdca6!important;}
html[data-brand-system504] .rc-document .rc-money-fields{display:block!important;padding:0 20px!important;margin:0!important;}
html[data-brand-system504] .rc-document .rc-money-fields>.rc-field{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:0 0 13px!important;margin:0!important;border:0!important;border-bottom:1px solid #ead7a1!important;background:transparent!important;}
html[data-brand-system504] .rc-document .rc-money-fields>.rc-primary-total{display:block!important;border:0!important;padding:14px 0 0!important;}
html[data-brand-system504] .rc-document .rc-record-total{min-width:0!important;max-width:none!important;width:auto!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;text-align:left!important;font-size:29px!important;line-height:39px!important;font-weight:650!important;letter-spacing:-.5px!important;}
html[data-brand-system504] .rc-document .rc-record-total *{font:inherit!important;}
html[data-brand-system504] .rc-document .rc-primary-total :is(dd,.rc-value,b,strong){text-align:left!important;display:block!important;}
html[data-brand-system504] .rc-document .rc-summary-card>dl{padding:0 20px!important;margin:0!important;background:transparent!important;}
html[data-brand-system504] .rc-document .rc-summary-card>dl>div{display:flex!important;justify-content:space-between!important;gap:10px!important;padding:0 0 13px!important;border-bottom:1px solid #ead7a1!important;}
html[data-brand-system504] .rc-document .rc-shift-total{padding:14px 20px 0!important;margin:0!important;background:transparent!important;font-size:11px!important;text-align:left!important;}
html[data-brand-system504] .rc-document .rc-shift-total b{display:block!important;}
html[data-brand-system504] .rc-document-status .status:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#17324d;margin-right:5px;vertical-align:2px;}
html[data-brand-system504] :is(.rc-document>.rc-actions,.tiv-document>.tiv-actions){display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:12px!important;padding:12px 20px!important;margin:0!important;border-top:1px solid var(--brand504-line)!important;background:#fff!important;}
html[data-brand-system504] :is(.rc-document>.rc-actions button,.tiv-document>.tiv-actions button){font-size:14px!important;line-height:20px!important;font-weight:400!important;min-height:36px!important;padding:7px 12px!important;border-radius:7px!important;}
html[data-brand-system504] .tiv-document .tiv-total{padding:14px 20px 0!important;margin:0!important;min-width:0!important;display:block!important;border:0!important;background:transparent!important;text-align:left!important;}
html[data-brand-system504] .tiv-document .tiv-total strong{font-size:29px!important;line-height:39px!important;font-weight:650!important;}
html[data-brand-system504] .tiv-document .tiv-totals{margin:0 20px!important;padding:12px 0!important;border-bottom:1px solid #ead7a1!important;background:transparent!important;}
html[data-brand-system504] .tiv-document .tiv-data{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:14px!important;padding:0 20px 14px!important;}
html[data-brand-system504] .tiv-document .tiv-data>div{display:block!important;padding:0!important;border:0!important;}
html[data-brand-system504] .tiv-document .tiv-data dt{font-size:11px!important;margin-bottom:4px!important;}
html[data-brand-system504] .tiv-document .tiv-data dd{font-size:13px!important;font-weight:500!important;}
/* The same document treatment on forms, native details and module panels. */
html[data-brand-system504] [data-brand-panel]{background:#fff!important;border:1px solid var(--brand504-line)!important;border-top:3px solid var(--brand504-document-edge)!important;border-radius:9px!important;box-shadow:0 4px 16px #17324d0a!important;}
html[data-brand-system504] [data-brand-heading]{border-radius:0!important;border-left:3px solid #d9364d!important;}
html[data-brand-system504] :is(.doc-meta,.ticket-meta,.detail-meta){background:#fff!important;border:0!important;border-radius:0!important;gap:17px 18px!important;}
html[data-brand-system504] :is(.dialog-total,.commercial-total,.document-total,.ticket-total){background:var(--brand504-money)!important;color:#17324d!important;border-radius:0!important;padding:14px 20px!important;}
html[data-brand-system504] #creditsDialog .credits-pos-layout{grid-template-columns:236px minmax(0,1fr)!important;}
html[data-brand-system504] #creditsDialog .credit-payment-panel{gap:0!important;border:1px solid var(--brand504-line)!important;border-top:3px solid var(--brand504-document-edge)!important;border-radius:9px!important;margin:18px!important;padding:0!important;overflow:auto!important;}
html[data-brand-system504] #creditsDialog .credit-selected-head{border:0!important;border-bottom:1px solid var(--brand504-line)!important;border-radius:0!important;margin:0!important;padding:17px 20px!important;}
html[data-brand-system504] #creditsDialog :is(.credit-payment-form,.credit-invoices,.credit-recent){border-radius:0!important;box-shadow:none!important;}
html[data-brand-page504=pos] .app-shell>.topbar:has(>#brand-palette504){display:grid!important;grid-template-columns:minmax(140px,200px) minmax(0,1fr) 152px!important;align-items:center!important;gap:10px!important;height:auto!important;min-height:58px!important;padding:6px 10px!important;}
html[data-brand-page504=pos] .app-shell>.topbar:has(>#brand-palette504) .brand-block{display:none!important;}
html[data-brand-page504=pos] .app-shell>.topbar:has(>#brand-palette504) .right-hub{display:contents!important;}
html[data-brand-page504=pos] .app-shell>.topbar:has(>#brand-palette504) #activeCashier{grid-column:1!important;grid-row:1!important;min-width:0!important;width:100%!important;max-width:100%!important;height:44px!important;min-height:44px!important;}
html[data-brand-page504=pos] .app-shell>.topbar:has(>#brand-palette504) .quick-nav{grid-column:2!important;grid-row:1!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;min-width:0!important;width:100%!important;}
html[data-brand-page504=pos] .app-shell>.topbar:has(>#brand-palette504) .quick-nav>button{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:4px!important;font-size:11px!important;gap:5px!important;height:44px!important;}
html[data-brand-page504=pos] .app-shell>.topbar>#brand-palette504{grid-column:3!important;grid-row:1!important;margin:0!important;}
html[data-brand-page504=pos] :is(.search-toolbar,.sale-panel .table-actions){background:#fff!important;}
html[data-brand-page504=pos] .sale-panel{border-top:3px solid var(--brand504-document-edge)!important;}
@media(max-width:850px){
 html[data-brand-system504] .rc-query-bar:has(>.rc-metrics){grid-template-columns:minmax(0,1fr)!important;gap:10px!important;}
 html[data-brand-system504] :is(.rc-workspace,.rc-closings,#ticketsView504 .tiv-body,#creditsDialog .credits-pos-layout){grid-template-columns:210px minmax(0,1fr)!important;}
 html[data-brand-system504] :is(.rc-document>.rc-detail-columns,.tiv-document>.tiv-detail-columns){grid-template-columns:minmax(0,1fr)!important;}
 html[data-brand-system504] :is(.rc-document>.rc-detail-columns>.rc-summary-card,.tiv-document>.tiv-detail-columns>.tiv-information){border-left:0!important;border-top:1px solid #ecdca6!important;}
}
@media(max-width:767px){html[data-brand-system504] :is(.rc-workspace,.rc-closings,#ticketsView504 .tiv-body,#creditsDialog .credits-pos-layout){grid-template-columns:minmax(0,1fr)!important;}}
@media(max-width:600px){
 html[data-brand-page504=servicio-tecnico] .global-nav{display:grid!important;grid-template-columns:auto minmax(0,1fr) 44px!important;height:auto!important;gap:6px!important;padding:6px 10px!important;}
 html[data-brand-page504=servicio-tecnico] .global-nav>.nav-divider{display:none!important;}
 html[data-brand-page504=servicio-tecnico] .global-nav>.nav-title{min-width:0!important;font-size:11px!important;}
 html[data-brand-page504=servicio-tecnico] .global-nav>#brand-palette504{grid-column:3!important;grid-row:1!important;}
 html[data-brand-page504=servicio-tecnico] .global-nav>.nav-end{grid-column:1/-1!important;grid-row:2!important;min-width:0!important;justify-content:flex-end!important;}
 html[data-brand-page504=servicio-tecnico] .global-nav>.nav-end #identity{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
 html[data-brand-page504=pos] .app-shell>.topbar:has(>#brand-palette504){grid-template-columns:minmax(0,1fr) 44px!important;gap:6px!important;}
 html[data-brand-page504=pos] .app-shell>.topbar:has(>#brand-palette504) .quick-nav{grid-row:2!important;grid-column:1/-1!important;}
 html[data-brand-page504=pos] .app-shell>.topbar>#brand-palette504{grid-column:2!important;grid-row:1!important;}
 html[data-brand-system504] .rc-query-bar{padding:12px!important;}
 html[data-brand-system504] .rc-query-bar>.rc-metrics,html[data-brand-system504] .rc-query-bar>.rc-metrics:has(>article:nth-child(5)){grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;}
 html[data-brand-system504] :is(.rc-detail,#ticketsView504 .tiv-detail,#ticketsCardsInspector504 .tiv-detail,.rc-rail,#ticketsView504 .tiv-index){padding:12px!important;}
 html[data-brand-system504] :is(.rc-document>.rc-record-hero,.tiv-document>.tiv-hero){padding:15px!important;gap:8px!important;}
 html[data-brand-system504] :is(.rc-record-title,.tiv-document .tiv-hero h2){font-size:21px!important;line-height:29px!important;}
 html[data-brand-system504] :is(.rc-document .rc-record-total,.tiv-document .tiv-total strong){font-size:25px!important;}
 html[data-brand-system504] .rc-document .rc-info-card>.rc-fields{padding:0 15px!important;gap:15px!important;}
 html[data-brand-system504] .rc-document .rc-money-fields{padding:0 15px!important;}
 html[data-brand-system504] :is(.rc-document>.rc-actions,.tiv-document>.tiv-actions){padding:12px 15px!important;}
 html[data-brand-system504] :is(.rc-document>.rc-actions button,.tiv-document>.tiv-actions button){min-height:44px!important;}
 html[data-brand-system504] #creditsDialog .credit-payment-panel{margin:12px!important;}
}
}}
