/*
From Uiverse.io by muhammad_1180 - https://uiverse.io/muhammad_1180/ordinary-fish-9
MIT License, Copyright (c) muhammad_1180 (Muhammad Moazam)
*/
/* System-wide adaptation: the user-selected nine-color ocean palette. */
:root{--deep-twilight:#03045eff;--french-blue:#023e8aff;--bright-teal-blue:#0077b6ff;--blue-green:#0096c7ff;--turquoise-surf:#00b4d8ff;--sky-aqua:#48cae4ff;--frosted-blue:#90e0efff;--frosted-blue-2:#ade8f4ff;--light-cyan:#caf0f8ff;--mm-theme-white:#fff;--mm-theme-sky:var(--sky-aqua);--mm-theme-blue:var(--bright-teal-blue);--mm-theme-navy:var(--deep-twilight);--mm-theme-border:var(--frosted-blue-2);--navy:var(--deep-twilight);--blue:var(--bright-teal-blue);--sky:var(--sky-aqua);--mm-navy:var(--deep-twilight);--mm-blue:var(--bright-teal-blue);--mm-text:var(--deep-twilight);--mm-line:var(--frosted-blue-2)}
body.mm-system-theme{position:relative;isolation:isolate;min-height:100vh;min-height:100dvh;background:transparent!important;color:var(--mm-theme-navy)}
/* A fixed decorative layer covers long pages too, without moving with content. */
.mm-system-background{position:fixed;inset:0;width:100%;height:100%;background:var(--mm-theme-white);background:radial-gradient(125% 125% at 50% 10%,var(--mm-theme-white) 40%,var(--light-cyan) 75%,var(--bright-teal-blue) 100%);z-index:-10;pointer-events:none}
.mm-system-theme>header{background:var(--mm-theme-navy);border-bottom-color:var(--mm-theme-sky)}
.mm-system-theme .card,.mm-system-theme .report,.mm-system-theme .stage-card,.mm-system-theme .panel{background-color:var(--mm-theme-white);border-color:var(--mm-theme-border)}
.mm-system-theme .login-area{background:transparent}
.mm-system-theme .login-area .input-shell{background:#ffffffed}
@media print{.mm-system-background{display:none!important}body.mm-system-theme{background:#fff!important}}

/* Shared semantic roles; financial and workflow status colors remain meaningful. */
body.mm-system-theme>header{background:linear-gradient(115deg,var(--deep-twilight),var(--french-blue))!important;border-bottom-color:var(--sky-aqua)!important}
.mm-system-theme button.primary,.mm-system-theme .button.primary,.mm-system-theme button.apply,.mm-system-theme .submit,.mm-system-theme .mm-profile-save{background:var(--bright-teal-blue)!important;color:#fff!important;border-color:var(--bright-teal-blue)!important}
.mm-system-theme button.primary:hover:not(:disabled),.mm-system-theme .button.primary:hover,.mm-system-theme button.apply:hover,.mm-system-theme .submit:hover,.mm-system-theme .mm-profile-save:hover{background:var(--french-blue)!important;border-color:var(--french-blue)!important}
.mm-system-theme .mm-drawer-top,.mm-system-theme .sidebar-top,.mm-system-theme .side-head{background:var(--deep-twilight)}
.mm-system-theme .mm-card-cover{background:linear-gradient(120deg,var(--deep-twilight),var(--french-blue))}
.mm-system-theme .mm-photo-overlay{background:#023e8a88}
.mm-system-theme .mm-avatar{background:linear-gradient(140deg,var(--sky-aqua),var(--bright-teal-blue));border-color:var(--frosted-blue)}
.mm-system-theme .mm-card-badge,.mm-system-theme .mm-drawer a[aria-current=page]{color:var(--french-blue);background:var(--light-cyan);border-color:var(--frosted-blue-2)}
.mm-system-theme .mm-action-icon,.mm-system-theme .mm-account-action:first-of-type .mm-action-icon{color:var(--bright-teal-blue);background:var(--light-cyan)}
.mm-system-theme .mm-nav-dot{background:var(--turquoise-surf)}
.mm-system-theme .mm-account-action{border-color:var(--frosted-blue-2)!important}
.mm-system-theme .mm-drawer a:hover{color:var(--french-blue);background:var(--light-cyan)}
.mm-system-theme .mm-profile-form input:focus,.mm-system-theme .mm-account-expand input:focus{border-color:var(--blue-green)!important;box-shadow:0 0 0 3px #90e0ef55!important}

/* Typography: fonts are served locally under their included SIL Open Font Licenses. */
@font-face{font-family:'MM Arabic';src:url('/fonts/IBMPlexSansArabic-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'MM Arabic';src:url('/fonts/IBMPlexSansArabic-Bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:'MM Numerals';src:url('/fonts/Inter-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap;unicode-range:U+0025,U+002B-0039}
@font-face{font-family:'MM Numerals';src:url('/fonts/Inter-Bold.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap;unicode-range:U+0025,U+002B-0039}
:root{--mm-font-ui:'MM Numerals','MM Arabic',Tahoma,sans-serif}
.mm-system-theme,.mm-system-theme :where(button,input,select,textarea,table,th,td,label,small,strong,h1,h2,h3,h4,summary,dialog,dt,dd){font-family:var(--mm-font-ui)!important;font-variant-numeric:lining-nums tabular-nums}
body.mm-system-theme{font-size:15px;line-height:1.7;-webkit-font-smoothing:antialiased}
.mm-system-theme :where(h1,h2,h3,h4){font-weight:700;line-height:1.55}
.mm-system-theme h1{font-size:clamp(24px,2.2vw,32px)}
.mm-system-theme :where(th,td){font-size:14px;line-height:1.65}
.mm-system-theme th{font-weight:700}
.mm-system-theme :where(button,.button,label){font-weight:500}
.mm-system-theme :where(.summary strong,.totals strong,.circle strong){font-weight:700;font-variant-numeric:tabular-nums lining-nums}
.mm-system-theme input:is([type=number],[type=tel],[type=date],[type=time],[type=datetime-local]){font-variant-numeric:tabular-nums lining-nums}
.mm-system-theme input:is([type=number],[type=tel]){direction:ltr;text-align:center}
.mm-system-theme .mm-quantity-counter>input[type=number]{font-family:var(--mm-font-ui)!important}

/* Explicit English numeral runs, isolated from the surrounding Arabic context. */
.mm-system-theme .mm-latin-number{font-family:'MM Numerals',Arial,sans-serif!important;font-variant-numeric:lining-nums tabular-nums;font-feature-settings:'tnum' 1,'lnum' 1;direction:ltr;unicode-bidi:isolate;letter-spacing:normal}
.mm-system-theme input:is([type=number],[type=date],[type=time],[type=month],[type=datetime-local]){font-family:'MM Numerals',Arial,sans-serif!important;direction:ltr;font-feature-settings:'tnum' 1,'lnum' 1}
.mm-system-theme .mm-quantity-counter>input[type=number]{font-family:'MM Numerals',Arial,sans-serif!important}

/* Date text is explicitly rendered as DD/MM/YYYY; the browser calendar remains available. */
.mm-date-control{position:relative;display:inline-flex;align-items:center;width:100%;min-width:135px;max-width:100%;height:44px;border:1px solid #90e0ef;border-radius:10px;background:white;vertical-align:middle;direction:ltr;isolation:isolate}
.mm-date-control:focus-within{border-color:#0096c7;box-shadow:0 0 0 3px #90e0ef55}
.mm-system-theme .mm-date-control>.mm-date-display{font-family:'MM Numerals',Arial,sans-serif!important;direction:ltr!important;text-align:center!important;width:100%!important;min-width:0!important;flex:1;height:42px!important;border:0!important;border-radius:10px!important;box-shadow:none!important;padding:9px 5px!important;background:transparent!important;color:#03045e!important;font-size:14px!important;margin:0!important;font-variant-numeric:tabular-nums}
.mm-system-theme .mm-date-control>.mm-date-calendar{display:grid;place-items:center;flex:0 0 35px;width:35px!important;min-width:35px!important;height:38px!important;padding:6px!important;margin:0 3px!important;border:0!important;border-radius:8px!important;background:#caf0f8!important;color:#023e8a!important;box-shadow:none!important;transform:none!important}
.mm-system-theme .mm-date-control>.mm-date-calendar:hover:not(:disabled){background:#ade8f4!important}
.mm-date-calendar svg{width:20px;height:20px;pointer-events:none}
.mm-system-theme .mm-date-control>.mm-date-native{position:absolute!important;inset:auto!important;left:0!important;bottom:0!important;width:1px!important;height:1px!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;opacity:0!important;pointer-events:none!important}
.mm-date-disabled{background:#f4f7fa;opacity:.65}.mm-date-control>.mm-date-calendar:disabled{cursor:not-allowed}
.mm-system-theme .mm-date-control.mm-date-fallback>.mm-date-native{inset:0!important;width:100%!important;height:100%!important;opacity:1!important;pointer-events:auto!important;background:white!important;z-index:3}

@media screen{
html[data-theme=dark]{color-scheme:dark;--mm-dark-bg:#071122;--mm-dark-surface:#0d1d34;--mm-dark-raised:#142944;--mm-dark-border:#294a65;--mm-dark-text:#e0f2fa;--mm-dark-muted:#a6c1d4;--mm-text:var(--mm-dark-text);--mm-muted:var(--mm-dark-muted);--ink:var(--mm-dark-text);--muted:var(--mm-dark-muted);--line:var(--mm-dark-border);--light:var(--mm-dark-raised)}
html[data-theme=dark] body.mm-system-theme{color:var(--mm-dark-text)!important;background:var(--mm-dark-bg)!important}
html[data-theme=dark] .mm-system-background{background:#071122;background:radial-gradient(125% 125% at 50% 10%,#071122 40%,#102541 75%,#023e8a 100%)}
html[data-theme=dark] body.mm-system-theme :is(.card,.report,.stage-card,.panel,.summary>div,.summary>button,.mm-drawer,dialog,.mm-profile-dialog){background:var(--mm-dark-surface)!important;color:var(--mm-dark-text)!important;border-color:var(--mm-dark-border)!important;box-shadow:0 8px 30px #00000022!important}
html[data-theme=dark] body.mm-system-theme :is(h1,h2,h3,h4,label,legend,.stage-label,.bar-name,.mm-account-name,.mm-account-heading h2){color:var(--mm-dark-text)}
html[data-theme=dark] body.mm-system-theme :is(p,small,dt,.info,.preview,.stage-note,.metric-label,.report-message,.dialog-count,.dialog-note,.page-footer,footer,#meta,#detail-meta,#count){color:var(--mm-dark-muted)}
html[data-theme=dark] body.mm-system-theme main a:not(.primary),html[data-theme=dark] body.mm-system-theme dialog a{color:#90e0ef}
html[data-theme=dark] body.mm-system-theme :is(th,.card>h2,.toolbar,.totals,.mm-card-details>div,.mm-account-expand,.mm-card-locations span){background:var(--mm-dark-raised)!important;color:var(--mm-dark-text)!important;border-color:var(--mm-dark-border)!important}
html[data-theme=dark] body.mm-system-theme :is(th,td,.table-scroll,.table-wrap,.dialog-head,.mm-account-heading,.mm-account-hero,.mm-profile-form,.stage-note,.sidebar-footer){border-color:var(--mm-dark-border)!important}
html[data-theme=dark] body.mm-system-theme tr:hover td{background:#17324c}
html[data-theme=dark] body.mm-system-theme :is(input,select,textarea):not(.mm-date-native):not(.mm-date-display){background:#10243d!important;color:var(--mm-dark-text)!important;border-color:#345a74!important}
html[data-theme=dark] body.mm-system-theme :is(input,textarea)::placeholder{color:#97afc4!important;opacity:1}
html[data-theme=dark] body.mm-system-theme :is(input,select,textarea):disabled{background:#0b1b2f!important;color:#7f9cb4!important}
html[data-theme=dark] body.mm-system-theme :is(main,dialog) button:not(.primary):not(.apply):not(.submit):not(.mm-profile-save):not(.mm-counter-button):not(.mm-date-calendar):not(.mm-change-photo){background:#142d48!important;color:var(--mm-dark-text)!important;border-color:#345773!important}
html[data-theme=dark] body.mm-system-theme :is(main,dialog) button:not(.primary):not(.apply):not(.submit):not(.mm-profile-save):not(.mm-counter-button):not(.mm-date-calendar):not(.mm-change-photo):hover:not(:disabled){background:#1d4161!important;border-color:#48cae4!important}
html[data-theme=dark] body.mm-system-theme :is(.preview,.info,.dialog-note,.stage-note){background:#102941;border-color:#294a65}
html[data-theme=dark] body.mm-system-theme :is(.mm-drawer a,.nav-item){color:var(--mm-dark-muted)}
html[data-theme=dark] body.mm-system-theme .mm-drawer a:hover,html[data-theme=dark] body.mm-system-theme .mm-drawer a[aria-current=page]{background:#163b59;color:#90e0ef}
html[data-theme=dark] body.mm-system-theme :is(.mm-account-action,.mm-card-details>div,.mm-photo-tools label){background:var(--mm-dark-raised)!important;color:var(--mm-dark-text)!important;border-color:var(--mm-dark-border)!important}
html[data-theme=dark] body.mm-system-theme :is(.mm-card-badge,.mm-action-icon,.mm-account-action:first-of-type .mm-action-icon){background:#16415c!important;color:#90e0ef!important;border-color:#2f6079!important}
html[data-theme=dark] body.mm-system-theme .mm-mfa-status{background:#263c52;color:#bfd1e0}
html[data-theme=dark] body.mm-system-theme :is(.mm-card-sub,.mm-photo-note,.mm-card-details dt){color:var(--mm-dark-muted)}
html[data-theme=dark] body.mm-system-theme .mm-portrait{border-color:#142944}
html[data-theme=dark] body.mm-system-theme .mm-date-control{background:#10243d;border-color:#345a74}
html[data-theme=dark] body.mm-system-theme .mm-date-control>.mm-date-display{background:transparent!important;color:var(--mm-dark-text)!important}
html[data-theme=dark] body.mm-system-theme .mm-date-control>.mm-date-calendar{background:#174260!important;color:#90e0ef!important}
html[data-theme=dark] body.mm-system-theme .mm-date-control>.mm-date-calendar:hover:not(:disabled){background:#225573!important}
html[data-theme=dark] body.mm-system-theme .mm-date-control.mm-date-fallback>.mm-date-native{background:#10243d!important;color:var(--mm-dark-text)!important}
html[data-theme=dark] body.mm-system-theme .mm-quantity-counter>input[type=number],html[data-theme=dark] body.mm-system-theme .mm-quantity-counter>button.mm-counter-button{background:#142d48!important;border-color:#345773!important;color:var(--mm-dark-text)!important}
html[data-theme=dark] body.mm-system-theme .mm-quantity-counter>button.mm-counter-button:hover:not(:disabled){background:#1d4161!important}
html[data-theme=dark] body.mm-system-theme :is(.circle,.track){background:#143650!important;border-color:#28566e!important;color:#90e0ef}
html[data-theme=dark] body.mm-system-theme .fill{background:linear-gradient(90deg,#0077b6,#48cae4)}
html[data-theme=dark] body.mm-system-theme .summary strong{color:#90e0ef}
html[data-theme=dark] body.mm-system-theme :is(.badge.received,.positive){background:#123e36;color:#93e3bf}
html[data-theme=dark] body.mm-system-theme :is(.badge.prepared,.badge.waiting){background:#42361b;color:#f4d98b}
html[data-theme=dark] body.mm-system-theme .badge.archived{background:#312c4d;color:#c8bbf5}
html[data-theme=dark] body.mm-system-theme :is(.negative,.error,#messages:not(:empty),.mm-profile-feedback){color:#ffafaf}
html[data-theme=dark] body.mm-system-theme #messages.success{color:#93e3bf}
html[data-theme=dark] body.mm-system-theme .login-area .input-shell{background:#0d223a;border-color:#345a74}
html[data-theme=dark] body.mm-system-theme .warehouse-area{filter:brightness(.55) saturate(.8)}
html[data-theme=dark] body.mm-system-theme .login-area :is(h1,h2,label){color:var(--mm-dark-text)}
html[data-theme=dark] body.mm-system-theme .login-area input{background:transparent!important}
html[data-theme=dark] body.mm-system-theme .portal b{background:#023e8a;color:white}
html[data-theme=dark] body.mm-system-theme .mm-latin-number{color:inherit}
}

/*
From Uiverse.io by Uncannypotato69 - https://uiverse.io/Uncannypotato69/unlucky-sheep-74
MIT License, Copyright (c) Uncannypotato69
*/
/* Tailwind utilities converted to scoped CSS; physical left/right preserve the original switch animation in RTL. */
.mm-system-theme .mm-theme-toggle{cursor:pointer!important;position:relative!important;display:inline-block!important;flex:0 0 auto!important;height:3em!important;width:6em!important;min-width:6em!important;border:0!important;border-radius:9999px!important;padding:0!important;margin:0!important;background:hsl(0,0%,7%)!important;box-shadow:0 2px 4px 0 rgb(18 18 18 / .25),0 4px 8px 0 rgb(18 18 18 / .35)!important;font-size:14px!important;line-height:1!important;direction:ltr!important;vertical-align:middle;user-select:none}
.mm-theme-toggle>.mm-switch-border{position:absolute;inset:.1em;border-radius:9999px;border:1px solid hsl(0,0%,25%);pointer-events:none}
.mm-theme-toggle>.mm-switch-power{position:absolute;left:.5em;top:50%;display:flex;height:2em;width:2em;transform:translateY(-50%);align-items:center;justify-content:center;border-radius:9999px;background:white;box-shadow:inset 0 2px 2px 0 hsl(0,0%,85%);pointer-events:none}
.mm-switch-power>.mm-switch-hole{height:1.5em;width:1.5em;border-radius:9999px;background:hsl(0,0%,7%);box-shadow:0 2px 2px 0 hsl(0,0%,85%)}
.mm-theme-toggle>.mm-switch-dash{position:absolute;right:.5em;top:50%;height:.25em;width:1.5em;transform:translateY(-50%);border-radius:9999px;background:hsl(0,0%,50%);box-shadow:inset 0 2px 1px 0 hsl(0,0%,40%);pointer-events:none}
.mm-system-theme .mm-theme-toggle>.mm-switch-input{height:1em!important;width:1em!important;min-width:0!important;opacity:0!important;position:absolute!important;left:.25em!important;top:1em!important;margin:0!important;padding:0!important;border:0!important;cursor:pointer;box-shadow:none!important}
.mm-theme-toggle>.mm-switch-knob{position:absolute;left:.25em;top:50%;display:flex;height:2.5em;width:2.5em;transform:translateY(-50%);align-items:center;justify-content:center;border-radius:9999px;background:rgb(26,26,26);box-shadow:inset 4px 4px 4px 0 rgb(64 64 64 / .25),inset -4px -4px 4px 0 rgb(16 16 16 / .5);transition:left .3s ease;pointer-events:none}
.mm-theme-toggle>.mm-switch-input:checked~.mm-switch-knob{left:calc(100% - 2.75em)}
.mm-switch-knob>.mm-switch-inner{position:relative;height:100%;width:100%;border-radius:9999px}
.mm-switch-inner>.mm-switch-knob-ring{position:absolute;inset:.1em;border-radius:9999px;border:1px solid hsl(0,0%,50%)}
.mm-theme-toggle:has(.mm-switch-input:focus-visible){outline:3px solid #48cae4!important;outline-offset:4px}
@media(max-width:650px){.mm-system-theme .mm-theme-toggle{font-size:11px!important}}
@media(prefers-reduced-motion:reduce){.mm-switch-knob{transition:none!important}}
@media print{.mm-theme-toggle{display:none!important}}

/* Consistent page measurements and a docked, space-reserving desktop sidebar. */
body.mm-app{--mm-nav-width:clamp(260px,22vw,310px);padding-inline-start:0;min-width:0;transition:padding-inline-start .22s ease}
.mm-content-frame{container-type:inline-size;container-name:mm-content;width:100%;min-width:0}
.mm-content-frame>main{width:100%;min-width:0;max-width:1540px;margin-inline:auto;padding:24px clamp(14px,2vw,28px);box-sizing:border-box}
.mm-content-frame :is(.card,.report,.stage-card,.panel,.reports,.finance-grid,.workflow-layout,.page-top,.toolbar,.fields,.notes-row){min-width:0;max-width:100%}
.mm-content-frame :is(.fields,.notes-row)>*{min-width:0}
.mm-content-frame :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.mm-content-frame :is(.page-top,.toolbar){gap:14px;flex-wrap:wrap}
.mm-content-frame .buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.mm-content-frame .table-scroll,.mm-content-frame .table-wrap{max-width:100%;min-width:0;overflow:auto;overscroll-behavior-inline:contain}
.mm-content-frame .summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr));gap:16px}
.mm-content-frame .fields{grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr))}
.mm-content-frame .mm-date-control{min-width:0}
.mm-content-frame .fields :is(input,select,textarea){width:100%}
.mm-content-frame :is(.preview,.info,#meta,#detail-meta,#detail-info){overflow-wrap:anywhere}
.mm-content-frame main>h1,.mm-content-frame .page-top h1{line-height:1.55;margin-block-start:0}
.mm-content-frame .summary>div,.mm-content-frame .summary>button{padding:20px}
body.mm-app>.mm-drawer{width:var(--mm-nav-width)!important;scrollbar-gutter:stable;overscroll-behavior:contain}
@media(min-width:1001px){body.mm-app.mm-nav-open{padding-inline-start:var(--mm-nav-width)}body.mm-app.mm-nav-open>.mm-shade{display:none!important}body.mm-app.mm-nav-open>dialog{inset-inline-start:var(--mm-nav-width);inset-inline-end:0;max-inline-size:calc(100vw - var(--mm-nav-width) - 32px)!important}}
@container mm-content (max-width:1100px){.mm-content-frame .finance-grid,.mm-content-frame .workflow-layout{grid-template-columns:minmax(0,1fr)}.mm-content-frame #orders{max-height:230px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.mm-content-frame .notes-row{grid-template-columns:minmax(0,1fr)}}
@container mm-content (max-width:960px){.mm-content-frame main.workspace{grid-template-columns:minmax(0,1fr);gap:18px}.mm-content-frame .workspace>.stage-card{grid-column:1;grid-row:1}.mm-content-frame .workspace>.reports{grid-column:1;grid-row:2}.mm-content-frame .stage-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.mm-content-frame .stage{gap:9px;padding:12px 4px}.mm-content-frame .stage:not(:last-child):after{display:none}.mm-content-frame .circle{width:62px;height:62px}.mm-content-frame .circle strong{font-size:22px}.mm-content-frame .circle svg{width:20px;height:20px}.mm-content-frame .stage-label{font-size:13px}.mm-content-frame .stage-label small{font-size:10px}.mm-content-frame .report{padding:20px}.mm-content-frame .date-form{flex-wrap:wrap}.mm-content-frame .date-form label{min-width:135px}}
@container mm-content (max-width:760px){.mm-content-frame .stage-list{grid-template-columns:repeat(2,minmax(0,1fr))}.mm-content-frame .page-top{align-items:stretch}.mm-content-frame .summary{grid-template-columns:repeat(2,minmax(0,1fr))}.mm-content-frame .page-top>.buttons{width:100%}.mm-content-frame .table-scroll{margin-inline:14px}.mm-content-frame :is(#search,#query,#stock-search,#material-search){width:100%;max-width:100%}.mm-content-frame .report-title{gap:12px;flex-wrap:wrap}}
@container mm-content (max-width:480px){.mm-content-frame .fields{grid-template-columns:minmax(0,1fr)}.mm-content-frame .summary{gap:10px}.mm-content-frame .summary>div,.mm-content-frame .summary>button{padding:14px}.mm-content-frame .fields,.mm-content-frame .notes-row{padding:16px;gap:15px}.mm-content-frame .date-form .apply{width:100%}.mm-content-frame .toolbar{padding:14px}.mm-content-frame .report{padding:16px}.mm-content-frame .bar-row{grid-template-columns:100px minmax(0,1fr) 40px;gap:8px}}
@media(max-width:650px){.mm-content-frame>main{padding:18px 12px}.mm-app>header .mm-brand strong{font-size:14px!important}.mm-app>header .mm-account{gap:4px}}
@media(prefers-reduced-motion:reduce){body.mm-app{transition:none}}
@media print{body.mm-app.mm-nav-open{padding-inline-start:0!important}.mm-app>.mm-drawer,.mm-app>.mm-shade{display:none!important}.mm-content-frame{container-type:normal}.mm-content-frame>main{padding:0;max-width:none}}

/* Form-row alignment: native controls and date/quantity adapters share one baseline. */
:root{--mm-field-height:44px;--mm-field-label-gap:8px}
.mm-system-theme .fields{align-items:start}
.mm-system-theme :is(.fields,.notes-row)>label{display:block;margin-block:0;line-height:1.65;align-self:start}
.mm-system-theme :is(.fields,.notes-row)>label>input:not([type=checkbox]):not([type=radio]),.mm-system-theme :is(.fields,.notes-row)>label>select{display:block;box-sizing:border-box;height:var(--mm-field-height)!important;min-height:var(--mm-field-height)!important;margin-top:var(--mm-field-label-gap)!important;margin-bottom:0;line-height:1.4}
.mm-system-theme :is(.fields,.notes-row)>label>.mm-date-control,.mm-system-theme :is(.fields,.notes-row)>label>.mm-quantity-counter{display:flex;width:100%;height:var(--mm-field-height)!important;margin-top:var(--mm-field-label-gap)!important;margin-bottom:0;vertical-align:top}
.mm-system-theme :is(.fields,.notes-row)>label>.mm-quantity-counter{max-width:8rem}
.mm-system-theme :is(.fields,.notes-row)>label>textarea{display:block;min-height:96px;margin-top:var(--mm-field-label-gap)!important;line-height:1.7}
.mm-system-theme .date-form label{gap:var(--mm-field-label-gap);line-height:1.65}
.mm-system-theme .date-form label>.mm-date-control{margin:0!important;height:var(--mm-field-height)!important}
.mm-system-theme .date-form>.apply{min-height:var(--mm-field-height)!important;height:var(--mm-field-height)!important}
.mm-system-theme :is(.toolbar,.buttons,.actions){align-items:center}
.mm-system-theme .mm-profile-form label>input,.mm-system-theme .mm-account-expand label>input{height:var(--mm-field-height);box-sizing:border-box}
.mm-system-theme .mm-home-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:42px;border-radius:11px;border:1px solid #ffffff30;background:#ffffff0d;color:white!important;text-decoration:none;transition:background-color .18s ease,transform .18s ease}
.mm-home-link svg{width:22px;height:22px;flex-shrink:0}
.mm-system-theme .mm-home-link:hover{background:#ffffff24;transform:translateY(-1px)}
.mm-logout-icon{display:none;align-items:center;justify-content:center}.mm-logout-icon svg{width:20px;height:20px}
.mm-system-theme .mm-home-link:focus-visible{outline:3px solid #90e0ef;outline-offset:3px}
@media(max-width:650px){.mm-system-theme .mm-home-link{flex-basis:34px;width:34px;height:36px}.mm-system-theme .mm-logout{width:34px!important;min-width:34px;justify-content:center;padding:6px!important}.mm-logout-icon{display:inline-flex}.mm-logout-text{display:none}.mm-system-theme .mm-theme-toggle{font-size:10px!important}.mm-system-theme .mm-account{gap:4px}.mm-system-theme .mm-brand strong{font-size:13px!important}.mm-system-theme .mm-brand small{font-size:7px!important}}

/* Dark appearance uses ink tones only, independently of the light brand palette. */
@media screen{
html[data-theme=dark]{--deep-twilight:#151927;--french-blue:#34415d;--bright-teal-blue:#34415d;--blue-green:#586681;--turquoise-surf:#8794ad;--sky-aqua:#8794ad;--frosted-blue:#aeb8ca;--frosted-blue-2:#354055;--light-cyan:#232a3a;--mm-theme-white:#191f2d;--mm-theme-navy:#151927;--mm-theme-blue:#34415d;--mm-theme-sky:#8794ad;--mm-theme-border:#354055;--mm-dark-bg:#111522;--mm-dark-surface:#191f2d;--mm-dark-raised:#232a3a;--mm-dark-border:#354055;--mm-dark-text:#f1f3f8;--mm-dark-muted:#adb5c6;--mm-text:#f1f3f8;--mm-muted:#adb5c6;--ink:#f1f3f8;--muted:#adb5c6;--line:#354055;--light:#232a3a}
html[data-theme=dark] .mm-system-background{background:radial-gradient(125% 125% at 50% 10%,#111522 40%,#191f2d 75%,#242c40 100%)}
html[data-theme=dark] body.mm-system-theme>header{background:linear-gradient(115deg,#151927,#1c2233)!important;border-bottom-color:#46536c!important}
html[data-theme=dark] body.mm-system-theme :is(.mm-drawer-top,.mm-card-cover,.sidebar-top,.side-head){background:#1c2233!important;color:#f1f3f8}
html[data-theme=dark] body.mm-system-theme :is(.card,.report,.stage-card,.panel,.summary>div,.summary>button,.mm-drawer,dialog,.mm-profile-dialog){background:#191f2d!important;color:#f1f3f8!important;border-color:#354055!important}
html[data-theme=dark] body.mm-system-theme :is(th,.card>h2,.toolbar,.totals,.mm-card-details>div,.mm-account-expand,.mm-card-locations span){background:#232a3a!important;color:#f1f3f8!important;border-color:#354055!important}
html[data-theme=dark] body.mm-system-theme :is(input,select,textarea):not(.mm-date-native):not(.mm-date-display){background:#1a2232!important;color:#f1f3f8!important;border-color:#46516a!important}
html[data-theme=dark] body.mm-system-theme :is(input,select,textarea):disabled{background:#161c29!important;color:#8e99ad!important}
html[data-theme=dark] body.mm-system-theme :is(input,select,textarea):focus{border-color:#8794ad!important;box-shadow:0 0 0 3px #8794ad25!important}
html[data-theme=dark] body.mm-system-theme :is(button,a):focus-visible{outline-color:#aeb8ca!important}
html[data-theme=dark] body.mm-system-theme :is(.primary,.apply,.submit,.mm-profile-save,button.active,.button.primary){background:#34415d!important;border-color:#53617e!important;color:#fff!important}
html[data-theme=dark] body.mm-system-theme :is(.primary,.apply,.submit,.mm-profile-save,button.active,.button.primary):hover:not(:disabled){background:#445473!important;border-color:#8794ad!important}
html[data-theme=dark] body.mm-system-theme :is(main,dialog) button:not(.primary):not(.apply):not(.submit):not(.mm-profile-save):not(.mm-counter-button):not(.mm-date-calendar):not(.mm-change-photo){background:#293246!important;color:#edf0f7!important;border-color:#46516a!important}
html[data-theme=dark] body.mm-system-theme :is(main,dialog) button:not(.primary):not(.apply):not(.submit):not(.mm-profile-save):not(.mm-counter-button):not(.mm-date-calendar):not(.mm-change-photo):hover:not(:disabled){background:#35415a!important;border-color:#8794ad!important}
html[data-theme=dark] body.mm-system-theme :is(.preview,.info,.dialog-note,.stage-note,.badge,.badge.waiting,.badge.prepared,.badge.received,.badge.archived){background:#252e40!important;color:#dce1ec!important;border-color:#46516a!important}
html[data-theme=dark] body.mm-system-theme .mm-drawer a{color:#c0c8d7}
html[data-theme=dark] body.mm-system-theme .mm-drawer a:hover,html[data-theme=dark] body.mm-system-theme .mm-drawer a[aria-current=page]{background:#303b52!important;color:#f1f3f8!important}
html[data-theme=dark] body.mm-system-theme main a:not(.primary),html[data-theme=dark] body.mm-system-theme dialog a{color:#c4cede}
html[data-theme=dark] body.mm-system-theme :is(.mm-card-badge,.mm-action-icon,.mm-account-action:first-of-type .mm-action-icon){background:#303b52!important;color:#dce3f0!important;border-color:#46516a!important}
html[data-theme=dark] body.mm-system-theme .mm-account-action{background:#232a3a!important;border-color:#354055!important}
html[data-theme=dark] body.mm-system-theme .mm-avatar{background:linear-gradient(140deg,#8794ad,#34415d);border-color:#aeb8ca}
html[data-theme=dark] body.mm-system-theme .mm-portrait{border-color:#232a3a}
html[data-theme=dark] body.mm-system-theme .mm-photo-overlay{background:#15192788}
html[data-theme=dark] body.mm-system-theme .mm-photo-tools label{background:#303b52;color:#dce3f0}
html[data-theme=dark] body.mm-system-theme .mm-date-control{background:#1a2232;border-color:#46516a}
html[data-theme=dark] body.mm-system-theme .mm-date-control>.mm-date-display{color:#f1f3f8!important;background:transparent!important}
html[data-theme=dark] body.mm-system-theme .mm-date-control>.mm-date-calendar{background:#303b52!important;color:#dce3f0!important}
html[data-theme=dark] body.mm-system-theme .mm-date-control>.mm-date-calendar:hover:not(:disabled){background:#445473!important}
html[data-theme=dark] body.mm-system-theme .mm-date-control.mm-date-fallback>.mm-date-native{background:#1a2232!important;color:#f1f3f8!important}
html[data-theme=dark] body.mm-system-theme .mm-date-control:focus-within{border-color:#8794ad;box-shadow:0 0 0 3px #8794ad25}
html[data-theme=dark] body.mm-system-theme .mm-quantity-counter>input[type=number],html[data-theme=dark] body.mm-system-theme .mm-quantity-counter>button.mm-counter-button{background:#293246!important;border-color:#46516a!important;color:#f1f3f8!important}
html[data-theme=dark] body.mm-system-theme .mm-quantity-counter>button.mm-counter-button:hover:not(:disabled){background:#35415a!important}
html[data-theme=dark] body.mm-system-theme :is(.circle,.track){background:#303b52!important;border-color:#53617e!important;color:#dce3f0}
html[data-theme=dark] body.mm-system-theme .fill{background:linear-gradient(90deg,#445473,#aeb8ca)}
html[data-theme=dark] body.mm-system-theme .summary strong{color:#dce3f0}
html[data-theme=dark] body.mm-system-theme .mm-nav-dot{background:#8794ad}
html[data-theme=dark] body.mm-system-theme .mm-logo path:first-child{fill:#bac5d8}
html[data-theme=dark] body.mm-system-theme .mm-logo path:last-child{stroke:#151927}
html[data-theme=dark] body.mm-system-theme .mm-brand small{color:#c4cede}
html[data-theme=dark] body.mm-system-theme .login-area .input-shell{background:#1a2232;border-color:#46516a}
html[data-theme=dark] body.mm-system-theme .warehouse-area{filter:grayscale(1) brightness(.52)}
html[data-theme=dark] body.mm-system-theme .portal b{background:#303b52;color:white}
}
@media screen{
html[data-theme=dark] body.mm-system-theme :is(.totals strong,.tag,.stock-value,.stock-value.short,#closing,#stages span,.lifecycle li,.ranking tr.selected,#locations label,.export){background:#293246!important;color:#dce3f0!important;border-color:#46516a!important}
html[data-theme=dark] body.mm-system-theme :is(#stages .current,.lifecycle li.active){background:#445473!important;color:#fff!important;border-color:#8794ad!important}
html[data-theme=dark] body.mm-system-theme .lifecycle li:not(:last-child):after{background:#46516a}
html[data-theme=dark] body.mm-system-theme :is(.card-heading svg,.card-heading,.bar-count,.link){color:#c4cede}
html[data-theme=dark] body.mm-system-theme .brand-mark path:first-child{fill:#bac5d8}
html[data-theme=dark] body.mm-system-theme input[type=checkbox]{accent-color:#8794ad}
html[data-theme=dark] body.mm-system-theme tr:hover td{background:#242e42}
html[data-theme=dark] body.mm-system-theme .mm-card-details dd{color:#f1f3f8}
}

/* Shared action-link styling also covers pages that do not load transfer table styles. */
.mm-system-theme a.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;border:1px solid var(--mm-theme-border);border-radius:9px;font:500 14px var(--mm-font-ui);line-height:1.4;text-decoration:none;white-space:nowrap;box-sizing:border-box}
.mm-system-theme .fields>button,.mm-system-theme .fields>a.button,.mm-system-theme .fields>input,.mm-system-theme .fields>select{align-self:end;min-height:var(--mm-field-height)}
.mm-system-theme :is(.toolbar,.buttons,.actions)>button:not(.mm-date-calendar):not(.mm-counter-button){min-height:42px}
.mm-system-theme td>input:not([type=checkbox]):not([type=radio]):not(.mm-date-native),.mm-system-theme td>select{height:var(--mm-field-height);min-height:var(--mm-field-height);box-sizing:border-box}
.mm-system-theme td{vertical-align:middle}
