:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#111827;background:#f3f4f6}*{box-sizing:border-box}body{margin:0;min-height:100vh}.hidden{display:none!important}.center{min-height:100vh;display:grid;place-items:center;padding:24px}.card{background:#fff;border-radius:18px;box-shadow:0 14px 40px rgba(15,23,42,.12);padding:28px;width:min(440px,100%)}.brand{font-size:28px;font-weight:800;margin:0 0 6px}.sub{color:#6b7280;margin:0 0 24px}.field{display:grid;gap:7px;margin-bottom:15px}.field label{font-size:14px;font-weight:700}.field input{width:100%;padding:12px 14px;border:1px solid #d1d5db;border-radius:10px;font-size:15px;outline:none}.field input:focus{border-color:#111827}.btn{border:0;border-radius:10px;padding:12px 16px;font-weight:800;cursor:pointer;background:#111827;color:#fff}.btn.secondary{background:#e5e7eb;color:#111827}.error{background:#fee2e2;color:#991b1b;border-radius:10px;padding:10px 12px;margin:0 0 14px}.layout{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.sidebar{background:#111827;color:#fff;padding:22px 16px;display:flex;flex-direction:column;gap:18px}.sidebar h1{font-size:20px;margin:0 8px}.userbox{background:#1f2937;border-radius:12px;padding:12px}.userbox small{color:#9ca3af}.nav{display:grid;gap:6px}.nav button{border:0;background:transparent;color:#d1d5db;padding:11px 12px;border-radius:9px;text-align:left;font-size:14px;cursor:pointer}.nav button:hover,.nav button.active{background:#1f2937;color:#fff}.sidebottom{margin-top:auto}.content{padding:30px}.top{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.top h2{margin:0}.badge{background:#dcfce7;color:#166534;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}.module{background:#fff;border-radius:14px;padding:18px;box-shadow:0 6px 20px rgba(15,23,42,.07);border:1px solid #e5e7eb}.module h3{margin:0 0 8px}.module p{margin:0;color:#6b7280;font-size:14px}.panel{background:#fff;border-radius:14px;padding:20px;border:1px solid #e5e7eb}.muted{color:#6b7280}.warning{background:#fff7ed;border:1px solid #fdba74;color:#9a3412;border-radius:12px;padding:12px 14px;margin-top:16px}@media(max-width:800px){.layout{grid-template-columns:1fr}.sidebar{position:static}.content{padding:18px}}
.clickable{cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}.clickable:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.10)}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.tablewrap{overflow:auto;background:#fff;border:1px solid #e5e7eb;border-radius:14px}table{width:100%;border-collapse:collapse;min-width:720px}th,td{text-align:left;padding:13px 14px;border-bottom:1px solid #eef0f3;font-size:14px}th{background:#f9fafb;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#6b7280}tr:last-child td{border-bottom:0}.small{font-size:12px}.rolepill,.status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800}.rolepill{background:#eef2ff;color:#3730a3}.status.on{background:#dcfce7;color:#166534}.status.off{background:#fee2e2;color:#991b1b}.mini{border:1px solid #d1d5db;background:#fff;border-radius:8px;padding:7px 9px;cursor:pointer}.modalback{position:fixed;inset:0;background:rgba(15,23,42,.62);display:grid;place-items:center;padding:20px;z-index:50}.modal{width:min(920px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;padding:22px;box-shadow:0 20px 60px rgba(0,0,0,.28)}.modalhead{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.modalhead h3{margin:0 0 4px}.modalhead p{margin:0}.x{border:0;background:#f3f4f6;width:36px;height:36px;border-radius:999px;font-size:23px;cursor:pointer}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.field select{width:100%;padding:12px 14px;border:1px solid #d1d5db;border-radius:10px;background:#fff;font-size:15px}.permhead{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:14px 0 10px}.permgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.perm{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #e5e7eb;border-radius:10px;padding:10px}.perm span{display:grid;gap:2px}.perm small{font-size:11px;color:#6b7280}.perm select{padding:8px;border:1px solid #d1d5db;border-radius:8px;background:#fff}.actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px;flex-wrap:wrap}.toast{position:fixed;right:20px;bottom:20px;padding:12px 16px;border-radius:10px;background:#111827;color:#fff;z-index:80;transform:translateY(30px);opacity:0;transition:.2s}.toast.show{transform:none;opacity:1}.toast.error{background:#991b1b}@media(max-width:700px){.formgrid,.permgrid{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.perm{align-items:flex-start;flex-direction:column}.perm select{width:100%}}
.toolbar-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.weekgrid{display:grid;grid-template-columns:repeat(7,minmax(220px,1fr));gap:12px;overflow:auto;padding-bottom:6px}.daycard{background:#fff;border:1px solid #e5e7eb;border-radius:14px;min-height:180px;overflow:hidden}.dayhead{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:11px 12px;background:#f9fafb;border-bottom:1px solid #e5e7eb}.dayhead span{font-size:11px;color:#6b7280}.daybody{padding:8px;display:grid;gap:7px}.shiftrow{border:1px solid #e5e7eb;border-radius:10px;padding:10px;display:grid;gap:8px}.shiftpill{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:800}.shiftpill.work{background:#dbeafe;color:#1e40af}.shiftpill.off{background:#dcfce7;color:#166534}.shiftpill.leave{background:#fef3c7;color:#92400e}.emptyday{color:#9ca3af;font-size:12px;padding:12px 5px}.note{margin-top:5px}.span2{grid-column:1/-1}.btn.danger{background:#991b1b}.disabledfield{opacity:.45}.disabledfield input{pointer-events:none}.shiftmodal{width:min(760px,100%)}@media(max-width:900px){.weekgrid{grid-template-columns:repeat(7,minmax(250px,1fr))}.shifttoolbar{align-items:stretch;flex-direction:column}}


/* v0.4 schedule design — based on the printed weekly restaurant roster */
.schedule-sheet{background:#fff;border:1px solid #cfcfcf;box-shadow:0 5px 18px rgba(0,0,0,.05)}
.schedule-title{text-align:center;font-size:20px;font-weight:800;padding:8px 12px 6px;color:#111;background:#fff}
.schedule-wrap{overflow:auto}
.schedule-table{border-collapse:collapse;min-width:1050px;width:100%;table-layout:fixed;border:1px solid #333}
.schedule-table th,.schedule-table td{border:1px solid #555;padding:7px 6px;text-align:center;vertical-align:middle;font-size:13px;line-height:1.15}
.schedule-table thead th{background:#f7d45d;color:#111;text-transform:none;letter-spacing:0;font-size:13px;font-weight:800}
.schedule-table thead th small{display:block;font-size:10px;color:#333;margin-top:2px}
.schedule-table .name-head{width:250px}
.schedule-table .employee-name{background:#fff;color:#111;text-align:center;font-weight:600;width:250px;white-space:nowrap}
.schedule-cell{height:42px;background:#fff;color:#111;font-weight:600;cursor:default}
.schedule-cell.work{background:#fff;color:#111}
.schedule-cell.off{background:#fff;color:#d71920;font-weight:800}
.schedule-cell.sick{background:#ffd9e2;color:#c5161d;font-weight:800}
.schedule-cell.leave{background:#fff;color:#c65d00;font-weight:800}
.schedule-cell.empty{background:#fff;color:#bbb}
.schedule-text{display:inline-block;font-weight:inherit;color:inherit;white-space:nowrap}
.clickable-cell{cursor:pointer;transition:box-shadow .12s ease,background .12s ease}
.clickable-cell:hover{box-shadow:inset 0 0 0 2px #111;background:#fffbe8}
.schedule-legend{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:10px 12px;font-size:12px;border-top:1px solid #ddd}
.schedule-legend span{display:flex;align-items:center;gap:6px}
.legend-swatch{width:18px;height:14px;border:1px solid #777;background:#fff;display:inline-block}
.legend-swatch.off{background:#fff;border-color:#d71920}
.legend-swatch.sick{background:#ffd9e2;border-color:#c5161d}
.legend-swatch.leave{background:#fff;border-color:#c65d00}
.legend-swatch.work{background:#fff;border-color:#111}
@media(max-width:800px){.schedule-title{font-size:17px}.schedule-table .name-head,.schedule-table .employee-name{width:190px}.schedule-table{min-width:920px}}
@media print{
  .sidebar,.top,.toolbar,.schedule-legend{display:none!important}
  .layout{display:block}.content{padding:0}.schedule-sheet{border:0;box-shadow:none}
  .schedule-title{font-size:18px}.schedule-wrap{overflow:visible}
  .schedule-table{min-width:0;width:100%;font-size:9px}
  .schedule-table th,.schedule-table td{padding:4px 3px;font-size:9px}
  .schedule-table .name-head,.schedule-table .employee-name{width:22%}
  @page{size:landscape;margin:8mm}
}

.schedule-cell.split{background:#fff;color:#111;font-weight:600}
.legend-swatch.split{background:#fff;border-color:#111}
.schedule-text.split{line-height:1.08;display:inline-block}
.schedule-text.split b{font-weight:800}
.secondtimefield.disabledfield{opacity:.45}
.secondtimefield.disabledfield input{pointer-events:none}

.program-filter{padding:14px 16px;border:1px solid #e5e7eb;border-radius:12px;margin:12px 0;background:#fafafa}
.filter-checks{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:10px}.filter-checks label{font-size:13px;font-weight:700}
.dept-schedule{margin:20px 0 30px}.dept-schedule h3{margin:0;padding:10px 14px;background:#f4c20d;border:1px solid #222;border-bottom:0;text-transform:uppercase}
.dept-row{display:grid;grid-template-columns:1fr 90px 100px auto;gap:8px;align-items:center;margin:8px 0}.dept-row input{padding:9px;border:1px solid #ddd;border-radius:8px}
.excel-preview{max-height:260px;overflow:auto;padding:12px;background:#fafafa;border:1px solid #eee;border-radius:10px;margin-top:12px}
@media(max-width:700px){.dept-row{grid-template-columns:1fr 70px}.filter-checks{display:grid;grid-template-columns:1fr 1fr}}


/* PRINT ORIENTATION v0.6 */
@media print{
  body{background:#fff!important;}
  .sidebar,.topbar,.toolbar-actions,.program-filter,.modalback{display:none!important;}
  .main,.content,#page,.card,.schedule-card{margin:0!important;padding:0!important;box-shadow:none!important;border:0!important;max-width:none!important;width:100%!important;}
  .dept-schedule{page-break-inside:avoid;margin:0 0 8mm!important;}
  .dept-schedule h3{background:#f4c20d!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
  .schedule-wrap{overflow:visible!important;}
  .schedule-table{width:100%!important;border-collapse:collapse!important;font-size:8.5pt!important;}
  .schedule-table th,.schedule-table td{padding:3px 4px!important;border:1px solid #222!important;}
  .schedule-table .employee-name{min-width:34mm!important;}
  .shift-off{background:#fff!important;color:#c00000!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
  .shift-sick{background:#ffd9e2!important;color:#c00000!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
  .shift-leave{background:#fff!important;color:#c65f00!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
  .shift-normal,.shift-split{background:#fff!important;color:#000!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
}


/* v0.7 FULL WIDTH WORKSPACE */
.layout{grid-template-columns:260px minmax(0,1fr)!important;}
.content{width:100%!important;max-width:none!important;min-width:0!important;}
#page{width:100%!important;max-width:none!important;min-width:0!important;}
.schedule-card{width:100%!important;max-width:none!important;padding:20px!important;}
.schedule-wrap{width:100%!important;}
.schedule-table{width:100%!important;min-width:980px!important;}
.dept-schedule{width:100%!important;}
@media(min-width:801px){
  .content{padding:24px 26px!important;}
}
@media(max-width:800px){
  .content{width:100%!important;}
}

/* Main Restaurant v0.7 */
.main-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.main-tab{border:1px solid #d1d5db;background:#fff;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}
.main-tab.active{background:#111827;color:#fff;border-color:#111827}
.main-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:18px}
.main-stat{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px}
.main-stat strong{display:block;font-size:24px;margin-top:5px}
.station-grid{display:grid;gap:10px}
.station-row{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(150px,.8fr) minmax(170px,.9fr) minmax(160px,.8fr) auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}
.station-row select,.station-row input{width:100%;padding:10px;border:1px solid #d1d5db;border-radius:9px;background:#fff}
.main-day-toolbar{display:flex;justify-content:space-between;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.main-day-toolbar .field{margin:0;min-width:190px}
.station-name{font-weight:800}
.station-shift{font-size:12px;color:#6b7280;margin-top:3px}
.food-coming{padding:28px;text-align:center;background:#fff;border:1px dashed #cbd5e1;border-radius:14px}
@media(max-width:950px){
 .station-row{grid-template-columns:1fr 1fr}
 .station-row .station-name-wrap{grid-column:1/-1}
}

/* v0.8 User Main flags + Main Food Excel view */
.checkfield{display:flex;align-items:center}.checkfield label{font-weight:800}.checkfield input[type=checkbox]{width:auto;margin-right:8px}
.food-sheet-wrap{width:100%;overflow:auto;border:1px solid #9ca3af;background:#fff}
.food-sheet{border-collapse:collapse;min-width:2600px;width:100%;font-size:12px}
.food-sheet th,.food-sheet td{border:1px solid #9ca3af;padding:6px;text-align:center;white-space:nowrap}
.food-sheet th{background:#facc15;color:#111;font-weight:900;position:sticky;top:0;z-index:2}
.food-sheet th span,.food-sheet th small{display:block}
.food-sheet td:nth-child(1),.food-sheet td:nth-child(2),.food-sheet td:nth-child(3),.food-sheet td:nth-child(4){text-align:left}
.food-plan-cell input{width:18px;height:18px}
@media print{.food-sheet-wrap{overflow:visible!important}.food-sheet{min-width:0!important;font-size:6pt!important}.food-sheet th,.food-sheet td{padding:2px!important}}

/* v0.9 Main Food - Aeolos label template */
.label-preview-head,.food-section-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:18px 0 10px}
.menu-label-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:14px;margin-bottom:26px}
.menu-label-preview{background:#fff;border:1px solid #d1d5db;min-height:250px;padding:14px 18px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.menu-label-preview img{width:91px;height:84px;object-fit:contain;margin-bottom:18px}
.label-el{font-size:19px;font-weight:900;margin-top:4px}.label-en{font-size:15px;font-weight:700;margin-top:12px}.label-fr{font-size:15px;margin-top:9px}
.linkbtn{text-decoration:none;color:inherit;display:inline-flex;align-items:center}
@media(max-width:950px){.menu-label-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.menu-label-grid{grid-template-columns:1fr}}

/* v1.0 Automatic Main Food translation + multiline labels */
.label-el,.label-en,.label-fr{
  width:100%;
  white-space:normal!important;
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.22;
  text-align:center;
}
.label-el{min-height:46px;display:flex;align-items:center;justify-content:center}
.label-en,.label-fr{min-height:38px;display:flex;align-items:center;justify-content:center}
.auto-pill{display:inline-block;font-size:9px;line-height:1;background:#e0f2fe;color:#075985;border-radius:999px;padding:3px 6px;margin-left:5px;font-weight:900}
.translation-status{padding:8px 10px;border-radius:8px;background:#f8fafc}
.translation-status.translating{background:#fef9c3;color:#854d0e}
.translation-status.translated{background:#dcfce7;color:#166534;font-weight:700}
.translation-status.translation-error{background:#fee2e2;color:#991b1b}
.fullfield{grid-column:1/-1}

/* v1.3 FIXED Main Stations */
.main-stations-wrap{width:100%;overflow:auto;background:#fff;border:1px solid #d1d5db;border-radius:12px}.main-stations-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:900px}.main-stations-table th,.main-stations-table td{border:1px solid #d1d5db;padding:12px;vertical-align:top}.main-stations-table thead th{background:#f3f4f6;text-align:center}.main-stations-table tbody th{width:85px;text-align:center;background:#fafafa}.main-slot{min-height:100px;position:relative}.main-slot.editable{cursor:pointer}.main-slot.editable:hover{background:#f8fafc}.slot-person{border-bottom:1px solid #eee;padding:5px 2px}.slot-person:last-of-type{border-bottom:0}.slot-person strong,.slot-person small{display:block}.slot-person small{color:#64748b;font-size:11px;margin-top:2px}.slot-edit{margin-top:8px;border:0;background:#111827;color:#fff;border-radius:7px;padding:5px 8px;font-size:11px;cursor:pointer}.station-picker-list{max-height:430px;overflow:auto;display:grid;gap:8px}.station-person{display:flex;gap:10px;align-items:flex-start;border:1px solid #e5e7eb;border-radius:10px;padding:10px}.station-person input{margin-top:3px}.station-person span,.station-person small{display:block}.station-person small{color:#64748b;margin-top:3px}.main-legend{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px;padding:10px 12px;background:#fff;border:1px solid #e5e7eb;border-radius:10px}

/* v1.5 Main Food approved UI */
.food-app-shell{max-width:1500px;margin:0 auto}.food-app-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.food-app-head h2{font-size:34px;margin:0 0 4px;color:#10233f}.food-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.food-entry-card{background:#fff;border:1px solid #d9e0e8;border-radius:22px;padding:26px;box-shadow:0 5px 18px rgba(15,35,63,.04)}.food-entry-card h2{font-size:26px;margin:0 0 22px;color:#10233f}.food-entry-card .field label{font-size:16px;color:#10233f}.food-entry-card .field input{border-radius:14px;padding:14px 16px;font-size:16px}.food-form-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}.food-form-actions .btn{border-radius:13px;font-size:15px}.chatgpt-food-link{display:flex;justify-content:center;align-items:center;margin-top:12px;padding:11px 14px;border:1px solid #d8dee8;border-radius:13px;text-decoration:none;color:#10233f;font-weight:800;background:#fff}.selected-food-list{margin-top:22px;display:grid;gap:8px}.selected-food-row{padding:10px 12px;border:1px solid #e5e7eb;border-radius:10px;display:grid;gap:3px}.selected-food-row span{font-size:12px;color:#64748b}.food-catalog-card{margin-top:22px}.food-catalog-head{display:flex;justify-content:space-between;gap:16px;align-items:center}.food-catalog-head h2{margin-bottom:4px}.food-catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px;margin-top:18px}.food-choice{display:flex;gap:11px;align-items:flex-start;padding:13px;border:1px solid #e5e7eb;border-radius:12px;cursor:pointer;background:#fafafa}.food-choice:hover{border-color:#94a3b8;background:#fff}.food-choice input{width:18px;height:18px;margin-top:3px}.food-choice span{display:grid;gap:3px}.food-choice small,.food-choice em{font-size:12px;color:#64748b}.food-choice em{font-style:normal;font-weight:700}.auto-pill,.translation-status{display:none!important}@media(max-width:900px){.food-entry-grid{grid-template-columns:1fr}.food-app-head h2{font-size:28px}}

/* v1.6 */
.food-choice-card{display:flex!important;flex-direction:column;gap:10px}
.food-choice-card>label{display:flex;gap:10px;align-items:flex-start}
.food-card-actions{display:flex;gap:8px;justify-content:flex-end}
.mini.danger{border-color:#fecaca;color:#b91c1c;background:#fff}
.mini.danger:hover{background:#fef2f2}

/* v1.7 IONIO */
.ionio-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:18px;flex-wrap:wrap}
.ionio-head h2{margin:0 0 4px}.ionio-head .field{margin:0;min-width:190px}
.ionio-food-layout,.ionio-tips-layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(280px,.8fr);gap:18px}
.ionio-food-group{margin:18px 0}.ionio-food-group h3{margin:0 0 8px;padding:8px 10px;background:#f3f4f6;border-radius:8px}
.ionio-item-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}
.ionio-item{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e5e7eb;border-radius:10px;padding:9px 10px;background:#fff}
.ionio-item input{width:72px;padding:7px;border:1px solid #d1d5db;border-radius:7px}
.ionio-total-list{display:grid;gap:8px}.ionio-total-list>div{display:flex;justify-content:space-between;gap:12px;padding:9px 10px;border-bottom:1px solid #e5e7eb}.ionio-total-list small{display:block;color:#6b7280}
.ionio-stats{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:12px;margin-bottom:18px}
@media(max-width:900px){.ionio-food-layout,.ionio-tips-layout{grid-template-columns:1fr}.ionio-stats{grid-template-columns:1fr}}

/* v1.8 IONIO FINAL */
.staff-filterbar{align-items:center;gap:12px;flex-wrap:wrap}.filter-group{display:flex;gap:6px;flex-wrap:wrap}.mini.active{background:#111827;color:#fff}.workpill{display:inline-block;padding:4px 7px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;margin:2px}
.workplace-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px;border-bottom:1px solid #e5e7eb}.subtabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.device-select{text-align:center;padding:36px}.device-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}.device-card{min-height:150px;font-size:42px;background:#f8fafc;border:1px solid #dbeafe;border-radius:16px}.device-card span{display:block;font-size:18px;margin-top:10px}
.ionio-work{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(260px,.7fr);gap:16px}.ionio-work>.ionio-head{grid-column:1/-1}.tables-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:8px;grid-column:1/2}.table-btn{min-height:74px;border:1px solid #dbe3ef;border-radius:12px;background:#fff}.table-btn strong{font-size:24px;display:block}.table-btn small{color:#64748b}
.ionio-order{grid-column:1/2}.ionio-order-head{display:flex;justify-content:space-between;align-items:center}.pda-category h3{padding:9px 12px;background:#f1f5f9;border-radius:9px}.pda-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.pda-item{position:relative;min-height:120px;padding:14px;border:2px solid #e2e8f0;border-radius:14px;background:#fff;text-align:left}.pda-item span{display:block;font-weight:700;padding-right:36px}.pda-item strong{display:block;font-size:36px;margin-top:8px}.pda-item small{display:block;color:#64748b}.pda-item i{position:absolute;right:10px;bottom:10px;width:34px;height:34px;border-radius:50%;background:#fee2e2;color:#b91c1c;display:grid;place-items:center;font-size:24px;font-style:normal}.pda-item.selected{border-color:#2563eb;background:#eff6ff}
.mode-tablet .pda-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.mode-tablet .pda-item{min-height:145px}.mode-mobile .pda-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mode-mobile .pda-item{min-height:130px}.mode-mobile .tables-grid{grid-template-columns:repeat(5,1fr)}
.daily-totals{grid-column:2;grid-row:2/span 2}.rules-table-wrap{overflow:auto;max-height:65vh}.rules-table{border-collapse:collapse}.rules-table th,.rules-table td{padding:6px;border:1px solid #e5e7eb;min-width:90px}.rules-table input{width:70px;padding:6px}.printer-card{display:grid;gap:4px;padding:12px;border:1px solid #e5e7eb;border-radius:10px;margin:8px 0}
.tips-money-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.tips-users{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.tip-user{padding:12px;border:1px solid #dbe3ef;border-radius:10px;display:flex;gap:9px;align-items:center}.tip-user.selected{background:#eff6ff;border-color:#2563eb}
@media(max-width:900px){.device-grid{grid-template-columns:1fr}.ionio-work{grid-template-columns:1fr}.tables-grid,.ionio-order,.daily-totals{grid-column:1;grid-row:auto}.tips-money-grid{grid-template-columns:1fr 1fr}.workplace-row{grid-template-columns:1fr}}

/* v1.9 Final Main Food */
.old-main-food .food-search{min-width:280px;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px}
.old-main-food .food-choice-card>div:first-child{display:grid;gap:3px}.old-main-food .food-choice-card small,.old-main-food .food-choice-card em{display:block}.selected-item-final{padding:12px;border:1px solid #e5e7eb;border-radius:10px;margin-bottom:9px}.selected-item-final small{display:block;color:#64748b;margin:5px 0}.selected-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.selected-actions input{width:70px;padding:6px}
@media print{.main-stations-table .slot-person{break-inside:avoid}}

/* v2.2 FINAL branding */
.top-right-group{display:flex;align-items:center;gap:14px;justify-content:flex-end;flex-wrap:wrap}
.aeolos-brand{display:flex;align-items:center;gap:9px;font-weight:700;color:#0f172a;white-space:nowrap}
.aeolos-brand img{width:48px;height:48px;object-fit:contain;border-radius:6px;background:#fff}
@media(max-width:850px){.aeolos-brand span{display:none}.aeolos-brand img{width:40px;height:40px}}

/* v2.4 sidebar branding */
.sidebar-brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin:4px 4px 18px;
  font-size:18px;
  line-height:1.15;
  font-weight:800;
  color:#fff;
}
.sidebar-brand img{
  width:48px;
  height:48px;
  object-fit:contain;
  background:#fff;
  border-radius:6px;
  flex:0 0 auto;
}
.sidebar-brand span{display:block}
@media(max-width:760px){
  .sidebar-brand span{font-size:15px}
  .sidebar-brand img{width:42px;height:42px}
}

/* v2.5 per-user permissions */
.user-row-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.permissions-modal{width:min(900px,94vw);max-height:90vh;overflow:auto}
.permission-programs{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;margin:16px 0}
.permission-program{border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:#f8fafc}
.permission-program-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.permission-options{display:grid;gap:7px}
.permission-option{display:flex;align-items:flex-start;gap:9px;padding:8px;border-radius:8px;background:#fff;border:1px solid #e5e7eb;cursor:pointer}
.permission-option input{margin-top:3px}
.permission-option span{display:grid;gap:2px}
.permission-option small{color:#64748b;font-size:11px}
