/* Local Bite admin. Desktop keeps the layout it always had; the phone gets a collapsed menu,
   cards instead of wide tables and forms stacked one field per row (Diana, 2026-09-21). */
:root{font-family:system-ui,-apple-system,sans-serif;color:#20362d;background:#f4f6f3;font-size:15px}
*{box-sizing:border-box}
body{margin:0;overflow-wrap:break-word}
a{color:#19694a}
p{line-height:1.6;color:#53615a}
h1{font-size:30px;font-weight:600}
h2{margin-top:36px}
form{margin:0}

/* Header and navigation */
header{background:#183d31;color:#fff;padding:24px 5%;display:flex;flex-wrap:wrap;gap:24px;justify-content:space-between;align-items:center}
header strong{letter-spacing:2px}
header span{font-weight:400;color:#a8c9b9}
.header-tools{display:flex;gap:22px;align-items:center}
nav{display:flex;gap:22px;align-items:center}
nav a{color:#fff}
.menu-toggle{position:absolute;width:1px;height:1px;opacity:0}
.burger{display:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

main{max-width:1400px;margin:36px auto;padding:0 24px}
footer{padding:30px;text-align:center;color:#728175;font-size:12px}

/* Controls */
button,.button-link,a.secondary{border:0;border-radius:7px;background:#266847;color:#fff;padding:11px 17px;cursor:pointer;font:inherit;line-height:1.2}
.button-link,a.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none;font-weight:600}
a.secondary{background:#e8eee8;color:#20362d}
/* Confirm and cancel sit next to each other: same height on every screen. */
.actions button,.actions .button-link,.actions a.secondary{min-height:44px}
button[disabled]{opacity:.65;cursor:progress}
input,select{padding:10px;border:1px solid #c9d4cc;border-radius:6px;font:inherit;max-width:100%}
label input{display:block;width:100%;margin:8px 0 18px}
.filters,.actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}
/* One field per row with its name above it; on a wide screen they sit side by side. */
.stack{align-items:flex-end}
.stack label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#53615a;margin:0}
.stack label input,.stack label select{display:block;width:100%;margin:0}

/* Blocks */
.cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin:24px 0}
article{background:#fff;border:1px solid #dfe6df;padding:16px;border-radius:10px}
article span{display:block;color:#617066;font-size:13px}
article strong{display:block;margin-top:12px;font-size:32px}
.panel{background:#fff;border:1px solid #dfe6df;border-radius:10px;padding:22px;margin:20px 0}
.panel h2{margin-top:0}
.panel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.facts{margin:0 0 16px;display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:14px}
.facts>div{display:contents}
.facts dt{color:#617066}
.facts dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.notice{background:#e0eddd;border:1px solid #b2c9ab;padding:15px;border-radius:8px}
.warning{background:#fdf3e3;border:1px solid #e8cfa2;padding:14px;border-radius:8px;color:#7a4e12}
.login{max-width:440px;margin:70px auto;background:#fff;border:1px solid #dfe6df;padding:32px;border-radius:12px}
.login button{width:100%}
details{padding:12px 0}
summary{cursor:pointer}

/* Tables and their phone-sized replacement */
table{width:100%;border-collapse:collapse;background:#fff;text-align:left}
th,td{padding:14px;border-bottom:1px solid #e5eae5;font-size:13px}
th{background:#e8eee8}
.scroll{overflow:auto;-webkit-overflow-scrolling:touch}
.break{overflow-wrap:anywhere;max-width:240px}
.pagination{display:flex;gap:20px;margin:20px 0;align-items:center}
.record-cards{display:none;list-style:none;margin:18px 0;padding:0;gap:12px}
.record-cards li{background:#fff;border:1px solid #dfe6df;border-radius:10px;padding:16px}
.record-title{margin:0 0 4px;font-size:16px;font-weight:600;color:#20362d}
.record-sub{margin:0 0 12px;font-size:13px;color:#617066}
.record-cards .button-link{width:100%}

/* Charts */
.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.chart-grid>article{min-width:0}
.chart-grid h2{margin-top:0;font-size:20px}
.chart-grid svg{width:100%;height:auto;font-size:12px}
.chart-data{max-height:260px}
.series-one{color:#266847}
.series-two{color:#a56517}
meter{width:100%;height:18px}

/* Tablet: the menu collapses and the charts go one per row. */
@media(max-width:900px){
  .cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .chart-grid{grid-template-columns:minmax(0,1fr)}
  header{padding:14px 16px;gap:12px}
  .burger{display:inline-flex;align-items:center;justify-content:center;min-width:46px;min-height:46px;border:1px solid rgba(255,255,255,.35);border-radius:8px;color:#fff;font-size:20px;cursor:pointer}
  .with-menu .header-tools{display:none;width:100%;flex-direction:column;align-items:stretch;gap:10px}
  .menu-toggle:checked~.header-tools{display:flex}
  .menu-toggle:focus-visible~.burger{outline:3px solid #a8c9b9}
  nav{flex-direction:column;align-items:stretch;gap:0}
  nav a{padding:13px 2px;border-bottom:1px solid rgba(255,255,255,.18)}
  nav form button,.language-switch button{width:100%;min-height:46px}
}

/* Phone: cards instead of wide tables, one field per row, finger-sized buttons. */
@media(max-width:760px){
  main{margin:20px auto;padding:0 14px}
  h1{font-size:24px}
  h2{margin-top:26px;font-size:19px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  article strong{font-size:26px}
  .panel{padding:16px;border-radius:12px}
  .filters,.actions{flex-direction:column;align-items:stretch;gap:12px}
  .filters button,.actions button,.actions .button-link,.actions a.secondary,.panel form button{width:100%;min-height:46px;font-size:16px}
  .stack label input,.stack label select{min-height:46px;font-size:16px}
  .only-wide{display:none}
  .record-cards{display:grid}
  .pagination{justify-content:space-between;gap:10px}
  .break{max-width:100%}
  table{font-size:13px}
  th,td{padding:10px}
}

@media(max-width:400px){
  main{padding:0 10px}
  .cards{grid-template-columns:1fr}
  header{padding:12px}
  .facts{grid-template-columns:1fr;gap:2px 0}
  .facts dd{margin-bottom:8px}
}
.hint{color:#728175;font-size:12px}
