/* Warungku Leaf: a shared accessible palette for platform, tenant, menu and help. */
:root{color-scheme:light;--navy:#087f43;--ink:#193e2c;--muted:#567064;--line:#dcecdf;--edge:#dcecdf;--paper:#f4faf3;--accent:#d5efbd;--gold:#86c86a;--shadow:0 6px 24px #234c2d06}
body{background:radial-gradient(ellipse at 100% 0,#e0f4d8 0,transparent 40%),#f4faf3;color:var(--ink)}
header:not(.topbar){background:#e2f3d9;color:#174e32;border-bottom:1px solid #cee5c4;box-shadow:none;overflow:visible}
header h1,header .brand,header span{color:#174e32}header .brand-name{color:#467454}header::after{opacity:.08}.brand-mark{color:#087f43;background:#f9fff5;border-color:#b8d9b3;border-radius:16px}.brand span{color:#51765b}header .guide-link{color:#236c43}header button{border-color:#b9d7b9;color:#174e32;background:#f5fff0}.account-bar button:hover{background:#d1eac7;border-color:#7eb88c}
button{transition:background .15s,border-color .15s,box-shadow .15s}button:hover{background:#eef8e9;border-color:#92c49b}.primary,.add,.mobile-cart,.filters button[aria-pressed=true],.categories button[aria-pressed=true],nav button[aria-pressed=true]{background:#087f43;color:white;border-color:#087f43;box-shadow:none}.primary:hover,.add:hover,.mobile-cart:hover,nav button[aria-pressed=true]:hover{background:#066535;color:white}.primary:disabled,.add:disabled{background:#90ad98;border-color:#90ad98;color:#fff}
input,select,textarea{border-color:#c5dcca;color:#193e2c}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #4d9e66;outline-offset:3px}
.welcome-banner,.hero,.welcome{background:linear-gradient(115deg,#e1f3d7,#f0f9e9);border:1px solid #cee7c4;color:#174e32;border-radius:24px;box-shadow:none}.welcome-banner h2,.welcome h1,.hero h1{color:#164b2e}.welcome{padding:30px 34px;position:relative;overflow:hidden}.welcome h1{font-size:36px;margin:12px 0}.welcome p{position:relative;z-index:1;color:#426c4e}.welcome::after{content:'';position:absolute;right:28px;top:24px;width:130px;height:190px;border-radius:100% 0 100% 0;transform:rotate(25deg);background:#c4e6ae;opacity:.45;pointer-events:none}.welcome-banner p:not(.eyebrow),.hero p:not(.eyebrow){color:#426c4e}.eyebrow,.dark,.welcome-banner .eyebrow{color:#386c40}.hero{padding:28px 36px}.hero h1{font-size:38px}.hero-tags span{color:#315d3b;border-color:#b6d5ab;background:#f7ffef}.hero-art{width:180px}.plate{width:155px;height:155px;font-size:75px;background:#f1f9e6;border-color:#fffef8;box-shadow:8px 10px 0 #5e9c3420}.hero-art span{background:#c9eaaa;color:#28582c}.art-plate{background:#f0f8e4}.art-plate .ui-icon{color:#4d8756}.art-leaf{background:#84c471}
.menu-card,.dish,.card,.client,.order,.cart,.stat,.auth-card,.settings-card{border-color:#d8e8d8;box-shadow:0 4px 18px #224b2d04}.dish:hover:not(:disabled),.menu-card:hover{border-color:#9bcb99;box-shadow:0 5px 18px #2e69380b}.dish strong,.stat strong{color:#21452d}.dish span{color:#087340}.menu-icon{background:#eef8e3}.menu-card h3{color:#21452d}.stock{color:#397347}.stock.empty{color:#916035}.order,.auth-card{border-top:3px solid #9ad276}.auth-emblem{background:#eaf6df;color:#087f43}.total,.pill{background:#eef8e6;color:#214c2f}.empty{background:#f8fcf4;border-color:#d5e8d1}.stat{border-top:3px solid #a8d68d}.stat:nth-child(2){border-top-color:#65b77c}.stat:nth-child(3){border-top-color:#badc92}.stats-label,.workspace-note,.hint{color:#567064}.badge{background:#e4f5df;color:#286535}.badge.low{background:#fff0cf;color:#825d14}th{background:#eef7e9;color:#42634d}tbody tr:hover{background:#f5fbf0}#toast,.notice,.login-tip,.qris-status{background:#e8f5df;color:#355e3d}.table-wrap,dialog{border-color:#d5e6d5}dialog::backdrop{background:#15392380}footer{border-color:#dcecdf;color:#567064}header a{color:#236c43}header p{color:#426c4e}
@media(max-width:700px){.hero{padding:26px 22px}.hero h1{font-size:30px}.welcome{padding:24px}.welcome h1{font-size:29px}.welcome::after{width:80px;height:120px;right:5px}.hero-art{display:none}.topbar{padding:20px 16px}.brand{font-size:23px}.topbar .nav-link{padding:9px 12px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
.account-bar #logout{color:#174e32;background:#f5fff0;border-color:#b9d7b9}.welcome+.stats{margin-top:20px}

/* Phone-first touch and reading comfort across tenant, customer and platform. */
button, input, select, textarea, summary { touch-action: manipulation; }
.order-shortcut { display:none; }
@media (max-width:760px) {
  body { font-size:16px; line-height:1.55; }
  main, section, .layout > *, .fields > *, .settings-grid > * { min-width:0; }
  main { padding-inline:16px; }
  button, input:not([type=checkbox]):not([type=radio]), select, textarea {
    font-size:16px; min-height:48px;
  }
  button { white-space:normal; overflow-wrap:anywhere; }
  label, .hint, .subtitle, .muted, .session-note { font-size:14px; }
  input, select, textarea { max-width:100%; }
  input[type=checkbox], input[type=radio] { width:24px; height:24px; flex-shrink:0; }
  h2 { font-size:22px; }
  header:not(.topbar) { display:flex; flex-wrap:wrap; gap:12px; padding:16px; }
  .brand-lockup { flex:1 1 190px; min-width:0; }
  header .brand-name { max-width:none; text-align:left; font-size:12px; letter-spacing:.5px; }
  .account-bar { max-width:none; justify-content:flex-start; gap:8px; }
  .account-bar span { max-width:none; text-align:left; font-size:14px; overflow-wrap:anywhere; }
  header .guide-link, .topbar .nav-link { display:inline-flex; align-items:center; min-height:48px; }
  .welcome-banner { padding:18px; border-radius:16px; }
  .welcome-banner h2 { font-size:22px; }
  .welcome-banner p:not(.eyebrow), .hero p { font-size:15px; }
  .eyebrow, .auth-card .eyebrow { font-size:11px; letter-spacing:1px; }
  #workspace > nav {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px; padding:6px; margin:16px 0 24px;
  }
  #workspace > nav button {
    flex-direction:column; justify-content:center; gap:6px;
    min-height:76px; padding:10px 4px; font-size:14px; line-height:1.3;
  }
  #workspace > nav button .ui-icon { width:24px; height:24px; opacity:1; }
  .layout, .settings-grid, .fields { grid-template-columns:minmax(0,1fr); gap:16px; }
  .filters, .categories { max-width:100%; overflow-x:auto; padding:8px 3px 12px; }
  .filters button, .categories button { font-size:14px; min-height:48px; }
  .dish { padding:14px; min-height:140px; }
  .dish strong { font-size:16px; }
  .dish small, .stock { font-size:13px; }
  .dish span { font-size:16px; }
  .order-shortcut {
    display:flex; align-items:center; justify-content:center; min-height:48px;
    padding:10px; margin:4px 0 14px; border:1px solid #b8d9b3;
    border-radius:12px; color:#174e32; background:#e8f5df; font-weight:650;
  }
  .order, .cart, #cashier-order { scroll-margin-top:16px; padding:18px; }
  .line { flex-wrap:wrap; }
  .line > div:first-child { flex:1 1 140px; overflow-wrap:anywhere; }
  .quantity { gap:10px; }
  .quantity button { min-width:48px; min-height:48px; padding:8px; }
  .toolbar, .actions, .report-controls { gap:10px; }
  .actions > button, .actions > a { flex:1 1 140px; }
  .report-controls > * { flex:1 1 100%; min-width:0; }
  .report-controls input, .report-controls select { min-width:0; width:100%; }
  .settings-card, .card, .client { padding:18px; overflow-wrap:anywhere; }
  .auth-container { padding:0 16px; }
  .auth-card { padding:24px 20px; margin:20px auto; }
  .auth-card label, .auth-card .hint { font-size:14px; }
  .table-wrap { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; }
  th, td { padding:12px; font-size:14px; }
  td button { font-size:14px; min-height:48px; }
  .table-wrap:focus-visible { outline:3px solid #4d9e66; outline-offset:2px; }
  dialog {
    width:calc(100% - 24px); max-width:560px; max-height:calc(100dvh - 32px);
    padding:20px; overflow-y:auto;
  }
  dialog .actions { flex-wrap:wrap; }
  dialog .actions button { flex:1 1 120px; }
  footer { padding-bottom:max(24px,env(safe-area-inset-bottom)); font-size:14px; }
  .topbar { flex-wrap:wrap; gap:12px; padding:16px; }
  .hero { padding:22px 18px; }
  .hero h1 { font-size:28px; }
  .hero-tags { flex-wrap:wrap; }
}
@media (max-width:360px) {
  main { padding-inline:12px; }
  .menu { gap:8px; }
  .dish { padding:12px; }
  #workspace > nav button { font-size:13px; }
}

/* Fresh POS: white surfaces, forest accents and compact food-first cards. */
:root { --navy:#2d7658; --ink:#202d27; --muted:#748078; --edge:#e9eee8; --line:#e9eee8; --paper:#fafbf8; --shadow:0 4px 18px #24392c05; }
body { background:#fafbf8; color:var(--ink); }
header:not(.topbar) { background:#fff; border-bottom:1px solid #edf0e9; }
.brand-mark { background:#eef5e7; color:#2d7658; border:0; }
.brand-name { letter-spacing:.5px; }
.welcome-banner { background:#edf4dc; border:0; border-radius:20px; }
.welcome-banner h2 { color:#243c2b; }
.welcome-banner .eyebrow { color:#628345; }
.art-plate { background:#fff; }
.primary,.add,nav button[aria-pressed=true],.filters button[aria-pressed=true] { background:#2d7658; border-color:#2d7658; }
.primary:hover,.add:hover { background:#245e47; }
button { border-radius:14px; }
input,select,textarea { background:#f7f9f5; border-color:#e9eee5; border-radius:12px; }
.menu { gap:16px; }
.dish { background:#fff; border:1px solid #edf0e9; border-radius:20px; box-shadow:none; gap:5px; }
.dish-art { display:grid; place-items:center; width:100%; height:110px; padding:0!important; background:#f3f6eb; border-radius:14px; margin-bottom:6px; }
.dish-art svg { width:140px; height:105px; max-width:100%; }
.dish > small { font-size:12px; }
.dish > strong { color:#26382b; }
.dish > span:not(.dish-art) { color:#2d7658; font-weight:750; }
.dish:disabled { background:#fafbf8; }
.dish:disabled .dish-art { filter:grayscale(1); }
.order,.cart,.settings-card,.auth-card { border-top:1px solid #e9eee5; border-radius:22px; box-shadow:none; }
.total { background:#f1f6e9; }
.auth-card { border:1px solid #e9eee5; }
.auth-emblem { border-radius:50%; background:#edf4dc; }
.auth-card h2 { color:#243c2b; }
.auth-card .primary { background:#2d7658; }
.filters button,.categories button { border-radius:24px; background:#fff; }
.menu-card { border-radius:20px; box-shadow:none; }
.menu-icon { background:#f2f6e9; border-radius:16px; }
.hero { background:#edf4dc; border:0; }
.topbar { background:#fafbf8; }
@media(max-width:760px) {
  body { padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
  header:not(.topbar) { padding:14px 16px; gap:8px 12px; }
  .brand-lockup { flex:1 1 170px; }
  header .guide-link { min-height:44px; padding:6px; }
  .account-bar { flex:1 1 100%; justify-content:space-between; order:3; }
  .account-bar #logout { min-height:44px; font-size:14px; padding:8px 14px; }
  .welcome-banner { padding:20px; margin-bottom:20px; }
  .welcome-banner h2 { font-size:24px; max-width:250px; }
  .workspace-note { display:none; }
  #workspace > nav {
    position:fixed; bottom:0; left:0; right:0; z-index:30;
    display:flex; flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start;
    gap:4px; margin:0; border:0; border-top:1px solid #e8ede5; border-radius:0;
    padding:8px 12px calc(8px + env(safe-area-inset-bottom));
    background:#fffffff5; box-shadow:0 -4px 20px #213a2608;
    scrollbar-width:thin; scrollbar-color:#c2d6c4 transparent;
  }
  #workspace > nav button {
    flex:0 0 72px; min-height:60px; font-size:12px; gap:5px;
    padding:8px 4px; border-radius:14px; background:transparent; color:#778078;
  }
  #workspace > nav button .ui-icon { width:23px; height:23px; }
  #workspace > nav button[aria-pressed=true] { color:#2d7658; background:#edf4e6; }
  #workspace > nav button:focus-visible { outline-offset:-3px; }
  #cashier h2 { margin-bottom:8px; }
  #cashier .subtitle { font-size:14px; }
  .menu { gap:12px; }
  .dish { min-height:238px; padding:10px; border-radius:18px; }
  .dish-art { height:100px; margin-bottom:4px; }
  .dish > strong { font-size:15px; line-height:1.35; }
  .dish > small { font-size:12px; }
  .dish > span:not(.dish-art) { margin-top:auto; font-size:15px; }
  .order-shortcut { background:#2d7658; color:white; border:0; border-radius:14px; text-decoration:none; }
  .auth-card { margin-top:16px; padding:28px 22px; }
  .auth-card h2 { font-size:26px; }
  .mobile-cart { bottom:calc(16px + env(safe-area-inset-bottom)); border-radius:16px; }
}

/* Records become labelled cards on phones; every value and action stays available. */
.help-details { margin:8px 0 0; }
.help-details summary,.order-note summary { color:#2d7658; font-size:14px; padding:10px 0; min-height:44px; }
.order-note p { margin:4px 0 8px; overflow-wrap:anywhere; white-space:pre-wrap; }
@media(max-width:760px) {
  .mobile-records.table-wrap { overflow:visible; border:0; background:transparent; box-shadow:none; }
  .mobile-records table,#profit-table.mobile-records table { display:block; min-width:0; width:100%; table-layout:fixed; }
  .mobile-records thead {
    position:absolute; width:1px; height:1px; padding:0; margin:-1px;
    overflow:hidden; clip-path:inset(50%); white-space:nowrap;
  }
  .mobile-records tbody { display:grid; gap:14px; }
  .mobile-records tbody tr {
    display:block; min-width:0; padding:8px 16px;
    border:1px solid #e5ece1; border-radius:18px; background:#fff;
  }
  .mobile-records tbody tr:hover { background:#fff; }
  .mobile-records td {
    display:block; width:100%; min-width:0; padding:10px 0;
    border:0; border-bottom:1px solid #f0f3ed;
    white-space:normal; overflow-wrap:anywhere; font-size:15px;
  }
  .mobile-records td::before {
    content:attr(data-label); display:block; margin-bottom:4px;
    color:#748078; font-size:12px; font-weight:600;
  }
  .mobile-records td:last-child { border-bottom:0; }
  .mobile-records td:first-child { font-weight:600; }
  .mobile-records td small { font-weight:400; font-size:13px; }
  .mobile-records td.record-actions { display:flex; flex-wrap:wrap; gap:8px; }
  .mobile-records td.record-actions::before { flex-basis:100%; }
  .mobile-records td.record-actions button { flex:1 1 125px; margin:0; }
  .mobile-records td:empty { display:none; }
  .mobile-records td.record-empty::before { display:none; }
  #customer-orders .toolbar { gap:8px; margin-bottom:12px; }
  #customer-orders .toolbar h2 { margin-bottom:6px; }
  #customer-orders .toolbar .hint { margin:4px 0; }
  #customer-orders .settings-card { padding:4px 16px; }
  #customer-orders .section-title { margin-top:16px; }
  .order-note summary { font-size:14px; font-weight:600; }
  .help-details .hint { padding:8px 12px; background:#f3f7ed; border-radius:10px; }
}
