@font-face{font-family:Open Sans;src:url('../fonts/OpenSans-Regular.ttf')}@font-face{font-family:Open Sans;src:url('../fonts/OpenSans-Semibold.ttf');font-weight:600}
:root{font-family:Open Sans,system-ui,sans-serif;color:#233b48;background:#f3f6f8;font-size:14px;--green:#196e54;--nav:#17364a;--line:#e2e9ed;--muted:#73828c;--orange:#bd7527}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7bbbaa;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-.8px;line-height:1.3;margin-bottom:9px}h2{font-size:19px;letter-spacing:-.35px;margin-bottom:6px}h3{font-size:16px}p{line-height:1.7}.muted,.hint{color:var(--muted)}.hint{font-size:12px;line-height:1.6}.small{font-size:12px}.app-shell{display:flex;min-height:100vh}.sidebar{width:246px;background:var(--nav);color:#d6e1e7;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:31px 18px 0;z-index:20}.brand{display:flex;align-items:center;gap:10px;color:white;font-size:26px;font-weight:600;letter-spacing:-1px}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:.3px;color:#aac0cd;margin-top:1px}.brand-symbol{display:inline-grid;place-items:center;background:#e1eee6;color:#196e54;border-radius:12px 12px 12px 2px;width:43px;height:47px;font-size:28px;font-weight:600;flex:none}.company-switch{display:flex;gap:10px;align-items:center;margin:32px 1px 25px;padding:13px 9px;border:1px solid #3b5263;border-radius:8px;overflow:hidden}.company-switch strong{display:block;font-size:12px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.company-switch small{display:block;font-size:10px;color:#9eb5c4;margin-top:4px}.company-avatar{display:grid;place-items:center;border-radius:6px;background:#315569;width:31px;height:31px;color:#d1e6db;flex:none}.sidebar nav{display:flex;flex-direction:column;gap:5px;overflow:auto}.sidebar nav a{display:flex;align-items:center;gap:13px;padding:12px 14px;border-radius:7px;font-size:12px;color:#bbccd6}.sidebar nav a:hover{background:#24475d}.sidebar nav a.active{background:#e9f1ed;color:#165841;font-weight:600}.nav-caption{font-size:10px;margin:22px 14px 5px;color:#7fa0b4;letter-spacing:.5px}.sidebar-bottom{margin-top:auto;padding-top:25px}.sidebar-bottom>.small{font-size:10px;color:#88a4b5;display:block;padding:0 6px}.install-button{background:transparent;color:#cbdcd5;border:1px solid #3a5b68;padding:9px;border-radius:6px;display:flex;align-items:center;justify-content:space-between;width:100%;font-size:11px;margin:10px 0 22px}.profile{display:flex;align-items:center;gap:9px;border-top:1px solid #355164;padding:19px 0}.profile strong{font-size:11px;display:block}.profile small{font-size:9px;color:#90acba;display:block;margin-top:4px}.avatar{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:#e6ece5;color:#406750;font-weight:600;flex:none}.profile .icon-button{margin-left:auto;color:#b0c1cc}.icon-button{background:transparent;border:0;padding:6px;display:inline-flex;align-items:center;justify-content:center;font-size:23px;color:inherit}.workspace{margin-left:246px;width:calc(100% - 246px);display:flex;flex-direction:column;min-height:100vh}.topbar{height:77px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 38px;gap:16px}.workspace-caption{font-size:12px;color:var(--muted)}.topbar-right{display:flex;gap:23px;align-items:center}.today{font-size:12px;color:#617783}main{padding:32px 38px 50px;max-width:1600px;width:100%;margin:0 auto;flex:1}.workspace-footer{font-size:10px;color:#91a0a8;margin:0 38px;padding:20px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.page-heading p{color:var(--muted);margin:0;font-size:12px}.primary,.secondary,.danger-button{border:0;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 17px;font-weight:600;font-size:12px;white-space:nowrap}.primary{background:var(--green);color:white}.primary:hover{background:#125b44}.secondary{background:#fff;border:1px solid #d6e1e6;color:#365466}.danger-button{background:#fbece7;color:#9b442d;border:1px solid #efc8b9}.text-link{color:var(--green);font-size:12px;font-weight:600}.badge{padding:5px 9px;border-radius:5px;font-size:10px;display:inline-flex;align-items:center;gap:5px;font-weight:600;white-space:nowrap}.badge.online,.badge.soft{background:#e7f2ec;color:#277351}.badge.offline,.badge.neutral{background:#edf0f3;color:#6b7a89}.badge.warning{background:#fbefd9;color:#ab7223}.badge.critical{background:#fbe9e5;color:#af5440}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.stat{background:#fff;border:1px solid var(--line);border-radius:9px;padding:21px 21px 16px;position:relative;overflow:hidden}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#758590;font-size:11px}.stat-top svg{color:#53856f;background:#edf4f0;box-sizing:content-box;padding:7px;border-radius:7px}.stat strong{display:block;font-size:29px;font-weight:600;letter-spacing:-.7px;margin-top:12px;color:#294b40}.stat .small{font-size:10px;color:#8b9aa3;margin-top:8px;display:block}.panel{background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:24px;overflow:hidden}.panel-header{display:flex;justify-content:space-between;align-items:center;padding:21px 23px;border-bottom:1px solid #edf1f3;gap:14px}.panel-header p{font-size:11px;color:var(--muted);margin:5px 0 0}.panel-body{padding:23px}.dashboard-columns{display:grid;grid-template-columns:1.65fr 1fr;gap:23px}.chart{padding:26px 18px 14px}.chart svg{display:block;width:100%;height:190px}.chart-labels{display:flex;justify-content:space-between;color:#8a98a1;font-size:10px;padding:0 18px;margin-top:10px}.chart-bar{fill:#78aa92}.chart-bar:hover{fill:#196e54}.chart-grid{stroke:#e8eef0;stroke-dasharray:4 4}.alert-item{padding:17px 22px;border-bottom:1px solid #f0f2f4;display:flex;align-items:flex-start;gap:12px}.alert-icon{width:30px;height:30px;background:#fff1d9;color:#b78636;border-radius:7px;display:grid;place-items:center;flex:none}.alert-item strong{font-size:12px;display:block}.alert-item p{font-size:11px;color:var(--muted);margin:5px 0 0;line-height:1.55}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;color:#81919c;background:#fcfdfd;font-size:10px;font-weight:600;border-bottom:1px solid var(--line);padding:13px 22px;white-space:nowrap}td{padding:18px 22px;border-bottom:1px solid #edf1f3;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdfc}td strong{display:block;font-weight:600}td small{display:block;color:#8a9aa3;font-size:10px;margin-top:4px}.machine-cell{display:flex;align-items:center;gap:13px}.machine-icon{height:38px;width:35px;border:1px solid #dbe8e0;border-radius:7px;background:#f0f6f3;color:#507c64;display:grid;place-items:center;flex:none}.stock-line{min-width:105px}.stock-line span{display:block;font-size:10px;color:#8f9ca4;margin-top:5px}.stock-track{height:5px;background:#edf1ef;border-radius:9px;width:110px;margin-top:7px}.stock-track i{display:block;height:100%;border-radius:9px;background:#5a9577}.stock-track.low i{background:#dba04f}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px;flex-wrap:wrap}.search{position:relative;width:300px}.search input{width:100%}.filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap}input,select,textarea{background:white;color:#294654;border:1px solid #d7e1e7;border-radius:6px;padding:11px 12px;max-width:100%;min-height:43px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#506773;margin-bottom:17px}label input,label select,label textarea{width:100%}.checkbox{flex-direction:row;align-items:center;font-size:11px;gap:9px}.checkbox input{width:16px;min-height:16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:15px;border-top:1px solid var(--line);margin-top:7px}.error{padding:13px 16px;background:#fff0eb;border:1px solid #edcdc1;border-radius:7px;font-size:12px;color:#9e4d34;margin-bottom:18px;line-height:1.6}.notice{background:#e8f3ed;border:1px solid #c9e2d3;color:#2c6b4f;padding:13px 16px;border-radius:7px;margin-bottom:20px;font-size:12px}.empty{text-align:center;padding:52px 22px;color:#7e909b}.empty>svg{width:39px;height:39px;color:#9fb8ab;margin-bottom:13px}.empty h3{color:#42634f;margin-bottom:7px}.empty p{font-size:12px;max-width:440px;margin:0 auto 18px}.loading{padding:50px;text-align:center;color:var(--muted)}.pagination{display:flex;justify-content:space-between;align-items:center;padding:16px 22px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.pagination button{padding:7px 12px}.modal-backdrop{position:fixed;inset:0;background:#112c40a3;z-index:50;display:grid;place-items:center;padding:22px;overflow:auto}.modal{background:#fff;border-radius:12px;width:min(620px,100%);max-height:calc(100vh - 44px);overflow:auto;padding:26px;box-shadow:0 20px 60px #0a1d2933}.modal>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.modal h2{font-size:22px}.detail-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.data-list{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:15px}.data-list dt{font-size:11px;color:var(--muted);margin-bottom:8px}.data-list dd{margin:0;font-size:17px;font-weight:600}.command-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.full{width:100%}.back-link{display:inline-block;color:#708692;font-size:11px;margin-bottom:15px}.offline-banner{display:none;background:#fff0cc;color:#855d22;padding:10px;text-align:center;font-size:12px}.offline .offline-banner{display:block}.mobile-menu{display:none}.startup{height:100vh;display:grid;place-content:center;justify-items:center;gap:15px}.auth-shell{display:grid;grid-template-columns:46% 54%;min-height:100vh}.auth-intro{background:var(--nav);color:#fff;padding:50px 65px;display:flex;flex-direction:column;justify-content:space-between}.auth-intro h1{font-size:44px;line-height:1.3;margin:20px 0}.intro-line{color:#9cc8ad;font-size:13px}.auth-intro p{color:#b0c8d5;font-size:15px}.auth-intro>small{color:#7899ab;font-size:11px}.auth-form{display:grid;place-items:center;padding:40px}.auth-card{width:min(390px,100%)}.auth-card h2{font-size:29px;margin-top:22px}.auth-card>p{font-size:12px;margin-bottom:26px}.auth-note{color:#95a3aa;text-align:center;font-size:11px!important;margin-top:26px}.auth-illustration{display:flex;align-items:center;gap:18px;margin-top:44px}.auth-illustration svg{height:56px;width:56px;padding:12px;background:#315064;border-radius:10px;color:#bddac7}.auth-illustration span{height:1px;width:30px;background:#54798c}#blazor-error-ui{display:none;position:fixed;bottom:0;background:#ffefd5;width:100%;padding:15px;z-index:100}.loading-progress{width:70px;height:70px;margin:calc(50vh - 40px) auto 20px;display:block;stroke:#196e54;fill:none}.loading-progress-text{text-align:center}
@media(min-width:1600px){main{padding-top:42px}.stat{padding:25px}.chart svg{height:230px}}@media(max-width:1120px){.sidebar{width:215px;padding-left:12px;padding-right:12px}.workspace{margin-left:215px;width:calc(100% - 215px)}main{padding:25px}.topbar{padding:0 25px}.stats{grid-template-columns:repeat(2,1fr)}.dashboard-columns,.detail-grid{grid-template-columns:1fr}.auth-intro{padding:40px}.auth-intro h1{font-size:34px}td,th{padding:15px}}@media(max-width:720px){.sidebar{transform:translateX(-100%);width:246px}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vw #10293e70}.workspace{margin-left:0;width:100%}.topbar{height:62px;padding:0 16px}.topbar-right{gap:10px}.today{display:none}.mobile-menu{display:block}main{padding:24px 16px}.page-heading{align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:22px}h1{font-size:25px}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:25px}.stat-top svg{display:none}.panel-header{padding:17px}.workspace-footer{margin:0 16px}.workspace-footer span{display:none}.form-grid{grid-template-columns:1fr}.auth-shell{grid-template-columns:1fr}.auth-intro{padding:25px 25px 30px}.auth-intro .intro-line,.auth-intro p,.auth-intro>small,.auth-illustration{display:none}.auth-intro h1{font-size:27px;margin:26px 0 0}.auth-intro .brand{font-size:23px}.auth-form{padding:30px 24px}.modal{padding:20px}.command-buttons{grid-template-columns:1fr}.search{width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.machine-cards{display:none}@media(max-width:720px){.machine-desktop{display:none}.machine-cards{display:block}.machine-card{display:block;padding:20px;border-bottom:1px solid var(--line)}.machine-card:last-child{border:0}.machine-card-head{display:flex;align-items:center;gap:10px}.machine-card-head>span:nth-child(2){flex:1;min-width:0}.machine-card-head strong{display:block;font-size:13px}.machine-card-head small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.machine-card-stock{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:15px;margin-top:17px;gap:12px}.machine-card-stock strong{font-size:21px;color:#276b4c}.machine-card-stock small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:3px}.machine-card-stock>span{font-size:10px;color:var(--muted);line-height:1.8}}
/* Vendomat dashboard theme. The Inter files are served locally for the offline shell. */
@font-face {
    font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
    font-family: Inter, 'Open Sans', system-ui, sans-serif;
    background: #f3f6f8; color: #17233a;
    --green: #087c4e; --nav: #0a6849; --line: #e0e7ed; --muted: #526378;
    --paper: #fff; --canvas: #f3f6f8; --ink: #17233a;
}
.app-shell { --side-width: 258px; --header-height: 64px; }
.app-shell.compact-sidebar { --side-width: 72px; }
.app-shell .sidebar { width: var(--side-width); padding: 0; background: var(--paper); color: #35455d; border-right: 1px solid var(--line); }
.app-shell .workspace { margin-left: var(--side-width); width: calc(100% - var(--side-width)); min-width: 0; background: var(--canvas); }
.side-brand { height: var(--header-height); min-height: var(--header-height); padding: 0 16px; gap: 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 17px; font-weight: 750; letter-spacing: -.4px; }
.side-brand .brand-symbol { width: 40px; height: 40px; border-radius: 12px; background: #118858; color: #fff; box-shadow: 0 3px 9px #0c815133; }
.side-brand .brand-symbol svg { width: 22px; height: 22px; }
.side-brand .brand-copy { border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.15; }
.side-brand small { color: #0a7650; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-top: 3px; }
.app-shell .sidebar nav { flex: 1; gap: 0; padding: 18px 12px 12px; scrollbar-width: thin; }
.nav-group { margin: 0 0 14px; }
.app-shell .nav-caption { display: block; margin: 0 12px 6px; color: #657284; font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.app-shell .sidebar nav a { gap: 11px; min-height: 42px; margin: 2px 0; padding: 8px 12px; border-radius: 9px; color: #394b63; font-size: 14px; font-weight: 500; }
.app-shell .sidebar nav a svg { flex: none; width: 19px; height: 19px; }
.app-shell .sidebar nav a:hover { background: #f0f5f5; color: var(--green); }
.app-shell .sidebar nav a.active { background: #e5f6ed; color: #08764c; font-weight: 700; }
.side-footer { display: flex; align-items: center; justify-content: space-between; gap: 4px; border-top: 1px solid var(--line); padding: 12px; }
.side-profile, .topbar-profile { display: flex; align-items: center; min-width: 0; gap: 10px; border-radius: 9px; padding: 5px; color: var(--ink); }
.side-profile { flex: 1; }
.side-profile-info, .topbar-user { min-width: 0; }
.side-profile strong, .side-profile small, .topbar-user strong, .topbar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-profile strong, .topbar-user strong { font-size: 12px; }
.side-profile small, .topbar-user small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.app-shell .avatar { width: 35px; height: 35px; background: #0d8d5a; color: white; font-size: 13px; font-weight: 700; }
.app-shell .topbar { height: var(--header-height); padding: 0 24px; position: sticky; top: 0; z-index: 15; }
.topbar-title { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.app-shell .topbar-right { gap: 12px; }
.topbar-profile > svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.topbar-user { max-width: 168px; }
.app-shell .icon-button { width: 38px; height: 38px; color: #526177; border-radius: 8px; flex: none; }
.app-shell .icon-button:hover, .topbar-profile:hover, .side-profile:hover { background: #edf5f1; color: var(--green); }
.global-search { display: flex; align-items: center; width: min(100%, 448px); min-width: 0; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--canvas); }
.global-search input { min-width: 0; width: 100%; min-height: 0; padding: 6px 9px 6px 0; background: transparent; border: 0; color: var(--ink); font-size: 13px; }
.global-search input::placeholder { color: var(--muted); }
.global-search .icon-button { width: 37px; }
.demo-badge-mobile, .nav-scrim { display: none; }
.app-shell main { padding: 24px 24px 32px; max-width: 1630px; }
.app-shell .page-heading h1 { font-size: 27px; }
.app-shell .page-heading p, .app-shell .panel-header p { font-size: 13px; color: var(--muted); }
.app-shell .panel { border-radius: 14px; }
.app-shell .primary, .app-shell .secondary, .app-shell .danger-button { border-radius: 9px; }
.app-shell th { color: var(--muted); background: #f6f8f9; font-size: 11px; }
.app-shell td { color: var(--ink); font-size: 13px; }

.welcome-banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 146px; padding: 27px 32px; margin-bottom: 24px; border-radius: 16px; color: #fff; background: linear-gradient(110deg,#168c5d 0%,#117849 54%,#095d41 100%); box-shadow: 0 9px 25px #13795233; }
.welcome-copy { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.welcome-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border: 1px solid #ffffff4b; border-radius: 14px; background: #ffffff22; }
.welcome-icon svg { width: 27px; height: 27px; }
.welcome-caption { font-size: 12px; color: #e5faf0; font-weight: 600; }
.welcome-banner h1 { font-size: 27px; letter-spacing: -.55px; margin: 3px 0 5px; }
.welcome-banner p { color: #f3fff9; margin: 0; font-size: 14px; line-height: 1.55; }
.welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.welcome-actions .secondary { padding: 9px 13px; border-color: #ffffff72; color: white; background: #ffffff22; }
.welcome-actions .secondary:hover { background: #ffffff38; }
.welcome-actions .welcome-export, .welcome-actions .welcome-export:hover { background: #fff; color: #08764c; }
.welcome-actions svg { width: 16px; height: 16px; }
.metric-green { --metric-color: #128d5d; --metric-soft: #dff7ea; --metric-rail: #20b679; }
.metric-blue { --metric-color: #2362bc; --metric-soft: #e2effe; --metric-rail: #4384f2; }
.metric-amber { --metric-color: #976000; --metric-soft: #fff1d3; --metric-rail: #d58c0c; }
.metric-red { --metric-color: #ba3a46; --metric-soft: #fce7e9; --metric-rail: #ec5b66; }
.dashboard-stats { gap: 19px; margin-bottom: 24px; }
.dashboard-stats .stat { border-radius: 14px; padding: 19px 20px 20px; }
.dashboard-stats .stat:hover { border-color: var(--metric-rail); }
.metric-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.metric-icon, .panel-icon { display: grid; place-items: center; flex: none; background: var(--metric-soft); color: var(--metric-color); }
.metric-icon { width: 43px; height: 43px; border-radius: 12px; }
.metric-icon svg { width: 21px; height: 21px; }
.metric-tag { color: var(--metric-color); background: var(--metric-soft); border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 650; }
.dashboard-stats .stat strong { font-size: clamp(20px,2.1vw,30px); color: var(--ink); font-weight: 790; white-space: nowrap; margin-top: 12px; }
.metric-label { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.metric-rail { display: block; height: 4px; border-radius: 8px; background: var(--metric-soft); margin-top: 13px; border-left: 33px solid var(--metric-rail); }
.dashboard-focus, .dashboard-tables { grid-template-columns: minmax(0,2.05fr) minmax(0,1fr); gap: 20px; }
.dashboard-focus .panel-header { border: 0; padding: 19px 20px 8px; flex-wrap: wrap; }
.panel-title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 16px; letter-spacing: -.22px; }
.panel-icon { width: 34px; height: 34px; border-radius: 9px; }
.panel-icon svg { width: 18px; height: 18px; }
.dashboard-focus .panel-header p { margin: 2px 0 0 43px; }
.trend-options { display: flex; flex-wrap: wrap; gap: 5px; }
.trend-options button { border: 1px solid var(--line); border-radius: 7px; background: #f3f6f8; color: #343f50; padding: 7px 9px; font-size: 12px; font-weight: 560; }
.trend-options button[aria-pressed='true'] { border-color: var(--green); background: var(--green); color: white; }
.trend-body { padding: 5px 20px 20px; }
.trend-total { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 17px; }
.trend-total strong { color: var(--ink); font-size: 31px; font-weight: 790; letter-spacing: -.7px; }
.trend-total span { color: #08764c; background: #dff7ea; border-radius: 999px; padding: 4px 8px; font-size: 11px; }
.trend-plot { display: grid; grid-template-columns: auto minmax(0,1fr); column-gap: 6px; }
.trend-plot svg { width: 100%; height: 194px; }
.trend-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 0 0 2px; text-align: right; }
.trend-axis span, .trend-dates span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.trend-dates { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); grid-column: 2; text-align: center; margin-top: 5px; }
.trend-grid { stroke: #e0e8ed; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.trend-area { fill: url('#sales-area'); }
.trend-line { stroke: #139162; stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.activity-list { display: grid; gap: 12px; padding: 8px 20px 20px; }
.activity-line { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 58px; padding: 11px 12px; border-radius: 10px; background: #f3f6f8; }
.activity-line:hover { background: #edf4f0; }
.activity-line i { width: 9px; height: 9px; border-radius: 50%; background: var(--metric-rail); }
.activity-line strong { display: block; font-size: 13px; font-weight: 650; }
.activity-line small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.activity-line b { color: var(--ink); font-size: 18px; }
.dashboard-tables .text-link { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.dashboard-tables .text-link svg { width: 14px; height: 14px; }
.dashboard-tables .panel { min-width: 0; }
.dashboard-tables td { padding: 13px 11px; }
.dashboard-tables th { padding: 12px 11px; }
.dashboard-tables .machine-cell { gap: 8px; }
.dashboard-tables .stock-track { width: min(100%, 94px); }
.enrollment-list { list-style: none; padding: 0; margin: 0; }
.enrollment-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.enrollment-row:last-child { border-bottom: 0; }
.enrollment-row p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.enrollment-row .filters { justify-content: flex-end; }
.machine-id { overflow-wrap: anywhere; font-size: 13px; user-select: all; }
.machine-cell small, .machine-card-head small { overflow-wrap: anywhere; }
.auth-intro { background: linear-gradient(145deg,#108456,#084f3c); }
.auth-intro .brand small, .auth-intro p, .auth-intro>small { color: #e3f5ec; }
.auth-intro .brand-symbol, .auth-intro .auth-illustration svg { color: #fff; background: #ffffff26; }
.auth-card { background: #fff; padding: 26px 30px; border-radius: 16px; border: 1px solid var(--line); }
.auth-card .auth-note { color: var(--muted); }
@media (min-width: 721px) {
    .compact-sidebar .side-brand { justify-content: center; padding: 0; }
    .compact-sidebar .brand-copy, .compact-sidebar .side-profile-info, .compact-sidebar .nav-caption,
    .compact-sidebar .sidebar nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .compact-sidebar .sidebar nav { padding: 17px 9px; }
    .compact-sidebar .sidebar nav a { justify-content: center; padding: 8px 0; }
    .compact-sidebar .side-footer { flex-direction: column; }
}
@media (max-width: 1180px) {
    .app-shell { --side-width: 222px; }
    .welcome-banner { align-items: flex-start; flex-direction: column; gap: 14px; }
    .welcome-actions { justify-content: flex-start; margin-left: 68px; }
    .dashboard-tables { grid-template-columns: 1fr; }
}
@media (max-width: 1040px) {
    .dashboard-focus { grid-template-columns: 1fr; }
    .demo-badge, .topbar-user, .topbar-profile > svg, .app-shell .install-action { display: none; }
    .demo-badge-mobile { display: inline-flex; margin: 0 0 10px; }
    .dashboard-tables .machine-desktop { display: none; }
    .dashboard-tables .machine-cards { display: block; }
    .dashboard-tables .machine-card { display: block; padding: 18px 20px; border-bottom: 1px solid var(--line); }
    .dashboard-tables .machine-card:last-child { border: 0; }
    .dashboard-tables .machine-card-head { display: flex; align-items: center; gap: 10px; }
    .dashboard-tables .machine-card-head > span:nth-child(2) { flex: 1; min-width: 0; }
    .dashboard-tables .machine-card-head strong { display: block; font-size: 13px; }
    .dashboard-tables .machine-card-head small { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
    .dashboard-tables .machine-card-stock { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; gap: 12px; }
    .dashboard-tables .machine-card-stock strong { font-size: 21px; color: var(--green); }
    .dashboard-tables .machine-card-stock small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 3px; }
    .dashboard-tables .machine-card-stock > span { font-size: 10px; color: var(--muted); line-height: 1.8; }
}
@media (max-width: 720px) {
    .app-shell .workspace { margin-left: 0; width: 100%; }
    .app-shell .sidebar { width: min(82vw, 278px); visibility: hidden; }
    .app-shell .sidebar.open { visibility: visible; box-shadow: none; }
    .nav-scrim { display: block; position: fixed; inset: 0; z-index: 19; border: 0; background: #19362766; }
    .desktop-menu, .topbar-user, .topbar-profile > svg, .app-shell .install-action, .demo-badge { display: none; }
    .app-shell .mobile-menu { display: inline-grid; }
    .app-shell .topbar { padding: 0 10px; gap: 6px; }
    .topbar-title, .app-shell .topbar-right { gap: 4px; }
    .topbar-profile { padding: 3px; }
    .app-shell main { padding: 16px 13px 24px; }
    .demo-badge-mobile { display: inline-flex; margin: 0 0 10px; }
    .welcome-banner { padding: 19px 15px; margin-bottom: 16px; }
    .welcome-copy { gap: 10px; }
    .welcome-icon { width: 41px; height: 41px; border-radius: 10px; }
    .welcome-icon svg { width: 23px; height: 23px; }
    .welcome-banner h1 { font-size: 23px; }
    .welcome-banner p { font-size: 12px; }
    .welcome-actions { margin-left: 0; }
    .dashboard-stats { gap: 10px; margin-bottom: 17px; }
    .dashboard-stats .stat { padding: 13px; }
    .metric-icon { width: 34px; height: 34px; border-radius: 9px; }
    .metric-icon svg { width: 18px; height: 18px; }
    .metric-label { font-size: 11px; }
    .dashboard-focus, .dashboard-tables { gap: 0; }
    .dashboard-focus .panel-header, .trend-body { padding-left: 13px; padding-right: 13px; }
    .trend-plot svg { height: 162px; }
    .trend-dates span { font-size: 8px; }
    .enrollment-row { grid-template-columns: 36px minmax(0,1fr); padding: 15px; }
    .enrollment-row .filters { grid-column: 2; justify-content: flex-start; }
}
/* Account and PWA update controls. */
.profile-menu { position: relative; }
button.topbar-profile { border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
button.topbar-profile[aria-expanded='true'] { background: #e5f6ed; }
.profile-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: min(286px, calc(100vw - 20px)); padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 12px 40px #16322a26; }
.profile-dropdown-header { padding: 12px 11px 15px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.profile-dropdown-header strong, .profile-dropdown-header small { display: block; overflow-wrap: anywhere; }
.profile-dropdown-header strong { font-size: 14px; }
.profile-dropdown-header small { font-size: 12px; color: var(--muted); margin: 5px 0 10px; }
.profile-dropdown > a, .profile-dropdown > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px; border: 0; border-radius: 7px; color: #34465b; font-size: 13px; background: transparent; text-align: left; }
.profile-dropdown > a:hover, .profile-dropdown > button:hover { background: #edf7f1; color: var(--green); }
.profile-dropdown svg { width: 18px; height: 18px; flex: none; }
.profile-dropdown .profile-logout { margin-top: 5px; border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; color: #a3303d; }
.pwa-update-banner { position: fixed; z-index: 110; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(760px, calc(100% - 28px)); display: flex; align-items: center; gap: 10px; padding: 17px; border: 1px solid #b3d6c1; border-radius: 13px; background: #fff; color: #17372b; box-shadow: 0 8px 45px #16322a33; }
.pwa-update-banner[hidden], .pwa-update-banner [hidden] { display: none; }
.pwa-update-banner > span { flex: 1; font-size: 13px; line-height: 1.5; }
.pwa-update-banner button { flex: none; padding: 10px 12px; }
.account-layout { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1200px; }
.account-cover { height: 84px; background: linear-gradient(120deg, #138255, #085b40); }
.account-identity { padding: 0 22px 24px; text-align: center; }
.app-shell .account-avatar { margin: -33px auto 13px; width: 68px; height: 68px; border: 5px solid #fff; border-radius: 18px; font-size: 24px; position: relative; }
.account-identity h2 { font-size: 21px; margin-bottom: 10px; }
.account-identity p { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; margin: 13px 0 0; }
.account-membership { display: flex; gap: 12px; padding: 19px 22px; border-top: 1px solid var(--line); align-items: center; }
.account-membership svg { color: var(--green); flex: none; }
.account-membership small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.account-membership strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.account-links { display: grid; border-top: 1px solid var(--line); padding: 11px; gap: 3px; }
.account-links a, .account-links button { display: flex; gap: 10px; align-items: center; padding: 11px; border: 0; border-radius: 7px; background: transparent; color: #34465b; text-align: left; font-size: 13px; }
.account-links a:hover, .account-links button:hover { background: #edf7f1; color: var(--green); }
.account-links svg { width: 18px; height: 18px; }
.account-sections { min-width: 0; }
.account-sections .panel { scroll-margin-top: 82px; }
.company-details { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0; }
.company-details dt { color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.company-details dd { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.company-address { grid-column: 1 / -1; }
.account-explainer { font-size: 13px; color: var(--muted); }
@media (max-width: 1040px) { .account-layout { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
    .company-details { grid-template-columns: 1fr; gap: 18px; }
    .pwa-update-banner { flex-wrap: wrap; bottom: 10px; }
    .pwa-update-banner > span { flex-basis: 100%; }
    .account-sections .panel-body { padding: 18px; }
}
