/* MS Shipments Luxury B6 | Canonical design system; approved gold MS brand and Tajawal retained.
   The five previously separate Luxury layers are retired and combined in foundation-b6.
   Shared design primitives live here; no finance/role changes. */
body.ms-luxury {
 --lux-ink:#35271d;
 --lux-muted:#7b6854;
 --lux-surface:#fffdf8;
 --lux-subtle:#fbf4e8;
 --lux-gold:#b9853c;
 --lux-gold-hover:#996b2d;
 --lux-line:#d7bb91;
 --lux-focus:#a67933;
 --lux-selection:#ead09e;
 --lux-shadow:0 3px 14px rgba(75,47,21,.12);
 font-family:"MS Tajawal",Tajawal,sans-serif;
}
/* Shared inputs: one purposeful scale/color language, never user-agent bright blue. */
body.ms-luxury :is(.page-form,.page-list,.page-dashboard) :is(input,select,textarea){
 caret-color:var(--lux-ink);
 accent-color:var(--lux-gold);
}
body.ms-luxury :is(.page-form,.page-list,.page-dashboard) :is(input,textarea)::selection{
 color:#352317;background:#ebc879;
}
body.ms-luxury :is(.page-form,.page-list,.page-dashboard) :is(input,textarea,select):focus-visible,
body.ms-luxury :is(.page-form,.page-list,.page-dashboard) :is(button,.btn,a,[role="button"]):focus-visible {
 outline:2px solid var(--lux-focus)!important;outline-offset:2px;
 box-shadow:0 0 0 4px rgba(196,146,64,.20)!important;
}
/* Native/browser controls: opt into readable light scheme, including date pickers. */
body.ms-luxury .page-form .b6-shipment-form :is(input,select,textarea) {color-scheme:light;}
body.ms-luxury .page-form .b6-shipment-form :is(input[type=checkbox],input[type=radio]) {
 accent-color:var(--lux-gold)!important;
 width:18px;height:18px;vertical-align:middle;
}
body.ms-luxury .page-form .b6-shipment-form :is(input,select,textarea):not([type=checkbox]):not([type=radio]) {
 background:var(--lux-surface);
 color:var(--lux-ink);
 border:1px solid var(--lux-line);
}
body.ms-luxury .page-form .b6-shipment-form :is(input,select,textarea):not([type=checkbox]):not([type=radio]):focus {
 border-color:var(--lux-focus)!important;
 outline:2px solid var(--lux-focus)!important;
 outline-offset:1px;
 background:#fffdf8!important;
 box-shadow:0 0 0 4px #c99e5d32!important;
}
body.ms-luxury .page-form .b6-shipment-form input:disabled,
body.ms-luxury .page-form .b6-shipment-form select:disabled {background:#eee8dd!important;color:#765e47!important;}
body.ms-luxury .page-form .b6-shipment-form :is(input,select,textarea)::placeholder{color:#8e7b61;opacity:1;}
/* fix legacy 2.9.2 navy sent state at its owner element, rather than repainting the whole form. */
body.ms-luxury .page-form #shipform.b6-shipment-form .formgrid .sent-inline {
 background:#faf0df!important;color:var(--lux-ink)!important;
 border:1px solid var(--lux-line)!important;
 border-radius:8px;
 display:flex;align-items:center;justify-content:center;gap:9px;
 box-shadow:inset 0 1px #fff;
}
body.ms-luxury .page-form #shipform.b6-shipment-form .formgrid .sent-inline:has(input:focus-visible){
 outline:2px solid var(--lux-focus);outline-offset:2px;
}
body.ms-luxury .page-form #shipform.b6-shipment-form .formgrid .sent-inline input{
 flex:0 0 18px;width:18px!important;height:18px!important;min-height:0;margin:0;
 accent-color:#a87730!important;
}
body.ms-luxury .page-form .b6-sent-text{font-size:13px;color:#65421e;font-weight:750;}
/* Specific legacy values that were blue background in old rules. New semantics light/readonly. */
body.ms-luxury .page-form #shipform.b6-shipment-form #freight_total_sar {
 background:#f6e8c7!important;color:#553818!important;border-color:#c7a165!important;
 -webkit-text-fill-color:#553818;font-weight:800;
}
body.ms-luxury .page-form #shipform.b6-shipment-form .v296-freight-copy-notice {
 background:#fbefd8!important;color:#654b2b!important;border-color:#c6a36b!important;
}
body.ms-luxury .page-form #shipform.b6-shipment-form .v296-freight-legacy {
 background:#f7edda!important;color:#563a19!important;border-color:#c1a16f!important;
}
/* The current edit tables are real table markup; table totals need one semantic foreground/background. */
body.ms-luxury .page-form #shipform.b6-shipment-form :is(#itemtable,#exptable) tfoot td,
body.ms-luxury .page-form #shipform.b6-shipment-form :is(#itemtable,#exptable) tr.totals-row td,
body.ms-luxury .page-form #shipform.b6-shipment-form :is(#itemtable,#exptable) tbody tr:last-child:not(:first-child).summary td {
 background:#f1dfbe!important;color:#4b321d!important;
 border-color:#d2ae7b!important;
}
body.ms-luxury .page-form #shipform.b6-shipment-form :is(#itemtable,#exptable) input[type=checkbox] {accent-color:#af7d31!important;}
body.ms-luxury .page-form #shipform.b6-shipment-form :is(#itemtable,#exptable) thead th {
 background:#33251a!important;color:#f7e7cc!important;border-color:#76532f!important;
}
body.ms-luxury .page-form #shipform.b6-shipment-form .tablewrap{border-color:var(--lux-line)!important;}
body.ms-luxury .page-form #shipform.b6-shipment-form .tablewrap:focus-within{border-color:var(--lux-gold)!important;}
/* Accessibility: real status tones (success/late) remain distinct, but not the obsolete accent blue. */
body.ms-luxury .page-form #shipform.b6-shipment-form .badge.ok {background:#e4f3e6;color:#285c36;}
@media (prefers-reduced-motion:reduce){body.ms-luxury :is(.b6-activity-item,.b6-shipment-id){transition:none!important;}}
