/* DB Cargo / Dustii Barodaron — 5.9 */
:root{--bg:#f5f5f2;--ink:#25282d;--muted:#646971;--line:#e3e4df;--brand:#22262c;--accent:#a56400;--card:#fff;--shadow:0 6px 24px #20242805;--yellow:#ffbd24}
body{background:var(--bg);color:var(--ink);font-family:"Segoe UI",Arial,sans-serif;line-height:1.55}
svg{width:22px;height:22px;flex-shrink:0;vertical-align:middle}
button{touch-action:manipulation}button:disabled{opacity:.55;cursor:wait;transform:none!important}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #a76b00;outline-offset:4px}
input,select,textarea{font-size:16px!important;accent-color:#a56400}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:10px;min-height:46px;font-weight:650;padding:11px 17px}
.btn-primary{background:#ffbd24;color:#25282d}.btn-primary:hover{background:#ffd060;filter:none}
.btn-secondary{background:#f1f2ef;color:#393e46;border:1px solid #e0e2dc}.btn-dark{background:#272b31;color:white}
.btn-danger{border-color:#edc9c9;color:#a23131;background:#fff7f6}.btn-block{width:100%}
.field input,.field select,.field textarea,.filters input,.filters select{border:1px solid #d5d8d1;border-radius:9px;padding:12px;background:#fff;min-height:46px;max-width:100%}
.field label{font-size:13px;color:#4f555b;font-weight:600}
.field input:focus,.field textarea:focus,.field select:focus{border-color:#a56400;box-shadow:0 0 0 3px #ffbd2426;outline:none}
.skip-link{position:fixed;top:-60px;left:20px;background:#ffbd24;padding:12px;z-index:200}.skip-link:focus{top:10px}
.mobile-header{display:none}.shell-sidebar{position:fixed;inset:0 auto 0 0;width:236px;background:#23272d;color:#f8f8f5;padding:27px 18px;display:flex;flex-direction:column;z-index:30}
.brand{display:flex;gap:12px;align-items:center;font-size:26px;font-weight:700;letter-spacing:-.6px}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:1px;color:#c1c5c9}
.brand-logo{display:block;width:184px;height:84px;object-fit:contain}.logo-mark{background:#ffbd24;color:#23272d;border-radius:10px}
.shell-sidebar .brand{padding:0 8px 24px;border-bottom:1px solid #ffffff13}.nav-caption{font-size:10px;text-transform:uppercase;letter-spacing:1.4px;color:#b0b4ba;margin:28px 12px 12px}
.shell-sidebar nav{display:grid;gap:6px}.shell-sidebar button{display:flex;align-items:center;gap:12px;text-align:left;border:0;background:transparent;color:#c7cbd0;padding:12px 14px;border-radius:9px;font-size:14px;min-height:46px;width:100%}
.shell-sidebar button:hover{background:#ffffff0c;color:#fff}.shell-sidebar button[aria-current=page]{background:#ffbd24;color:#22262c;font-weight:700}.shell-sidebar nav svg{width:20px}
.sidebar-bottom{margin-top:auto;padding-top:24px}.sidebar-bottom>button{font-size:12px;padding:10px}.sidebar-bottom>button svg{width:17px}
.user-chip{display:flex;align-items:center;gap:10px;padding:16px 4px;border-top:1px solid #ffffff17;margin-bottom:8px}.user-chip strong{display:block;max-width:138px;overflow-wrap:anywhere;font-size:13px}.user-chip small{display:block;font-size:11px;color:#b5bac0}
.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#3a4048;color:#ffcf5b}
.app-main{margin:0 0 0 236px;max-width:1600px;padding:0 42px 24px;min-height:100vh}.page-top{display:flex;justify-content:space-between;align-items:center;color:#6c7278;font-size:12px;border-bottom:1px solid var(--line);height:76px;margin-bottom:30px}.separator{padding:0 10px;color:#a2a7ab}
.hero{border:0;margin:0 0 24px;padding:0}.hero h1{font-size:clamp(24px,2.6vw,34px);letter-spacing:-1px;margin:0 0 6px;font-weight:720}.hero p{font-size:13px}
.app-footer{display:flex;justify-content:space-between;gap:18px;padding-top:25px;border-top:1px solid var(--line);margin-top:40px;font-size:11px;color:#767b80}
.card{padding:24px;border:1px solid var(--line);border-radius:15px;box-shadow:none}
.dashboard-banner{display:flex;justify-content:space-between;align-items:center;gap:30px;background:#eeeee7;border:1px solid #e0e1d7;border-radius:18px;padding:32px 38px;margin-bottom:24px;overflow:hidden}
.eyebrow{color:#8b5700;font-size:10px;letter-spacing:1.5px;font-weight:750;text-transform:uppercase}
.dashboard-banner h2{font-size:clamp(24px,3vw,36px);line-height:1.18;letter-spacing:-1px;margin:12px 0}.dashboard-banner p{font-size:13px;color:#62676a;max-width:430px;margin-bottom:22px}
.banner-art{width:230px;min-height:170px;border:1px solid #d8dacf;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;transform:rotate(-4deg);background:radial-gradient(circle,#fff9db,transparent 70%);flex-shrink:0}
.banner-art>svg{width:100px;height:78px;stroke:#3e444b;stroke-width:.8}.banner-art span{font-size:13px;font-weight:600;padding-top:16px}.banner-art b{color:#a46a04;padding:0 8px}
.section-search{margin:22px 0 30px}.section-search label{display:flex;align-items:center;gap:12px;border:1px solid var(--line);padding:0 15px;background:#fff;border-radius:11px;color:#71777b}.section-search input{border:0;outline:0;min-height:50px;width:100%;background:transparent}
.section-search label:focus-within{outline:2px solid #a76b00;outline-offset:2px}
.workspace-group{margin:28px 0}.group-heading{display:flex;align-items:center;gap:12px;margin-bottom:14px}.group-heading h2{font-size:17px;margin:0;font-weight:650}.group-heading>span{font-size:10px;color:#8c680c;border:1px solid #e0d8bc;padding:2px 7px;border-radius:5px;background:#fff9e6}
.menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.menu-tile{display:flex;align-items:flex-start;text-align:left;gap:13px;padding:22px 18px;border:1px solid var(--line);border-radius:13px;background:#fff;min-height:130px;transition:border-color .15s,box-shadow .15s}
.menu-tile:hover{border-color:#bd9234;box-shadow:0 7px 18px #292d3508}.menu-icon,.menu-tile:nth-child(3n) .menu-icon{width:38px;height:38px;display:grid;place-items:center;background:#f7f4e9;color:#886317;border-radius:10px;flex-shrink:0}.menu-icon svg{width:21px}
.menu-copy{min-width:0}.menu-copy strong{display:block;font-size:15px;line-height:1.4;margin:0 0 6px;color:#2b3036}.menu-copy small{display:block;color:#73797e;font-size:12px;line-height:1.55}.menu-arrow{margin:auto 0 auto auto;color:#888e94}.menu-arrow svg{width:17px}
.stat-grid{gap:12px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.stat{border-radius:13px;padding:19px;border:1px solid var(--line);box-shadow:none}.stat .num{font-size:clamp(21px,2.3vw,30px);font-weight:720;letter-spacing:-.7px}.stat .muted{font-size:12px}
.stat-grid.overview-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.overview-stats .stat:last-child{background:#fff6d8;border-color:#ead8a3}.overview-stats small{font-size:11px}
.table{min-width:680px}.table th{font-size:11px;letter-spacing:.2px;background:#f3f4f0;color:#5b6368;font-weight:650;padding:14px 12px}.table td{padding:16px 12px;font-size:13px}.table tbody tr:hover{background:#fffdf5}.table-wrap{border:1px solid var(--line);border-radius:11px}
.filters{gap:10px}.filters>*{min-width:0}.pill{color:#47644c;background:#eef4ed;font-weight:600}
.client-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.client-toolbar>.muted{flex:1;font-size:12px}.report-menu{position:relative}.report-menu summary{cursor:pointer;font-size:13px;padding:12px;background:white;border:1px solid var(--line);border-radius:9px}.report-menu .actions{padding:10px;background:white;position:absolute;right:0;top:100%;z-index:4;width:180px;border:1px solid var(--line);border-radius:9px}
.portal-banner{background:#262b31;border-radius:16px;margin:0 0 20px;padding:30px}.portal-banner .eyebrow{color:#ffcd58}.portal-banner h2{font-size:28px;letter-spacing:-.6px}.portal-banner p{color:#c6cbd0;font-size:14px}.portal-banner .updated{color:#bcc2c9;font-size:11px}
.portal-nav{background:transparent;padding:0;border-bottom:1px solid var(--line);border-radius:0;gap:18px;margin:28px 0}.portal-nav button{border-bottom:3px solid transparent;border-radius:0;padding:12px 2px;color:#646b70;font-size:13px}.portal-nav button[aria-pressed=true]{box-shadow:none;background:transparent;color:#292e34;border-bottom-color:#e3a312}
.cargo-card{border-radius:13px;padding:23px}.cargo-card h3{font-size:18px}.cargo-card summary{color:#755100}.cargo-top small{font-size:11px}.cargo-measures b{font-size:23px}.cargo-measures span{font-size:11px}
.help-grid details{background:#fff;border-radius:12px}.accounting-note{background:#fff6dc;border:1px solid #efdfb0;color:#765616;font-size:13px;border-radius:10px}
.finance-intro{background:#292e34;border-radius:16px}.finance-intro .eyebrow{color:#ffcc59}.finance-intro p{color:#cbd0d4}.finance-icon{background:#fff4d3;color:#7f5b08}.finance-tile{border-radius:13px}.finance-tabs button[aria-current=page]{background:#292e34}.finance-tabs button{background:#e9ebe5;color:#4b5359}.finance-entry summary{color:#775300}
.timeline{border-color:#e0c47f}.timeline article:before{background:#ac7a0a}.calcbox{background:#faf9f2;border:1px solid #e5e0cc}
.item-title{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.item-title>span{margin-right:auto}.item-title .btn{font-size:12px}.item-card{scroll-margin-top:16px}
.password-wrap{position:relative}.password-wrap input{padding-right:86px!important}.password-eye{font-size:11px;width:auto!important;min-width:72px;padding:8px!important;right:4px!important}
.client-account{background:#fff;border:1px solid var(--line);border-radius:13px}.client-account h3{font-size:17px}.modal-card{border-radius:16px}.modal{backdrop-filter:blur(5px)}.client-credentials .eyebrow{display:block;margin-top:32px}.credential-line code{background:#f6f6ee;padding:7px 10px;border-radius:6px}
.welcome{display:grid;grid-template-columns:1.05fr 1fr;min-height:100vh;background:#fafaf6}
.welcome-story{display:flex;flex-direction:column;justify-content:space-between;gap:30px;padding:42px 52px;color:#fff;background:linear-gradient(180deg,#141a23c9 0%,#151b25b8 45%,#151b258c 100%),url('/brand-photo.jpg') center 62%/cover;min-height:100vh}
.welcome-story .brand-logo{width:160px;height:74px}.welcome-story>.brand{align-self:flex-start;padding:12px 18px;background:#20252bd9;border-radius:12px}
.welcome-story .eyebrow{color:#ffcc56}.welcome-story h1{font-size:clamp(36px,4.2vw,62px);font-weight:720;line-height:1.08;letter-spacing:-2px;margin:18px 0 20px}.welcome-story p{font-size:15px;line-height:1.7;color:#eef0f2;max-width:400px}.welcome-story>small{color:#e1e4e7;font-size:11px}
.route-art{display:flex;position:relative;justify-content:space-between;gap:30px;margin-top:36px;max-width:380px}.route-art>div:not(.route-track){position:relative;display:flex;flex-direction:column;align-items:center;min-width:70px}.route-art span{border:1px solid #ffffff45;border-radius:12px;background:#262d35;width:48px;height:48px;display:grid;place-items:center;color:#ffcf5d}.route-art b{font-size:13px;margin-top:12px}.route-art small{font-size:10px;color:#dddfe2}.route-track{position:absolute;top:24px;left:30px;right:30px;border-top:1px dashed #ffcd66}
.welcome-form{display:flex;align-items:center;justify-content:center;padding:40px}.login-card{margin:0!important;border:0;border-radius:0;background:transparent;box-shadow:none;padding:20px;max-width:430px;width:100%}
.login-card h2{font-size:34px;letter-spacing:-1px;line-height:1.2;margin:14px 0}.login-card>.muted{font-size:14px;margin-bottom:32px}.login-card .field{margin-bottom:20px}.login-card .btn-primary{margin-top:8px;justify-content:space-between;padding:14px 20px}.login-help{border-top:1px solid #dddeda;margin-top:28px;padding-top:22px}.login-help summary{font-size:13px;color:#535960;cursor:pointer}.login-help p{font-size:13px;color:#616970}.login-note{font-size:11px;color:#777e83;margin-top:30px}
.inline-error{background:#fff0ec;color:#983c2f;border:1px solid #eccdc5;padding:12px;border-radius:9px;font-size:13px;margin:12px 0}
.toast{background:#292e34;color:#fff;border-left:4px solid #ffbd24;max-width:calc(100vw - 32px)}
@media(min-width:1700px){.app-main{margin-left:236px;padding-inline:64px}}
@media(max-width:1200px){.app-main{padding-inline:26px}.menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.banner-art{width:180px}.dashboard-banner{padding:26px}.welcome-story{padding:32px}.welcome-story h1{font-size:45px}}
@media(max-width:900px){.shell-sidebar{width:215px}.app-main{margin-left:215px;padding-inline:20px}.stat-grid.overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.banner-art{display:none}.welcome-story{padding:26px}.welcome-form{padding:20px}.welcome-story h1{font-size:38px}.route-art{gap:12px}.menu-tile{padding:18px 14px}.menu-arrow{display:none}}
@media(max-width:700px){.mobile-header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:#23272d;color:#fff;position:sticky;top:0;z-index:40;min-height:66px}.mobile-header .brand-logo{width:110px;height:46px}.mobile-header .btn{background:#373d45;border:1px solid #5a6066;color:#fff;font-size:12px;min-height:40px}.shell-sidebar{display:none;width:100%;top:66px;bottom:0;padding:18px;overflow:auto}.menu-open .shell-sidebar{display:flex}.shell-sidebar .brand{display:none}.nav-caption{margin-top:0}.app-main{margin:0;padding:0 16px 20px}.page-top{height:52px;margin-bottom:22px;font-size:10px}.hero h1{font-size:27px}.hero p{font-size:12px}.dashboard-banner{padding:24px;border-radius:13px}.dashboard-banner h2{font-size:27px}.dashboard-banner p{font-size:12px}.menu-grid{grid-template-columns:1fr 1fr;gap:10px}.menu-tile{flex-direction:column;min-height:155px;padding:16px;gap:12px}.menu-copy strong{font-size:14px}.menu-copy small{font-size:11px}.group-heading h2{font-size:16px}.card{padding:16px}.app-footer span{max-width:160px;text-align:right}.portal-banner{padding:22px}.portal-banner h2{font-size:23px}.portal-nav{gap:8px}.portal-nav button{flex:1;font-size:12px;padding:10px 4px;min-width:80px}.client-toolbar>.muted{flex-basis:100%}.overview-stats .stat{padding:15px}.cargo-card{padding:18px}.welcome{grid-template-columns:1fr}.welcome-story{min-height:auto;padding:22px;gap:20px;background-position:center 70%}.welcome-story>.brand{padding:4px 12px}.welcome-story .brand-logo{width:130px;height:60px}.welcome-story h1{font-size:30px;letter-spacing:-.8px;margin:12px 0}.welcome-story p{font-size:12px;margin:0;max-width:300px}.welcome-story .route-art,.welcome-story>small{display:none}.welcome-form{padding:25px 16px}.login-card{padding:0;max-width:420px}.login-card h2{font-size:27px}.login-card>.muted{margin-bottom:24px}.login-note{margin-bottom:0}.item-card{scroll-margin-top:80px}.col-6,.col-4,.col-3,.col-2{grid-column:span 12}.client-account .actions .btn{flex:1}.finance-tile{padding:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{.shell-sidebar,.mobile-header,.page-top,.client-toolbar,.app-footer,.skip-link{display:none!important}.app-main{margin:0;padding:0}.portal-banner{background:#fff;color:#222}.portal-banner p,.portal-banner .updated{color:#444}}
.app-main,.card,.menu-tile{animation:none}.menu-icon{flex:0 0 38px}@media(max-width:700px){.menu-icon{flex:0 0 auto}}
.dsh-receipt-totals{padding:14px 18px}.dsh-receipt-intro{display:flex;flex-direction:column;gap:5px;margin:8px 16px 14px;padding:14px 16px;border:1px solid #f0d88c;border-radius:14px;background:#fff9e7;color:#403923}.dsh-receipt-intro strong{font-size:15px}.dsh-receipt-intro span{font-size:13px;color:#625a42}.dsh-receipt-list{display:grid;gap:10px;padding:0 16px}.dsh-receipt-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,320px);align-items:center;gap:18px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff}.dsh-receipt-product{display:flex;flex-direction:column;gap:6px;min-width:0}.dsh-receipt-product strong{overflow-wrap:anywhere}.dsh-receipt-product span,.dsh-receipt-shipped{font-size:12px;color:var(--muted)}.dsh-receipt-count{display:flex;flex-direction:column;gap:6px}.dsh-receipt-count label{font-size:13px;font-weight:750}.dsh-receipt-stepper{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;gap:8px}.dsh-receipt-stepper button{min-height:48px;border:1px solid #d8dee6;border-radius:12px;background:#f2f4f6;color:#252a30;font-size:24px;font-weight:700}.dsh-receipt-stepper input{width:100%;min-width:0;min-height:48px;padding:10px 12px;border:2px solid #e3b321;border-radius:12px;background:#fffdf5;text-align:center;font-size:20px;font-weight:800}.dsh-receipt-stepper input:focus{outline:3px solid #f6d968;outline-offset:1px}.dsh-receipt-difference{min-height:18px;font-size:12px;color:#4d5967}.dsh-receipt-difference.is-less{color:#9c5b00;font-weight:700}.dsh-receipt-difference.is-more{color:#a42a35;font-weight:700}.dsh-receipt-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px}.dsh-receipt-actions p{margin:0}.dsh-receipt-actions .btn{min-height:48px}@media(max-width:700px){.dsh-receipt-row{grid-template-columns:1fr;gap:12px;padding:14px}.dsh-receipt-list{padding:0 12px}.dsh-receipt-intro{margin-inline:12px}.dsh-receipt-actions{flex-direction:column;align-items:stretch;padding:14px 12px}.dsh-receipt-actions .btn{width:100%}.dsh-receipt-totals{padding-inline:12px}}
