
:root{
  --bg:#f2f5f6;--panel:#fff;--ink:#18313f;--muted:#6d7d86;--green:#1f8f5f;
  --green-soft:#e5f5ee;--amber:#b77b18;--red:#b94a48;--line:#dce4e8;--nav:#243844;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
a{color:inherit;text-decoration:none}
.app-shell{display:grid;grid-template-columns:330px 1fr;min-height:100vh}
.sidebar{background:var(--nav);color:#fff;padding:22px 18px;display:flex;flex-direction:column;gap:18px}
.brand{font-size:30px;font-weight:800;letter-spacing:-1px;padding:4px 8px 12px}
.top-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.nav{padding:14px;border-radius:12px;text-align:center;background:rgba(255,255,255,.08)}
.nav.active{background:var(--green)}
.period-switch{display:grid;grid-template-columns:1fr 1fr;background:rgba(0,0,0,.2);padding:5px;border-radius:12px}
.period-switch a{text-align:center;padding:10px;border-radius:9px}
.period-switch a.active{background:#fff;color:var(--ink);font-weight:800}
.appliance-list{display:flex;flex-direction:column;gap:8px;overflow:auto}
.appliance-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border:1px solid rgba(255,255,255,.10);border-radius:12px}
.appliance-row.selected{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.3)}
.appliance-row strong,.appliance-row small{display:block}.appliance-row small{color:#c4d0d6;margin-top:3px}
.state{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.10);font-weight:900}
.state.ok{background:var(--green)}.state.skip{background:var(--amber)}.state.bad{background:var(--red)}
.workspace{padding:34px 38px}
.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}
.page-head h1{font-size:34px;margin:0}.page-head p{margin:6px 0 0;color:var(--muted)}
.progress-box{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:14px 22px;text-align:right}
.progress-box strong,.progress-box span{display:block}.progress-box strong{font-size:26px}.progress-box span{color:var(--muted)}
.check-card,.empty-card{background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:0 12px 30px rgba(20,42,55,.05)}
.appliance-heading{display:flex;justify-content:space-between;gap:30px;border-bottom:1px solid var(--line);padding-bottom:22px}
.eyebrow{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}
.appliance-heading h2{font-size:36px;margin:6px 0}.appliance-heading p{margin:0;color:var(--muted);font-size:20px}
.range{background:var(--green-soft);padding:14px 18px;border-radius:14px;min-width:210px}
.range span,.range strong{display:block}.range span{font-size:13px;color:#4f6b5e}.range strong{font-size:22px;margin-top:4px}
.temp-form{max-width:650px;margin:28px auto 0}
.staff-line{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.staff-line label{font-weight:700}.staff-line select,.dialog-form select{font-size:20px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:#fff;min-width:280px}
.temp-label{display:block;text-align:center;color:var(--muted);font-weight:700;margin-bottom:8px}
.temp-input-wrap{display:flex;justify-content:center;align-items:center;gap:14px}
.temp-input-wrap input{width:310px;font-size:76px;text-align:center;border:2px solid var(--line);border-radius:18px;padding:16px;font-weight:800;color:var(--ink)}
.temp-input-wrap span{font-size:42px;font-weight:700;color:var(--muted)}
.action-row{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin-top:26px}
button,.btn{border:0;border-radius:14px;padding:16px 22px;font-size:20px;font-weight:800;cursor:pointer}
.primary{background:var(--green);color:#fff}.secondary{background:#e9eef0;color:var(--ink)}
dialog{border:0;border-radius:20px;padding:0;width:min(520px,90vw);box-shadow:0 30px 100px rgba(0,0,0,.25)}
dialog::backdrop{background:rgba(10,25,34,.55)}
.dialog-form{padding:28px}.dialog-form h2{margin-top:0}.dialog-form label{display:block;font-weight:700;margin:16px 0}.dialog-form select,.dialog-form textarea{width:100%;margin-top:7px}
.dialog-form textarea{padding:12px;border:1px solid var(--line);border-radius:12px;font-size:16px}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.install-body{min-height:100vh;display:grid;place-items:center;padding:24px}
.install-card{width:min(520px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;padding:34px}
.install-card h1{margin:0 0 4px;font-size:38px}.install-card>p{color:var(--muted)}
.install-card label{display:block;font-weight:700;margin:18px 0}.install-card input{width:100%;font-size:18px;padding:13px;border:1px solid var(--line);border-radius:10px;margin-top:7px}
.install-card button{width:100%;background:var(--green);color:#fff}
.notice{padding:12px 14px;border-radius:10px;margin:15px 0}.notice.success{background:var(--green-soft)}.notice.error{background:#fde8e7;color:#7f2e2d}
.admin-shell{padding:30px}.admin-shell header{display:flex;justify-content:space-between;align-items:center}.admin-shell header h1{margin:0}.admin-shell header p{color:var(--muted)}
.admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:25px}.admin-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px}.muted{color:var(--muted)}
.btn{display:inline-block;background:#e8eef0;font-size:16px;padding:11px 14px}
@media(max-width:900px){
  .app-shell{grid-template-columns:1fr}.sidebar{position:relative}.workspace{padding:20px}.appliance-heading,.page-head,.staff-line{align-items:stretch;flex-direction:column}.admin-grid{grid-template-columns:1fr}
}


/* DailyTemps v0.6 recording screen: quick negative temperature toggle */
.sign-toggle{
  width:74px;
  height:74px;
  padding:0;
  display:grid;
  place-items:center;
  flex:0 0 74px;
  border:2px solid var(--line);
  border-radius:18px;
  background:#e9eef0;
  color:var(--ink);
  font-size:46px;
  font-weight:800;
  line-height:1;
  transition:background .12s ease,border-color .12s ease,color .12s ease;
}

.sign-toggle.active{
  background:var(--nav);
  border-color:var(--nav);
  color:#fff;
}

.sign-toggle:focus-visible{
  outline:3px solid rgba(31,143,95,.28);
  outline-offset:2px;
}


/* DailyTemps v0.7 — checker selection persists for the active session */
.checker-session-note{
  display:block;
  margin-top:5px;
  color:#7a8991;
  font-size:12px;
}


/* DailyTemps v0.8 — completed checks are read-only until explicitly corrected */
.appliance-row.completed{
  opacity:.58;
  background:rgba(255,255,255,.025);
}

.appliance-row.completed.selected{
  opacity:.78;
}

.appliance-row.completed .state{
  background:#dfe9e4;
  color:#236044;
}

.completed-check{
  padding-top:28px;
  border-top:1px solid var(--line);
}

.completed-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:22px 24px;
  border:1px solid #d7e4de;
  border-radius:16px;
  background:#f2f7f4;
}

.completed-banner > div:first-child{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.completed-banner strong{
  font-size:42px;
  line-height:1;
  color:var(--ink);
}

.completed-banner span,
.completed-banner small{
  color:#687a72;
}

.completed-mark{
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  flex:0 0 56px;
  border-radius:50%;
  background:#dcefe5;
  color:#24704d !important;
  font-size:28px;
  font-weight:900;
}

.correction-button{
  margin-top:16px;
}

.correction-form{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.correction-note{
  margin:10px 0 0;
  color:#7a8991;
  font-size:12px;
  text-align:center;
}

[hidden]{
  display:none !important;
}


/* DailyTemps v0.9 — freezers default to negative entry */
.sign-toggle.active{
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}


/* DailyTemps v1.0 — due times and reminder controls */
.page-head-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.notification-button{
  appearance:none;
  -webkit-appearance:none;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  padding:10px 13px;
  border-radius:10px;
  font-weight:800;
  cursor:pointer;
}

.round-reminder{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:13px 15px;
  margin:0 0 16px;
  border:1px solid #ead39b;
  border-radius:12px;
  background:#fff8e8;
  color:#6f5316;
}

.round-reminder>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.round-reminder span{
  font-size:13px;
}

.round-reminder-mark{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:#f4dfaa;
  font-size:18px !important;
  font-weight:900;
}

@media(max-width:760px){
  .page-head-actions{
    align-items:flex-end;
    flex-direction:column-reverse;
  }
}

.record-tabs{display:flex;gap:4px;margin:0 0 16px;padding:4px;width:max-content;max-width:100%;border:1px solid var(--line);border-radius:12px;background:#eef2f3}
.record-tabs a{display:block;padding:10px 16px;border-radius:9px;text-decoration:none;color:#65767f;font-weight:800;white-space:nowrap}
.record-tabs a.active{background:#fff;color:var(--ink);box-shadow:0 1px 4px rgba(20,42,55,.10)}
.module-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:14px}
.module-card h2{margin:0 0 4px}.module-card .subtle{color:#718089;margin:0 0 16px}
.module-form{display:grid;gap:14px}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.module-form label,.module-grid label{display:block;color:#53646e;font-size:12px;font-weight:800}
.module-form input,.module-form select,.module-form textarea,.module-grid input,.module-grid select,.module-grid textarea{width:100%;box-sizing:border-box;margin-top:5px;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:16px}
.module-form textarea,.module-grid textarea{min-height:92px;resize:vertical}
.module-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.module-actions button,.module-button{appearance:none;border:0;border-radius:9px;padding:11px 15px;font-weight:800;cursor:pointer}
.module-actions .primary,.module-button.primary{background:#1f8f5f;color:#fff}.module-button.secondary{background:#edf2f3;color:var(--ink)}
.today-list{display:grid;gap:8px;margin-top:14px}.today-entry{display:grid;grid-template-columns:1.4fr .8fr .8fr .8fr;gap:10px;align-items:center;padding:10px 12px;border:1px solid #e5ebee;border-radius:10px;background:#fafcfc;font-size:13px}
.today-entry strong{font-size:14px}.today-entry span{color:#687981}
.diary-section{border:1px solid var(--line);border-radius:12px;background:#fff;margin-bottom:10px;overflow:hidden}
.diary-section>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;font-weight:800}
.diary-section>summary::-webkit-details-marker{display:none}.diary-section>summary span{color:#718089;font-size:12px;font-weight:700}
.diary-section-body{border-top:1px solid var(--line);padding:16px}
.quick-confirm{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:14px;border:1px solid #dce7e1;border-radius:10px;background:#f6faf8}
.quick-confirm strong{display:block}.quick-confirm span{display:block;margin-top:3px;color:#6c7d75;font-size:12px}.quick-confirm button{flex:0 0 auto}
.confirmed-strip{padding:12px 14px;border-radius:10px;background:#e9f6ef;color:#2e684c;font-weight:800}
.exception-choice{display:flex;gap:10px;flex-wrap:wrap}.exception-choice label{display:flex;align-items:center;gap:7px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#f7f9fa;font-size:14px}.exception-choice input{width:auto;margin:0}
.delivery-row{display:grid;grid-template-columns:1.4fr .8fr .7fr .8fr .8fr;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid #edf1f3;font-size:13px}.delivery-row:last-child{border-bottom:0}.delivery-row span{color:#6b7b83}
.status-good{color:#256246!important;font-weight:800}.status-bad{color:#963f3a!important;font-weight:800}
@media(max-width:800px){.record-tabs{width:100%;overflow-x:auto}.record-tabs a{flex:1 0 auto;text-align:center}.module-grid{grid-template-columns:1fr}.today-entry,.delivery-row{grid-template-columns:1fr 1fr}}

.saved-review-note{
  margin:10px 0 0;
  padding:10px 12px;
  border-radius:9px;
  background:#f7f9fa;
  color:#53646e;
  line-height:1.4;
}
#reviewSavedState .module-button{
  margin-top:12px;
}
.prove-it-admin-note{
  margin-top:12px !important;
}

.standard-confirm{
  padding:12px 14px;
  border:1px solid #dce4e8;
  border-radius:10px;
  background:#f7f9fa;
}
.standard-confirm strong{display:block;margin-bottom:5px;color:var(--ink)}
.standard-confirm span{display:block;color:#687981;font-size:13px;line-height:1.45}
.extra-check-list{
  display:grid;
  gap:8px;
}
.extra-check-list h3{
  margin:2px 0 2px;
  font-size:14px;
}
.check-row{
  display:flex !important;
  align-items:flex-start;
  gap:10px;
  padding:11px 12px;
  border:1px solid #e1e7ea;
  border-radius:9px;
  background:#fff;
  color:var(--ink) !important;
  font-size:14px !important;
  font-weight:700 !important;
}
.check-row input{
  width:20px !important;
  height:20px;
  margin:0 !important;
  flex:0 0 auto;
}
.check-row span{
  line-height:1.35;
}
