
:root { --paper:#f5f6f2; --white:#fff; --ink:#20352d; --muted:#788179; --line:#e2e7df; --green:#245b43; --light:#ecf3e9; --orange:#b76731; --red:#a54537; --yellow:#fbf1df; --radius:14px; font-family:'DM Sans',sans-serif; color:var(--ink); background:var(--paper); }
* { box-sizing:border-box; }
body { margin:0; font-size:14px; line-height:1.55; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button,a { touch-action:manipulation; }
a { color:var(--green); text-decoration:none; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.45; }
:focus-visible { outline:3px solid #dbaa64; outline-offset:3px; }
h1,h2,h3,p { margin:0; }
h1,h2,h3,.brand,.metric strong { font-family:'Manrope','DM Sans',sans-serif; }
h1 { font-size:30px; font-weight:750; letter-spacing:-1.1px; line-height:1.25; }
h2 { font-size:17px; font-weight:750; letter-spacing:-.4px; }
h3 { font-size:14px; font-weight:700; }
small,.muted { color:var(--muted); }
small { font-size:12px; }
strong { font-weight:650; }
.layout { min-height:100vh; display:grid; grid-template-columns:224px minmax(0,1fr); }
.sidebar { padding:30px 19px 20px; background:#fcfcf8; border-right:1px solid var(--line); display:flex; flex-direction:column; gap:34px; }
.brand { display:flex; align-items:center; gap:9px; color:var(--green); font-size:24px; font-weight:800; letter-spacing:-1px; }
.brand-mark { width:26px; height:29px; display:inline-block; border-radius:16px 3px 16px 3px; background:var(--green); transform:rotate(-12deg); position:relative; }
.brand-mark:after { content:''; position:absolute; left:12px; top:7px; width:1px; height:19px; background:#9fc69f; transform:rotate(30deg); }
.company { width:100%; background:#f0f2ea; border:1px solid var(--line); border-radius:10px; padding:12px 11px; display:flex; align-items:center; gap:9px; text-align:left; }
.company strong { font-size:12px; }
.avatar { flex-shrink:0; display:grid; place-items:center; width:33px; height:33px; border-radius:9px; background:#e5ecdc; color:#476343; font-size:11px; font-weight:700; }
.nav-label { display:block; font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:1.5px; color:#949c91; padding:0 12px 10px; }
.nav-group { display:flex; flex-direction:column; gap:4px; }
.nav-link { display:flex; gap:12px; align-items:center; padding:10px 12px; border-radius:8px; color:#687166; font-weight:500; font-size:13px; }
.nav-icon { width:17px; font-size:17px; text-align:center; line-height:1; }
.nav-link:hover { background:#f0f3e9; }
.nav-link.active { background:#e8efdf; color:#315d35; font-weight:700; }
.nav-count { margin-left:auto; border-radius:5px; background:#dbe6cf; padding:0 6px; font-size:11px; }
.sidebar-bottom { margin-top:auto; display:grid; gap:15px; }
.user { display:flex; align-items:center; gap:9px; border-top:1px solid var(--line); padding:20px 4px 0; }
.user strong,.user small { display:block; font-size:12px; }
.workspace { min-width:0; }
.topbar { height:75px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:0 35px; border-bottom:1px solid var(--line); background:#ffffffa6; }
.breadcrumb { color:#8b9286; font-size:12px; }
.breadcrumb span { padding:0 10px; color:#bbc2b5; }
.topbar-right { display:flex; align-items:center; gap:16px; }
.topbar-right .avatar { border-radius:50%; background:#e7dfcf; color:#786443; }
.live { color:#60825b; font-size:11px; display:flex; align-items:center; gap:6px; }
.live:before { content:''; width:6px; height:6px; border-radius:50%; background:#7f9e6a; }
.main { padding:32px 35px 42px; max-width:1640px; margin:auto; }
.heading { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom:25px; }
.heading p { color:var(--muted); margin-top:8px; font-size:13px; }
.actions { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.btn { border:1px solid var(--line); background:var(--white); color:var(--ink); border-radius:8px; padding:9px 14px; min-height:38px; display:inline-flex; align-items:center; justify-content:center; gap:7px; font-size:12px; font-weight:600; }
.btn:hover { background:#edf2e8; }
.btn.primary { background:var(--green); border-color:var(--green); color:white; }
.btn.primary:hover { background:#174830; }
.btn.danger { color:var(--red); }
.btn.text { background:none; border-color:transparent; padding-left:0; }
.panel { background:white; border:1px solid var(--line); border-radius:var(--radius); }
.panel-head { padding:20px 22px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.panel-body { padding:0 22px 22px; }
.metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:22px; }
.metric { padding:18px 21px; }
.metric label { color:#777f72; font-size:12px; display:block; }
.metric strong { display:block; font-size:30px; letter-spacing:-1px; line-height:1.4; margin-top:8px; font-weight:700; }
.metric .caption { font-size:11px; color:#88917f; display:block; margin-top:4px; }
.metric.accent { background:#eaf0df; border-color:#dce5cf; }
.metric.accent strong { color:#3b652c; }
.columns { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr); gap:20px; }
.columns > *, .settings-layout > * { min-width:0; }
.stack { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; align-content:start; }
.tag { display:inline-flex; align-items:center; gap:5px; border-radius:5px; padding:3px 8px; font-size:10px; font-weight:600; white-space:nowrap; background:#f0f2eb; color:#737c6b; }
.tag.green { background:#eaf2e3; color:#4a733c; }
.tag.orange { background:#fcf0e2; color:#a36a30; }
.tag.red { background:#f8e9e5; color:#a64d42; }
.tag.blue { background:#e9f0f4; color:#53768a; }
.tag.purple { background:#efedf6; color:#79668b; }
.notice { display:flex; gap:12px; align-items:center; padding:13px 17px; border:1px solid #eadfc9; border-radius:10px; background:#fcf8ee; font-size:12px; margin-bottom:22px; color:#806634; }
.notice p { flex:1; }
.notice.error { border-color:#e7c8be; background:#fcf1ec; color:#8f4c36; }
.toolbar { display:flex; align-items:center; gap:10px; margin-bottom:20px; flex-wrap:wrap; }
.search { position:relative; flex:1; min-width:180px; max-width:340px; }
.search input { width:100%; padding-left:14px; }
input,select,textarea { border:1px solid #dfe5da; border-radius:7px; padding:9px 11px; color:var(--ink); background:#fff; max-width:100%; }
input::placeholder { color:var(--muted); }
input[type=checkbox] { accent-color:var(--green); width:16px; height:16px; }
.segmented { display:flex; background:#e8ece2; padding:3px; border-radius:8px; gap:3px; }
.segmented button { border:0; background:none; padding:7px 12px; border-radius:5px; color:var(--muted); font-size:12px; }
.segmented button.active { background:white; color:var(--ink); box-shadow:0 1px 4px #233a2012; }
.board { display:grid; grid-template-columns:repeat(4,minmax(205px,1fr)); gap:14px; overflow:auto; padding-bottom:12px; }
.board-column { background:#edf0e9; border-radius:12px; min-height:345px; padding:11px; }
.column-title { display:flex; align-items:center; gap:7px; padding:3px 1px 13px; font-size:12px; font-weight:600; }
.column-title .count { margin-left:auto; color:var(--muted); font-size:11px; }
.phase-dot { height:7px; width:7px; border-radius:50%; background:#a8b79a; }
.phase-dot.transit { background:#709a7a; }
.phase-dot.loaded { background:#cba05f; }
.phase-dot.closed { background:#9ca5b8; }
.lot-card { display:block; padding:15px 14px; background:#fff; border:1px solid #e1e7da; box-shadow:0 2px 2px #22352302; border-radius:10px; margin-bottom:10px; color:var(--ink); transition:transform .15s,border-color .15s; }
.lot-card:hover { transform:translateY(-2px); border-color:#a4b995; }
.lot-card-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.lot-code { font-size:10px; font-weight:600; color:var(--muted); letter-spacing:.3px; }
.lot-card h3 { margin-bottom:4px; font-size:14px; }
.lot-card .owner { font-size:11px; color:#8a9284; }
.lot-card .destination { padding:10px 0; border-bottom:1px solid #f0f2eb; margin-bottom:10px; font-size:11px; color:#6f7a65; }
.lot-card footer { display:flex; align-items:center; justify-content:space-between; font-size:10px; color:#98a08f; }
.temperature { font-size:14px; font-weight:650; }
.temperature.warn { color:var(--orange); }
.mini-avatar { display:inline-grid; place-items:center; width:23px; height:23px; border-radius:50%; background:#f0eddf; color:#7d8068; font-size:9px; margin-right:4px; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:12px; }
th { font-size:10px; font-weight:550; color:#8b9482; padding:11px 18px; background:#f9faf5; text-transform:uppercase; letter-spacing:.7px; white-space:nowrap; }
td { padding:15px 18px; border-top:1px solid #edf0e7; vertical-align:middle; }
td strong { display:block; }
td small { display:block; margin-top:3px; }
td a:hover { text-decoration:underline; }
.tabbar { display:flex; gap:24px; border-bottom:1px solid var(--line); margin-bottom:22px; overflow-x:auto; }
.tabbar button { background:none; border:0; padding:10px 0 13px; white-space:nowrap; color:#8a9381; font-size:12px; border-bottom:2px solid transparent; }
.tabbar button.active { color:var(--green); border-bottom-color:var(--green); font-weight:650; }
.flow { display:flex; padding:24px 20px; margin-bottom:22px; overflow-x:auto; }
.step { position:relative; min-width:125px; flex:1; padding:0 9px; }
.step:before { content:''; position:absolute; top:12px; left:35px; width:calc(100% - 10px); height:1px; background:#dce4d4; }
.step:last-child:before { display:none; }
.step-circle { display:grid; place-items:center; width:25px; height:25px; background:#f5f6f0; border:1px solid #dfe6d7; border-radius:50%; font-size:11px; position:relative; z-index:1; color:#a7ae9f; }
.step.done .step-circle { background:#e5eedb; color:#5c7f46; border-color:#d3e2c6; }
.step.current .step-circle { background:var(--green); border-color:var(--green); color:white; box-shadow:0 0 0 4px #eef2e7; }
.step.provisional .step-circle { background:#fcf0df; color:#ab7136; border-color:#e4cda9; }
.step strong { display:block; font-size:11px; margin-top:12px; }
.step small { display:block; font-size:10px; margin-top:3px; }
.chart-box { height:300px; position:relative; margin-top:18px; }
.chart-sub { display:flex; gap:22px; align-items:center; font-size:11px; color:#8c9583; margin-top:9px; flex-wrap:wrap; }
.chart-sub strong { color:#53614b; font-size:12px; }
.reading { display:flex; gap:20px; margin-bottom:20px; align-items:center; }
.reading strong { font-size:34px; letter-spacing:-1px; }
.info-list { display:grid; gap:0; }
.info-row { display:flex; justify-content:space-between; gap:15px; padding:12px 0; border-bottom:1px solid #eff2e9; font-size:12px; }
.info-row:last-child { border:0; }
.info-row span:first-child { color:#8b9381; }
.info-row span:last-child { text-align:right; }
.timeline { list-style:none; margin:0; padding:0; }
.timeline li { position:relative; margin-left:7px; padding:0 0 23px 24px; border-left:1px solid #dfe7d6; }
.timeline li:last-child { border:0; padding-bottom:0; }
.timeline li:before { content:''; position:absolute; width:8px; height:8px; border-radius:50%; border:2px solid #fff; background:#8ca875; top:5px; left:-5px; box-shadow:0 0 0 1px #e0e8d7; }
.timeline time { font-size:10px; color:#919984; }
.timeline strong { display:block; margin-top:3px; font-size:12px; }
.timeline p { color:#7f8972; font-size:11px; margin-top:4px; }
.map { width:100%; height:290px; border-radius:10px; background:#f0f1e8; }
.leaflet-container { font-family:'DM Sans',sans-serif; }
.leaflet-tooltip { font-size:10px; box-shadow:none; border-color:#dce4cf; }
.map-key { display:flex; justify-content:space-between; gap:10px; margin-top:10px; font-size:10px; color:#949c8a; }
.stop { display:flex; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid #f0f2eb; }
.stop-point { width:10px; height:10px; border:2px solid #7a9771; border-radius:50%; flex-shrink:0; }
.stop strong { display:block; font-size:12px; }
.stop small { display:block; font-size:11px; }
.stop .tag { margin-left:auto; }
.cards-three { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.environment { padding:22px; }
.environment-symbol { width:44px; height:44px; border-radius:12px; background:#edf2e6; display:grid; place-items:center; font-size:21px; color:#769265; margin-bottom:20px; }
.environment h2 { margin-bottom:5px; }
.environment .reading { margin:20px 0 5px; }
.environment footer { margin-top:20px; padding-top:15px; border-top:1px solid var(--line); font-size:11px; color:#8f9785; }
.label-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.qr-label { border:1px solid #dce3d2; border-radius:10px; padding:18px; background:white; display:flex; align-items:center; gap:18px; }
.qr-label h3 { margin-bottom:5px; }
.qr-image { width:100px; height:100px; flex-shrink:0; }
.qr-image img,.qr-image canvas { width:100px!important; height:100px!important; }
#totp-enrollment-qr { width:192px; height:192px; margin:16px auto; }
#totp-enrollment-qr img,#totp-enrollment-qr canvas { width:192px!important; height:192px!important; }
.recovery-codes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 24px; padding:16px 24px; background:var(--soft); border-radius:12px; }
.break-all { overflow-wrap:anywhere; }
.qr-label small { display:block; font-size:10px; }
.settings-layout { display:grid; grid-template-columns:200px minmax(0,1fr); gap:24px; }
.settings-menu { display:flex; flex-direction:column; gap:5px; align-self:start; }
.settings-menu button { padding:11px 14px; border:0; background:none; color:#818b77; text-align:left; border-radius:8px; font-size:12px; }
.settings-menu button.active { background:#e8eddf; color:var(--green); font-weight:650; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:17px; }
.field { display:grid; gap:6px; font-size:12px; font-weight:500; }
.field input,.field select,.field textarea { width:100%; font-weight:400; }
.field.full { grid-column:1/-1; }
.form-footer { margin-top:23px; display:flex; justify-content:flex-end; gap:9px; }
.check-row { display:flex; align-items:center; gap:10px; padding:12px 0; font-size:12px; }
.check-row input { flex-shrink:0; }
.permission-grid td:not(:first-child),.permission-grid th:not(:first-child) { text-align:center; }
.empty { padding:35px; text-align:center; color:#949d88; font-size:13px; }
dialog { padding:0; width:min(540px,calc(100% - 30px)); border:1px solid var(--line); border-radius:18px; box-shadow:0 20px 100px #142c2940; color:var(--ink); max-height:90vh; }
dialog::backdrop { background:#233b2d5c; backdrop-filter:blur(3px); }
.dialog-head { padding:23px 25px 17px; display:flex; justify-content:space-between; align-items:center; }
.dialog-head h2 { font-size:21px; }
.close { border:0; background:#f1f4ec; width:29px; height:29px; border-radius:50%; color:#859476; font-size:18px; }
.dialog-body { padding:0 25px 25px; }
.dialog-body>p { color:var(--muted); font-size:12px; margin-bottom:20px; }
.dialog-body .notice { margin-top:14px; margin-bottom:0; }
.error-message { color:var(--red); font-size:12px; min-height:18px; margin-top:12px; }
#toast { position:fixed; z-index:100; bottom:25px; left:50%; transform:translateX(-50%); padding:12px 20px; background:#244a35; color:#fff; border-radius:10px; box-shadow:0 8px 30px #213b2433; max-width:90vw; font-size:12px; }
#view-loading { position:fixed; z-index:90; top:10px; left:50%; transform:translateX(-50%); max-width:90vw; }
#view-loading:not(:empty) { padding:10px 16px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); }
#print-area { display:none; }
.login-page { display:grid; min-height:100vh; grid-template-columns:1fr 1fr; background:#fcfcf7; }
.login-story { background:#e7eddf; padding:70px 65px; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden; }
.login-story h1 { font-size:48px; letter-spacing:-2px; max-width:460px; margin:60px 0 25px; }
.login-story p { color:#6d8064; max-width:360px; font-size:15px; }
.login-illustration { border-radius:18px; background:#f7faf1; padding:25px; margin:35px 0; width:100%; max-width:400px; box-shadow:0 18px 40px #627c3210; }
.login-line { height:6px; margin:17px 0; border-radius:5px; background:#dce8ce; }
.login-side { display:grid; place-items:center; padding:45px; }
.login-form { max-width:360px; width:100%; }
.login-form h2 { font-size:29px; margin-bottom:9px; }
.login-form .field { margin-top:20px; }
.login-form .btn { margin-top:22px; width:100%; }
.public-page { max-width:600px; margin:40px auto; padding:0 20px; }
.public-page .brand { justify-content:center; margin-bottom:30px; }
.public-page h1 { font-size:27px; margin-bottom:8px; }
.public-page .panel { padding:30px; }
.public-page .notice { margin-top:20px; }
.proposal-note { font-size:11px; color:#8c917e; margin-top:18px; }
@media(min-width:1550px) { .main { padding-top:40px; } .board-column { min-height:450px; } }
@media(max-width:1150px) { .layout { grid-template-columns:190px minmax(0,1fr); } .main { padding:26px 23px; } .topbar { padding:0 23px; } .sidebar { padding:25px 13px; } .columns { grid-template-columns:1fr; } .cards-three { grid-template-columns:1fr 1fr; } .metric { padding:15px; } }
@media(max-width:760px) { .layout { display:block; } .sidebar { padding:14px 16px 0; gap:13px; border-right:0; border-bottom:1px solid var(--line); } .sidebar>.brand { font-size:21px; } .brand-mark { width:21px; height:23px; } .company,.nav-label,.sidebar-bottom,.sidebar .secondary-nav { display:none; } .nav-group { flex-direction:row; overflow:auto; padding-bottom:10px; } .nav-link { flex-shrink:0; padding:8px 10px; font-size:12px; } .nav-icon,.nav-count { display:none; } .topbar { height:49px; padding:0 17px; } .topbar-right .live { display:none; } .topbar-right .avatar { width:26px; height:26px; font-size:10px; } .main { padding:23px 17px; } h1 { font-size:25px; } .heading { align-items:flex-start; gap:12px; } .heading .actions { justify-content:flex-end; } .metrics { grid-template-columns:1fr 1fr; gap:10px; } .metric strong { font-size:25px; } .board { grid-template-columns:repeat(4,230px); } .cards-three,.label-grid { grid-template-columns:1fr; } .settings-layout { grid-template-columns:1fr; gap:16px; } .settings-menu { flex-direction:row; overflow:auto; } .settings-menu button { white-space:nowrap; } .form-grid { grid-template-columns:1fr; } .step { min-width:118px; } .panel-head { padding:17px; } .panel-body { padding:0 17px 17px; } .chart-box { height:260px; } .tabbar { gap:18px; } .notice { align-items:flex-start; flex-wrap:wrap; } .login-page { display:block; } .login-story { padding:30px; } .login-story h1 { font-size:32px; margin:27px 0 16px; } .login-illustration { display:none; } .login-side { padding:35px 25px; } .breadcrumb { font-size:11px; } .table-wrap { max-width:100%; } }
@media print { body>* { display:none!important; } #print-area { display:grid!important; grid-template-columns:1fr 1fr; gap:12mm; padding:10mm; } .qr-label { break-inside:avoid; border:1px solid #aaa; } @page { size:A4; margin:10mm; } }

:root { --muted:#5f6d62; font-family:'DM Sans',system-ui,sans-serif; }
h1,h2,h3,.brand,.metric strong { font-family:'Manrope','DM Sans',system-ui,sans-serif; }
.skip-link { position:fixed; left:1rem; top:1rem; z-index:1000; transform:translateY(-180%); background:#fff; padding:.5rem 1rem; border-radius:6px; }
.skip-link:focus { transform:none; }
.mobile-controls { display:none; }
.topbar-right .company-name { font-size:12px; color:var(--muted); }
.company-down,.mode,.last-humidity,.stop > .btn { margin-left:auto; }
.company strong,.user strong,.heading p,.public-details dd { overflow-wrap:anywhere; }
.metric > span { color:var(--muted); font-size:12px; }
.section-space,.lot-owner { margin-top:18px; }
.alert-actions { margin:10px 0 16px; justify-content:flex-end; }
.login-stages { justify-content:space-between; }
.login-form .btn.text { width:auto; margin-top:4px; }
.login-form [role="alert"]:empty { display:none; }
.reading .temperature { line-height:1.1; }
.qr-link { display:inline-block; font-size:11px; margin-top:8px; }
.pagination { display:flex; align-items:center; justify-content:flex-end; gap:10px; padding-top:14px; }
.tracking-banner { justify-content:space-between; }
.table-wrap { max-width:100%; }
.column-title,.empty,.map-key,.settings-menu button,.breadcrumb,.tabbar button,.timeline p,.timeline time,th { color:var(--muted); }
.public-details { display:grid; grid-template-columns:auto 1fr; gap:10px 14px; margin:20px 0 0; }
.public-details dt { color:var(--muted); }
.public-details dd { margin:0; }
.report-page { max-width:950px; }
[hidden] { display:none !important; }
summary { cursor:pointer; color:var(--green); }
details > summary { margin-bottom:9px; }
.detection-fields { min-width:0; margin:6px 0 0; padding:10px; border:1px solid var(--line); border-radius:8px; }
.detection-fields .check-row { grid-column:1 / -1; }
.detection-fields:disabled { display:none; }
@media(min-width:761px) { .sidebar { position:sticky; top:0; min-height:100vh; max-height:100vh; overflow:auto; } }
@media(max-width:760px) {
  .mobile-controls { display:flex; align-items:center; gap:6px; }
  .topbar-right { gap:8px; }
  .topbar-right .company-name,.topbar-right .avatar { display:none; }
  .company-selector { max-width:50vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; }
  .heading { flex-wrap:wrap; }
  .heading .actions { justify-content:flex-start; }
  .panel-head { flex-wrap:wrap; }
  .public-page .panel { padding:20px; }
}
@media print { .qr-link { display:none; } }
