@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root{--ink:#13213a;--muted:#70809a;--line:#e7ecf3;--canvas:#f6f8fc;--card:#fff;--blue:#3167ee;--blue-dark:#254ec6;--nav:#111c31;--nav-soft:#1b2944;--shadow:0 14px 40px rgba(30,50,85,.075);--radius:18px}
*{box-sizing:border-box}html{min-width:320px}body{margin:0;background:var(--canvas);color:var(--ink);font:15px/1.5 'DM Sans','Segoe UI',sans-serif}a{color:var(--blue);text-decoration:none}.app-shell{display:grid;grid-template-columns:272px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;padding:24px 16px;background:var(--nav);color:#d5deed;overflow-y:auto}.brand{display:flex;gap:12px;align-items:center;padding:6px 9px 28px;color:white}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#5483ff,#3167ee);font:800 13px Manrope,sans-serif;box-shadow:0 8px 20px #0004}.brand-copy{display:grid;gap:0;min-width:0}.brand-copy strong{font:800 17px/1.2 Manrope,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand-copy small{color:#91a1be;font-size:11px;letter-spacing:.06em;text-transform:uppercase}.nav-caption{margin:0 12px 9px;color:#7c8ba6;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.side-nav{display:grid;gap:4px}.side-nav a{display:flex;align-items:center;gap:12px;border-radius:11px;padding:11px 12px;color:#b9c5da;font-weight:600;transition:.18s ease}.side-nav a:hover{color:white;background:var(--nav-soft)}.side-nav a.is-active{color:white;background:linear-gradient(90deg,#264eb5,#1f4297);box-shadow:inset 3px 0 #8caaff}.nav-icon{display:grid;place-items:center;width:20px;color:#91aefc;font-size:18px;line-height:1}.side-nav a.is-active .nav-icon{color:#fff}.sidebar-bottom{display:grid;gap:5px;margin-top:auto;padding:24px 8px 4px;border-top:1px solid #26334c}.sidebar-bottom a{display:flex;align-items:center;gap:9px;padding:8px 4px;color:#92a1ba;font-size:13px}.sidebar-help span{display:grid;place-items:center;width:17px;height:17px;border:1px solid #687895;border-radius:50%;font-size:11px}.logout-link{color:#e0a0a8!important}.app-main{min-width:0;padding:0 34px 38px}.topbar{display:flex;align-items:center;justify-content:space-between;min-height:80px;border-bottom:1px solid #e9edf4}.menu{display:none}.topbar-title{display:grid;gap:0}.topbar-title strong{font:700 17px/1.3 Manrope,sans-serif}.topbar-kicker{color:#92a0b5;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.profile-chip{display:flex;align-items:center;gap:9px}.profile-chip>span:last-child{display:grid;line-height:1.25}.profile-chip b{font-size:13px}.profile-chip small{max-width:185px;color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e0e9ff;color:#2d5cd9;font:800 13px Manrope,sans-serif}.content-shell{max-width:1440px;margin:auto;padding-top:28px}.dashboard-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:30px 32px;margin-bottom:22px;overflow:hidden;border-radius:var(--radius);background:radial-gradient(circle at 88% 12%,#5280ff 0,#345fe7 30%,#243fb6 100%);color:white;box-shadow:0 18px 32px #2d59bf2c}.dashboard-hero h1{max-width:680px;margin:5px 0 6px;font:800 clamp(24px,2.4vw,34px)/1.2 Manrope,sans-serif;letter-spacing:-.03em}.dashboard-hero p{max-width:570px;margin:0;color:#dce7ff}.eyebrow{display:block;color:#bcd0ff;font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.eyebrow.dark{color:#8492aa}.hero-actions{display:flex;flex:none;gap:10px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;border:0;border-radius:10px;padding:10px 16px;background:var(--blue);box-shadow:0 7px 15px #3167ee2e;color:#fff;font:700 13px 'DM Sans',sans-serif;cursor:pointer;transition:transform .16s,background .16s,box-shadow .16s}.btn:hover{background:var(--blue-dark);box-shadow:0 10px 20px #254ec63c;transform:translateY(-1px)}.btn-light{background:#fff;color:#264fbf;box-shadow:none}.btn-light:hover{background:#edf2ff}.btn.secondary{background:#ecf1ff;color:#2b5dd7;box-shadow:none}.btn.secondary:hover{background:#dfe8ff}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:22px}.stat-card{display:flex;align-items:center;gap:14px;min-width:0;padding:18px;border:1px solid var(--line);border-radius:15px;background:var(--card);box-shadow:0 4px 16px #293e6607}.stat-icon{display:grid;flex:none;place-items:center;width:43px;height:43px;border-radius:13px;font:800 20px Manrope,sans-serif}.stat-card span{display:block;overflow:hidden;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.stat-card strong{display:block;margin-top:1px;font:800 27px/1 Manrope,sans-serif;letter-spacing:-.04em}.tone-indigo .stat-icon{background:#e8edff;color:#445feb}.tone-blue .stat-icon{background:#e1f1ff;color:#1682d6}.tone-violet .stat-icon{background:#f0e7ff;color:#8149d7}.tone-amber .stat-icon{background:#fff2d9;color:#c27a13}.tone-rose .stat-icon{background:#fee8ed;color:#d35472}.tone-green .stat-icon{background:#e3f7ec;color:#27945b}.card{margin-bottom:19px;padding:23px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}.section-title h2,.card h2{margin:3px 0 0;color:var(--ink);font:800 18px/1.3 Manrope,sans-serif}.text-link{font-size:13px;font-weight:700}.text-link span{padding-left:4px;font-size:16px}.table-wrap{overflow:auto;border:1px solid #edf0f5;border-radius:12px}table{width:100%;min-width:720px;border-collapse:collapse}th{padding:12px 14px;color:#8290a7;background:#f8fafc;font-size:10px;font-weight:800;letter-spacing:.075em;text-align:left;text-transform:uppercase}td{padding:14px;border-top:1px solid #edf0f5;vertical-align:middle}td b{font-weight:700;color:#263752}td small{color:#8290a7;font-size:12px}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.actions a{font-size:12px;font-weight:700}.badge{display:inline-flex;align-items:center;min-height:25px;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:800}.badge-created,.badge-sent{color:#2365c9;background:#e3efff}.badge-signed{color:#19734a;background:#dff6e9}.badge-draft{color:#a1650c;background:#fff2d7}.badge-cancelled{color:#bd3c51;background:#ffe8ed}.alert{margin-bottom:17px;padding:12px 14px;border-radius:10px;font-weight:600}.success{color:#177347;background:#e6f8ee;border:1px solid #cef0dd}.error{color:#b03248;background:#fff0f3;border:1px solid #ffdce3}.page-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:2px 0 22px}.page-head h1{margin:0;font:800 27px/1.2 Manrope,sans-serif;letter-spacing:-.03em}.page-head p{margin:6px 0 0;color:var(--muted)}.cn-form{max-width:1080px}.form-section h2 em{margin-left:6px;color:var(--muted);font-size:11px;font-style:normal;font-weight:500}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.wide{grid-column:1/-1}label{display:flex;flex-direction:column;gap:6px;color:#34445d;font-size:13px;font-weight:700}input,select,textarea{width:100%;border:1px solid #ccd6e6;border-radius:9px;padding:10px 11px;background:white;color:#14213a;font:inherit;outline:none;transition:border .16s,box-shadow .16s}input:focus,select:focus,textarea:focus{border-color:#6090ff;box-shadow:0 0 0 3px #dce8ff}textarea{min-height:78px;resize:vertical}.more{display:none}.more.show{display:grid}.link{padding:0;border:0;background:none;color:var(--blue);font:inherit;cursor:pointer}.danger{color:#cf4156}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin:20px 0}.filters{display:flex;align-items:center;gap:10px}.filters input:first-child{flex:1}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}dl{display:grid;grid-template-columns:135px minmax(0,1fr);gap:11px;margin:0}dt{color:var(--muted)}.reg{color:#223b78;font-size:18px;font-weight:800;letter-spacing:.5px}.photos{display:flex;flex-wrap:wrap;gap:12px}.photos figure{width:160px;margin:0}.photos img{width:160px;height:115px;border-radius:10px;object-fit:cover}.photos figcaption{margin-top:4px;color:var(--muted);font-size:12px;text-transform:capitalize}.signature{display:block;max-width:230px;max-height:90px}.login,.public{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:22px;background:radial-gradient(circle at 10% 5%,#dce9ff,transparent 37%),#f6f8fc}.login-card,.install,.sign-card{width:min(440px,100%)}.login-card h1,.install h1{margin-top:0}.login-card label{margin:14px 0}.login-card small{display:block;margin-top:14px;text-align:center}.sign-card{width:min(720px,100%)}.terms{border-radius:10px;padding:12px;background:#f8fafc;font-size:13px}.check{align-items:flex-start;flex-direction:row;margin:14px 0;font-size:13px}.check input{width:auto;margin-top:2px}#signaturePad{display:block;width:100%;height:220px;border:2px dashed #a8b5ca;border-radius:10px;background:white;touch-action:none}.print{padding:20px;background:#e6e9ee}.paper{min-height:297mm;max-width:210mm;margin:auto;padding:16mm;background:#fff}.paper header{display:flex;justify-content:space-between;border-bottom:2px solid #1e3a5f}.paper h1{margin:0;font-size:23px}.paper h2{font-size:17px}.paper section{margin:18px 0}.paper table{min-width:0;border:1px solid #ddd}.paper footer{display:flex;justify-content:space-between;margin-top:35px}.print-photo{max-width:200px;max-height:145px}.logo{float:left;width:65px;height:65px;margin-right:10px;object-fit:contain}.print-tools{text-align:center;margin-bottom:10px}.print-tools button{padding:9px 14px}.empty{padding:34px!important;color:var(--muted);text-align:center}
@media(max-width:1100px){.app-shell{grid-template-columns:236px minmax(0,1fr)}.sidebar{padding:20px 12px}.app-main{padding:0 24px 30px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-hero{padding:27px}.hero-actions{flex-direction:column}.brand-copy strong{font-size:15px}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;z-index:40;width:272px;transform:translateX(-100%);transition:transform .22s ease;box-shadow:20px 0 42px #0b152a38}.sidebar.open{transform:translateX(0)}.app-main{width:100%;padding:0 16px 26px}.topbar{min-height:66px}.menu{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:9px;background:#e9efff;color:#305dc9;font-size:18px}.topbar-title{margin-right:auto;margin-left:10px}.profile-chip>span:last-child{display:none}.content-shell{padding-top:18px}.dashboard-hero{align-items:flex-start;flex-direction:column;padding:23px}.dashboard-hero h1{font-size:25px}.hero-actions{width:100%;flex-direction:row}.hero-actions .btn{flex:1}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat-card{gap:10px;padding:14px}.stat-icon{width:38px;height:38px;font-size:17px}.stat-card strong{font-size:23px}.page-head{align-items:flex-start}.page-head .btn{white-space:nowrap}.grid,.detail-grid{grid-template-columns:1fr}.wide{grid-column:auto}.filters{flex-wrap:wrap}.filters input,.filters select{min-width:130px}.actions{gap:8px}.paper{padding:10mm}.paper header{display:block}.no-print{display:none}}
@media(max-width:420px){.stats{grid-template-columns:1fr}.dashboard-hero p{font-size:13px}.hero-actions{flex-direction:column}.page-head{flex-direction:column}.page-head .btn{width:100%}}

.document-number-link{display:inline-block;max-width:100%;color:#263752;font-weight:800;text-decoration:none;white-space:nowrap;overflow-wrap:normal;word-break:keep-all;transition:color .16s ease}.document-number-link:hover,.document-number-link:focus{color:var(--blue);text-decoration:none}.document-primary small,.document-list-table td>small{display:block;margin-top:3px}
@media(max-width:760px){.document-number-link{min-height:34px;padding:3px 0;font-size:16px;line-height:1.35;touch-action:manipulation}.document-list-wrap{overflow:visible;border:0;border-radius:0}.document-list-table{display:block;min-width:0}.document-list-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.document-list-table tbody{display:grid;gap:12px}.document-list-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;padding:5px 14px 13px;border:1px solid #e4eaf3;border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(25,46,82,.055)}.document-list-table td{display:block;min-width:0;padding:10px 4px;border:0;font-size:14px;overflow-wrap:anywhere}.document-list-table td:before{display:block;margin-bottom:3px;color:#8795aa;font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;content:attr(data-label)}.document-list-table .document-primary{grid-column:1/-1;border-bottom:1px solid #edf1f6}.document-list-table .document-primary:before{display:none}.document-list-table .document-number-link{font-size:17px}.document-list-table .actions{grid-column:1/-1;padding-top:8px;border-top:1px solid #edf1f6}.document-list-table .mobile-action{display:inline-flex;justify-content:center;align-items:center;min-height:36px;padding:7px 14px;border-radius:9px;background:#edf3ff;color:#2858c8;text-decoration:none}.recent-card .document-list-table td:nth-child(6),.recent-card .document-list-table td:nth-child(7){display:none}}
@media(max-width:760px){html,body{touch-action:pan-x pan-y}.document-card-actions{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}.document-list-table .document-card-actions .mobile-action{flex:0 0 auto;min-width:76px;margin:0!important;padding:8px 15px}.document-list-table .document-card-actions .mobile-action-download{background:linear-gradient(145deg,#2862db,#3979f4);color:#fff;box-shadow:0 6px 14px rgba(39,98,219,.22)}}
@media print{body.print{padding:0;background:#fff}.paper{max-width:none;padding:12mm;box-shadow:none}.no-print{display:none!important}}

/* Quotation module */
.badge-accepted{color:#19734a;background:#dff6e9}
.quote-items{min-width:680px}.quote-items th:nth-child(1){width:54px}.quote-items th:nth-child(3){width:200px}.quote-items th:last-child{width:64px}.quote-items td{padding:8px}.quote-items input{min-width:0}.quote-item-remove{width:34px;height:34px;border:0;border-radius:8px;background:#fff0f3;color:#bd3c51;font-size:19px;cursor:pointer}.quote-total-row td{background:#eef4ff;color:#173b69;font-size:15px;font-weight:800}.quote-total-row td:nth-last-child(2){white-space:nowrap}.quote-terms{min-height:240px}.quote-intro{min-height:125px}.quote-total{font-size:18px;font-weight:800;color:#234fbb}
@media(max-width:760px){.quote-form-actions{align-items:stretch;flex-direction:column-reverse}.quote-form-actions .btn{width:100%}}

/* Bills and money receipts */
.document-items{min-width:680px}.document-items th:first-child{width:54px}.document-items th:nth-child(3){width:210px}.document-items th:last-child{width:64px}.document-items td{padding:8px}.document-items input{min-width:0}.document-total-row td{background:#eef4ff;color:#173b69;font-size:15px;font-weight:800}.document-words{display:block;margin-top:4px;color:#526681;font-size:12px;font-weight:700}.readonly-date{background:#f7f9fc;color:#526681}
.audit-card{border-left:4px solid #3167ee}.audit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.audit-grid>div{display:grid;gap:3px;padding:15px;border:1px solid #e2e8f2;border-radius:12px;background:#f8faff}.audit-grid span{color:#70809a;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.audit-grid b{font-size:15px}.audit-grid small{color:#8290a7}@media(max-width:760px){.audit-grid{grid-template-columns:1fr}}

/* User account menu */
.account-menu{position:relative}.account-menu .profile-chip{display:flex;align-items:center;gap:9px;border:0;border-radius:12px;padding:7px 9px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background .16s}.account-menu .profile-chip:hover,.account-menu.is-open .profile-chip{background:#edf2fb}.account-menu .profile-chip>span:nth-child(2){display:grid;line-height:1.25}.account-menu .profile-avatar{flex:none}.account-chevron{color:#7e8da6;font-size:14px;transition:transform .16s}.account-menu.is-open .account-chevron{transform:rotate(180deg)}.account-dropdown{position:absolute;z-index:60;top:calc(100% + 8px);right:0;width:280px;padding:8px;border:1px solid #e1e7f0;border-radius:15px;background:#fff;box-shadow:0 20px 48px rgba(24,42,74,.17);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .16s,transform .16s,visibility .16s}.account-menu:hover .account-dropdown,.account-menu:focus-within .account-dropdown,.account-menu.is-open .account-dropdown{opacity:1;visibility:visible;transform:translateY(0)}.account-summary{display:flex;align-items:center;gap:10px;margin:2px 2px 7px;padding:10px;border-bottom:1px solid #edf0f5}.account-summary>span:last-child{display:grid;min-width:0}.account-summary b{font-size:13px}.account-summary small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.account-dropdown>a{display:flex;align-items:center;gap:12px;border-radius:10px;padding:10px;color:#263752}.account-dropdown>a:hover{background:#f2f6ff}.account-dropdown>a>span:first-child{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#e9efff;color:#315fda}.account-dropdown>a>span:last-child{display:grid}.account-dropdown a b{font-size:12px}.account-dropdown a small{color:var(--muted);font-size:10px}.account-dropdown .account-logout{margin-top:4px;border-top:1px solid #edf0f5;border-radius:0 0 10px 10px;color:#bd3c51}.account-dropdown .account-logout>span:first-child{background:#fff0f3;color:#bd3c51}.muted{color:var(--muted)}
@media(max-width:760px){.account-menu .profile-chip>span:nth-child(2),.account-chevron{display:none}.account-menu .profile-chip{padding:5px}.account-dropdown{position:fixed;top:62px;right:12px;width:min(280px,calc(100vw - 24px))}}

/* Structured sidebar navigation */
.nav-icon svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-group{display:grid}.nav-group summary{display:flex;align-items:center;gap:12px;border-radius:11px;padding:11px 12px;color:#b9c5da;font-weight:600;list-style:none;cursor:pointer;transition:.18s ease}.nav-group summary::-webkit-details-marker{display:none}.nav-group summary:hover{color:#fff;background:var(--nav-soft)}.nav-group summary.is-active{color:#fff;background:linear-gradient(90deg,#264eb5,#1f4297);box-shadow:inset 3px 0 #8caaff}.nav-group summary.is-active .nav-icon{color:#fff}.nav-chevron{margin-left:auto;color:#7f91af;font-size:15px;transition:transform .18s}.nav-group[open] .nav-chevron{transform:rotate(180deg)}.nav-submenu{position:relative;display:grid;gap:3px;margin:5px 0 7px 20px;padding-left:14px}.nav-submenu:before{position:absolute;top:4px;bottom:4px;left:0;width:1px;background:#35445f;content:""}.side-nav .nav-submenu a{position:relative;min-height:38px;padding:8px 10px;color:#9fadc4;font-size:13px}.side-nav .nav-submenu a:before{position:absolute;top:50%;left:-14px;width:10px;height:1px;background:#35445f;content:""}.side-nav .nav-submenu a.is-active{background:#233b70;box-shadow:none}.nav-submenu .nav-icon{width:17px}.nav-submenu .nav-icon svg{width:16px;height:16px}

/* Mobile CN details: keep long customer, registration and vehicle values inside their cards. */
dd{min-width:0;margin:0;overflow-wrap:anywhere;word-break:break-word}.reg{max-width:100%;overflow-wrap:anywhere;word-break:break-word}.photos img{display:block}
@media(max-width:760px){.page-view-cn .page-head{flex-direction:column}.page-view-cn .page-head .actions{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.page-view-cn .page-head .actions .btn{width:100%;min-width:0;padding-inline:9px;white-space:normal;text-align:center}.page-view-cn .card{padding:18px}.page-view-cn .card h2{margin-bottom:15px}.page-view-cn dl{grid-template-columns:minmax(0,1fr);gap:3px}.page-view-cn dt{margin-top:12px;font-size:12px;font-weight:700}.page-view-cn dt:first-child{margin-top:0}.page-view-cn dd{max-width:100%;font-size:15px;line-height:1.45}.page-view-cn .reg{font-size:16px;letter-spacing:.2px}.page-view-cn .photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.page-view-cn .photos figure{width:100%;min-width:0}.page-view-cn .photos img{width:100%;height:150px;background:#f5f7fb;object-fit:contain}.page-view-cn .photos figcaption{overflow-wrap:anywhere}}
@media(max-width:420px){.page-view-cn .page-head .actions{grid-template-columns:1fr}.page-view-cn .photos{grid-template-columns:1fr}.page-view-cn .photos img{height:auto;max-height:280px}}

/* Permission-aware navigation: operational modules stay discoverable, while
   administrator-only areas remain hidden from staff. */
.side-nav .nav-item,.nav-group summary{min-width:0}
.side-nav button.nav-item{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;border:0;border-radius:11px;padding:11px 12px;background:transparent;color:#b9c5da;font:600 15px/1.5 'DM Sans','Segoe UI',sans-serif;text-align:left;transition:color .18s ease,background .18s ease,opacity .18s ease;appearance:none}
.nav-item-label{min-width:0;flex:1;line-height:1.3}
.side-nav .nav-item-locked{position:relative;color:#7f8ba1;opacity:.76;cursor:not-allowed}
.side-nav .nav-item-locked .nav-icon{color:#687791}
.side-nav .nav-item-locked:hover,.side-nav .nav-item-locked:focus-visible{color:#a8b2c4;background:rgba(244,180,67,.08);opacity:1;outline:none;box-shadow:inset 0 0 0 1px rgba(244,180,67,.16)}
.nav-lock{position:relative;flex:0 0 15px;width:15px;height:16px;margin-left:auto;color:#f4b443;filter:drop-shadow(0 2px 5px rgba(244,180,67,.22))}
.nav-lock:before{position:absolute;top:0;left:3px;width:7px;height:7px;border:2px solid currentColor;border-bottom:0;border-radius:7px 7px 0 0;content:""}
.nav-lock:after{position:absolute;top:6px;left:1px;width:13px;height:10px;border-radius:3px;background:currentColor;content:""}
.side-nav .nav-submenu button.nav-item{position:relative;min-height:38px;padding:8px 10px;font-size:13px}
.side-nav .nav-submenu button.nav-item:before{position:absolute;top:50%;left:-14px;width:10px;height:1px;background:#35445f;content:""}
.nav-group[open] .nav-submenu{animation:nav-submenu-reveal .18s ease both}
.nav-item-locked.is-attention{animation:nav-locked-nudge .28s ease}
@keyframes nav-submenu-reveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@keyframes nav-locked-nudge{0%,100%{transform:translateX(0)}35%{transform:translateX(3px)}70%{transform:translateX(-2px)}}
.permission-toast{position:fixed;z-index:200;left:50%;bottom:max(24px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:11px;width:min(520px,calc(100vw - 32px));padding:13px 15px;border:1px solid rgba(244,180,67,.28);border-radius:14px;background:#111c31;color:#fff;box-shadow:0 18px 48px rgba(5,12,27,.3);opacity:0;pointer-events:none;transform:translate(-50%,14px) scale(.98);transition:opacity .18s ease,transform .18s ease}
.permission-toast[hidden]{display:none}.permission-toast.is-visible{opacity:1;transform:translate(-50%,0) scale(1)}
.permission-toast-icon{display:grid;flex:0 0 34px;place-items:center;width:34px;height:34px;border-radius:10px;background:rgba(244,180,67,.13);color:#f4b443;font-size:17px}
.permission-toast-copy{display:grid;min-width:0;gap:1px}.permission-toast-copy strong{font:800 13px/1.35 Manrope,sans-serif}.permission-toast-copy span{color:#c5cfdf;font-size:12px;line-height:1.35}
@media(max-width:760px){.side-nav .nav-item,.nav-group summary{padding:12px 11px}.side-nav .nav-submenu .nav-item{padding:9px 10px}.permission-toast{bottom:max(16px,calc(env(safe-area-inset-bottom) + 10px));align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.nav-group[open] .nav-submenu,.nav-item-locked.is-attention{animation:none}.permission-toast{transition:none}}

/* Website update publishing and five-minute refresh notice. */
.publish-update-button{display:inline-flex;align-items:center;gap:7px;min-height:38px;border:1px solid #d9e3f6;border-radius:10px;padding:8px 11px;background:#f2f6ff;color:#2857c8;font:800 11px/1.2 'DM Sans',sans-serif;cursor:pointer;transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
.publish-update-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.publish-update-button:hover{background:#e6edff;box-shadow:0 7px 16px rgba(49,103,238,.15);transform:translateY(-1px)}
.publish-update-button:active{transform:translateY(1px) scale(.98)}
.publish-update-button.is-publishing{cursor:wait;opacity:.75}.publish-update-button.is-publishing svg{animation:update-spin .8s linear infinite}
.publish-update-button.is-sent{border-color:#c9ead7;background:#e7f8ef;color:#19734a}
@keyframes update-spin{to{transform:rotate(360deg)}}
.website-update-notice{position:fixed;z-index:180;right:22px;bottom:22px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;width:min(560px,calc(100vw - 44px));padding:14px;border:1px solid #d9e4fa;border-radius:16px;background:#fff;color:#172640;box-shadow:0 22px 62px rgba(20,38,73,.22);opacity:0;transform:translateY(16px) scale(.98);transition:opacity .22s ease,transform .22s ease}
.website-update-notice[hidden]{display:none}.website-update-notice.is-visible{opacity:1;transform:translateY(0) scale(1);animation:update-notice-arrive .42s ease both}
.website-update-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#e9efff,#dfe9ff);color:#3167ee}
.website-update-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.website-update-copy{display:grid;min-width:0;gap:2px}.website-update-copy strong{font:800 14px/1.3 Manrope,sans-serif}.website-update-copy>span{overflow-wrap:anywhere;color:#5d6e87;font-size:12px;line-height:1.35}.website-update-copy small{color:#8794aa;font-size:10px}.website-update-copy small b{color:#315fda;font-size:11px}
.website-refresh-button{min-height:38px;border:0;border-radius:10px;padding:9px 13px;background:#3167ee;color:#fff;font:800 12px 'DM Sans',sans-serif;white-space:nowrap;cursor:pointer;box-shadow:0 8px 18px rgba(49,103,238,.22);transition:background .16s ease,transform .16s ease}
.website-refresh-button:hover{background:#254ec6;transform:translateY(-1px)}
@keyframes update-notice-arrive{0%{opacity:0;transform:translateY(22px) scale(.96)}65%{transform:translateY(-3px) scale(1)}100%{opacity:1;transform:translateY(0) scale(1)}}
.mobile-edge-handle{display:none}
@media(max-width:760px){.publish-update-button{width:38px;height:38px;padding:0;justify-content:center}.publish-update-button span{display:none}.website-update-notice{right:12px;bottom:max(12px,env(safe-area-inset-bottom));grid-template-columns:auto minmax(0,1fr);width:calc(100vw - 24px);padding:13px}.website-refresh-button{grid-column:1/-1;width:100%}.mobile-edge-handle{position:fixed;z-index:29;top:42%;left:0;display:block;width:5px;height:54px;border-radius:0 6px 6px 0;background:linear-gradient(#7ba0ff,#3167ee);box-shadow:0 5px 14px rgba(49,103,238,.28);opacity:.52;pointer-events:none;transition:opacity .18s ease}.nav-open .mobile-edge-handle{opacity:0}}
@media(prefers-reduced-motion:reduce){.publish-update-button.is-publishing svg,.website-update-notice.is-visible{animation:none}.website-update-notice{transition:none}}

/* Permission-aware company dashboard reports */
.dashboard-reports .section-title p{margin:5px 0 0;color:var(--muted);font-size:13px}.report-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.report-card{display:grid;gap:7px;min-width:0;padding:16px;border:1px solid #e2e9f4;border-radius:14px;background:#f8faff}.report-card span{color:#71819a;font-size:11px;font-weight:700}.report-card strong{overflow:hidden;color:#172a49;font:800 21px/1.2 Manrope,sans-serif;text-overflow:ellipsis;white-space:nowrap}.report-tone-green{background:#f1faf5}.report-tone-rose{background:#fff5f6}.report-tone-violet{background:#f8f4ff}.report-tone-amber{background:#fff9ed}.report-chart{display:flex;align-items:flex-end;gap:18px;height:190px;margin-top:22px;padding:20px 22px 12px;border:1px solid #e5ebf4;border-radius:15px;background:linear-gradient(180deg,#f8faff,#fff)}.report-chart-column{display:grid;grid-template-rows:auto minmax(10px,1fr) auto;align-items:end;justify-items:center;gap:6px;flex:1;height:100%;min-width:0}.report-chart-value{color:#61728d;font-size:11px;font-weight:800}.report-chart-bar{display:block;width:min(54px,72%);height:var(--report-height);min-height:8px;border-radius:9px 9px 4px 4px;background:linear-gradient(180deg,#5685ff,#2e62df);box-shadow:0 7px 18px rgba(49,103,238,.18)}.report-chart-column b{overflow:hidden;width:100%;color:#62718a;font-size:10px;text-align:center;text-overflow:ellipsis;white-space:nowrap}

/* Native-style bottom navigation for the mobile PWA */
.mobile-bottom-nav,.bottom-nav-toast,.mobile-create-sheet,.mobile-create-backdrop{display:none}@media(max-width:760px){body.app-body{padding-bottom:calc(82px + env(safe-area-inset-bottom))}.app-main{padding-bottom:22px}.mobile-bottom-nav{position:fixed;z-index:120;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));left:10px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:7px 6px;border:1px solid rgba(210,222,240,.9);border-radius:22px;background:rgba(255,255,255,.94);box-shadow:0 14px 36px rgba(10,34,72,.18),0 2px 7px rgba(10,34,72,.08);backdrop-filter:blur(18px) saturate(1.3)}.mobile-bottom-nav a,.mobile-bottom-nav button{display:grid;place-items:center;gap:3px;min-width:0;min-height:52px;border:0;border-radius:15px;padding:3px 1px;background:transparent;color:#7888a4;font:inherit;text-decoration:none;cursor:pointer;transition:color .2s ease,background .2s ease,transform .2s ease}.mobile-bottom-nav a:active,.mobile-bottom-nav button:active{transform:scale(.92)}.bottom-nav-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:10px}.bottom-nav-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.bottom-nav-create-icon{width:36px;height:36px;margin-top:-13px;border-radius:13px;background:linear-gradient(145deg,#1748bd,#3a73f4);color:#fff;box-shadow:0 7px 17px rgba(41,98,222,.38)}.mobile-bottom-nav b{overflow:hidden;max-width:100%;font-size:9px;font-weight:750;letter-spacing:.01em;text-overflow:ellipsis;white-space:nowrap}.mobile-bottom-nav .is-active{background:linear-gradient(180deg,#f0f5ff,#eaf1ff);color:#245dce}.mobile-bottom-nav .is-active .bottom-nav-icon:not(.bottom-nav-create-icon){background:#dce9ff}.mobile-create-backdrop{position:fixed;z-index:198;inset:0;display:block;background:rgba(5,20,44,.48);opacity:0;backdrop-filter:blur(3px);transition:opacity .24s ease}.mobile-create-backdrop[hidden]{display:none}.mobile-create-backdrop.is-open{opacity:1}.mobile-create-sheet{position:fixed;z-index:199;right:10px;bottom:calc(82px + env(safe-area-inset-bottom));left:10px;display:block;max-height:min(72vh,560px);overflow:auto;padding:9px 14px 16px;border:1px solid rgba(219,228,243,.95);border-radius:25px;background:linear-gradient(155deg,#fff 0%,#f6f9ff 100%);box-shadow:0 24px 70px rgba(4,22,52,.3);opacity:0;transform:translateY(28px) scale(.97);transform-origin:bottom center;pointer-events:none;transition:opacity .24s ease,transform .24s cubic-bezier(.2,.8,.2,1)}.mobile-create-sheet.is-open{opacity:1;transform:none;pointer-events:auto}.mobile-create-handle{width:38px;height:4px;margin:0 auto 10px;border-radius:99px;background:#d2dcec}.mobile-create-sheet header{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.mobile-create-sheet header span{color:#7c8da8;font-size:10px;font-weight:800;letter-spacing:.15em}.mobile-create-sheet header h2{margin:2px 0 0;color:#102342;font-size:21px}.mobile-create-sheet header button{display:grid;place-items:center;width:35px;height:35px;border:0;border-radius:12px;background:#eaf1ff;color:#285dc8;font-size:25px;line-height:1}.mobile-create-grid{display:grid;gap:8px}.mobile-create-grid>a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-height:67px;padding:10px 12px;border:1px solid #e0e8f5;border-radius:17px;background:#fff;color:#13294b;text-decoration:none;box-shadow:0 5px 16px rgba(25,53,95,.06);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.mobile-create-grid>a:active{transform:scale(.975)}.mobile-create-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(145deg,#e8f0ff,#dce9ff);color:#2762d4}.mobile-create-icon svg,.mobile-create-arrow{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mobile-create-grid strong,.mobile-create-grid small{display:block}.mobile-create-grid strong{font-size:14px}.mobile-create-grid small{margin-top:3px;color:#7c8aa2;font-size:11px}.mobile-create-arrow{width:18px;color:#9aa9bf}.mobile-create-empty{padding:18px;border-radius:16px;background:#f1f5fb;color:#63748f;text-align:center}.create-sheet-open{overflow:hidden}.bottom-nav-toast{position:fixed;z-index:210;right:16px;bottom:calc(88px + env(safe-area-inset-bottom));left:16px;display:block;padding:12px 15px;border-radius:12px;background:#15243e;color:#fff;box-shadow:0 14px 38px rgba(6,17,37,.25);font-size:13px;font-weight:700;text-align:center;opacity:0;transform:translateY(8px);transition:.18s ease}.bottom-nav-toast.is-visible{opacity:1;transform:translateY(0)}.website-update-notice{bottom:calc(88px + env(safe-area-inset-bottom))}.report-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-card{padding:14px}.report-card strong{font-size:18px}.report-chart{gap:8px;height:170px;padding-inline:10px}.report-chart-bar{width:min(42px,75%)}.card:has(.document-list-wrap){padding:12px;background:transparent;border:0;box-shadow:none}}
@media(max-width:390px){.report-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-card{padding:12px}.report-card strong{font-size:16px}.report-card span{font-size:10px}.mobile-bottom-nav b{font-size:8px}}

/* Premium glass bottom navigation and permission-aware multi-module search */
.mobile-search-sheet,.mobile-search-backdrop{display:none}
@media(max-width:760px){
  .mobile-bottom-nav{border-color:rgba(255,255,255,.72);background:linear-gradient(135deg,rgba(255,255,255,.78),rgba(234,242,255,.66));box-shadow:0 18px 44px rgba(8,31,68,.2),inset 0 1px 0 rgba(255,255,255,.94);backdrop-filter:blur(24px) saturate(1.55);-webkit-backdrop-filter:blur(24px) saturate(1.55)}
  .bottom-nav-create-icon{width:30px;height:30px;margin-top:0;border-radius:11px;box-shadow:0 6px 14px rgba(41,98,222,.28)}
  .mobile-search-backdrop{position:fixed;z-index:198;inset:0;display:block;background:rgba(5,20,44,.48);opacity:0;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);transition:opacity .24s ease}
  .mobile-search-backdrop[hidden]{display:none}.mobile-search-backdrop.is-open{opacity:1}
  .mobile-search-sheet{position:fixed;z-index:199;right:10px;bottom:calc(82px + env(safe-area-inset-bottom));left:10px;display:block;max-height:min(72vh,560px);overflow:auto;padding:9px 14px 16px;border:1px solid rgba(255,255,255,.78);border-radius:25px;background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(235,243,255,.78));box-shadow:0 26px 72px rgba(4,22,52,.32),inset 0 1px 0 rgba(255,255,255,.95);opacity:0;transform:translateY(28px) scale(.97);transform-origin:bottom center;pointer-events:none;backdrop-filter:blur(26px) saturate(1.55);-webkit-backdrop-filter:blur(26px) saturate(1.55);transition:opacity .24s ease,transform .24s cubic-bezier(.2,.8,.2,1)}
  .mobile-search-sheet.is-open{opacity:1;transform:none;pointer-events:auto}
  .mobile-search-sheet header{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.mobile-search-sheet header span{color:#7184a1;font-size:10px;font-weight:800;letter-spacing:.15em}.mobile-search-sheet header h2{margin:2px 0 0;color:#102342;font-size:20px}.mobile-search-sheet header button{display:grid;place-items:center;width:35px;height:35px;border:0;border-radius:12px;background:rgba(226,236,255,.82);color:#285dc8;font-size:25px;line-height:1}
  .mobile-create-sheet{border-color:rgba(255,255,255,.78);background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(235,243,255,.78));backdrop-filter:blur(26px) saturate(1.55);-webkit-backdrop-filter:blur(26px) saturate(1.55)}
  .mobile-create-grid>a{border-color:rgba(221,231,246,.86);background:rgba(255,255,255,.72);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
  .mobile-search-icon{background:linear-gradient(145deg,#e7f4ff,#dceaff);color:#1d6ecb}
}

/* Mobile document cards: CN, quotation, bill and receipt use one premium
   deep navy and blue layout with strong contrast for long values. */
@media(max-width:760px){
  .table-wrap.card.document-list-wrap{margin-bottom:19px;padding:0;background:transparent;border:0;box-shadow:none;overflow:visible}
  .document-list-table tbody{gap:16px}
  .document-list-table tr{padding:8px 16px 15px;border-color:#dce6f5;background:linear-gradient(155deg,#fff 0%,#f8fbff 68%,#eef4ff 100%);box-shadow:0 12px 30px rgba(25,63,125,.09)}
  .document-list-table .document-primary{padding-top:12px;padding-bottom:12px;border-bottom-color:#e2e9f4}
  .document-list-table td:before{color:#7185a5}
  .document-list-table .document-number-link{color:#263752}
  .document-list-table .document-number-link:hover,.document-list-table .document-number-link:focus{color:#3167ee}
  .document-list-table .actions{gap:9px;border-top-color:#e2e9f4}
  .document-list-table .mobile-action{border:1px solid #dce6f5;background:#edf3ff;color:#2858c8;box-shadow:0 4px 12px rgba(39,88,168,.07)}
  .document-list-table .document-card-actions .mobile-action-download{border-color:#2862db;background:linear-gradient(145deg,#2862db,#3979f4);color:#fff;box-shadow:0 7px 16px rgba(39,98,219,.22)}
  .document-list-table .route-arrow{color:#3167ee}
}
