:root{--ink:#15312d;--muted:#657b77;--brand:#0f5b53;--brand2:#0b443e;--soft:#eaf6f1;--accent:#b9f17a;--line:#dbe7e3;--bg:#f4f8f6;--danger:#b53b32;--dangerbg:#fff0ee;--warn:#a5650b;--warnbg:#fff5e6;--white:#fff;--shadow:0 18px 50px rgba(24,68,61,.10)}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:grid;grid-template-columns:245px 1fr}.app-sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:24px 18px;background:#0b3f39;color:#d8ece7}.app-brand,.auth-brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:900}.app-brand b,.auth-brand b{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--accent);color:#123c36}.app-sidebar nav{display:grid;gap:8px;margin-top:36px}.app-sidebar nav a{display:flex;align-items:center;gap:13px;padding:12px 14px;border-radius:12px;color:#c8dfda;font-size:14px;font-weight:700}.app-sidebar nav a:hover,.app-sidebar nav a.active{background:rgba(255,255,255,.1);color:white}.app-sidebar nav span{width:24px;text-align:center}.sidebar-footer{margin-top:auto;padding:16px 10px 0;border-top:1px solid rgba(255,255,255,.15);display:grid;gap:5px}.sidebar-footer small{color:#9fc1ba}.sidebar-footer form{margin-top:8px}.sidebar-footer button{padding:0;border:0;background:none;color:#c8dfda}.app-main{min-width:0;padding:0 34px 50px}.app-top{height:92px;display:flex;align-items:center;justify-content:space-between;gap:20px}.app-top small,.panel-head small{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:800}.app-top h1{font-size:25px;margin:5px 0 0}.mobile-nav{display:none}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border:0;border-radius:12px;background:var(--brand);color:white;font-weight:800;box-shadow:0 10px 24px rgba(15,91,83,.15)}.primary:hover{background:var(--brand2)}.primary.small,.secondary.small{min-height:40px;padding:0 15px;font-size:13px}.secondary{background:white;color:var(--brand);border:1px solid var(--line);box-shadow:none}.panel{min-width:0;padding:24px;border:1px solid var(--line);border-radius:20px;background:white;box-shadow:0 8px 28px rgba(29,70,64,.04)}.panel+.panel{margin-top:18px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.panel-head.row{margin-bottom:22px}.panel-head h2{font-size:18px;margin:4px 0 0}.panel-head>a{font-size:13px;color:var(--brand);font-weight:800}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.metric-grid article{min-height:145px;padding:22px;border:1px solid var(--line);border-radius:18px;background:white}.metric-grid small{color:var(--muted)}.metric-grid strong{display:block;margin-top:15px;font-size:34px}.metric-grid strong em{font-size:16px;color:var(--muted);font-style:normal}.metric-grid article>span{display:block;margin-top:8px;color:var(--muted);font-size:12px}.progress{height:7px;margin-top:20px;border-radius:999px;background:#e8efed;overflow:hidden}.progress i{display:block;height:100%;background:var(--brand);border-radius:inherit}.two-col,.document-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.document-grid{grid-template-columns:.7fr 1.3fr}.two-col>.panel,.document-grid>.panel{margin-top:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:13px 10px;border-bottom:1px solid #edf2f0;vertical-align:top}th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em}td small,td a small{display:block;margin-top:4px;color:var(--muted)}.badge,.badge-button{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;border:0;font-size:11px;font-weight:800}.badge.ok,.badge-button.ok{color:var(--brand);background:var(--soft)}.badge.warn,.badge-button.warn{color:var(--warn);background:var(--warnbg)}.badge.danger{color:var(--danger);background:var(--dangerbg)}.task-list{list-style:none;margin:0;padding:0}.task-list li{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #edf2f0}.task-list li>div{flex:1}.task-list strong{display:block;font-size:13px}.task-list small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.task-dot{width:10px;height:10px;border-radius:50%;background:#e4aa50}.task-dot.done{background:#65ad62}.quick-actions{margin-top:18px}.action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.action-grid a{display:grid;gap:7px;padding:18px;border-radius:15px;background:var(--bg);border:1px solid transparent}.action-grid a:hover{border-color:#bcd8d1;background:var(--soft)}.action-grid b{font-size:24px;color:var(--brand)}.action-grid span{font-weight:800}.action-grid small{color:var(--muted)}.form-panel label,.stack label,.form-grid label{display:grid;gap:7px;color:#334e49;font-size:13px;font-weight:750}.stack{display:grid;gap:16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .wide{grid-column:1/-1}input,select,textarea{width:100%;border:1px solid #cfded9;border-radius:11px;background:white;color:var(--ink);padding:12px 13px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(15,91,83,.10)}textarea{resize:vertical}.inline-fields{display:grid;grid-template-columns:1fr .7fr;gap:12px}.upload-box{min-height:185px;place-items:center;text-align:center;border:2px dashed #b8cec8;border-radius:16px;background:#f8fbfa;padding:24px}.upload-box input{max-width:320px}.upload-box b{font-size:16px}.upload-box span{color:var(--muted);font-weight:500}.ai-note{display:flex;gap:13px;align-items:flex-start;padding:14px;border-radius:12px;background:var(--soft);font-size:13px}.ai-note span{color:var(--muted)}.confirm-check{display:flex!important;grid-template-columns:20px 1fr!important;align-items:start}.confirm-check input{width:18px;height:18px}.file-meta,.settings-list{margin:0;display:grid;gap:0}.file-meta div,.settings-list div{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #edf2f0}.file-meta dt,.settings-list dt{color:var(--muted)}.file-meta dd,.settings-list dd{margin:0;font-weight:800}.search,.date-filter{display:flex;gap:8px;align-items:end}.search input{min-width:280px}.search button,.date-filter button{min-height:42px;border:0;border-radius:10px;padding:0 14px;background:var(--brand);color:white;font-weight:800}.alert{padding:14px 17px;margin-bottom:18px;border-radius:13px;font-size:13px}.alert.success{color:var(--brand2);background:#e5f6ea;border:1px solid #bee2c8}.alert.danger{color:var(--danger);background:var(--dangerbg);border:1px solid #f0c9c4}.empty{padding:30px!important;text-align:center;color:var(--muted)}.report-toolbar{display:flex;align-items:end;justify-content:space-between;margin-bottom:18px}.report-toolbar>div{display:flex;gap:8px}.report-sheet{padding:42px;background:white;border:1px solid var(--line);border-radius:20px}.report-sheet header{display:flex;justify-content:space-between;border-bottom:2px solid var(--ink);padding-bottom:20px}.report-sheet header b{color:var(--brand)}.report-sheet header h2{font-size:28px;margin:7px 0}.report-sheet header p{margin:0;color:var(--muted)}.report-sheet header>span{font-size:12px;color:var(--muted)}.report-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:26px 0}.report-metrics article{padding:15px;border-radius:12px;background:var(--bg)}.report-metrics strong{display:block;font-size:24px}.report-metrics span{color:var(--muted);font-size:12px}.report-sheet h3{margin-top:34px}.report-sheet footer{margin-top:34px;padding-top:18px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.site-list{list-style:none;padding:0;margin:20px 0 0}.site-list li{display:flex;justify-content:space-between;padding:13px 0;border-top:1px solid #edf2f0}.site-list span{color:var(--muted);font-size:12px}.auth-body{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(circle at 80% 10%,#dff4ea,transparent 35%),#f5f9f7}.auth-card{width:min(100%,460px);padding:38px;border:1px solid var(--line);border-radius:24px;background:white;box-shadow:var(--shadow)}.auth-card h1{font-size:30px;margin:32px 0 8px}.auth-card>p{color:var(--muted);line-height:1.55}.auth-card .stack{margin-top:25px}.auth-bottom,.legal-note{text-align:center;font-size:13px}.auth-bottom a,.legal-note a{color:var(--brand);font-weight:800}.demo-credentials{display:grid;gap:4px;margin-top:20px;padding:14px;border-radius:12px;background:var(--bg);font-size:12px}.demo-credentials span{font-family:ui-monospace,monospace}.legal-note{font-size:11px!important}.auth-card>a.primary{margin-top:20px}.auth-brand{color:var(--ink)}@media(max-width:1050px){.metric-grid{grid-template-columns:repeat(2,1fr)}.two-col,.document-grid{grid-template-columns:1fr}.action-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.app-shell{display:block}.app-sidebar{position:fixed;left:-270px;z-index:20;width:245px;transition:.2s}.nav-open .app-sidebar{left:0}.app-main{padding:0 16px 35px}.app-top{height:80px}.app-top>div{flex:1}.app-top h1{font-size:20px}.mobile-nav{display:block;border:0;background:none;font-size:22px}.metric-grid{grid-template-columns:1fr}.action-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.panel{padding:18px}.search{width:100%}.search input{min-width:0}.panel-head.row{align-items:stretch;flex-direction:column}.report-toolbar{align-items:stretch;flex-direction:column;gap:13px}.date-filter{display:grid;grid-template-columns:1fr 1fr}.report-sheet{padding:20px}.report-metrics{grid-template-columns:1fr 1fr}.report-sheet header{flex-direction:column;gap:12px}.auth-card{padding:26px}.app-top>.primary{display:none}}@media print{.app-sidebar,.app-top,.no-print{display:none!important}.app-shell{display:block}.app-main{padding:0}.report-sheet{border:0;border-radius:0;padding:0}.report-sheet table{font-size:9px}.report-sheet h3{page-break-after:avoid}body{background:white}}
.item-add-form{display:grid;grid-template-columns:1.4fr .8fr .5fr .8fr 1fr 1.2fr auto;gap:8px;margin-top:18px;padding-top:18px;border-top:1px solid #edf2f0}.item-add-form input{min-width:0;padding:10px;font-size:12px}@media(max-width:1100px){.item-add-form{grid-template-columns:1fr 1fr 1fr}.item-add-form button{grid-column:1/-1}}@media(max-width:620px){.item-add-form{grid-template-columns:1fr}}

/* SafeCheck launch modules: agents and billing */
.status-row{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.agent-findings{display:grid;gap:12px}.agent-finding{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:16px;border:1px solid var(--line,#dce6e3);border-radius:14px;background:#fff}.agent-finding.critical{border-left:5px solid #b42318}.agent-finding.warning{border-left:5px solid #d97706}.agent-finding.info{border-left:5px solid #19725f}.agent-finding h3{margin:8px 0 6px}.agent-finding p{margin:0 0 8px;line-height:1.55}.agent-chat{display:flex;flex-direction:column;gap:10px;max-height:380px;overflow:auto;padding:4px;margin-bottom:14px}.chat-message{padding:12px 14px;border-radius:14px;background:#eef5f3}.chat-message.user{margin-left:12%;background:#173f3a;color:#fff}.chat-message p{margin:5px 0 0;line-height:1.5}.chat-form{display:grid;gap:10px}.chat-form textarea{width:100%;resize:vertical}.legal-note{font-size:13px;line-height:1.5;color:#5b6b67}.settings-list dd{word-break:break-word}@media(max-width:760px){.agent-finding{flex-direction:column}.chat-message.user{margin-left:0}}

.retry-row{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:14px 16px;border:1px solid var(--line);border-radius:13px;background:white}.retry-row form{margin:0}.retry-row small{color:var(--muted)}

/* SafeCheck 0.3.9 document validation */
.validation-panel{margin-bottom:18px}.validation-panel.ok{border-left:5px solid #19725f}.validation-panel.warn{border-left:5px solid #d97706}.validation-panel.danger{border-left:5px solid #b42318}.validation-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}.validation-list li{padding:10px 12px;border-radius:10px;background:#f7faf9;font-size:13px;line-height:1.45}.validation-list li.blocking{background:#fff0ee;color:#8f2017}.validation-list li.warning{background:#fff8e8;color:#7b4d09}.validation-list li b{margin-right:8px}.validation-ok{margin:0;color:#37635b}.items-table.editable{min-width:1380px}.items-table .item-input{min-width:100px;padding:8px 9px;border-radius:8px;font-size:12px}.items-table .wide-input{min-width:260px}.items-table .field-blocking{border:2px solid #b42318;background:#fff0ee}.items-table .field-warning{border:2px solid #d97706;background:#fff8e8}.qty-unit{display:grid;grid-template-columns:1.2fr .8fr;gap:6px;min-width:150px}.delete-cell{display:flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap}.delete-cell input{width:16px;height:16px}.item-save{margin-top:14px}.edit-hint{font-size:11px;color:var(--muted)}.ai-totals{display:flex;gap:16px;flex-wrap:wrap;padding:11px 13px;border-radius:10px;background:#f4f8f7;color:#4d625d;font-size:12px}.warning-ack{padding:12px;border:1px solid #e6c271;border-radius:11px;background:#fff8e8}.item-add-form{grid-template-columns:repeat(5,minmax(120px,1fr))!important;align-items:end}@media(max-width:900px){.item-add-form{grid-template-columns:1fr 1fr!important}.items-table.editable{min-width:1200px}}

/* SafeCheck 0.4.0 hardening: print-safe inspection report */
@page{size:A4 portrait;margin:12mm}
@media print{
  html,body{width:210mm;background:#fff!important}
  .report-sheet{width:100%;max-width:none;box-shadow:none!important}
  .report-sheet header{break-inside:avoid;page-break-inside:avoid}
  .report-sheet table{width:100%;table-layout:fixed;border-collapse:collapse}
  .report-sheet thead{display:table-header-group}
  .report-sheet tr{break-inside:avoid;page-break-inside:avoid}
  .report-sheet th,.report-sheet td{overflow-wrap:anywhere;word-break:normal}
  .report-metrics{grid-template-columns:repeat(3,1fr);break-inside:avoid;page-break-inside:avoid}
  .report-sheet footer{break-inside:avoid;page-break-inside:avoid}
}

.report-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px}
.report-section-head h3{margin:0}
.report-subfilter{display:flex;gap:8px;flex-wrap:wrap}
.report-subfilter .active-filter{font-weight:700;box-shadow:inset 0 0 0 2px currentColor}

/* SafeCheck 0.4.0-hotfix14 document compliance states */
.badge.critical{color:var(--danger);background:var(--dangerbg)}
.badge.info{color:var(--brand);background:var(--soft)}
.alert.critical{color:var(--danger);background:var(--dangerbg);border:1px solid #f0c9c4}
.alert.info{color:var(--brand2);background:var(--soft);border:1px solid #cfe6de}
.muted{color:var(--muted);font-weight:500}

/* SafeCheck 0.4.0-hotfix26: dedicated inspection export workspace */
.inspection-hero{margin-bottom:18px}.inspection-hero>p{margin:-6px 0 18px;line-height:1.55}.inspection-filter{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr;gap:12px;align-items:end}.inspection-filter label{display:grid;gap:7px;color:#334e49;font-size:13px;font-weight:750}.inspection-filter .inspection-rec{grid-column:1/4;align-self:center;margin-top:3px}.inspection-filter>button{grid-column:4;grid-row:2}.inspection-presets{display:flex;gap:8px;margin-top:14px}.inspection-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.inspection-grid>.panel{margin-top:0}.inspection-card{display:flex;flex-direction:column;min-height:315px}.inspection-card>small{margin-top:8px;color:var(--muted);font-size:11px;font-weight:850;letter-spacing:.08em}.inspection-card h2{margin:7px 0 4px;font-size:20px}.inspection-card p{min-height:48px;color:var(--muted);line-height:1.55}.inspection-card>.primary{margin-top:auto;align-self:flex-start}.inspection-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:var(--soft);color:var(--brand);font-size:23px;font-weight:900}.inspection-stats{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 22px}.inspection-stats span{padding:9px 11px;border-radius:10px;background:var(--bg);color:var(--muted);font-size:12px}.inspection-stats b{color:var(--ink);font-size:15px}.inspection-readiness{margin-top:18px}.inspection-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:12px 0 18px}.inspection-metrics article{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}.inspection-metrics strong{display:block;font-size:24px}.inspection-metrics span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.inspection-warnings{margin:0 0 16px;padding:0;list-style:none;display:grid;gap:8px}.inspection-warnings li{padding:11px 13px;border-radius:10px;background:var(--warnbg);color:var(--warn);font-size:13px}.inspection-warnings .inspection-ok{background:var(--soft);color:var(--brand)}.inspection-full{margin-top:8px}.inspection-disclaimer{display:block;margin-top:14px;color:var(--muted);line-height:1.45}.muted{color:var(--muted)}
@media(max-width:1050px){.inspection-filter{grid-template-columns:1fr 1fr}.inspection-filter .inspection-rec{grid-column:1/-1}.inspection-filter>button{grid-column:auto;grid-row:auto}.inspection-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.inspection-filter,.inspection-grid{grid-template-columns:1fr}.inspection-filter .inspection-rec{grid-column:auto}.inspection-metrics{grid-template-columns:1fr 1fr}.inspection-card{min-height:0}.inspection-card p{min-height:0}}


/* Bulgarian / European date picker: DD.MM.YYYY, Monday-first. */
.sc-date-field{display:flex;align-items:center;gap:6px;width:100%;}
.sc-date-field>input{flex:1;min-width:0;}
.sc-date-button{width:42px;min-width:42px;height:42px;border:1px solid #cbdad5;border-radius:10px;background:#fff;color:#173f3a;font-size:19px;cursor:pointer;}
.sc-date-button:hover{background:#f2f8f6;}
.sc-calendar{position:fixed;z-index:10000;background:#fff;border:1px solid #cbdad5;border-radius:14px;box-shadow:0 16px 45px rgba(16,45,41,.22);padding:10px;box-sizing:border-box;}
.sc-calendar-head{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;text-align:center;gap:6px;margin-bottom:8px;}
.sc-calendar-head strong{font-size:15px;color:#173f3a;}
.sc-cal-nav{border:0;background:#f2f8f6;border-radius:9px;height:34px;font-size:24px;line-height:1;color:#173f3a;cursor:pointer;}
.sc-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;}
.sc-cal-week{text-align:center;font-size:11px;font-weight:700;color:#69817b;padding:5px 0;}
.sc-cal-day,.sc-cal-blank{height:34px;display:flex;align-items:center;justify-content:center;}
.sc-cal-day{border:0;background:transparent;border-radius:8px;cursor:pointer;color:#183c37;font:inherit;}
.sc-cal-day:hover{background:#eef7f4;}
.sc-cal-day.today{box-shadow:inset 0 0 0 1px #7fa69c;}
.sc-cal-day.selected{background:#173f3a;color:#fff;font-weight:700;}
.sc-calendar-foot{display:flex;justify-content:space-between;gap:8px;margin-top:9px;padding-top:8px;border-top:1px solid #edf2f0;}


/* SafeCheck 0.4.0-hotfix33: locale-independent 24-hour equipment time picker. */
.sc-time-field{display:flex;align-items:center;gap:6px;width:100%;}
.sc-time-field>input{flex:1;min-width:0;cursor:pointer;background:#fff;}
.sc-time-button{width:42px;min-width:42px;height:42px;border:1px solid #cbdad5;border-radius:10px;background:#fff;color:#173f3a;font-size:23px;line-height:1;cursor:pointer;display:grid;place-items:center;}
.sc-time-button:hover{background:#f2f8f6;}
.sc-time-menu{position:fixed;z-index:10020;background:#fff;border:1px solid #cbdad5;border-radius:14px;box-shadow:0 16px 45px rgba(16,45,41,.22);padding:13px;box-sizing:border-box;}
.sc-time-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#173f3a;}
.sc-time-head strong{font-size:16px;}
.sc-time-close{border:0;background:#f2f8f6;color:#173f3a;width:32px;height:32px;border-radius:9px;font-size:22px;line-height:1;cursor:pointer;}
.sc-time-format{margin:3px 0 12px;color:#69817b;font-size:12px;font-weight:700;}
.sc-time-controls{display:grid;grid-template-columns:1fr 24px 1fr;gap:8px;align-items:end;}
.sc-time-controls label{display:grid;gap:6px;margin:0;color:#334e49;font-size:12px;font-weight:750;}
.sc-time-controls select{width:100%;min-height:44px;padding:8px 10px;border:1px solid #cbdad5;border-radius:10px;background:#fff;color:#173f3a;font-size:18px;font-weight:750;}
.sc-time-colon{display:grid;place-items:center;height:44px;font-size:24px;font-weight:850;color:#173f3a;}
.sc-time-preview{text-align:center;margin:13px 0 8px;font-size:27px;font-weight:850;letter-spacing:.04em;color:#173f3a;}
.sc-time-foot{display:flex;justify-content:space-between;gap:9px;margin-top:8px;padding-top:10px;border-top:1px solid #edf2f0;}
.sc-time-foot button{flex:1;}

/* SafeCheck 0.4.0-hotfix41: fast, device-specific temperature check UX. */
.temperature-breadcrumb{display:flex;align-items:center;gap:8px;margin:2px 0 16px;color:var(--muted);font-size:14px}.temperature-breadcrumb a{color:var(--brand);font-weight:800}.temperature-device-head{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;margin-bottom:18px;padding:8px 4px}.temperature-device-head h2{margin:0 0 5px;font-size:28px}.temperature-device-head p{margin:0 0 10px;color:var(--muted)}.temperature-device-icon{width:72px;height:72px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#f7fbfa;color:var(--brand);font-size:34px;font-weight:900}.temperature-meta{display:grid;grid-template-columns:1fr 1fr;min-width:300px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.temperature-meta>div{padding:14px 16px}.temperature-meta>div+div{border-left:1px solid var(--line)}.temperature-meta small{display:block;color:var(--muted);margin-bottom:4px}.temperature-meta b{font-size:17px}.temperature-check-layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(300px,.9fr);gap:18px;align-items:start}.temperature-main-panel,.temperature-history-panel{margin-top:0}.temperature-quick-card{display:grid;gap:18px}.temperature-norm-banner{display:grid;grid-template-columns:auto auto 1fr;gap:16px;align-items:center;padding:18px;border:1px solid #cce4dc;border-radius:14px;background:var(--soft)}.temperature-norm-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:50%;border:2px solid #2f8b72;color:var(--brand);font-size:17px;font-weight:900}.temperature-norm-banner small{display:block;color:var(--muted);font-weight:750}.temperature-norm-banner strong{display:block;margin-top:3px;color:var(--brand);font-size:25px}.temperature-norm-banner p{margin:0;color:#34564f;line-height:1.5}.temperature-choice-fieldset{border:0;padding:0;margin:0}.temperature-choice-fieldset legend{margin-bottom:12px;font-size:16px;font-weight:850;color:var(--ink)}.temperature-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:10px}.temperature-chip{margin:0;cursor:pointer}.temperature-chip input{position:absolute;opacity:0;pointer-events:none}.temperature-chip span{min-height:58px;display:grid;place-items:center;border:1.5px solid #6caf96;border-radius:11px;background:#fff;color:#17463e;font-size:21px;font-weight:850;transition:.12s ease}.temperature-chip input:focus-visible+span{outline:3px solid rgba(21,112,89,.18);outline-offset:2px}.temperature-chip input:checked+span{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 7px 18px rgba(20,96,78,.18)}.temperature-chip-other{display:block;margin-top:10px;max-width:220px}.temperature-chip-other span{min-height:44px;font-size:14px}.temperature-other-panel{padding:16px;border:1px dashed #b6cbc4;border-radius:12px;background:#fbfdfc}.temperature-result{display:flex;flex-direction:column;gap:4px;padding:17px 18px;border-radius:13px;border:1px solid transparent}.temperature-result b{font-size:18px}.temperature-result span{font-size:13px}.temperature-result.ok{background:var(--soft);border-color:#cce4dc;color:var(--brand)}.temperature-result.danger{background:var(--dangerbg);border-color:#efc1bb;color:var(--danger)}.temperature-result.info{background:#eef6fb;border-color:#cfe0ed;color:#31566f}.temperature-submit{min-height:58px;font-size:16px;letter-spacing:.015em}.temperature-submit:disabled{opacity:.45;cursor:not-allowed}.temperature-closed-day{border-top:1px solid var(--line);padding-top:10px}.temperature-closed-day summary{cursor:pointer;color:var(--muted);font-weight:750}.temperature-footnote{margin-top:14px;padding:13px 15px;border-radius:12px;background:#eef6fb;color:#31566f;line-height:1.5;font-size:13px}.temperature-history-list{display:grid;gap:10px;margin:4px 0 16px}.temperature-history-item{display:grid;grid-template-columns:1fr auto;gap:8px 12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fff}.temperature-history-item>div{display:flex;align-items:center;gap:8px}.temperature-history-item small{color:var(--muted)}.temperature-history-item strong{grid-column:2;font-size:22px}.temperature-history-item .badge{grid-column:1;justify-self:start}.temperature-history-check{width:23px;height:23px;display:grid;place-items:center;border:1px solid #6caf96;border-radius:50%;color:var(--brand);font-weight:900}.temperature-history-panel>.secondary{display:block;text-align:center}.temperature-main-panel .alert.info{margin:0}
@media(max-width:1050px){.temperature-device-head{grid-template-columns:auto 1fr}.temperature-meta{grid-column:1/-1;min-width:0}.temperature-check-layout{grid-template-columns:1fr}.temperature-history-panel{order:2}}@media(max-width:680px){.temperature-device-head{grid-template-columns:1fr}.temperature-device-icon{display:none}.temperature-device-head h2{font-size:23px}.temperature-meta{grid-template-columns:1fr 1fr}.temperature-norm-banner{grid-template-columns:auto 1fr}.temperature-norm-banner p{grid-column:1/-1}.temperature-choice-grid{grid-template-columns:repeat(3,1fr)}.temperature-chip span{min-height:52px;font-size:18px}}

/* hotfix42 — task-first Control Engine */
.control-task-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;background:linear-gradient(135deg,#f7fbfa,#eef7f4)}
.control-task-hero h2{margin:.2rem 0 .35rem}.control-task-hero p{margin:0;max-width:780px;color:#52645f}
.control-task-count{min-width:110px;text-align:center;padding:14px 18px;border-radius:16px;background:#fff;border:1px solid #dbe7e3}
.control-task-count strong{display:block;font-size:2rem;line-height:1;color:#173f3a}.control-task-count span{font-size:.78rem;color:#6e7f7a}
.control-task-list{display:grid;gap:12px}.control-task-card{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(230px,auto);align-items:center;gap:16px;padding:16px;border:1px solid #dbe7e3;border-radius:16px;background:#fff}
.control-task-main small{display:block;color:#6d7f79;text-transform:uppercase;letter-spacing:.04em}.control-task-main h3{margin:.15rem 0 .25rem;font-size:1.06rem}.control-task-main span{font-size:.88rem;color:#687973}
.control-task-action{display:flex;justify-content:flex-end}.control-one-click{display:flex;gap:8px;align-items:center;margin:0}.control-one-click .primary{white-space:nowrap}
.control-quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.control-quick-action{display:flex;flex-direction:column;gap:4px;text-decoration:none;padding:16px;border:1px solid #dbe7e3;border-radius:14px;background:#fbfdfc;color:inherit}.control-quick-action:hover{border-color:#8fb7aa;background:#f4faf8}.control-quick-action b{color:#173f3a}.control-quick-action span,.control-quick-action small{color:#6b7b76}
.control-admin-details>summary{cursor:pointer;font-weight:700;color:#173f3a}.control-admin-details[open]>summary{margin-bottom:16px}
@media(max-width:800px){.control-task-hero{align-items:flex-start}.control-task-card{grid-template-columns:1fr}.control-task-card>.badge{justify-self:start}.control-task-action{justify-content:flex-start}.control-one-click{align-items:stretch;flex-direction:column;width:100%}.control-one-click .primary,.control-one-click .secondary{width:100%;text-align:center}.control-task-count{min-width:90px}}
.control-gap-list{display:grid;gap:12px}.control-gap-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,460px);gap:18px;align-items:center;padding:16px;border:1px solid #ead6a8;border-radius:14px;background:#fffaf0}.control-gap-card h3{margin:.2rem 0}.control-gap-card small{color:#8b6418}.control-gap-card span{color:#6c756f;font-size:.88rem}.control-gap-review{display:grid;grid-template-columns:1fr auto;gap:8px;margin:0}.control-gap-review input{min-width:0}.control-gap-review button{white-space:nowrap}@media(max-width:800px){.control-gap-card{grid-template-columns:1fr}.control-gap-review{grid-template-columns:1fr}.control-gap-review button{width:100%}}

/* hotfix43: task-focus grouping and compact collapsed queues */
.control-collapsed-section{padding-top:14px;padding-bottom:14px}
.control-collapsed-section details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}
.control-collapsed-section details>summary::-webkit-details-marker{display:none}
.control-collapsed-section details>summary:before{content:'›';font-size:1.4rem;line-height:1;transform:rotate(0deg);transition:transform .15s ease;color:#56736a}
.control-collapsed-section details[open]>summary:before{transform:rotate(90deg)}
.control-details-list{margin-top:14px}
.control-all-clear{padding:18px;border:1px solid #cfe6dd;border-radius:14px;background:#f3faf7;color:#17694f;font-weight:700}
.control-quick-action b{font-size:1.02rem}

/* SafeCheck hotfix49: one-click fryer-oil workflow. */
.fryer-device-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;padding:8px 4px}.fryer-device-head small{display:block;color:var(--muted);font-weight:850;letter-spacing:.05em}.fryer-device-head h2{margin:4px 0 5px;font-size:28px}.fryer-device-head p{margin:0;color:var(--muted)}.fryer-check-layout{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(300px,.9fr);gap:18px;align-items:start}.fryer-main-panel,.fryer-history-panel{margin-top:0}.fryer-normal-card{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;padding:22px;border:1px solid #cce4dc;border-radius:16px;background:var(--soft)}.fryer-normal-card small{color:var(--muted);font-weight:850}.fryer-normal-card h3{margin:4px 0 8px;font-size:22px}.fryer-normal-card p{margin:0;color:#34564f;line-height:1.5}.fryer-normal-button{min-width:210px;min-height:58px;font-size:18px}.fryer-problem-details,.fryer-service-details{margin-top:14px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.fryer-problem-details>summary,.fryer-service-details>summary{cursor:pointer;list-style:none;padding:16px 18px;font-weight:850;color:var(--brand)}.fryer-problem-details>summary::-webkit-details-marker,.fryer-service-details>summary::-webkit-details-marker{display:none}.fryer-problem-details[open]>summary,.fryer-service-details[open]>summary{border-bottom:1px solid var(--line);background:#fbfdfc}.fryer-exception-form,.fryer-service-details form{padding:18px}.fryer-exception-form fieldset{border:0;padding:0;margin:0}.fryer-exception-form legend{font-weight:850;margin-bottom:10px}.fryer-problem-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:9px}.fryer-problem-chip{margin:0;cursor:pointer}.fryer-problem-chip input{position:absolute;opacity:0;pointer-events:none}.fryer-problem-chip span{min-height:44px;display:grid;place-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:800;text-align:center}.fryer-problem-chip input:checked+span{background:var(--dangerbg);border-color:#efc1bb;color:var(--danger)}.fryer-history-list{display:grid;gap:10px}.fryer-history-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fff}.fryer-history-item div{display:grid;gap:4px}.fryer-history-item small{color:var(--muted)}.fryer-history-item b{font-size:15px}@media(max-width:1050px){.fryer-check-layout{grid-template-columns:1fr}.fryer-history-panel{order:2}}@media(max-width:680px){.fryer-device-head{align-items:flex-start;flex-direction:column}.fryer-device-head h2{font-size:23px}.fryer-normal-card{grid-template-columns:1fr}.fryer-normal-button{width:100%;min-width:0}.fryer-problem-grid{grid-template-columns:repeat(2,1fr)}}


/* SafeCheck hotfix50: progressive fryer exception disclosure and overflow guard. */
.fryer-check-layout,.fryer-check-layout>*{min-width:0;max-width:100%}.fryer-main-panel,.fryer-history-panel,.fryer-exception-form,.fryer-action-step{min-width:0;max-width:100%}.fryer-exception-form input,.fryer-exception-form select,.fryer-exception-form textarea{min-width:0;max-width:100%}.fryer-action-step{display:grid;gap:16px}.fryer-note-details{border:1px dashed var(--line);border-radius:12px;background:#fbfdfc}.fryer-note-details>summary{cursor:pointer;list-style:none;padding:12px 14px;color:var(--muted);font-weight:800}.fryer-note-details>summary::-webkit-details-marker{display:none}.fryer-note-details[open]>summary{border-bottom:1px dashed var(--line)}.fryer-note-details>label{padding:14px}.fryer-exception-form [hidden]{display:none!important}.fryer-check-layout .inline-fields{min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,.7fr)}
@media(max-width:680px){.fryer-exception-form .inline-fields{grid-template-columns:1fr}}

/* SafeCheck hotfix51: final fryer validation and horizontal overflow containment. */
.fryer-page{width:100%;min-width:0;max-width:100%;overflow-x:clip}.fryer-page *{min-width:0}.fryer-exception-submit:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;filter:saturate(.6)}

/* SafeCheck hotfix52: one-click hygiene/cleaning with exception-only zones. */
.cleaning-page{width:100%;min-width:0;max-width:100%;overflow-x:clip}.cleaning-page *{min-width:0}.cleaning-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;padding:8px 4px}.cleaning-head small{display:block;color:var(--muted);font-weight:850;letter-spacing:.05em}.cleaning-head h2{margin:4px 0 5px;font-size:28px}.cleaning-head p{margin:0;color:var(--muted)}.cleaning-layout{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(300px,.9fr);gap:18px;align-items:start}.cleaning-main-panel,.cleaning-history-panel{margin-top:0}.cleaning-normal-card{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;padding:22px;border:1px solid #cce4dc;border-radius:16px;background:var(--soft)}.cleaning-normal-card small{color:var(--muted);font-weight:850}.cleaning-normal-card h3{margin:4px 0 8px;font-size:22px}.cleaning-normal-card p{margin:0;color:#34564f;line-height:1.5}.cleaning-normal-button{min-width:310px;min-height:58px;font-size:16px}.cleaning-problem-details{margin-top:14px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.cleaning-problem-details>summary{cursor:pointer;list-style:none;padding:16px 18px;font-weight:850;color:var(--brand)}.cleaning-problem-details>summary::-webkit-details-marker{display:none}.cleaning-problem-details[open]>summary{border-bottom:1px solid var(--line);background:#fbfdfc}.cleaning-exception-form{padding:18px}.cleaning-exception-form fieldset{border:0;padding:0;margin:0}.cleaning-exception-form legend{font-weight:850;margin-bottom:10px}.cleaning-zone-grid,.cleaning-problem-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px}.cleaning-zone-chip,.cleaning-problem-chip{margin:0;cursor:pointer}.cleaning-zone-chip input,.cleaning-problem-chip input{position:absolute;opacity:0;pointer-events:none}.cleaning-zone-chip span,.cleaning-problem-chip span{min-height:44px;display:grid;place-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:800;text-align:center}.cleaning-zone-chip input:checked+span{background:#e9f7f1;border-color:#9ccfbd;color:var(--brand)}.cleaning-problem-chip input:checked+span{background:var(--dangerbg);border-color:#efc1bb;color:var(--danger)}.cleaning-action-step{display:grid;gap:16px}.cleaning-note-details{border:1px dashed var(--line);border-radius:12px;background:#fbfdfc}.cleaning-note-details>summary{cursor:pointer;list-style:none;padding:12px 14px;color:var(--muted);font-weight:800}.cleaning-note-details>summary::-webkit-details-marker{display:none}.cleaning-note-details[open]>summary{border-bottom:1px dashed var(--line)}.cleaning-note-details>label{padding:14px}.cleaning-exception-form [hidden]{display:none!important}.cleaning-exception-submit:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;filter:saturate(.6)}.cleaning-history-list{display:grid;gap:10px}.cleaning-history-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fff}.cleaning-history-item div{display:grid;gap:4px}.cleaning-history-item small{color:var(--muted)}.cleaning-history-item b{font-size:15px}@media(max-width:1050px){.cleaning-layout{grid-template-columns:1fr}.cleaning-history-panel{order:2}}@media(max-width:680px){.cleaning-head{align-items:flex-start;flex-direction:column}.cleaning-head h2{font-size:23px}.cleaning-normal-card{grid-template-columns:1fr}.cleaning-normal-button{width:100%;min-width:0}.cleaning-zone-grid,.cleaning-problem-grid{grid-template-columns:repeat(2,1fr)}}


/* SafeCheck hotfix54: one-click personal hygiene + health status; person details only on exception. */
.personal-hygiene-page{width:100%;min-width:0;max-width:100%;overflow-x:clip}.personal-hygiene-page *{min-width:0}.personal-hygiene-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;padding:8px 4px}.personal-hygiene-head small{display:block;color:var(--muted);font-weight:850;letter-spacing:.05em}.personal-hygiene-head h2{margin:4px 0 5px;font-size:28px}.personal-hygiene-head p{margin:0;color:var(--muted)}.personal-hygiene-layout{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(300px,.9fr);gap:18px;align-items:start}.personal-hygiene-main-panel,.personal-hygiene-history-panel{margin-top:0}.personal-hygiene-normal-card{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;padding:22px;border:1px solid #cce4dc;border-radius:16px;background:var(--soft)}.personal-hygiene-normal-card small{color:var(--muted);font-weight:850}.personal-hygiene-normal-card h3{margin:4px 0 8px;font-size:22px}.personal-hygiene-normal-card p{margin:0;color:#34564f;line-height:1.5}.personal-hygiene-normal-button{min-width:280px;min-height:58px;font-size:16px}.personal-hygiene-problem-details{margin-top:14px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.personal-hygiene-problem-details>summary{cursor:pointer;list-style:none;padding:16px 18px;font-weight:850;color:var(--brand)}.personal-hygiene-problem-details>summary::-webkit-details-marker{display:none}.personal-hygiene-problem-details[open]>summary{border-bottom:1px solid var(--line);background:#fbfdfc}.personal-hygiene-exception-form{padding:18px}.personal-hygiene-exception-form fieldset{border:0;padding:0;margin:0}.personal-hygiene-exception-form legend{font-weight:850;margin-bottom:10px}.personal-hygiene-problem-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:9px}.personal-hygiene-problem-chip{margin:0;cursor:pointer}.personal-hygiene-problem-chip input{position:absolute;opacity:0;pointer-events:none}.personal-hygiene-problem-chip span{min-height:44px;display:grid;place-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:800;text-align:center}.personal-hygiene-problem-chip input:checked+span{background:var(--dangerbg);border-color:#efc1bb;color:var(--danger)}.personal-hygiene-action-step{display:grid;gap:16px}.personal-hygiene-note-details{border:1px dashed var(--line);border-radius:12px;background:#fbfdfc}.personal-hygiene-note-details>summary{cursor:pointer;list-style:none;padding:12px 14px;color:var(--muted);font-weight:800}.personal-hygiene-note-details>summary::-webkit-details-marker{display:none}.personal-hygiene-note-details[open]>summary{border-bottom:1px dashed var(--line)}.personal-hygiene-note-details>label{padding:14px}.personal-hygiene-exception-form [hidden]{display:none!important}.personal-hygiene-exception-submit:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;filter:saturate(.6)}.personal-hygiene-history-list{display:grid;gap:10px}.personal-hygiene-history-item{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fff}.personal-hygiene-history-item div{display:grid;gap:4px}.personal-hygiene-history-item small{color:var(--muted)}.personal-hygiene-history-item b{font-size:15px}@media(max-width:1050px){.personal-hygiene-layout{grid-template-columns:1fr}.personal-hygiene-history-panel{order:2}}@media(max-width:680px){.personal-hygiene-head{align-items:flex-start;flex-direction:column}.personal-hygiene-head h2{font-size:23px}.personal-hygiene-normal-card{grid-template-columns:1fr}.personal-hygiene-normal-button{width:100%;min-width:0}.personal-hygiene-problem-grid{grid-template-columns:repeat(2,1fr)}}


/* SafeCheck hotfix55: global horizontal overflow containment. */
html,body{width:100%;max-width:100%;overflow-x:hidden}
.app-shell{width:100%;max-width:100%;grid-template-columns:245px minmax(0,1fr)}
.app-main{width:100%;max-width:100%;min-width:0;overflow-x:hidden}
.app-main>*{min-width:0;max-width:100%}
.table-wrap,.report-sheet{min-width:0;max-width:100%}
.report-sheet{overflow-x:auto}
@media(max-width:760px){.app-shell,.app-main{width:100%;max-width:100%}}


/* hotfix56: one-click cooking CCP with exception-only measured temperature/action */
.cooking-page{min-width:0}
.cooking-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:12px 4px 28px}
.cooking-head small{font-weight:800;letter-spacing:.08em;color:var(--muted)}
.cooking-head h2{margin:8px 0 6px;font-size:30px}
.cooking-head p{margin:0;color:var(--muted)}
.cooking-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,390px);gap:20px;align-items:start}
.cooking-main-panel,.cooking-history-panel{min-width:0}
.cooking-normal-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:24px;border:1px solid #c9e2d8;border-radius:18px;background:#eef9f4}
.cooking-normal-card small{font-weight:800;color:var(--muted)}
.cooking-normal-card h3{font-size:24px;margin:8px 0 8px}
.cooking-normal-card p{max-width:720px;margin:8px 0 0;color:var(--muted);line-height:1.55}
.cooking-target{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:7px 11px;border-radius:999px;background:#fff;border:1px solid #c9e2d8}
.cooking-normal-button{min-width:230px;min-height:62px;font-size:18px}
.cooking-problem-details{margin-top:16px;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.cooking-problem-details>summary{padding:18px 20px;font-weight:800;cursor:pointer;list-style:none}
.cooking-problem-details[open]>summary{border-bottom:1px solid var(--line)}
.cooking-exception-form{padding:20px}
.cooking-result{padding:12px 14px;border-radius:12px;background:#f4f7f6;border:1px solid var(--line);color:var(--muted)}
.cooking-result.ok{background:#eef9f4;border-color:#c9e2d8;color:#0d6b59}
.cooking-result.danger{background:#fff2ef;border-color:#f2c8c0;color:#a33b2f}
.cooking-action-step{display:grid;gap:14px}
.cooking-note-details{border:1px dashed var(--line);border-radius:12px;padding:0 14px}
.cooking-note-details summary{padding:12px 0;font-weight:700;cursor:pointer;color:var(--muted)}
.cooking-history-list{display:grid;gap:10px}
.cooking-history-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:14px}
.cooking-history-item div{display:grid;gap:4px;min-width:0}
.cooking-history-item small{color:var(--muted)}
@media(max-width:1000px){.cooking-layout{grid-template-columns:1fr}.cooking-history-panel{order:2}}
@media(max-width:720px){.cooking-normal-card{grid-template-columns:1fr}.cooking-normal-button{width:100%;min-width:0}.cooking-head{align-items:flex-start;flex-direction:column}.cooking-head h2{font-size:26px}}

/* SafeCheck hotfix57: cooking custom action text is shown only for "Друго". */
.cooking-exception-form [hidden]{display:none!important}


/* SafeCheck hotfix58: one-click rapid cooling with exception-only details. */
.cooling-page{min-width:0}.cooling-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:12px 4px 28px}.cooling-head small{font-weight:800;letter-spacing:.08em;color:var(--muted)}.cooling-head h2{margin:8px 0 6px;font-size:30px}.cooling-head p{margin:0;color:var(--muted)}.cooling-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,390px);gap:20px;align-items:start}.cooling-main-panel,.cooling-history-panel{min-width:0}.cooling-normal-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:24px;border:1px solid #c9e2d8;border-radius:18px;background:#eef9f4}.cooling-normal-card small{font-weight:800;color:var(--muted)}.cooling-normal-card h3{font-size:24px;margin:8px 0 8px}.cooling-normal-card p{max-width:720px;margin:8px 0 0;color:var(--muted);line-height:1.55}.cooling-target{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:7px 11px;border-radius:999px;background:#fff;border:1px solid #c9e2d8}.cooling-normal-button{min-width:230px;min-height:62px;font-size:18px}.cooling-problem-details{margin-top:16px;border:1px solid var(--line);border-radius:16px;overflow:hidden}.cooling-problem-details>summary{padding:18px 20px;font-weight:800;cursor:pointer;list-style:none}.cooling-problem-details[open]>summary{border-bottom:1px solid var(--line)}.cooling-exception-form{padding:20px}.cooling-exception-form fieldset{border:0;padding:0;margin:0}.cooling-exception-form legend{font-weight:850;margin-bottom:10px}.cooling-problem-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.cooling-problem-chip{margin:0;cursor:pointer}.cooling-problem-chip input{position:absolute;opacity:0;pointer-events:none}.cooling-problem-chip span{min-height:48px;display:grid;place-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:800;text-align:center}.cooling-problem-chip input:checked+span{background:var(--dangerbg);border-color:#efc1bb;color:var(--danger)}.cooling-time-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cooling-action-step{display:grid;gap:14px}.cooling-note-details{border:1px dashed var(--line);border-radius:12px;padding:0 14px}.cooling-note-details summary{padding:12px 0;font-weight:700;cursor:pointer;color:var(--muted)}.cooling-history-list{display:grid;gap:10px}.cooling-history-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:14px}.cooling-history-item div{display:grid;gap:4px;min-width:0}.cooling-history-item small{color:var(--muted)}.cooling-exception-form [hidden]{display:none!important}.cooling-exception-submit:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;filter:saturate(.6)}@media(max-width:1000px){.cooling-layout{grid-template-columns:1fr}.cooling-history-panel{order:2}}@media(max-width:720px){.cooling-normal-card{grid-template-columns:1fr}.cooling-normal-button{width:100%;min-width:0}.cooling-head{align-items:flex-start;flex-direction:column}.cooling-head h2{font-size:26px}.cooling-problem-grid,.cooling-time-fields{grid-template-columns:1fr}}

/* SafeCheck hotfix59: one-click hot holding with exception-only details. */
.holding-page{min-width:0}.holding-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:12px 4px 28px}.holding-head small{font-weight:800;letter-spacing:.08em;color:var(--muted)}.holding-head h2{margin:8px 0 6px;font-size:30px}.holding-head p{margin:0;color:var(--muted)}.holding-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,390px);gap:20px;align-items:start}.holding-main-panel,.holding-history-panel{min-width:0}.holding-normal-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:24px;border:1px solid #c9e2d8;border-radius:18px;background:#eef9f4}.holding-normal-card small{font-weight:800;color:var(--muted)}.holding-normal-card h3{font-size:24px;margin:8px 0 8px}.holding-normal-card p{max-width:720px;margin:8px 0 0;color:var(--muted);line-height:1.55}.holding-target{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:7px 11px;border-radius:999px;background:#fff;border:1px solid #c9e2d8}.holding-normal-button{min-width:230px;min-height:62px;font-size:18px}.holding-problem-details{margin-top:16px;border:1px solid var(--line);border-radius:16px;overflow:hidden}.holding-problem-details>summary{padding:18px 20px;font-weight:800;cursor:pointer;list-style:none}.holding-problem-details[open]>summary{border-bottom:1px solid var(--line)}.holding-exception-form{padding:20px}.holding-exception-form fieldset{border:0;padding:0;margin:0}.holding-exception-form legend{font-weight:850;margin-bottom:10px}.holding-problem-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.holding-problem-chip{margin:0;cursor:pointer}.holding-problem-chip input{position:absolute;opacity:0;pointer-events:none}.holding-problem-chip span{min-height:48px;display:grid;place-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:800;text-align:center}.holding-problem-chip input:checked+span{background:var(--dangerbg);border-color:#efc1bb;color:var(--danger)}.holding-time-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.holding-action-step{display:grid;gap:14px}.holding-note-details{border:1px dashed var(--line);border-radius:12px;padding:0 14px}.holding-note-details summary{padding:12px 0;font-weight:700;cursor:pointer;color:var(--muted)}.holding-history-list{display:grid;gap:10px}.holding-history-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:14px}.holding-history-item div{display:grid;gap:4px;min-width:0}.holding-history-item small{color:var(--muted)}.holding-exception-form [hidden]{display:none!important}.holding-exception-submit:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;filter:saturate(.6)}@media(max-width:1000px){.holding-layout{grid-template-columns:1fr}.holding-history-panel{order:2}}@media(max-width:720px){.holding-normal-card{grid-template-columns:1fr}.holding-normal-button{width:100%;min-width:0}.holding-head{align-items:flex-start;flex-direction:column}.holding-head h2{font-size:26px}.holding-problem-grid,.holding-time-fields{grid-template-columns:1fr}}


/* SafeCheck hotfix63: one-click thawing with exception-only details. */
.thawing-page{min-width:0}.thawing-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:12px 4px 28px}.thawing-head small{font-weight:800;letter-spacing:.08em;color:var(--muted)}.thawing-head h2{margin:8px 0 6px;font-size:30px}.thawing-head p{margin:0;color:var(--muted)}.thawing-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,390px);gap:20px;align-items:start}.thawing-main-panel,.thawing-history-panel{min-width:0}.thawing-normal-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:24px;border:1px solid #c9e2d8;border-radius:18px;background:#eef9f4}.thawing-normal-card small{font-weight:800;color:var(--muted)}.thawing-normal-card h3{font-size:24px;margin:8px 0 8px}.thawing-normal-card p{max-width:720px;margin:8px 0 0;color:var(--muted);line-height:1.55}.thawing-target{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:7px 11px;border-radius:999px;background:#fff;border:1px solid #c9e2d8}.thawing-normal-button{min-width:230px;min-height:62px;font-size:18px}.thawing-problem-details{margin-top:16px;border:1px solid var(--line);border-radius:16px;overflow:hidden}.thawing-problem-details>summary{padding:18px 20px;font-weight:800;cursor:pointer;list-style:none}.thawing-problem-details[open]>summary{border-bottom:1px solid var(--line)}.thawing-exception-form{padding:20px}.thawing-exception-form fieldset{border:0;padding:0;margin:0}.thawing-exception-form legend{font-weight:850;margin-bottom:10px}.thawing-problem-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.thawing-problem-chip{margin:0;cursor:pointer}.thawing-problem-chip input{position:absolute;opacity:0;pointer-events:none}.thawing-problem-chip span{min-height:48px;display:grid;place-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:800;text-align:center}.thawing-problem-chip input:checked+span{background:var(--dangerbg);border-color:#efc1bb;color:var(--danger)}.thawing-action-step{display:grid;gap:14px}.thawing-note-details{border:1px dashed var(--line);border-radius:12px;padding:0 14px}.thawing-note-details summary{padding:12px 0;font-weight:700;cursor:pointer;color:var(--muted)}.thawing-history-list{display:grid;gap:10px}.thawing-history-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:14px}.thawing-history-item div{display:grid;gap:4px;min-width:0}.thawing-history-item small{color:var(--muted)}.thawing-exception-form [hidden]{display:none!important}.thawing-exception-submit:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;filter:saturate(.6)}@media(max-width:1000px){.thawing-layout{grid-template-columns:1fr}.thawing-history-panel{order:2}}@media(max-width:720px){.thawing-normal-card{grid-template-columns:1fr}.thawing-normal-button{width:100%;min-width:0}.thawing-head{align-items:flex-start;flex-direction:column}.thawing-head h2{font-size:26px}.thawing-problem-grid{grid-template-columns:1fr}}

/* SafeCheck hotfix64: keep thawing exception facts visually ordered before corrective action. */
.thawing-exception-form>.thawing-product-field,.thawing-exception-form>.thawing-quantity-field,.thawing-exception-form>.thawing-temperature-field,.thawing-exception-form>.thawing-other-field{display:grid;gap:7px}.thawing-action-field{display:grid;gap:7px}.thawing-action-field select:invalid{color:var(--muted)}

/* SafeCheck hotfix66: one-click incoming control for Bar/Kitchen; no numeric temperature field. */
.incoming-page{min-width:0}.incoming-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:12px 4px 28px}.incoming-head small{font-weight:800;letter-spacing:.08em;color:var(--muted)}.incoming-head h2{margin:8px 0 6px;font-size:30px}.incoming-head p{margin:0;color:var(--muted)}.incoming-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,390px);gap:20px;align-items:start}.incoming-main-panel,.incoming-history-panel{min-width:0}.incoming-normal-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;padding:24px;border:1px solid #c9e2d8;border-radius:18px;background:#eef9f4}.incoming-normal-card small{font-weight:800;color:var(--muted)}.incoming-normal-card h3{font-size:24px;margin:8px 0}.incoming-normal-card p{max-width:720px;margin:8px 0 0;color:var(--muted);line-height:1.55}.incoming-target{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:7px 11px;border-radius:999px;background:#fff;border:1px solid #c9e2d8}.incoming-normal-button{min-width:250px;min-height:62px;font-size:18px}.incoming-problem-details{margin-top:16px;border:1px solid var(--line);border-radius:16px;overflow:hidden}.incoming-problem-details>summary{padding:18px 20px;font-weight:800;cursor:pointer;list-style:none}.incoming-problem-details[open]>summary{border-bottom:1px solid var(--line)}.incoming-exception-form{padding:20px}.incoming-exception-form fieldset{border:0;padding:0;margin:0}.incoming-exception-form legend{font-weight:850;margin-bottom:10px}.incoming-problem-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.incoming-problem-chip{margin:0;cursor:pointer}.incoming-problem-chip input{position:absolute;opacity:0;pointer-events:none}.incoming-problem-chip span{min-height:48px;display:grid;place-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:800;text-align:center}.incoming-problem-chip input:checked+span{background:var(--dangerbg);border-color:#efc1bb;color:var(--danger)}.incoming-action-step{display:grid;gap:14px}.incoming-note-details{border:1px dashed var(--line);border-radius:12px;padding:0 14px}.incoming-note-details summary{padding:12px 0;font-weight:700;cursor:pointer;color:var(--muted)}.incoming-history-list{display:grid;gap:10px}.incoming-history-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:14px}.incoming-history-item div{display:grid;gap:4px;min-width:0}.incoming-history-item small,.incoming-history-item span{color:var(--muted)}.incoming-exception-form [hidden]{display:none!important}.incoming-exception-submit:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;filter:saturate(.6)}@media(max-width:1000px){.incoming-layout{grid-template-columns:1fr}.incoming-history-panel{order:2}}@media(max-width:720px){.incoming-normal-card{grid-template-columns:1fr}.incoming-normal-button{width:100%;min-width:0}.incoming-head{align-items:flex-start;flex-direction:column}.incoming-head h2{font-size:26px}.incoming-problem-grid{grid-template-columns:1fr}}

/* SafeCheck hotfix67: document-first incoming control, shared by Bar and Kitchen. */
.incoming-document-first .incoming-intake-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,380px);gap:24px;align-items:center;margin-bottom:20px}.incoming-intake-copy h3{font-size:24px;margin:6px 0 8px}.incoming-intake-copy p{margin:0;color:var(--muted);line-height:1.55;max-width:760px}.incoming-upload-form{display:grid;gap:10px}.incoming-add-document{position:relative;display:flex!important;align-items:center;justify-content:center;min-height:64px;font-size:18px;cursor:pointer}.incoming-add-document input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.incoming-upload-form>small{color:var(--muted);line-height:1.45}.incoming-manual-details{grid-column:1/-1;border-top:1px solid var(--line);padding-top:4px}.incoming-manual-details>summary{cursor:pointer;font-weight:800;padding:14px 0;color:var(--text)}.incoming-manual-form{padding-top:8px}.incoming-manual-items{display:grid;gap:10px}.incoming-manual-item{display:grid;grid-template-columns:minmax(180px,2fr) minmax(110px,1fr) minmax(80px,.7fr) minmax(130px,1fr) minmax(140px,1fr);gap:10px;border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--surface)}.incoming-manual-item-head{grid-column:1/-1}.incoming-manual-item label{margin:0}.incoming-manual-item[hidden]{display:none!important}.incoming-deliveries-panel{margin-top:18px}.incoming-delivery-list{display:grid;gap:12px}.incoming-delivery-card{border:1px solid var(--line);border-radius:16px;padding:16px;background:var(--surface)}.incoming-delivery-main{display:grid;gap:6px}.incoming-delivery-date{display:flex;align-items:center;justify-content:space-between;gap:12px}.incoming-delivery-main h3{margin:0;font-size:18px}.incoming-delivery-main p{margin:0;color:var(--muted);line-height:1.45}.incoming-delivery-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.incoming-deviation-details{margin-top:12px;border-top:1px dashed var(--line);padding-top:8px}.incoming-deviation-details>summary{cursor:pointer;font-weight:750;color:var(--danger)}.incoming-deviation-details .incoming-exception-form{padding:14px 0 0}.incoming-document-first .incoming-normal-card,.incoming-document-first .incoming-normal-button{display:none!important}@media(max-width:900px){.incoming-document-first .incoming-intake-panel{grid-template-columns:1fr}.incoming-manual-item{grid-template-columns:1fr 1fr}.incoming-manual-item-head{grid-column:1/-1}}@media(max-width:620px){.incoming-manual-item{grid-template-columns:1fr}.incoming-add-document{width:100%}.incoming-delivery-date{align-items:flex-start}}


/* SafeCheck hotfix68: one Add document button opens camera/image/file source chooser. */
.incoming-upload-picker{display:grid;gap:10px}.incoming-upload-picker>small{color:var(--muted);line-height:1.45}.incoming-source-dialog{width:min(640px,calc(100vw - 28px));border:0;border-radius:20px;padding:0;box-shadow:0 24px 70px rgba(13,62,52,.24);background:var(--surface);color:var(--text)}.incoming-source-dialog::backdrop{background:rgba(8,32,28,.46);backdrop-filter:blur(2px)}.incoming-source-dialog-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:22px 22px 14px}.incoming-source-dialog-head small{font-weight:850;letter-spacing:.08em;color:var(--muted)}.incoming-source-dialog-head h3{margin:6px 0 0;font-size:23px}.incoming-source-close{border:1px solid var(--line);background:var(--surface);border-radius:999px;width:38px;height:38px;font-size:25px;line-height:1;cursor:pointer;color:var(--muted)}.incoming-source-options{display:grid;gap:10px;padding:8px 22px 18px}.incoming-source-option{position:relative;display:grid!important;grid-template-columns:48px 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center;margin:0!important;padding:15px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);cursor:pointer;transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}.incoming-source-option:hover{border-color:#a9cfc2;box-shadow:0 8px 22px rgba(14,78,65,.08);transform:translateY(-1px)}.incoming-source-option input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.incoming-source-option .incoming-source-icon{grid-row:1/3;font-size:28px;display:grid;place-items:center}.incoming-source-option b{font-size:16px}.incoming-source-option small{color:var(--muted);line-height:1.35;margin-top:3px}.incoming-source-hint{margin:0;padding:0 22px 22px;color:var(--muted);font-size:13px;line-height:1.45}.incoming-source-dialog:not([open]){display:none}@media(max-width:620px){.incoming-source-dialog{width:calc(100vw - 20px);border-radius:18px}.incoming-source-dialog-head{padding:18px 16px 10px}.incoming-source-options{padding:8px 16px 14px}.incoming-source-hint{padding:0 16px 18px}.incoming-source-option{grid-template-columns:42px 1fr;padding:14px}.incoming-source-dialog-head h3{font-size:20px}}


/* SafeCheck hotfix69: compact incoming document source chooser. */
.incoming-source-dialog{width:min(560px,calc(100vw - 36px));max-width:560px;border-radius:18px;box-shadow:0 18px 48px rgba(13,62,52,.18)}
.incoming-source-dialog::backdrop{background:rgba(8,32,28,.18);backdrop-filter:blur(1px)}
.incoming-source-dialog-head{padding:18px 18px 10px;align-items:center}
.incoming-source-dialog-head h3{margin:0;font-size:21px}
.incoming-source-dialog-head p{margin:4px 0 0;color:var(--muted);font-size:13px}
.incoming-source-close{width:34px;height:34px;font-size:22px}
.incoming-source-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:8px 18px 18px}
.incoming-source-option{display:flex!important;min-height:104px;flex-direction:column;justify-content:center;align-items:center;gap:7px;padding:14px 10px;text-align:center;border-radius:13px}
.incoming-source-option .incoming-source-icon{display:block;font-size:27px;line-height:1}
.incoming-source-option b{font-size:15px;line-height:1.2}
.incoming-source-option small{margin:0;font-size:12px;line-height:1.2}
.incoming-source-hint{display:none!important}
@media(max-width:620px){.incoming-source-dialog{width:calc(100vw - 24px);max-width:none;border-radius:16px}.incoming-source-dialog-head{padding:16px 15px 8px}.incoming-source-options{grid-template-columns:1fr;gap:8px;padding:8px 15px 15px}.incoming-source-option{min-height:64px;display:grid!important;grid-template-columns:38px 1fr;grid-template-rows:auto auto;text-align:left;justify-items:start;column-gap:10px;row-gap:2px;padding:11px 13px}.incoming-source-option .incoming-source-icon{grid-row:1/3;align-self:center;font-size:24px}.incoming-source-dialog-head h3{font-size:19px}}


/* SafeCheck hotfix70: blur only the compact chooser, keep the page behind sharp. */
.incoming-source-dialog{background:rgba(250,253,252,.94);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.incoming-source-dialog::backdrop{background:rgba(8,32,28,.055);backdrop-filter:none;-webkit-backdrop-filter:none}

/* SafeCheck hotfix71: compact incoming AI review, public-only warnings, item categories. */
.incoming-items-panel .compact-items-wrap{overflow-x:visible}
.items-table.compact-items{table-layout:fixed;min-width:0!important}
.items-table.compact-items th:nth-child(1),.items-table.compact-items td:nth-child(1){width:34%}
.items-table.compact-items th:nth-child(2),.items-table.compact-items td:nth-child(2){width:18%}
.items-table.compact-items th:nth-child(3),.items-table.compact-items td:nth-child(3){width:19%}
.items-table.compact-items th:nth-child(4),.items-table.compact-items td:nth-child(4){width:16%}
.items-table.compact-items th:nth-child(5),.items-table.compact-items td:nth-child(5){width:13%}
.items-table.compact-items.editable th:last-child,.items-table.compact-items.editable td:last-child{width:72px}
.items-table.compact-items .item-input{min-width:0;width:100%}
.items-table.compact-items .wide-input{min-width:0}
.items-table.compact-items .qty-unit{min-width:0;grid-template-columns:1fr .8fr}
.item-category{display:inline-flex;align-items:center;min-height:27px;padding:4px 9px;border-radius:999px;background:#f1f7f4;color:#395f58;font-size:11px;font-weight:800}
.item-financial-details{margin-top:14px;border-top:1px solid #edf2f0;padding-top:12px}
.item-financial-details summary{cursor:pointer;color:var(--muted);font-size:12px;font-weight:800}
.item-financial-details[open] summary{margin-bottom:10px}
.secondary-items{font-size:12px}
.secondary-items th,.secondary-items td{padding:9px 8px}
.compact-add-form{grid-template-columns:1.8fr .7fr .6fr 1fr 1fr 1fr auto!important}
.compact-add-form input{min-width:0}
@media(max-width:900px){
  .incoming-items-panel .compact-items-wrap{overflow:visible}
  .items-table.compact-items,.items-table.compact-items tbody,.items-table.compact-items tr,.items-table.compact-items td{display:block;width:100%!important}
  .items-table.compact-items thead{display:none}
  .items-table.compact-items tr{padding:12px 0;border-bottom:1px solid #edf2f0}
  .items-table.compact-items td{border:0;padding:5px 0}
  .items-table.compact-items td:before{display:block;margin-bottom:4px;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
  .items-table.compact-items td:nth-child(1):before{content:"Продукт"}
  .items-table.compact-items td:nth-child(2):before{content:"Количество / ед."}
  .items-table.compact-items td:nth-child(3):before{content:"Категория"}
  .items-table.compact-items td:nth-child(4):before{content:"Партида / LOT"}
  .items-table.compact-items td:nth-child(5):before{content:"Срок"}
  .compact-add-form{grid-template-columns:1fr 1fr!important}
  .compact-add-form button{grid-column:1/-1}
}
@media(max-width:620px){.compact-add-form{grid-template-columns:1fr!important}}
/* SafeCheck hotfix72: deployment integrity marker; no visual changes from hotfix71. */

/* SafeCheck hotfix76: incoming journal deliveries show item-level rows, matching the document review. */
.incoming-journal-items-wrap{margin:10px 0 4px;overflow-x:visible}
.incoming-journal-items{font-size:12px;background:#fbfdfc}
.incoming-journal-items th,.incoming-journal-items td{padding:8px 7px;vertical-align:top}
.incoming-journal-items th{font-size:10px;letter-spacing:.03em;text-transform:uppercase}
.incoming-legacy-items{margin:8px 0 2px!important;padding:10px 12px;border-radius:10px;background:#f7faf9;color:var(--muted)}
@media(max-width:900px){.incoming-journal-items-wrap{overflow:visible}.incoming-journal-items{background:transparent}}

/* SafeCheck hotfix80: fit Incoming Control history rows without horizontal scrolling on desktop. */
.incoming-journal-items-wrap{overflow-x:hidden}
.items-table.compact-items.incoming-journal-items{width:100%;min-width:0!important;table-layout:fixed}
.items-table.compact-items.incoming-journal-items th,
.items-table.compact-items.incoming-journal-items td{white-space:normal;overflow-wrap:anywhere;word-break:normal}
.items-table.compact-items.incoming-journal-items th:nth-child(1),
.items-table.compact-items.incoming-journal-items td:nth-child(1){width:30%}
.items-table.compact-items.incoming-journal-items th:nth-child(2),
.items-table.compact-items.incoming-journal-items td:nth-child(2){width:14%}
.items-table.compact-items.incoming-journal-items th:nth-child(3),
.items-table.compact-items.incoming-journal-items td:nth-child(3){width:18%}
.items-table.compact-items.incoming-journal-items th:nth-child(4),
.items-table.compact-items.incoming-journal-items td:nth-child(4){width:13%}
.items-table.compact-items.incoming-journal-items th:nth-child(5),
.items-table.compact-items.incoming-journal-items td:nth-child(5){width:11%}
.items-table.compact-items.incoming-journal-items th:nth-child(6),
.items-table.compact-items.incoming-journal-items td:nth-child(6){width:14%}
@media(max-width:900px){
  .incoming-journal-items-wrap{overflow:visible}
  .items-table.compact-items.incoming-journal-items td:nth-child(6):before{content:"Начин на съхранение"}
}

/* hotfix84: paper-ledger cooking template */
.cooking-paper-form{gap:16px}
.cooking-paper-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cooking-paper-rule-grid>div{display:grid;gap:5px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#f7faf9}
.cooking-paper-rule-grid small{color:var(--muted);font-weight:700}
.cooking-paper-rule-grid strong{font-size:18px}
.cooking-history-item span:not(.badge){color:var(--muted);font-size:13px}
@media(max-width:720px){.cooking-paper-rule-grid{grid-template-columns:1fr}}

/* SafeCheck hotfix91: paper-style staff hygiene daily batch. */
.personal-hygiene-batch-form{display:grid;gap:16px}.personal-hygiene-batch-intro{padding:14px 16px;border:1px solid #cce4dc;border-radius:12px;background:var(--soft);color:#34564f;line-height:1.5}.personal-hygiene-staff-table{min-width:980px}.personal-hygiene-staff-table th{white-space:nowrap}.personal-hygiene-staff-table td{vertical-align:top}.personal-hygiene-staff-table select,.personal-hygiene-staff-table input{min-height:42px;margin:0}.personal-hygiene-row-problem{display:grid;grid-template-columns:minmax(180px,1fr) minmax(190px,1fr);gap:8px}.personal-hygiene-row-problem input{grid-column:1/-1}.personal-hygiene-row-problem[hidden]{display:none!important}.personal-hygiene-batch-submit{width:100%;min-height:52px;font-size:16px}.alert.success{border-color:#bee4d5;background:#effaf5;color:#175c47}@media(max-width:760px){.personal-hygiene-staff-table{min-width:860px}.personal-hygiene-row-problem{grid-template-columns:1fr}}

/* SafeCheck hotfix94: configurable sanitary plan + paper-style daily batch. */
.cleaning-batch-form{display:grid;gap:16px}.cleaning-batch-table th,.cleaning-batch-table td{vertical-align:middle}.cleaning-batch-table select{min-width:138px}.cleaning-batch-submit{width:100%;min-height:52px;font-size:16px}.cleaning-plan-details{margin-top:18px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.cleaning-plan-details>summary{cursor:pointer;list-style:none;padding:16px 18px;font-weight:850;color:var(--brand);background:#fbfdfc}.cleaning-plan-details>summary::-webkit-details-marker{display:none}.cleaning-plan-details[open]>summary{border-bottom:1px solid var(--line)}.cleaning-plan-copy{padding:14px 18px 0;color:var(--muted)}.cleaning-plan-copy p{margin:0}.cleaning-plan-details form{padding:14px 18px 18px}.cleaning-plan-table input,.cleaning-plan-table select{min-width:150px}.cleaning-plan-table td:nth-child(1) input{min-width:190px}.cleaning-plan-table td:nth-child(2) input{min-width:190px}.cleaning-plan-actions{display:flex;justify-content:space-between;gap:12px;margin-top:14px}.cleaning-plan-actions .primary{min-width:180px}.cleaning-batch-table [hidden],.cleaning-plan-table [hidden]{display:none!important}@media(max-width:760px){.cleaning-plan-actions{flex-direction:column}.cleaning-plan-actions button{width:100%}}

/* SafeCheck hotfix99: audited fryer record cancellation. */
.fryer-void-details{margin-top:.45rem;font-size:.82rem}
.fryer-void-details summary{cursor:pointer;color:var(--muted,#64748b)}
.fryer-void-form{margin-top:.45rem;gap:.45rem}
.fryer-void-form label{font-size:.78rem}

/* SafeCheck hotfix107: waste-oil handover workflow. */
.waste-oil-total{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;padding:.8rem 0}.waste-oil-total small{margin-left:auto}.waste-oil-site-filter{max-width:30rem}.waste-oil-doc-card p{margin-bottom:.35rem}

/* SafeCheck 0.4.0-hotfix116: consistent equipment actions. */
.secondary:disabled,.primary:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}

/* SafeCheck 0.4.0-hotfix123: tenant-managed users and object access. */
.user-access-list{display:grid;gap:12px;margin-top:16px}
.user-access-card{padding:0;overflow:hidden}
.user-access-card>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:15px 18px}
.user-access-card>summary::-webkit-details-marker{display:none}
.user-access-card>summary small{flex-basis:100%;color:var(--muted)}
.user-access-card[open]>summary{border-bottom:1px solid var(--line);background:#fbfdfc}
.user-access-card>.two-col{padding:16px 18px 18px}
.compact-user-grid{align-items:start}
.user-site-access{display:grid;gap:7px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fbfdfc}
.user-create-form{margin-top:14px}
@media(max-width:760px){.user-access-card>.two-col{grid-template-columns:1fr}.user-access-card>summary .badge{margin-left:0}}
/* hotfix127: completed waste-oil handovers are immutable and shown as locked instead of offering an impossible annulment action. */
.fryer-locked-note{margin-top:.45rem;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:.82rem;color:var(--muted,#64748b)}
.fryer-locked-note span{font-weight:750}

/* hotfix134: unified document workspace + central archive */
.document-operation-grid{margin-top:0;margin-bottom:18px}.document-operation-grid>.panel{height:100%}.dossier-panel{margin-top:0}.dossier-section{padding-top:4px}.dossier-section+.dossier-section{margin-top:26px;padding-top:26px;border-top:1px solid var(--line)}.dossier-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:14px}.dossier-section-head small{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:800}.dossier-section-head h3{margin:4px 0 0;font-size:16px}.dossier-section-head>a{font-size:13px;color:var(--brand);font-weight:800}.compact-alert{margin:0 0 12px}.archive-toolbar{display:grid;grid-template-columns:minmax(190px,.55fr) minmax(260px,1fr) auto auto;gap:10px;align-items:end;margin-bottom:18px}.archive-toolbar label{display:grid;gap:7px;color:#334e49;font-size:13px;font-weight:750}.archive-search{min-width:0}.archive-reference{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;padding:14px 16px;border:1px solid var(--line);border-radius:13px;background:var(--bg);font-size:13px}.archive-reference a{flex:0 0 auto}@media(max-width:900px){.archive-toolbar{grid-template-columns:1fr 1fr}.archive-toolbar button,.archive-toolbar>a{width:100%}}@media(max-width:620px){.archive-toolbar{grid-template-columns:1fr}.archive-reference{align-items:flex-start;flex-direction:column}}

/* hotfix135: scalable server-side Archive with compact metadata and pagination. */
.archive-toolbar-extended{grid-template-columns:minmax(150px,.8fr) minmax(165px,.85fr) minmax(155px,.8fr) minmax(250px,1.35fr);gap:12px}
.archive-toolbar-extended .archive-toolbar-actions{display:flex;align-items:center;gap:10px;grid-column:1/-1;justify-content:flex-end}
.archive-toolbar-extended .archive-toolbar-actions .small{min-width:112px;text-align:center}
.archive-result-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:3px 0 12px;color:var(--muted);font-size:13px}
.archive-result-head strong{color:var(--ink)}
.archive-table{width:100%;table-layout:fixed}
.archive-table th:nth-child(1),.archive-table td:nth-child(1){width:38%}
.archive-table th:nth-child(2),.archive-table td:nth-child(2){width:18%}
.archive-table th:nth-child(3),.archive-table td:nth-child(3){width:22%}
.archive-table th:nth-child(4),.archive-table td:nth-child(4){width:11%}
.archive-table th:nth-child(5),.archive-table td:nth-child(5){width:11%}
.archive-doc-cell>a{display:grid;gap:4px;min-width:0}
.archive-doc-cell strong{line-height:1.25}
.archive-filename{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-weight:500}
.archive-site-cell{white-space:nowrap}
.archive-date-cell,.archive-status-cell{white-space:nowrap}
.archive-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.archive-page-numbers{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}
.archive-page{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 9px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--brand);font-weight:800;font-size:13px}
.archive-page.current{background:var(--brand);border-color:var(--brand);color:#fff}
.archive-page-gap{padding:0 4px;color:var(--muted)}
.archive-pagination .disabled{opacity:.45;pointer-events:none}
@media(max-width:1050px){.archive-toolbar-extended{grid-template-columns:1fr 1fr}.archive-table{min-width:860px}.archive-site-cell{white-space:normal}}
@media(max-width:620px){.archive-toolbar-extended{grid-template-columns:1fr}.archive-toolbar-extended .archive-toolbar-actions{justify-content:stretch}.archive-toolbar-extended .archive-toolbar-actions>*{flex:1}.archive-result-head{align-items:flex-start;flex-direction:column;gap:4px}.archive-pagination{align-items:stretch;flex-direction:column}.archive-page-numbers{order:-1}.archive-pagination>.secondary{text-align:center}}

/* hotfix140: quieter, grouped AI-agent findings. */
.agent-status-summary{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.agent-finding-group{margin-top:14px;border:1px solid var(--line);border-radius:14px;background:#fbfdfc;overflow:hidden}
.agent-finding-group>summary{cursor:pointer;list-style:none;padding:14px 16px;color:var(--brand)}
.agent-finding-group>summary::-webkit-details-marker{display:none}
.agent-finding-group[open]>summary{border-bottom:1px solid var(--line)}
.agent-finding-group>.agent-findings{padding:14px}

/* hotfix141: AI quota/status and processing-state affordances. */
.chat-limit-note{display:block;margin-top:8px;color:var(--muted);font-weight:700}.chat-limit-note.warn{color:#9a6500}.chat-form button:disabled,.chat-form textarea:disabled,[data-processing-form] button:disabled{opacity:.58;cursor:not-allowed}[data-download-lock][aria-disabled="true"]{opacity:.62;cursor:wait}

/* SafeCheck hotfix145: one-page refrigeration batch check. */
.temperature-batch-panel{display:grid;gap:16px}.temperature-batch-intro{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}.temperature-batch-intro>div{padding:13px 16px}.temperature-batch-intro>div+div{border-left:1px solid var(--line)}.temperature-batch-intro small{display:block;color:var(--muted);margin-bottom:3px}.temperature-batch-intro b{font-size:17px}.temperature-batch-list{display:grid;gap:10px}.temperature-batch-row{display:grid;grid-template-columns:minmax(180px,1.35fr) minmax(155px,.9fr) minmax(190px,.9fr) minmax(220px,1.25fr) auto;gap:14px;align-items:center;padding:15px;border:1px solid var(--line);border-radius:14px;background:#fff}.temperature-batch-row.is-complete{background:#f8fbfa}.temperature-batch-device,.temperature-batch-type,.temperature-batch-input-wrap,.temperature-batch-state,.temperature-batch-reading{display:grid;gap:5px;margin:0}.temperature-batch-device b{font-size:16px}.temperature-batch-device small,.temperature-batch-type small,.temperature-batch-input-wrap small{color:var(--muted)}.temperature-batch-type .badge,.temperature-batch-state>.badge{justify-self:start}.temperature-batch-input{display:grid;grid-template-columns:minmax(0,110px) auto;align-items:center;gap:7px}.temperature-batch-input input{font-size:20px;font-weight:800;text-align:right;padding:10px 11px}.temperature-batch-input>span{font-weight:800}.temperature-batch-state label{display:grid;gap:5px;font-size:12px;color:var(--danger)}.temperature-batch-state [data-temperature-batch-correction][hidden]{display:none!important}.temperature-batch-state textarea{min-height:58px}.temperature-batch-reading strong{font-size:20px}.temperature-batch-submit{min-height:58px;font-size:16px}.temperature-batch-row.is-alert{border-color:#efc1bb;background:var(--dangerbg)}.temperature-batch-row.is-alert .temperature-batch-input input{border-color:#d6695d}.temperature-batch-row.is-closed .temperature-batch-input-wrap,.temperature-batch-row.is-closed .temperature-batch-state{opacity:.5}
@media(max-width:1050px){.temperature-batch-row{grid-template-columns:1.3fr 1fr 1fr}.temperature-batch-state{grid-column:1/3}.temperature-batch-row>a{justify-self:end}.temperature-batch-intro{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.temperature-batch-intro{grid-template-columns:1fr}.temperature-batch-intro>div+div{border-left:0;border-top:1px solid var(--line)}.temperature-batch-row{grid-template-columns:1fr}.temperature-batch-state{grid-column:auto}.temperature-batch-row>a{justify-self:start}.temperature-batch-input{grid-template-columns:minmax(0,130px) auto}.temperature-batch-input input{text-align:left}}

/* SafeCheck hotfix147: aligned completed refrigeration rows + full-height scroll-safe sidebar. */
.app-sidebar{align-self:start;height:100vh;max-height:100vh;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
.app-sidebar>.app-brand,.app-sidebar>nav,.app-sidebar>.sidebar-footer{flex-shrink:0}
.temperature-batch-row.is-complete .temperature-batch-input input[readonly]{background:#f8fbfa;color:var(--ink);cursor:default}
.temperature-batch-row.is-complete .temperature-batch-state>.badge{white-space:nowrap}
@supports(height:100dvh){.app-sidebar{height:100dvh;max-height:100dvh}}

/* SafeCheck hotfix148: desktop sidebar is fixed to the viewport, independent from page scrolling. */
@media(min-width:761px){
.app-sidebar{position:fixed;top:0;bottom:0;left:0;width:245px;height:auto;max-height:none;z-index:30;align-self:auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
.app-main{grid-column:2 / 3}
}


/* SafeCheck hotfix149: self-service registration wizard. */
.auth-card-wide{width:min(100%,860px)}
.registration-heading{margin-top:28px}.registration-heading h1{margin:12px 0 8px}.registration-heading p{margin:0;color:var(--muted)}
.registration-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:26px 0 8px}
.registration-progress span{padding:10px 12px;border-radius:10px;background:var(--bg);color:var(--muted);font-size:12px;font-weight:800;text-align:center}
.registration-progress span.active{background:var(--soft);color:var(--brand)}
.registration-section-title{margin:8px 0 18px}.registration-section-title small{color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em}.registration-section-title h2{margin:5px 0 0;font-size:20px}
.registration-step{padding:18px 0 2px}.registration-step[hidden]{display:none!important}
.registration-questions{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#f8fbfa}.registration-questions h3{margin:0 0 6px;font-size:15px}.registration-questions>p{margin:0 0 14px;color:var(--muted);font-size:12px;line-height:1.5}.registration-question{padding:9px 0}.registration-question[hidden]{display:none!important}.registration-no-questions{padding:10px 12px;border-radius:10px;background:white;color:var(--muted);font-size:12px}
.registration-terms{margin-top:18px}.registration-terms a{color:var(--brand);font-weight:800}
.registration-actions{display:flex;justify-content:space-between;gap:12px;margin-top:8px}.registration-actions .primary{margin-left:auto}.registration-actions button[hidden]{display:none!important}
.hp-field{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:760px){.auth-card-wide{padding:24px 18px}.registration-progress{grid-template-columns:1fr}.registration-progress span:not(.active){display:none}.registration-actions{flex-direction:column-reverse}.registration-actions button{width:100%}}

/* SafeCheck hotfix153: fully Bulgarian file chooser on /app/documents/new. */
/* SafeCheck hotfix154: only the explicit button opens the file picker. */
.localized-file-upload{position:relative;cursor:default}
.localized-file-upload>.localized-file-input{position:absolute;left:50%;top:34px;width:1px;height:1px;opacity:0;pointer-events:none;padding:0;border:0}
.localized-file-upload .file-picker-ui{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;color:var(--ink);font-weight:700}
.localized-file-upload .file-picker-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--brand);font-weight:800;cursor:pointer}
.localized-file-upload .file-picker-button:hover{border-color:var(--brand);background:var(--soft)}
.localized-file-upload .file-picker-button:focus-visible{outline:3px solid rgba(15,91,83,.18);outline-offset:2px}
.localized-file-upload .file-picker-name{max-width:min(100%,480px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-weight:600}
/* hotfix156: explicit receiving location + clearer localized upload copy */
.localized-file-upload .localized-file-copy{display:grid;gap:3px;justify-items:center;text-align:center}
.localized-file-upload .localized-file-copy>b{display:block}
.localized-file-upload .localized-file-copy>small{display:block;color:var(--muted);font-weight:600}
