:root{
  --cherry-green:#0b5b2b;
  --cherry-green-soft:#e8f4ee;
  --cherry-gold:#c39a3d;
  --cherry-red:#d9232f;
  --cherry-dark:#111827;
  --cherry-muted:#6b7280;
  --cherry-border:#e5e7eb;
  --cherry-bg:#f7f8fb;
  --cherry-orange:#c55a00;
}

.cherry-pos-app{box-sizing:border-box;background:var(--cherry-bg);padding:22px;border-radius:18px;font-family:Arial,Helvetica,sans-serif;color:var(--cherry-dark);line-height:1.45;max-width:1500px;margin:0 auto;}
.cherry-pos-app *{box-sizing:border-box;}
.cherry-pos-header{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px;}
.cherry-brand{display:flex;align-items:center;gap:14px;min-width:0;}
.cherry-brand img{width:68px;height:68px;object-fit:contain;background:#fff;border-radius:16px;padding:6px;box-shadow:0 6px 20px rgba(15,23,42,.08);}
.cherry-brand h2{margin:0;color:var(--cherry-green);font-size:32px;line-height:1.1;font-weight:800;}
.cherry-brand p{margin:6px 0 0;color:var(--cherry-muted);font-size:16px;}
.cherry-header-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;}

.cherry-pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:22px;align-items:start;}
.cherry-menu-panel,.cherry-cart-panel,.cherry-report-stats{background:#fff;border:1px solid var(--cherry-border);border-radius:18px;box-shadow:0 10px 30px rgba(15,23,42,.06);}
.cherry-menu-panel{padding:16px;min-height:540px;}
.cherry-cart-panel{padding:18px;position:sticky;top:20px;}
.cherry-cart-panel h3{color:var(--cherry-green);font-size:26px;margin:0 0 14px;}

.cherry-btn{border:0;background:var(--cherry-green);color:#fff;border-radius:12px;padding:12px 16px;font-weight:800;font-size:16px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;box-shadow:0 3px 10px rgba(11,91,43,.18);}
.cherry-btn:hover{filter:brightness(.96);color:#fff;}
.cherry-btn:disabled{opacity:.55;cursor:not-allowed;}
.cherry-btn.secondary{background:#fff;color:var(--cherry-dark);border:1px solid #d1d5db;box-shadow:none;}
.cherry-btn.warn{background:var(--cherry-orange);}
.cherry-btn.ready{background:#16a34a;}
.cherry-btn.danger{background:#b91c1c;}
.cherry-btn.small{padding:9px 12px;border-radius:10px;font-size:14px;min-height:38px;}

.cherry-category-tabs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:16px;}
.cherry-tab{border:1px solid #d7dbe0;background:#fff;color:var(--cherry-dark);font-weight:800;border-radius:999px;padding:10px 16px;cursor:pointer;min-height:42px;}
.cherry-tab.active{background:var(--cherry-green);color:#fff;border-color:var(--cherry-green);}
.cherry-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.cherry-product-card{border:1px solid var(--cherry-border);border-radius:16px;background:linear-gradient(180deg,#fff,#fbfcfd);padding:14px;min-height:140px;display:flex;flex-direction:column;gap:7px;box-shadow:0 6px 16px rgba(15,23,42,.04);}
.cherry-product-card strong{font-size:17px;line-height:1.2;}
.cherry-product-card>span{color:var(--cherry-green);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;}
.cherry-product-desc{color:var(--cherry-muted);font-size:12px;line-height:1.25;}
.cherry-size-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto;}
.cherry-size-buttons button,.cherry-add-one{border:0;border-radius:11px;background:var(--cherry-green-soft);color:var(--cherry-green);font-weight:900;padding:10px 8px;cursor:pointer;min-height:42px;}
.cherry-size-buttons button:hover,.cherry-add-one:hover{background:var(--cherry-green);color:#fff;}
.cherry-add-one{width:100%;margin-top:auto;}

.cherry-order-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-bottom:1px solid var(--cherry-border);padding-bottom:14px;margin-bottom:12px;}
.cherry-order-options>div{background:#f9fafb;border:1px solid var(--cherry-border);border-radius:14px;padding:12px;}
.cherry-order-options strong{display:block;margin-bottom:8px;color:var(--cherry-green);}
.cherry-order-options label{display:inline-flex;align-items:center;gap:5px;margin-right:10px;white-space:nowrap;}
.required{color:var(--cherry-red);}

.cherry-cart-items{min-height:120px;margin-bottom:14px;}
.cherry-empty{color:var(--cherry-muted);}
.cherry-cart-line{border:1px solid var(--cherry-border);border-radius:14px;padding:12px;margin-bottom:10px;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) 118px;gap:12px;align-items:start;}
.cherry-cart-line-main strong{display:block;font-size:16px;}
.cherry-cart-line-main small{display:block;color:var(--cherry-muted);margin:3px 0 7px;}
.cherry-cart-line-main select{width:100%;border:1px solid #d1d5db;border-radius:10px;padding:8px;background:#fff;}
.cherry-extra-list{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:7px;}
.cherry-extra-chip{border:0;background:#eef6f1;color:var(--cherry-green);padding:6px 8px;border-radius:999px;font-size:12px;font-weight:800;cursor:pointer;}
.cherry-cart-line-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px;}
.cherry-qty-controls{display:flex;align-items:center;gap:8px;}
.cherry-qty-controls button{width:32px;height:32px;border:1px solid #d1d5db;background:#fff;border-radius:9px;font-weight:900;font-size:18px;cursor:pointer;line-height:1;}
.cherry-cart-line-side .remove{border:0;background:#fee2e2;color:#991b1b;border-radius:8px;padding:7px 9px;font-weight:800;cursor:pointer;}
#cherryOrderNote{width:100%;min-height:80px;border:1px solid #d1d5db;border-radius:12px;padding:12px;font-size:15px;resize:vertical;margin:4px 0 14px;}
.cherry-cart-total{display:flex;justify-content:space-between;align-items:center;font-size:22px;margin:10px 0 16px;}
.cherry-cart-total strong{font-size:26px;}
.cherry-cart-actions{display:flex;gap:10px;flex-wrap:wrap;}
.cherry-last-order{margin-top:12px;color:#065f46;font-weight:700;}

.cherry-status-legend{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px;}
.legend{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;font-size:13px;font-weight:900;color:#fff;}
.legend.new{background:var(--cherry-red);}.legend.preparing{background:var(--cherry-orange);}.legend.ready{background:#16a34a;}.legend.completed{background:#6b7280;}.legend.cancelled{background:#7f1d1d;}
.cherry-order-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start;}
.cherry-order-card{background:#fff;border:1px solid var(--cherry-border);border-left:7px solid var(--cherry-red);border-radius:16px;padding:16px;box-shadow:0 8px 24px rgba(15,23,42,.06);}
.cherry-order-card.preparing{border-left-color:var(--cherry-orange);}
.cherry-order-card.ready{border-left-color:#16a34a;}
.cherry-order-card.completed{border-left-color:#6b7280;opacity:.78;}
.cherry-order-card.cancelled{border-left-color:#7f1d1d;background:#fff7f7;}
.cherry-order-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px;}
.cherry-order-number{font-size:22px;font-weight:900;line-height:1.2;}
.cherry-order-top small{color:#4b5563;}
.cherry-status{font-weight:900;border-radius:999px;padding:12px 10px;background:#f3f4f6;min-width:68px;text-align:center;font-size:12px;}
.cherry-status.new{background:#fee2e2;color:#991b1b;}.cherry-status.preparing{background:#ffedd5;color:#9a3412;}.cherry-status.ready{background:#dcfce7;color:#166534;}.cherry-status.completed{background:#e5e7eb;color:#374151;}.cherry-status.cancelled{background:#fee2e2;color:#7f1d1d;}
.cherry-order-items{margin:12px 0 14px;padding-left:22px;}
.cherry-order-items li{margin:8px 0;font-size:16px;}
.cherry-order-items small{color:var(--cherry-green);font-weight:700;}
.cherry-order-note{background:#f9fafb;border:1px solid var(--cherry-border);border-radius:12px;padding:10px;margin:10px 0;}
.cherry-order-note.danger{background:#fee2e2;border-color:#fecaca;color:#991b1b;}
.cherry-order-total{font-size:18px;margin:12px 0;}
.cherry-order-actions{display:flex;gap:8px;flex-wrap:wrap;}

.cherry-report-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 14px;}
.cherry-report-tools label{font-weight:800;color:var(--cherry-green);}
.cherry-report-tools input{display:block;margin-top:5px;border:1px solid #d1d5db;border-radius:10px;padding:10px;min-height:42px;}
.cherry-report-stats{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;padding:18px;margin-bottom:18px;}
.cherry-stat{border:1px solid var(--cherry-border);background:#f9fafb;border-radius:14px;padding:14px;}
.cherry-stat span{display:block;color:#4b5563;font-size:14px;}
.cherry-stat strong{font-size:24px;line-height:1.15;}
.cherry-pos-box{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.06);}

@media (max-width:1200px){
  .cherry-pos-layout{grid-template-columns:1fr;}
  .cherry-cart-panel{position:relative;top:auto;}
  .cherry-menu-grid,.cherry-order-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .cherry-report-stats{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:760px){
  .cherry-pos-app{padding:14px;border-radius:0;}
  .cherry-pos-header{align-items:flex-start;flex-direction:column;}
  .cherry-brand img{width:56px;height:56px;}
  .cherry-brand h2{font-size:24px;}
  .cherry-brand p{font-size:14px;}
  .cherry-header-actions,.cherry-cart-actions{width:100%;}
  .cherry-header-actions .cherry-btn,.cherry-cart-actions .cherry-btn{flex:1;}
  .cherry-menu-grid,.cherry-order-grid{grid-template-columns:1fr;}
  .cherry-category-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px;}
  .cherry-tab{white-space:nowrap;}
  .cherry-order-options{grid-template-columns:1fr;}
  .cherry-cart-line{grid-template-columns:1fr;}
  .cherry-cart-line-side{align-items:flex-start;flex-direction:row;justify-content:space-between;flex-wrap:wrap;}
  .cherry-report-stats{grid-template-columns:1fr 1fr;}
}
@media (max-width:420px){
  .cherry-report-stats{grid-template-columns:1fr;}
  .cherry-size-buttons{grid-template-columns:1fr;}
}

/* Version 1.1 additions */
.cherry-login-wrap{min-height:520px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f7fff9,#fff8f8);}
.cherry-login-card{width:min(560px,100%);background:#fff;border:1px solid var(--cherry-border);border-radius:26px;box-shadow:0 22px 60px rgba(15,23,42,.12);padding:34px;}
.cherry-login-brand{text-align:center;margin-bottom:22px;}
.cherry-login-brand img{width:108px;height:108px;object-fit:contain;border-radius:24px;background:#fff;padding:8px;box-shadow:0 10px 30px rgba(15,23,42,.08);}
.cherry-login-brand h1{margin:14px 0 4px;color:var(--cherry-green);font-size:34px;line-height:1.1;}
.cherry-login-brand p{margin:0;color:var(--cherry-muted);font-weight:700;}
.cherry-login-form label{display:block;font-weight:800;color:var(--cherry-green);margin:12px 0 6px;}
.cherry-login-form input[type="text"],.cherry-login-form input[type="password"]{width:100%;border:1px solid #d1d5db;border-radius:14px;padding:13px;font-size:16px;min-height:48px;}
.cherry-login-form .login-remember label{display:flex;align-items:center;gap:7px;color:var(--cherry-dark);font-weight:700;}
.cherry-login-form input[type="submit"]{width:100%;border:0;background:var(--cherry-green);color:#fff;border-radius:14px;padding:14px 18px;font-size:17px;font-weight:900;cursor:pointer;box-shadow:0 6px 18px rgba(11,91,43,.22);}
.cherry-login-links{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:18px;}

.cherry-staff-bar{background:#fff;border:1px solid var(--cherry-border);border-radius:18px;padding:12px;display:flex;gap:14px;align-items:center;justify-content:space-between;margin-bottom:18px;box-shadow:0 8px 24px rgba(15,23,42,.05);}
.cherry-staff-person{display:flex;align-items:center;gap:10px;min-width:0;}
.cherry-staff-person img{width:54px;height:54px;object-fit:cover;border-radius:14px;background:#f3f4f6;border:1px solid #e5e7eb;}
.cherry-staff-person strong{display:block;color:var(--cherry-dark);font-size:17px;line-height:1.2;}
.cherry-staff-person span{display:block;color:var(--cherry-muted);font-weight:700;font-size:13px;}
.cherry-shift-status{border-radius:999px;background:#f3f4f6;color:#374151;padding:10px 14px;font-weight:900;white-space:nowrap;}
.cherry-shift-status.active{background:#dcfce7;color:#166534;}
.cherry-shift-status.inactive{background:#fff7ed;color:#9a3412;}
.cherry-staff-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}

.cherry-table-field{margin-top:10px;}
.cherry-table-field input{display:block;width:100%;margin-top:6px;border:1px solid #d1d5db;border-radius:10px;padding:10px;font-size:15px;}
.cherry-order-timer{display:inline-flex;background:#111827;color:#fff;border-radius:999px;padding:8px 12px;font-weight:900;margin:0 0 8px;font-size:14px;}
.cherry-time-rows{display:grid;gap:2px;background:#f9fafb;border:1px solid var(--cherry-border);border-radius:12px;padding:8px;margin-bottom:8px;}
.cherry-time-rows small{color:#4b5563;font-weight:700;}
.cherry-table-wrap{background:#fff;border:1px solid var(--cherry-border);border-radius:18px;box-shadow:0 8px 24px rgba(15,23,42,.06);padding:14px;overflow-x:auto;}
.cherry-data-table{width:100%;border-collapse:collapse;min-width:850px;}
.cherry-data-table th,.cherry-data-table td{border-bottom:1px solid var(--cherry-border);padding:11px;text-align:left;vertical-align:top;}
.cherry-data-table th{background:#f9fafb;color:var(--cherry-green);font-weight:900;}
.cherry-data-table tr:hover td{background:#fcfcfd;}

@media (max-width:900px){
  .cherry-staff-bar{align-items:flex-start;flex-direction:column;}
  .cherry-staff-actions{width:100%;justify-content:flex-start;}
  .cherry-shift-status{white-space:normal;}
  .cherry-report-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:520px){
  .cherry-login-card{padding:22px;border-radius:18px;}
  .cherry-login-brand h1{font-size:26px;}
  .cherry-login-brand img{width:86px;height:86px;}
  .cherry-staff-actions .cherry-btn{width:100%;}
  .cherry-report-stats{grid-template-columns:1fr;}
}

/* Version 1.2 top navigation */
.cherry-staff-bar{display:block;}
.cherry-staff-mainrow{display:flex;gap:14px;align-items:center;justify-content:space-between;width:100%;}
.cherry-top-nav{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid var(--cherry-border);}
.cherry-nav-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;border:1px solid #d1d5db;background:#fff;color:var(--cherry-dark);border-radius:12px;padding:10px 13px;font-weight:900;font-size:14px;line-height:1.1;transition:.15s ease;box-shadow:0 4px 12px rgba(15,23,42,.04);}
.cherry-nav-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,23,42,.08);text-decoration:none;color:var(--cherry-dark);}
.cherry-nav-btn.pos{background:var(--cherry-green);border-color:var(--cherry-green);color:#fff;}
.cherry-nav-btn.kitchen{background:#fff7ed;border-color:#fed7aa;color:#9a3412;}
.cherry-nav-btn.reports,.cherry-nav-btn.hours{background:#f0fdf4;border-color:#bbf7d0;color:#166534;}
.cherry-nav-btn.logout{margin-left:auto;background:#fee2e2;border-color:#fecaca;color:#991b1b;}
.cherry-nav-btn.locked{background:#f3f4f6;border-color:#e5e7eb;color:#6b7280;cursor:not-allowed;opacity:.86;}
.cherry-nav-btn.locked:hover{transform:none;box-shadow:0 4px 12px rgba(15,23,42,.04);}
.cherry-login-note{margin:0;text-align:center;color:var(--cherry-muted);font-weight:700;}
@media (max-width:900px){
  .cherry-staff-mainrow{align-items:flex-start;flex-direction:column;}
  .cherry-top-nav{width:100%;}
  .cherry-nav-btn{flex:1 1 calc(50% - 8px);}
  .cherry-nav-btn.logout{margin-left:0;}
}
@media (max-width:520px){
  .cherry-nav-btn{flex:1 1 100%;}
}
