/* FF Logistics motion language — small, finite animations; blue & white. */
:root{--ff-motion-ease:cubic-bezier(.2,.7,.2,1)}
#app>aside{background-image:radial-gradient(ellipse at 90% 0%,#3434cf55,transparent 52%)}
#app>aside nav a{transition:background-color .2s,color .2s,box-shadow .2s;position:relative}
#app>aside nav a svg{transition:transform .25s var(--ff-motion-ease)}
#app>aside nav a[aria-current]{box-shadow:inset 3px 0 #c5c9ff,0 8px 22px #03035212}
#app>aside nav a:focus-visible{outline:2px solid white;outline-offset:3px}
.heading,.customer-page-heading{position:relative;min-height:104px}
.heading>div:first-child,.customer-page-heading>div:first-child{min-width:0;flex:1}
.heading>button,.customer-page-heading>button{flex-shrink:0}
.ff-route-scene{width:236px;height:96px;flex:0 0 236px;color:var(--ff-blue,#0c0c9f);pointer-events:none;overflow:hidden}
.ff-route-scene svg{width:100%;height:100%;overflow:visible}
.ff-route-base{stroke:#cfd3eb;stroke-width:1.2}
.ff-route-trace{stroke:#7275dc;stroke-width:2;stroke-dasharray:.12 .88;stroke-dashoffset:1;animation:ff-route-travel 1.9s ease-in-out 2 forwards}
.ff-route-ring{stroke:#dfe2f5;stroke-width:1}
.ff-route-orbit{stroke:#dfe2f5;stroke-width:1;stroke-dasharray:2 5;transform-origin:162px 55px;animation:ff-orbit-reveal 1.4s var(--ff-motion-ease) both}
.ff-route-node rect{fill:white;stroke:#d9dcef;stroke-width:1}
.ff-route-node path{stroke:#8588b4;stroke-width:1.3;stroke-linejoin:round;stroke-linecap:round}
.ff-route-core>rect{fill:#0c0c9f;stroke:#e4e4ff;stroke-width:3}
.ff-route-symbol{stroke:white;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round;color:white}
.ff-route-dot{fill:#878be4;animation:ff-node-arrive .65s ease-out both;animation-delay:.35s}
.ff-route-dot:last-child{animation-delay:1.1s}
.customer-balance-card,.finance-stats .balance-card{background-image:radial-gradient(ellipse at 100% 0,#ededff 0,transparent 65%);transition:box-shadow .25s,border-color .25s}
.customer-metric,.customer-calculator-card,.stats>article,.customer-stock-summary,.panel{transition:box-shadow .25s,border-color .25s}
.customer-metric>svg,.customer-calculator-card>svg{transition:transform .3s var(--ff-motion-ease)}
.customer-calculator-card{background-image:radial-gradient(ellipse at 100% 0,#dedffc55,transparent 70%)}
.customer-finance-tabs a{position:relative;transition:color .2s}
.customer-finance-tabs a[aria-current]::after{content:"";height:2px;position:absolute;inset:auto 0 -2px;background:#0c0c9f;transform-origin:left;animation:ff-tab-in .3s var(--ff-motion-ease)}
button,.button{transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s}
button:not(:disabled):active,.button:active{transform:translateY(1px)}
input:not([type=checkbox]):not([type=file]),select,textarea{transition:border-color .18s,box-shadow .18s}
input:focus-visible,select:focus-visible,textarea:focus-visible{box-shadow:0 0 0 4px #0c0c9f0c}
.table-wrap tbody tr{transition:background-color .16s}
.table-wrap tbody tr:hover{background-color:#f5f5ff}
.calculator-total{background-image:radial-gradient(ellipse at 100% 0,#d8dcff66,transparent 75%);animation:ff-result-in .35s var(--ff-motion-ease)}
.calculator-breakdown>div{animation:ff-detail-in .3s var(--ff-motion-ease) both}
.calculator-breakdown>div:nth-child(2){animation-delay:35ms}.calculator-breakdown>div:nth-child(3){animation-delay:70ms}.calculator-breakdown>div:nth-child(4){animation-delay:105ms}.calculator-breakdown>div:nth-child(n+5){animation-delay:140ms}
dialog[open]::backdrop{animation:ff-backdrop-in .2s ease-out}
dialog .modal-heading{border-bottom:1px solid #ececf5;padding-bottom:16px}
.notice{box-shadow:0 3px 14px #14147905}
.pre-upload input[type=file],.history-upload,.inventory-upload{transition:background-color .2s,border-color .2s,box-shadow .2s}
.pre-upload input[type=file]:hover,.history-upload:hover{background-color:#f0f1ff;border-color:#7275c7;box-shadow:0 0 0 3px #0c0c9f08}
/* Actual loading indicators only. Finite animation leaves a visible static ring. */
#app .empty[role=status]::before{content:"";display:inline-block;width:16px;height:16px;margin-right:10px;vertical-align:-3px;border:2px solid #dbddf0;border-top-color:#0c0c9f;border-radius:50%;animation:ff-load-turn .8s linear 6}
@media(hover:hover) and (pointer:fine){
 #app>aside nav a:hover{box-shadow:inset 3px 0 #c9cdff;background-color:#ffffff16}
 #app>aside nav a[aria-current]:hover{background-color:#fff}
 #app>aside nav a:hover svg{transform:translateY(-2px)}
 .customer-metric:hover,.customer-calculator-card:hover,.stats>article:hover,.customer-stock-summary:hover{box-shadow:0 9px 26px #0c0c9f0c;border-color:#c9ccef}
 .customer-metric:hover>svg,.customer-calculator-card:hover>svg{transform:translateY(-3px) rotate(-5deg)}
 button.primary:not(:disabled):hover,.button.primary:hover{box-shadow:0 5px 15px #0c0c9f26;transform:translateY(-1px)}
}
/* Sign-in artwork is visual only: the existing form, labels and security copy remain intact. */
.ff-login-art{display:none}
@media(min-width:1050px){
 body.ff-motion-login{grid-template-columns:minmax(300px,440px) minmax(400px,470px);align-items:stretch;align-content:center;justify-content:center;column-gap:0;padding:44px}
 .ff-motion-login>.login-card{width:100%;max-width:none;border-radius:0 20px 20px 0;padding:36px;border-left:0}
 .ff-login-art{display:flex;position:relative;isolation:isolate;overflow:hidden;flex-direction:column;justify-content:center;min-height:650px;padding:44px;border-radius:20px 0 0 20px;color:white;background:radial-gradient(ellipse at 25% 35%,#3232c7,#0c0c9f 60%,#08086f)}
 .ff-login-kicker{position:absolute;top:44px;left:44px;font-size:12px;letter-spacing:.22em;color:#cbcdfb}
 .ff-login-slogan{position:relative;z-index:1;font-size:42px;line-height:1.25;letter-spacing:-1.5px;font-weight:700;margin-bottom:35px}
 .ff-login-art .ff-route-scene{width:100%;height:180px;flex:none;position:relative;z-index:1}
 .ff-login-grid{position:absolute;inset:0;background-image:linear-gradient(#ffffff09 1px,transparent 1px),linear-gradient(90deg,#ffffff09 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(transparent,#000 40%,transparent)}
 .ff-login-art .ff-route-ring,.ff-login-art .ff-route-orbit{stroke:#9999fa40}
 .ff-login-art .ff-route-base{stroke:#bbbaff44}
 .ff-login-art .ff-route-trace{stroke:#d0cfff}
 .ff-login-art .ff-route-node rect{fill:#3030b9;stroke:#7777db}
 .ff-login-art .ff-route-node path{stroke:#e0e0ff}
 .ff-login-art .ff-route-core>rect{fill:white;stroke:#ffffff38;stroke-width:7}
 .ff-login-art .ff-route-symbol{color:#0c0c9f;stroke:#0c0c9f}
}
@media(max-width:1200px){.heading .ff-route-scene,.customer-page-heading .ff-route-scene{width:175px;flex-basis:175px}}
@media(max-width:900px){.heading .ff-route-scene,.customer-page-heading .ff-route-scene{display:none}.heading,.customer-page-heading{min-height:0}}
@keyframes ff-route-travel{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes ff-orbit-reveal{from{opacity:0;transform:rotate(-28deg)}to{opacity:1;transform:rotate(0)}}
@keyframes ff-node-arrive{from{opacity:.35}to{opacity:1}}
@keyframes ff-tab-in{from{transform:scaleX(.25)}to{transform:scaleX(1)}}
@keyframes ff-result-in{from{background-color:#e0e3ff}to{background-color:#f0f2ff}}
@keyframes ff-detail-in{from{opacity:.65;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes ff-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes ff-load-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){
 .ff-route-scene *,.calculator-total,.calculator-breakdown>div,.customer-finance-tabs a::after,#app .empty[role=status]::before,dialog::backdrop{animation:none!important}
 #app>aside nav a,#app>aside nav a svg,.customer-metric,.customer-calculator-card,.stats>article,.customer-stock-summary,.panel,.customer-balance-card,.customer-metric>svg,.customer-calculator-card>svg,button,.button,input,select,textarea,.table-wrap tbody tr{transition:none!important;transform:none!important}
}
html[data-ff-motion-paused] *{animation-play-state:paused!important}
@media print{.ff-route-scene,.ff-login-art{display:none!important}*,*::before,*::after{animation:none!important;transition:none!important}}
/* DTC v2 — two complete cycles on opening; click to replay twice. */
.ff-route-scene{width:270px;height:124px;flex:0 0 270px;pointer-events:auto;cursor:pointer;padding:0!important;border:0!important;background:transparent!important;margin:0!important;box-shadow:none!important;isolation:isolate}
.ff-route-scene:hover{transform:none!important}.ff-route-scene:focus-visible{outline:2px solid #7169de;outline-offset:3px;border-radius:12px}.ff-dtc-ground{fill:#dcd9fa;opacity:.26}.ff-dtc-road{stroke:#d0cbef;stroke-width:2;stroke-dasharray:3 5}.ff-dtc-flow{stroke:#8476ec;stroke-width:2;stroke-dasharray:.12 .88;animation:ff-dtc-flow 3s ease-in-out 2}.ff-dtc-parcel{transform:translate(76px,101px);opacity:0;animation:ff-dtc-delivery 3s ease-in-out 2}.ff-dtc-signal{transform-origin:168px 14px;animation:ff-dtc-pulse 3s ease-in-out 2}.ff-dtc-check{transform-origin:311px 37px;animation:ff-dtc-confirm 3s ease-in-out 2}
@keyframes ff-dtc-flow{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}@keyframes ff-dtc-delivery{0%{transform:translate(65px,98px);opacity:0}12%{opacity:1}40%{transform:translate(104px,110px)}60%{transform:translate(227px,99px)}85%{transform:translate(266px,106px);opacity:1}100%{transform:translate(279px,95px);opacity:0}}@keyframes ff-dtc-pulse{0%,100%{transform:scale(1)}45%{transform:scale(1.5);filter:drop-shadow(0 0 6px #67efdf)}}@keyframes ff-dtc-confirm{0%,65%{opacity:0;transform:scale(.5)}82%{opacity:1;transform:scale(1.2)}100%{opacity:1;transform:scale(1)}}
dialog[open]{box-shadow:0 35px 100px #17134433;border:1px solid #dcdef0;border-radius:20px}dialog::backdrop{background:#11113366;backdrop-filter:blur(5px)}
@media(min-width:1050px){
 body.ff-motion-login{grid-template-columns:minmax(350px,490px) minmax(420px,470px);padding:32px;align-items:stretch;background:radial-gradient(ellipse at 15% 10%,#dedcfc55,transparent 50%),#f3f4f8}
 .ff-login-art{padding:42px;min-height:620px;justify-content:flex-start;background:radial-gradient(ellipse at 50% 55%,#4238cc,#1511a0 60%,#0b0875);box-shadow:0 24px 70px #15134312}
 .ff-login-kicker{position:relative;top:auto;left:auto;letter-spacing:.13em;font-size:10px;font-weight:600}
 .ff-login-slogan{font-size:46px;line-height:1.1;letter-spacing:-2px;margin:38px 0 20px}.ff-login-slogan span{color:#b4afff}
 .ff-login-description{color:#c5c1f0;font-size:14px;line-height:1.7;margin:0;position:relative;z-index:1}
 .ff-login-art .ff-route-scene{width:100%;height:auto;aspect-ratio:340/154;margin:22px 0 16px!important;flex:none;filter:drop-shadow(0 14px 22px #05025450)}
 .ff-login-art .ff-dtc-ground{fill:#8880ee;opacity:.25}.ff-login-art .ff-dtc-road{stroke:#9790df}.ff-login-art .ff-dtc-flow{stroke:#d3ccff}
 .ff-login-steps{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#8e88dc;border-top:1px dashed #aaa4ff40;padding-top:20px;position:relative;z-index:1}.ff-login-steps b{display:block;font-size:13px;font-weight:500;color:#ddd9ff;margin-top:6px}
 .ff-login-signature{margin-top:auto;padding-top:38px;font-size:10px;letter-spacing:.12em;color:#e4e0ff;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;position:relative;z-index:1}.ff-login-signature span{font-size:10px;color:#9c96dd;letter-spacing:0}
 .ff-motion-login>.login-card{padding:38px;border-radius:0 20px 20px 0;box-shadow:0 24px 70px #15134308;display:flex;flex-direction:column;justify-content:center}.ff-motion-login>.login-card .brand{margin-bottom:30px}.ff-motion-login>.login-card h1{font-size:30px}.ff-motion-login>.login-card form{margin-top:16px}.ff-motion-login>.login-card footer{margin-top:20px}.ff-motion-login>.login-card .password-help{font-size:12px}
}
@media(max-width:1200px){.heading .ff-route-scene,.customer-page-heading .ff-route-scene{width:210px;flex-basis:210px;height:104px}}
@media(max-width:900px){.heading .ff-route-scene,.customer-page-heading .ff-route-scene{display:none}}
@media(prefers-reduced-motion:reduce){.ff-route-scene *{animation:none!important}.ff-dtc-parcel{display:none}dialog::backdrop{animation:none!important}}
@media(min-width:1050px){
 .ff-login-art{width:100%}.ff-motion-login>.login-card{padding:30px 34px}.ff-motion-login>.login-card .brand{margin-bottom:24px}.ff-motion-login>.login-card h1{margin:10px 0}.ff-motion-login #intro{font-size:14px;margin:8px 0;line-height:1.6}.ff-motion-login form{gap:8px}.ff-motion-login form label{margin-top:5px;font-size:13px}.ff-motion-login form input{padding:11px 12px}.ff-motion-login form button{margin-top:12px;padding:13px}.ff-motion-login #error:empty{display:none}.ff-motion-login #help{font-size:12px;margin:20px 0 10px}.ff-motion-login .password-help{margin:10px 0 14px;padding:10px 12px}.ff-motion-login>.login-card footer{padding-top:16px;margin-top:16px;font-size:11px}
}
/* v4 — spatial transitions: focus follows the action, never a changing balance. */
#app>aside nav.ff-motion-nav{position:relative;isolation:isolate}
#app>aside nav.ff-motion-nav>a{z-index:1}
#app>aside nav.ff-motion-nav>a[aria-current],#app>aside nav.ff-motion-nav>a[aria-current]:hover{background:transparent;box-shadow:none}
.ff-nav-highlight{position:absolute;display:block;pointer-events:none;z-index:0;background:#fff;border:1px solid #ffffffbb;border-radius:12px;box-shadow:0 10px 30px #03035217;transform-origin:center;will-change:transform}
.ff-pointer-surface{position:relative;isolation:isolate}
.ff-pointer-surface::after{content:"";position:absolute;inset:-1px;pointer-events:none;border-radius:inherit;opacity:0;z-index:0;background:radial-gradient(260px circle at var(--ff-pointer-x,50%) var(--ff-pointer-y,50%),#7668f719,transparent 76%);box-shadow:inset 0 0 0 1px #7770ea26;transition:opacity .32s ease;mix-blend-mode:multiply}
.ff-pointer-surface[data-ff-pointer]::after{opacity:1}
dialog.ff-motion-dialog[open]{background:#fff;border:1px solid #e4e3f0;border-radius:24px;box-shadow:0 42px 120px #16123a42,0 8px 26px #16123a18;will-change:transform,opacity;max-height:90dvh;overflow:auto}
dialog.ff-motion-dialog::backdrop{background:#17183354;backdrop-filter:blur(11px) saturate(.75);-webkit-backdrop-filter:blur(11px) saturate(.75);animation:none}
dialog.ff-dialog-opening::backdrop{animation:ff-dialog-veil-in 480ms cubic-bezier(.2,.7,.2,1) both}
dialog.ff-dialog-closing::backdrop{animation:ff-dialog-veil-out 240ms ease-in both}
dialog.ff-dialog-closing{pointer-events:none}
dialog.ff-motion-dialog .modal-heading{gap:18px;padding-bottom:18px;border-bottom:1px solid #ececf6}
dialog.ff-motion-dialog .modal-heading h2{letter-spacing:-.02em}
dialog.ff-motion-dialog .modal-heading #close-dialog{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;border-radius:50%;border-color:#e7e6f3;background:#f7f7fc;color:#514b77;transition:background .2s,color .2s,transform .3s cubic-bezier(.2,.75,.2,1)}
dialog.ff-motion-dialog .modal-heading #close-dialog:hover{background:#eeecff;color:#10069f;transform:rotate(90deg)}
dialog.ff-motion-dialog .modal-heading #close-dialog:focus-visible{outline:2px solid #6254dc;outline-offset:3px}
dialog.ff-motion-dialog .bill-document tr{transition:background-color .2s ease}
dialog.ff-motion-dialog .bill-document tbody tr:hover{background:#f5f3ff}
.ff-chart-tooltip:not([hidden]){transform-origin:50% 100%;animation:ff-chart-tooltip-in 280ms cubic-bezier(.2,.8,.2,1) both;box-shadow:0 16px 32px #12103930,0 1px 0 #ffffff14 inset}
#ff-chart-crosshair circle{filter:drop-shadow(0 0 6px #7464ff77);stroke-width:3.5}
#ff-chart-crosshair[visibility=visible] circle{animation:ff-chart-focus-in 300ms ease-out}
@keyframes ff-dialog-veil-in{from{background:#17183300;backdrop-filter:blur(0) saturate(1);-webkit-backdrop-filter:blur(0) saturate(1)}to{background:#17183354;backdrop-filter:blur(11px) saturate(.75);-webkit-backdrop-filter:blur(11px) saturate(.75)}}
@keyframes ff-dialog-veil-out{from{background:#17183354;backdrop-filter:blur(11px) saturate(.75);-webkit-backdrop-filter:blur(11px) saturate(.75)}to{background:#17183300;backdrop-filter:blur(0) saturate(1);-webkit-backdrop-filter:blur(0) saturate(1)}}
@keyframes ff-chart-tooltip-in{from{opacity:0;transform:translateY(8px) scale(.92);filter:blur(2px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@keyframes ff-chart-focus-in{from{stroke-width:9;opacity:.4}to{stroke-width:3.5;opacity:1}}
@media(max-width:760px){dialog.ff-motion-dialog[open]{border-radius:20px}dialog.ff-motion-dialog .modal-heading{gap:12px}}
@media(prefers-reduced-motion:reduce){
 .ff-nav-highlight{will-change:auto}
 .ff-pointer-surface::after{display:none;transition:none}
 dialog.ff-motion-dialog[open]{will-change:auto}
 dialog.ff-motion-dialog::backdrop,dialog.ff-dialog-opening::backdrop,dialog.ff-dialog-closing::backdrop,.ff-chart-tooltip:not([hidden]),#ff-chart-crosshair[visibility=visible] circle{animation:none!important}
 dialog.ff-motion-dialog .modal-heading #close-dialog,dialog.ff-motion-dialog .bill-document tr{transition:none!important}
 dialog.ff-motion-dialog .modal-heading #close-dialog:hover{transform:none}
}
@media print{.ff-nav-highlight,.ff-pointer-surface::after{display:none!important}dialog.ff-motion-dialog[open]{border:0;border-radius:0;box-shadow:none;max-height:none;overflow:visible;transform:none!important;filter:none!important;opacity:1!important}}
/* Readable rule disclosure without compressing the calculator controls. */
#customer-calculator .calculator-rules{display:block;text-align:left;margin:18px 0 20px;padding:13px 15px;border:1px solid #e6e3f6;border-radius:12px;background:#f8f7ff;color:#62667e;font-size:13px;line-height:1.75}
#customer-calculator .calculator-rules summary{cursor:pointer;color:#3025ad;font-weight:650;font-size:13px;line-height:1.5}
#customer-calculator .calculator-rules p{margin:12px 0 0;font-size:13px;line-height:1.75}
#customer-calculator .calculator-rules summary:focus-visible{outline:2px solid #6254dc;outline-offset:4px;border-radius:3px}

/* Inventory remains a compact table: one SKU per row, shared column headings. */
#app .ff-stock-table-wrap{overflow-x:auto;max-height:none}
#app table.ff-stock-table{display:table;width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}
#app .ff-stock-table thead{display:table-header-group;position:static;clip-path:none;width:auto;height:auto}
#app .ff-stock-table tbody{display:table-row-group}
#app .ff-stock-table tr{display:table-row;background:transparent;border:0;border-radius:0;box-shadow:none}
#app .ff-stock-table th,#app .ff-stock-table td{display:table-cell;text-align:left;vertical-align:middle;padding:13px 16px;border-bottom:1px solid #ebeef5;white-space:normal;overflow-wrap:anywhere;line-height:1.5;font-size:13px}
#app .ff-stock-table th{font-size:12px;color:#70768a;background:#f8f9fd;font-weight:600}
#app .ff-stock-table td::before{display:none}
#app .ff-stock-table td:first-child{font-weight:600;color:#262942}
#app .ff-stock-table td:nth-child(n+3):nth-child(-n+5),#app .ff-stock-table th:nth-child(n+3):nth-child(-n+5){text-align:right;font-variant-numeric:tabular-nums}
#app .ff-stock-table td:nth-child(5){font-weight:650;color:#121099}
#app .ff-stock-table th:nth-child(6){width:20%}
#app .ff-stock-table td small{display:block;color:#7c8499;font-size:11px;line-height:1.6}
#app .ff-stock-table tr:last-child td{border-bottom:0}
#app .ff-stock-table tbody tr:hover{background:#f8f9fd}
#app .ff-stock-table td button{padding:6px 10px;font-size:12px;white-space:nowrap}
@media(max-width:760px){#app table.ff-stock-table{min-width:560px}#app .ff-stock-table th,#app .ff-stock-table td{padding:11px 12px}}
/* Secondary page illustration stays subordinate to the heading and actions. */
.heading>.ff-route-scene,.customer-page-heading>.ff-route-scene{width:190px;height:86px;flex:0 0 190px}
@media(max-width:1200px){.heading>.ff-route-scene,.customer-page-heading>.ff-route-scene{width:160px;height:73px;flex-basis:160px}}

/* Sign-in only: a slowly turning orthographic Earth with fixed atmosphere. */
.ff-login-globe{position:relative;z-index:1;width:90%;max-width:396px;aspect-ratio:440/365;flex:0 0 auto;margin:12px auto 18px;pointer-events:none}
.ff-login-globe::before{content:"";position:absolute;inset:8% 8% 2%;border-radius:50%;background:radial-gradient(ellipse,#a8b8ff36 0%,#958eff1c 38%,transparent 72%);filter:blur(18px)}
.ff-globe-canvas{display:block;position:relative;width:100%;height:100%;object-fit:contain}
@media(min-width:1050px){.ff-login-art .ff-login-steps{margin-top:0}}
@media(max-width:1049px){.ff-login-globe{display:none}}
@media(prefers-reduced-motion:reduce){.ff-login-globe *{animation:none!important}}
@media print{.ff-login-globe{display:none!important}}
