
:root{
  --cream:#efe5d2;
  --cream-light:#f5eddf;
  --ink:#11100e;
  --muted:#5f584f;
  --line:rgba(70,55,38,.18);
  --paper:#f2e8d6;
  --brown:#5b4334;
  --white:#fffaf1;
  --danger:#9b2f24;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  font-family:"Montserrat",system-ui,sans-serif;
}
button,input,textarea{font:inherit}
a{text-decoration:none;color:inherit}
.hidden{display:none!important}

/* CUSTOMER MENU */
.menu-body{
  min-height:100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.34), transparent 34%),
    var(--cream);
  position:relative;
  overflow-x:hidden;
}
.pattern{
  position:fixed;
  pointer-events:none;
  opacity:.18;
  z-index:0;
}
.pattern::before{
  content:"";
  display:block;
  width:520px;
  height:520px;
  border-radius:45% 55% 61% 39% / 51% 34% 66% 49%;
  border:8px solid rgba(255,255,255,.9);
  box-shadow:
    0 0 0 18px rgba(255,255,255,.7),
    0 0 0 36px rgba(255,255,255,.55),
    0 0 0 54px rgba(255,255,255,.4);
}
.pattern-a{top:-140px;left:-210px;transform:rotate(18deg)}
.pattern-b{right:-260px;bottom:-180px;transform:rotate(-35deg)}
.menu-sheet{
  position:relative;
  z-index:1;
  width:min(760px,calc(100% - 36px));
  margin:0 auto;
  padding:58px 0 42px;
}
.brand{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-bottom:40px;
}
.brand-mark{
  font-size:28px;
  line-height:1;
}
.brand-name{
  font-family:"Montserrat",sans-serif;
  font-size:34px;
  line-height:1;
  letter-spacing:-.04em;
}
.brand-sub{
  text-align:center;
  font-size:8px;
  letter-spacing:.2em;
  margin-top:3px;
}
.menu-controls{
  margin-bottom:26px;
}
.search-input{
  width:100%;
  background:rgba(255,250,241,.55);
  border:1px solid rgba(60,45,28,.14);
  border-radius:999px;
  padding:12px 16px;
  outline:none;
  margin-bottom:12px;
}
.search-input:focus{
  border-color:rgba(60,45,28,.35);
}
.categories{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}
.category-btn{
  border:1px solid rgba(50,38,26,.18);
  background:rgba(255,250,241,.45);
  border-radius:999px;
  padding:7px 11px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.05em;
  cursor:pointer;
}
.category-btn.active{
  background:#1b1916;
  color:#fff;
  border-color:#1b1916;
}
.menu-section{
  margin:0 0 31px;
}
.section-title{
  font-size:22px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  margin:0 0 15px;
}
.menu-item{
  display:grid;
  grid-template-columns:1fr auto;
  gap:18px;
  align-items:start;
  margin-bottom:16px;
}
.menu-item-main{min-width:0}
.item-name{
  margin:0 0 4px;
  font-size:14px;
  font-weight:800;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.item-desc{
  margin:0;
  max-width:590px;
  color:#2f2b27;
  font-size:11px;
  line-height:1.34;
  font-weight:500;
}
.item-price{
  min-width:70px;
  text-align:right;
  font-size:13px;
  font-weight:800;
  letter-spacing:.14em;
  padding-top:1px;
}
.loading,.empty-state{
  text-align:center;
  padding:50px 20px;
  color:var(--muted);
}
.menu-footer{
  position:relative;
  margin-top:42px;
  text-align:center;
  font-size:10px;
  font-style:italic;
  color:#302c27;
}
.admin-mini{
  display:block;
  width:max-content;
  margin:20px auto 0;
  opacity:.45;
  font-style:normal;
  font-size:9px;
}
.admin-mini:hover{opacity:.8}

/* ADMIN */
.admin-body{
  min-height:100vh;
  background:var(--cream-light);
}
.admin-wrap{
  width:min(1040px,calc(100% - 32px));
  margin:0 auto;
  padding:48px 0 70px;
}
.login-card{
  width:min(420px,100%);
  margin:10vh auto 0;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px;
  box-shadow:0 16px 40px rgba(60,40,20,.08);
}
.login-card h1,.dashboard-header h1{
  margin:5px 0 8px;
  font-size:34px;
}
.login-card p{color:var(--muted);font-size:14px}
.admin-kicker{
  font-size:11px;
  font-weight:800;
  letter-spacing:.16em;
  color:#806b5b;
}
.login-form{
  display:grid;
  gap:12px;
  margin-top:22px;
}
.input{
  width:100%;
  border:1px solid var(--line);
  background:#fffdf8;
  border-radius:10px;
  padding:12px 13px;
  outline:none;
}
.input:focus{
  border-color:#9e7e69;
  box-shadow:0 0 0 3px rgba(91,67,52,.08);
}
.btn{
  border:1px solid var(--line);
  border-radius:10px;
  padding:11px 15px;
  font-weight:700;
  cursor:pointer;
}
.btn.primary{
  color:#fff;
  background:#2a211b;
  border-color:#2a211b;
}
.btn.secondary{
  color:#33271f;
  background:#fffaf1;
}
.back-link{
  display:inline-block;
  margin-top:20px;
  color:var(--muted);
  font-size:13px;
}
.error-text{
  color:var(--danger);
  min-height:18px;
  font-size:12px;
}
.dashboard{
  display:grid;
  gap:18px;
}
.dashboard-header{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
}
.dashboard-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.admin-panel{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:16px;
  padding:22px;
}
.admin-panel h2{
  margin:0 0 18px;
  font-size:18px;
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
}
.form-grid label span{
  display:block;
  margin-bottom:7px;
  font-size:12px;
  font-weight:700;
}
.full{grid-column:1/-1}
.available-row{
  display:flex;
  align-items:center;
  gap:8px;
}
.available-row span{margin:0!important}
.form-actions{
  display:flex;
  gap:8px;
}
.panel-heading{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.panel-heading h2{margin:0}
#itemCount{color:var(--muted);font-size:12px}
.admin-list{
  margin-top:14px;
  display:grid;
  gap:9px;
}
.admin-item{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fffdf8;
}
.admin-meta strong{
  display:block;
  font-size:13px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.admin-meta small{
  color:var(--muted);
  font-size:11px;
}
.item-actions{
  display:flex;
  gap:6px;
}
.small-btn{
  border:1px solid var(--line);
  background:#fffaf1;
  border-radius:8px;
  padding:7px 9px;
  font-size:11px;
  cursor:pointer;
}
.small-btn.delete{color:var(--danger)}

@media(max-width:600px){
  .menu-sheet{width:min(100% - 28px,760px);padding-top:38px}
  .brand{margin-bottom:30px}
  .brand-name{font-size:30px}
  .section-title{font-size:19px}
  .menu-item{gap:10px}
  .item-name{font-size:12px}
  .item-desc{font-size:10px}
  .item-price{font-size:11px;min-width:55px}
  .pattern::before{width:340px;height:340px}
  .admin-wrap{width:min(100% - 22px,1040px);padding-top:28px}
  .form-grid{grid-template-columns:1fr}
  .full{grid-column:auto}
  .dashboard-header{align-items:center}
}

/* Kai RawRrrr branding — Montserrat typography */
.brand-logo{display:block;width:220px;max-width:62vw;height:auto;object-fit:contain}
.section-title,.item-name,.item-price,.category-btn,.admin-kicker,.login-card h1,.dashboard-header h1,.admin-panel h2{font-family:"Montserrat",sans-serif}
.item-name,.item-price{font-weight:700}
.item-desc,.search-input,.menu-footer,.admin-body,.input,.btn{font-family:"Montserrat",sans-serif}
@media (max-width:600px){.brand-logo{width:175px;max-width:58vw}}

/* Explicit login status and accessible disabled login button */
.login-form button:disabled{opacity:.65;cursor:wait}
#loginError,#dashboardError{white-space:normal;line-height:1.5}

/* Layout menu sesuai screenshot: krem, daftar datar, harga rata kanan */
.menu-sheet{width:min(760px,calc(100% - 36px));padding-top:24px}
.menu-body{background:linear-gradient(115deg,#f3eadb 0%,#efe4cf 100%)}
.pattern{display:none}
.brand{justify-content:center;margin:0 0 24px}
.brand-logo{width:145px;max-width:42vw;height:auto}
.menu-controls{margin-bottom:28px}
.search-input{background:rgba(255,252,246,.65);border:1px solid #ded5c7;padding:12px 16px;margin-bottom:12px}
.categories{gap:8px}
.category-btn{font-family:"Montserrat",sans-serif;font-size:11px;font-weight:700;letter-spacing:0;padding:6px 12px}
.menu-section{margin-bottom:34px}
.section-title{font-family:"Montserrat",sans-serif;font-size:22px;font-weight:900;letter-spacing:.18em;margin-bottom:16px}
.menu-item{grid-template-columns:minmax(0,1fr) auto;gap:20px;margin-bottom:17px}
.item-name{font-family:"Montserrat",sans-serif;font-size:14px;font-weight:800;letter-spacing:.14em;margin-bottom:4px}
.item-desc{font-family:"Montserrat",sans-serif;font-size:11px;font-weight:500}
.item-price{font-family:"Montserrat",sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-align:right;min-width:60px}
@media(max-width:600px){
 .menu-sheet{padding-top:18px}
 .brand{margin-bottom:20px}
 .brand-logo{width:118px;max-width:40vw}
 .section-title{font-size:19px}
 .item-name{font-size:12px}
 .item-price{font-size:12px}
}

/* Pemisah FOOD / DRINK */
.menu-type-tabs{display:flex;gap:8px;margin:0 0 17px}
.menu-type-btn{appearance:none;border:1px solid #d6cbbc;background:rgba(255,252,246,.65);
  border-radius:999px;padding:10px 24px;cursor:pointer;color:#181613;
  font:800 12px/1.2 "Montserrat",sans-serif;letter-spacing:.12em}
.menu-type-btn.active{background:#1b1916;color:#fff;border-color:#1b1916}
.menu-type-btn:focus-visible{outline:2px solid #2b6656;outline-offset:3px}

.menu-type-tabs{flex-wrap:wrap}
.special-empty{padding:24px 16px;margin:12px 0 32px;border:1px dashed #cbbba3;
  border-radius:14px;background:rgba(255,255,255,.3);text-align:center;
  font:600 13px/1.6 "Montserrat",sans-serif;color:#594b3c}

.admin-category-filter{display:flex;align-items:center;gap:12px;margin:0 0 18px;font-size:13px;font-weight:600}
.admin-category-filter .input{width:min(300px,100%);min-width:0}
#adminTypeTabs{margin:14px 0}
#category{background:#fffaf2}
@media(max-width:600px){.admin-category-filter{align-items:stretch;flex-direction:column;gap:6px}}

#newCategoryWrap,#menuTypeWrap{min-width:0}

.hpp-panel{border:1px solid #d7c6b2;border-radius:14px;padding:18px;background:#fffaf1;min-width:0}
.hpp-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}
.hpp-heading h3{font-size:17px;margin:0 0 5px}.hpp-heading p,.hpp-note{font-size:12px;color:#655748;line-height:1.6;margin:0}
.hpp-table-head,.hpp-row{display:grid;grid-template-columns:minmax(100px,2fr) minmax(72px,1fr) minmax(75px,1fr) minmax(85px,1fr) minmax(110px,1.2fr) minmax(90px,1fr) 30px;gap:7px;align-items:center}
.hpp-table-head{font-size:10px;font-weight:700;margin-bottom:8px}.hpp-row{margin-bottom:10px}.hpp-row .input{width:100%;min-width:0;padding:10px 7px}
.hpp-subtotal{font-size:12px;white-space:nowrap}.hpp-remove{border:0;background:#eee2d4;border-radius:7px;font-size:22px;cursor:pointer;min-height:36px}
.hpp-overhead{display:flex;gap:14px;align-items:center;justify-content:space-between;margin:14px 0;font-size:12px;font-weight:600}.hpp-overhead .input{width:180px}
.hpp-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.hpp-summary>div{background:#f2e9dc;padding:12px;border-radius:9px;display:flex;justify-content:space-between;gap:10px;align-items:center}.hpp-summary span{font-size:12px}.hpp-summary strong{font-size:14px;text-align:right}
@media(max-width:850px){.hpp-table-head{display:none}.hpp-row{grid-template-columns:repeat(2,minmax(0,1fr)) 36px;border-bottom:1px solid #d7c6b2;padding-bottom:12px}.hpp-row .hpp-name{grid-column:1/3}.hpp-row .hpp-used{grid-column:1}.hpp-row .hpp-unit{grid-column:2}.hpp-row .hpp-pack{grid-column:1}.hpp-row .hpp-pack-price{grid-column:2}.hpp-row .hpp-subtotal{grid-column:1/3}.hpp-row .hpp-remove{grid-column:3;grid-row:1/3}.hpp-overhead{align-items:stretch;flex-direction:column}.hpp-overhead .input{width:100%}.hpp-summary{grid-template-columns:1fr}.hpp-heading{flex-direction:column;align-items:flex-start}}

.hpp-product-info{margin:12px 0 22px;color:#675747;font-size:13px}.hpp-panel{margin-top:18px}#saveStatus{font-size:13px;font-weight:600}

/* Eight columns: ingredient, usage, usage unit, package size, package unit, package price, cost, remove */
.hpp-table-head,.hpp-row{grid-template-columns:minmax(95px,1.7fr) minmax(65px,.8fr) minmax(75px,.9fr) minmax(75px,.9fr) minmax(75px,.9fr) minmax(100px,1.1fr) minmax(90px,1fr) 30px}
@media(max-width:850px){.hpp-row{grid-template-columns:repeat(2,minmax(0,1fr)) 36px}.hpp-row .hpp-pack-unit{grid-column:2}.hpp-row .hpp-pack-price{grid-column:1}.hpp-row .hpp-subtotal{grid-column:2}.hpp-row .hpp-remove{grid-column:3;grid-row:1/3}}
