:root { --bg: #f4f5fb; --card: #fff; --ink: #141a33; --soft: #636b86; --faint: #9aa1b8; --line: #e6e8f1; --navy: #0a1234; --navy-2: #141f4a; --rose: #ff5c9a; --rose-d: #e23d7f; --blue: #4f7dff; --gold: #e8c46a; --green: #12a46b; --amber: #d98a0b; --red: #d6334f;
  --grad: linear-gradient(120deg, #ff7aae, #ff5c9a 40%, #8a6dff 75%, #5b8cff); --r: 16px; --serif: 'Marcellus', Georgia, serif; --sans: 'Outfit', system-ui, sans-serif; }
* { box-sizing: border-box; } html, body { margin: 0; } body { background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans); }
a { color: var(--blue); } button, input, select, textarea { font: inherit; } img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; } .muted { color: var(--soft); } .small { font-size: .84rem; } .nowrap { white-space: nowrap; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--soft); }

/* sign in */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(800px 500px at 80% 10%, rgba(255, 92, 154, .25), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(91, 140, 255, .25), transparent 60%), var(--navy); color: #fff; }
.login form { width: min(400px, 100%); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; padding: 34px 30px; display: grid; gap: 14px; backdrop-filter: blur(14px); }
.login img { width: 96px; margin: 0 auto 4px; } .login h1 { font: 400 1.6rem var(--serif); text-align: center; letter-spacing: .08em; } .login p { margin: 0; text-align: center; color: #b9c3e6; font-size: .92rem; }
.login label { display: grid; gap: 6px; font-size: .85rem; color: #c8d0ec; } .login input { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; border-radius: 12px; padding: 12px 14px; outline: 0; } .login input:focus { border-color: var(--rose); }
.login .err { color: #ffb3c9; font-size: .9rem; min-height: 1.2em; text-align: center; }

/* shell */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #c9d1ee; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.side .brand img { width: 46px; } .side .brand b { display: block; color: #fff; font: 400 1.05rem var(--serif); letter-spacing: .1em; } .side .brand small { color: var(--gold); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; }
.side nav { padding: 12px 10px; display: grid; gap: 2px; } .side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; color: #c9d1ee; text-decoration: none; font-weight: 500; }
.side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; } .side nav a.on { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -10px rgba(255, 92, 154, .8); }
.side nav a svg { width: 19px; height: 19px; flex: none; } .side nav a .cnt { margin-left: auto; background: var(--rose); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 8px; }
.side .me { margin-top: auto; padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; } .side .me b { color: #fff; display: block; } .side .me button { margin-top: 8px; }
.main { min-width: 0; } .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top h1 { font: 400 1.5rem var(--serif); } .top .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-btn { display: none; } .page { padding: 24px 28px 60px; }

/* parts */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 11px; padding: 10px 16px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); } .btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-p { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(255, 92, 154, .9); } .btn-g { background: #eef0f8; color: var(--ink); } .btn-g:hover { background: #e3e6f3; }
.btn-ok { background: var(--green); color: #fff; } .btn-warn { background: #fff4e0; color: #9a5b00; } .btn-del { background: #fdeaee; color: var(--red); } .btn-dark { background: var(--navy); color: #fff; }
.btn-s { padding: 6px 11px; font-size: .84rem; border-radius: 9px; } .btn-ghost-w { background: rgba(255, 255, 255, .1); color: #fff; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 0; background: #eef0f8; cursor: pointer; font-size: 1.2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; } .card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: relative; overflow: hidden; }
.kpi small { color: var(--soft); font-weight: 500; } .kpi b { display: block; font-size: 1.7rem; font-weight: 600; margin-top: 4px; letter-spacing: -.01em; } .kpi i { font-style: normal; color: var(--soft); font-size: .82rem; }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--grad); opacity: .1; }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; } .bar .grow { flex: 1; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; } .tabs button { border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--soft); }
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); } .tabs button span { opacity: .7; margin-left: 4px; }
.in, select.in, textarea.in { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 9px 12px; background: #fff; color: var(--ink); outline: 0; } .in:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(255, 92, 154, .12); }
.f { display: grid; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--soft); } .f.full { grid-column: 1 / -1; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .form .acts { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; } th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfe; white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; } tr:last-child td { border-bottom: 0; } tbody tr:hover { background: #fbfbff; }
td.r, th.r { text-align: right; } .empty { text-align: center; color: var(--faint); padding: 34px !important; } .row-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eef0f8; color: var(--soft); white-space: nowrap; }
.c-green { background: #e3f7ee; color: #0b7a4f; } .c-blue { background: #e6edff; color: #2c55d6; } .c-amber { background: #fff3dc; color: #9a5b00; } .c-red { background: #fde8ec; color: #b4243f; } .c-pink { background: #ffe6f0; color: #c42566; } .c-violet { background: #efe9ff; color: #5b3fd1; }
.note { background: #fff8e6; border: 1px solid #f6e2b0; color: #7a5600; border-radius: 12px; padding: 10px 14px; font-size: .88rem; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); } .list-row:last-child { border-bottom: 0; }

/* rooms board */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.room { border-radius: 16px; padding: 14px; color: #fff; cursor: pointer; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; border: 0; text-align: left; transition: transform .15s; }
.room:hover { transform: translateY(-3px); } .room b { font-size: 1.35rem; } .room small { opacity: .9; display: block; } .room .g { font-size: .8rem; opacity: .95; }
.st-Available { background: linear-gradient(135deg, #1fbf83, #0f9a66); } .st-Occupied { background: linear-gradient(135deg, #ff6fa6, #e23d7f); } .st-Cleaning { background: linear-gradient(135deg, #f5b13d, #d98a0b); } .st-Maintenance { background: linear-gradient(135deg, #8c94ad, #646c87); } .st-Reserved { background: linear-gradient(135deg, #6f8fff, #4466e0); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--soft); margin-bottom: 14px; } .legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.legend .Available::before { background: #15a873; } .legend .Occupied::before { background: #e23d7f; } .legend .Cleaning::before { background: #d98a0b; } .legend .Maintenance::before { background: #646c87; } .legend .Reserved::before { background: #4466e0; }

/* attendance */
.att { display: inline-flex; gap: 4px; } .att button { width: 36px; height: 32px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .78rem; cursor: pointer; color: var(--soft); }
.att button.on.P { background: #12a46b; border-color: #12a46b; color: #fff; } .att button.on.A { background: #d6334f; border-color: #d6334f; color: #fff; } .att button.on.H { background: #d98a0b; border-color: #d98a0b; color: #fff; } .att button.on.L { background: #4f7dff; border-color: #4f7dff; color: #fff; } .att button.on.WO { background: #8c94ad; border-color: #8c94ad; color: #fff; }
.att-in { width: 92px; padding: 6px 8px; } .mgrid td, .mgrid th { padding: 6px 4px; text-align: center; font-size: .78rem; } .mgrid td:first-child, .mgrid th:first-child { text-align: left; padding-left: 12px; white-space: nowrap; }
.code-P { color: #0b7a4f; font-weight: 700; } .code-A { color: #b4243f; font-weight: 700; } .code-H { color: #9a5b00; font-weight: 700; } .code-L { color: #2c55d6; font-weight: 700; } .code-WO { color: #8c94ad; }

/* modal, toast */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 18, 52, .55); display: none; align-items: flex-start; justify-content: center; z-index: 50; padding: 40px 14px; overflow-y: auto; } .modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 20px; width: min(720px, 100%); box-shadow: 0 40px 80px -30px rgba(10, 18, 52, .6); } .modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); } .modal-head h3 { font: 400 1.3rem var(--serif); } .modal-body { padding: 22px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: calc(100% - 30px); } .toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.err { background: var(--red); }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; } .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .25s; } .side.open { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .3); }
  .menu-btn { display: inline-grid; place-items: center; } .g4 { grid-template-columns: repeat(2, 1fr); } .g3, .g2 { grid-template-columns: 1fr; } .top { padding: 14px 16px; } .page { padding: 16px 14px 60px; } .top h1 { font-size: 1.2rem; }
}
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; } .kpi b { font-size: 1.3rem; } }
@media print { .side, .top, .bar, .tabs, .row-acts, .no-print { display: none !important; } .shell { display: block; } .page { padding: 0; } body { background: #fff; } .table-wrap, .card { border: 0; } }

/* restaurant & bar: tables, order screen, kitchen display */
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; } .tables.wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tbl { position: relative; min-height: 104px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); padding: 14px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: transform .15s, box-shadow .15s; }
.tbl:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(10, 18, 52, .5); } .tbl b { font-size: 1.1rem; } .tbl small { color: var(--soft); } .tbl span { color: var(--faint); font-size: .85rem; margin-top: auto; }
.tbl.busy { background: linear-gradient(135deg, #fff0f6, #f0f3ff); border-color: #ffb3cf; } .tbl.busy span { color: var(--ink); font-weight: 600; }
.tbl em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: .72rem; font-weight: 700; background: var(--green); color: #fff; padding: 2px 8px; border-radius: 999px; } .tbl em.bq { top: 34px; background: var(--rose-d); }
.tbl.billreq, .tb-card.billreq { box-shadow: 0 0 0 2px var(--rose); }
.pos { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; } .pos-cart { position: sticky; top: 90px; } .pos-cart h3 { font-size: 1rem; }
.cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .cats button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px; cursor: pointer; font-weight: 500; } .cats button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.item { position: relative; text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; min-height: 86px; transition: border-color .15s, transform .1s; }
.item:active { transform: scale(.97); } .item.in { border-color: var(--rose); background: #fff6fa; } .item b { font-size: .95rem; line-height: 1.25; } .item span { color: var(--soft); font-size: .86rem; margin-top: auto; }
.item em { position: absolute; top: 8px; right: 8px; font-style: normal; background: var(--rose); color: #fff; border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.item .low { color: var(--red); font-weight: 600; font-size: .75rem; }
.veg { display: inline-block; width: 12px; height: 12px; border: 1.5px solid; border-radius: 2px; position: relative; margin-right: 6px; vertical-align: -1px; } .veg::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }
.veg.v { color: #12a46b; } .veg.n { color: #c0392b; } .veg.e { color: #d98a0b; }
.cart-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.qty { display: flex; align-items: center; gap: 6px; } .qty button { width: 30px; height: 30px; border-radius: 9px; border: 0; background: #eef0f8; font-size: 1.1rem; cursor: pointer; } .qty span { min-width: 22px; text-align: center; font-weight: 700; }
.sent { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.kot { background: var(--card); border-radius: 16px; border: 1px solid var(--line); border-top: 6px solid #d6334f; overflow: hidden; } .kot.Preparing { border-top-color: #d98a0b; } .kot.Ready { border-top-color: #12a46b; }
.kot.slow .tm { background: #fff3dc; color: #9a5b00; } .kot.late .tm { background: #d6334f; color: #fff; animation: blink 1.2s infinite; } @keyframes blink { 50% { opacity: .55; } }
.kot-h { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px dashed var(--line); } .kot-h b { font-size: 1.25rem; display: block; } .kot-h small { color: var(--soft); }
.tm { align-self: flex-start; background: #eef0f8; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.kot ul { list-style: none; margin: 0; padding: 10px 14px; display: grid; gap: 6px; font-size: 1.05rem; } .kot li em { display: block; font-size: .85rem; color: var(--rose-d); font-style: normal; font-weight: 600; padding-left: 26px; }
.kot-f { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: #fafbfe; border-top: 1px solid var(--line); } .grow { flex: 1; }
body.kds-on .side, body.kds-on .top .menu-btn { display: none; } body.kds-on .shell { grid-template-columns: 1fr; } body.kds-on .kds { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } body.kds-on .kot ul { font-size: 1.2rem; }
.sw { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .86rem; color: var(--soft); } .sw input { display: none; } .sw span { width: 38px; height: 22px; border-radius: 999px; background: #d5d9e8; position: relative; transition: background .2s; flex: none; }
.sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; } .sw input:checked + span { background: var(--green); } .sw input:checked + span::after { transform: translateX(16px); }
.cart-bar { display: none; }
.rep table { font-size: .92rem; } .rep h2 { font: 400 1.2rem var(--serif); }
@media (max-width: 980px) { .pos { grid-template-columns: 1fr; padding-bottom: 70px; } .pos-cart { position: static; } .cart-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; background: rgba(255, 255, 255, .96); padding: 8px; border-radius: 16px; box-shadow: 0 16px 40px -14px rgba(10, 18, 52, .5); border: 1px solid var(--line); } .items { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }

/* uploads, photos, camera */
.fileset { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border: 1.5px dashed var(--line); border-radius: 12px; background: #fbfaff; font-weight: 500; }
.fs-item { position: relative; } .fs-item .x { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; font-size: .9rem; line-height: 1; }
.thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #eef0f8; cursor: zoom-in; display: block; border: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #eef0f8; cursor: zoom-in; flex: none; display: block; } span.avatar.none { background: linear-gradient(135deg, #ffe6f0, #e6edff); }
.selfie { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; cursor: zoom-in; background: #eef0f8; }
.who { display: flex; gap: 10px; align-items: center; }
.fchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .fchip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 2px 9px; font-size: .76rem; cursor: pointer; color: var(--ink); }
.fchip:hover { border-color: var(--rose); }
.punch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0; font-size: .85rem; } .punch a { text-decoration: none; }
.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(6, 10, 30, .82); display: flex; align-items: center; justify-content: center; padding: 14px; }
.viewer-in { background: #fff; border-radius: 18px; width: min(860px, 100%); max-height: calc(100vh - 28px); display: flex; flex-direction: column; overflow: hidden; }
.viewer-h { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); } .viewer-b { padding: 10px; overflow: auto; text-align: center; } .viewer-b img { max-width: 100%; max-height: 72vh; margin: auto; border-radius: 10px; }
.cam .viewer-in { width: min(640px, 100%); } .cam-b { background: #000; display: grid; place-items: center; min-height: 260px; } .cam-b video, .cam-b img { width: 100%; max-height: 62vh; object-fit: contain; display: block; } .cam-b p { color: #ccd; padding: 30px; text-align: center; }
.cam-f { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
.punch-card { max-width: 560px; text-align: center; margin: 0 auto; padding: 26px; } .pc-top { display: flex; justify-content: space-between; align-items: flex-start; text-align: left; gap: 10px; margin-bottom: 14px; } .pc-top h2 { font: 400 1.6rem var(--serif); margin: 2px 0; }
.punch-btn { width: 100%; padding: 20px; font-size: 1.25rem; border-radius: 18px; margin-top: 8px; }

[hidden] { display: none !important; }
