/* Loyalty & POS — additions on top of the shared financial-system styles */
[hidden]{display:none !important;}
.hide-sm{}
@media (max-width:760px){.hide-sm{display:none;}}
.inline-form{display:inline;margin:0;}
.btn-block{width:100%;justify-content:center;}
.ph-btns{display:flex;gap:6px;flex-wrap:wrap;}
.chip.orange{color:#f2a65a;background:rgba(240,140,50,.12);border-color:rgba(240,140,50,.32);}
html.light .chip.orange{color:#b4570d;background:rgba(230,120,30,.10);border-color:rgba(230,120,30,.30);}
.modal-sm{max-width:460px;}
.modal-lg{max-width:760px;}
.modal{max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;}
.modal>form{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;}
.modal-body{overflow-y:auto;min-height:0;flex:1 1 auto;}
.modal-head,.modal-foot{flex:none;}
.field textarea{width:100%;padding:12px 14px;border-radius:var(--radius-sm);background:var(--bg);border:1px solid var(--border-2);color:var(--text);font-family:inherit;font-size:14px;resize:vertical;}
.field textarea:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 3px var(--green-soft);}
.empty{text-align:center;color:var(--text-mute);padding:26px 14px;}
.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;padding:12px 14px;}
.filters .field{margin:0;}
.filters .field.grow{flex:1 1 240px;}

/* staff screens */
.staff-shell{min-height:100vh;display:flex;flex-direction:column;}
.staff-bar{position:sticky;top:0;z-index:20;}
.staff-bar .topbar-logo.show{display:inline-flex;}
.staff-content{max-width:1180px;width:100%;margin:0 auto;}
.emp-tag{display:inline-flex;align-items:center;gap:5px;color:var(--text-dim);font-weight:700;}
.pos-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
@media (max-width:900px){.pos-grid{grid-template-columns:1fr;}}
.cust-card{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);padding:14px;display:grid;gap:12px;}
.cust-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;flex-wrap:wrap;}
.cust-top b{display:block;font-size:16px;color:var(--text);}
.visits{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.vdot{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border-2);font-size:12px;font-weight:800;color:var(--text-mute);}
.vdot.on{background:var(--green);border-color:var(--green);color:#fff;}
.visits small{flex-basis:100%;}
.cust-buffet{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border-radius:var(--radius-sm);border:1px dashed var(--green);}
.cust-buffet svg{width:18px;height:18px;vertical-align:middle;}
.cust-msg{min-height:20px;margin:8px 0 0;}
.bill{display:grid;gap:8px;margin:6px 0 16px;padding:14px;border-radius:var(--radius-sm);background:var(--surface-2);border:1px solid var(--border);}
.bill-row{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;color:var(--text-dim);}
.bill-row b{font-family:inherit;font-variant-numeric:tabular-nums;color:var(--text);}
.bill-row.total{border-top:1px solid var(--border);padding-top:10px;font-size:17px;color:var(--text);}
.bill-row.total b{font-size:24px;color:var(--green);}
.result-body{text-align:center;}
.r-amount{font-size:30px;font-weight:800;color:var(--green);margin:4px 0 8px;}
.modal.is-error .r-amount{color:var(--text);}
.wa-row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:12px;}
.notice-list{display:grid;gap:0;}
.notice.is-new{border-color:var(--green);}
.notice-body{white-space:normal;line-height:1.9;color:var(--text-dim);}

/* owner panel */
.dash-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px;}
@media (max-width:1000px){.dash-grid{grid-template-columns:1fr;}}
.bars{display:flex;align-items:flex-end;gap:6px;height:220px;padding-top:18px;}
.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px;min-width:0;}
.bar{width:100%;max-width:34px;border-radius:6px 6px 2px 2px;background:var(--surface-3);min-height:2px;height:0;}
.bar-col.cur .bar{background:var(--green);}
.bar-v{font-size:10px;color:var(--text-mute);white-space:nowrap;}
.bar-l{font-size:10.5px;color:var(--text-mute);white-space:nowrap;}
.rate-row{display:grid;grid-template-columns:42px 1fr 34px;gap:10px;align-items:center;margin-bottom:10px;font-size:13px;}
.rate-track{height:8px;border-radius:6px;background:var(--surface-3);overflow:hidden;}
.rate-fill{display:block;height:100%;width:0;background:var(--green);}
.stars{color:#e9b949;letter-spacing:1px;white-space:nowrap;}
.status-sel{min-width:130px;}
.day-checks{display:flex;flex-wrap:wrap;gap:14px;}
.qr-card{display:flex;gap:20px;align-items:center;flex-wrap:wrap;}
.qr-box{width:170px;height:170px;background:#fff;border-radius:10px;padding:6px;flex:none;}
.qr-box svg{width:100%;height:100%;}
.print-head{display:none;}
@media print{.print-head{display:block;margin-bottom:12px;}.filters,.page-head .actions,.sidebar,.topbar,.app-footer{display:none !important;}}

/* public rating page */
.rate-stage{position:relative;z-index:1;flex:1;display:flex;align-items:center;justify-content:center;padding:90px 16px 30px;}
.rate-card{max-width:440px;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:26px 24px;}
.rate-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.rate-brand .brand-logo img{height:40px;width:auto;}
.rate-brand .name{font-weight:800;color:var(--text);}
.rate-thanks{text-align:center;padding:16px 0;}
.rate-thanks svg{width:46px;height:46px;color:var(--green);}
.star-pick{border:0;padding:0;margin:0 0 14px;display:flex;flex-direction:row-reverse;justify-content:center;gap:4px;}
.star-pick legend{width:100%;text-align:center;font-size:13px;color:var(--text-dim);margin-bottom:6px;}
.star-pick input{position:absolute;opacity:0;width:1px;height:1px;}
.star-pick label{font-size:40px;line-height:1;color:var(--surface-3);cursor:pointer;transition:color .15s;}
.star-pick input:checked ~ label,.star-pick label:hover,.star-pick label:hover ~ label{color:#e9b949;}
.star-pick input:focus-visible + label{outline:2px solid var(--green);border-radius:4px;}
.hp{position:absolute;inset-inline-start:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.row-acts{display:flex;gap:6px;align-items:center;}
