:root{--office-radius:15px}
body{min-height:100vh;line-height:1.5}
.brand{font-size:22px;letter-spacing:-1.4px;gap:9px;color:var(--ink);text-decoration:none}
.brand b{font-weight:800}
a{color:inherit}
button,input,select,textarea{font:inherit}
button,.button{min-height:38px;padding:8px 14px;color:var(--ink);background:white;border:1px solid #d9d5cb;border-radius:8px;font-weight:650;font-size:.88rem;line-height:1.3}
button:hover,.button:hover{border-color:#9d895c;background:#fbf8ef}
button:disabled{opacity:.6}
button.primary,button[type=submit],.primary{background:var(--dark);border-color:var(--dark);color:#fff}
button.primary:hover,button[type=submit]:hover{background:#484033}
.skip-link{position:absolute;left:10px;top:-55px;background:white;z-index:2;padding:8px 20px}
.skip-link:focus{top:5px}
.masthead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:32px 0 22px}
.identity{gap:8px;color:#6b604b;font-size:.82rem;font-weight:650}
.gold-mark{display:inline-block;width:8px;height:8px;background:var(--gold);border-radius:2px;transform:rotate(45deg)}
h1,h2,h3{font-family:var(--display);color:var(--ink);line-height:1.15}
h1{font-size:clamp(2rem,4.7vw,3.6rem);font-weight:680;letter-spacing:-.055em;margin:8px 0 0}
h1 span{color:var(--gold)}
h2{font-size:clamp(1.25rem,2.2vw,1.65rem);letter-spacing:-.035em;margin:0 0 12px}
h3{font-size:1.12rem;letter-spacing:-.025em;margin:0 0 10px}
p{margin:0 0 12px}
.masthead p,.muted,.hint,.loading,small{color:var(--muted)}
.masthead p{font-size:.85rem;margin:0 0 5px;overflow-wrap:anywhere}
#content{padding:24px 0 70px}
.office-panel{display:grid;gap:18px;min-width:0}
.office-panel>*{min-width:0}
.card,.office-card,.login form{border:1px solid var(--line);background:#fff;border-radius:var(--office-radius);padding:clamp(14px,2vw,25px);min-width:0}
.cards,.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:14px}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));align-items:end;gap:12px}
section+section{scroll-margin-top:16px}
label{display:grid;gap:5px;min-width:0;font-size:.83rem;font-weight:650;color:#4c483e}
input,textarea,select{max-width:100%;min-height:40px;padding:8px 10px;border:1px solid #d8d4c9;background:#fff;color:var(--ink);border-radius:7px;font-size:.94rem}
input[type=checkbox],input[type=radio]{width:18px;min-height:18px;accent-color:var(--dark)}
form{min-width:0}
fieldset{border:1px solid var(--line);border-radius:10px;padding:14px;min-width:0}
legend{font-weight:650}
.actions,.section-head{gap:10px;flex-wrap:wrap}.section-head{justify-content:space-between;margin-bottom:14px}
.actions label{min-width:135px}
.table-wrap{max-width:100%;overflow-x:auto}
table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem}
th,td{padding:12px 10px;border-bottom:1px solid #ece9e1;text-align:left;vertical-align:middle}
th{background:#f7f5ef;color:#615a4c;font-size:.78rem;font-weight:650}
tbody tr:last-child td{border-bottom:0}
td small,td b{display:block}
.menu-form,.staff-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.menu-form input[type=number]{width:125px}
.inline-check{display:inline-flex;align-items:center;gap:6px}
.error,.notice,.success{padding:10px 13px;border-radius:8px;font-size:.9rem}
.error{background:#fff0eb;color:#9b3829}.notice,.success{background:#edf4e7;color:#415833}
.loading{padding:25px 0}
.login{max-width:460px;margin:clamp(32px,9vh,110px) auto}.login form{display:grid;gap:16px;padding:clamp(22px,4vw,34px)}
.login h1{margin:0}.login p{color:var(--muted);margin:0}
details{border-top:1px solid var(--line);padding-top:12px;margin-top:14px}
summary{cursor:pointer;font-weight:650}
details form{margin-top:12px}
.tag{background:#f2efe5;border-radius:20px;display:inline-block;padding:3px 9px;color:#645d4b;font-size:.78rem}
@media(max-width:600px){.bar-inner{min-height:59px}.brand{font-size:19px}.brand img{width:29px}.bar-actions{gap:9px}.bar-actions a{font-size:.76rem}.masthead{align-items:start;flex-direction:column;gap:4px;padding:22px 0 14px}#office-nav a{padding:8px 12px}#content{padding-top:16px}th,td{padding:9px 7px}.section-head{align-items:flex-start}}
.office-panel [role=alert]:empty,.office-panel [role=status]:empty,.actions:empty{display:none}
.office-panel [role=status]:not(:empty){margin-block:0 10px}
.office-panel>div:has(>[data-period]),.office-panel>div:has(>.card),[data-results]{display:grid;gap:16px;min-width:0}
[data-results] .cards .card{padding:17px 20px}
[data-results] .cards .card:first-child{background:#28251f;border-color:#28251f}
[data-results] .cards .card:first-child small{color:#dfcfaa}
[data-results] .cards .card:first-child h3{color:white}
.cards .card h3{font-size:clamp(1.45rem,2.6vw,2rem);margin:.35rem 0 0;letter-spacing:-.045em}
.office-panel form.card,.office-panel [data-shift],.office-panel form[data-decision]{display:grid;gap:13px}
.office-panel form.card>button,.office-panel [data-shift]>button{justify-self:start}
.office-panel .table-wrap+p{margin:13px 0 0;font-size:.84rem}
.office-panel section.card article+article{border-top:1px solid var(--line);margin-top:15px;padding-top:15px}
.office-panel [data-shift]{margin-top:16px}
@media(max-width:740px){[data-results] .cards{grid-template-columns:repeat(2,minmax(0,1fr))}[data-results] .cards .card{padding:12px}.cards .card h3{overflow-wrap:anywhere}}
body.tkd-ui{--ink:#1b1915;--muted:#645f56;--line:#dfdad1;--side:238px;--rail:73px}
.public-bar{max-width:1440px;margin:auto;padding:30px clamp(24px,5vw,76px)}
.brand{display:inline-flex;align-items:center;gap:8px;line-height:1;font:430 25px/1 var(--display);letter-spacing:-.067em;white-space:nowrap}
.brand b{font-weight:780}
#layout{min-height:100vh}#main{min-width:0}
.signed-office #layout{display:grid;grid-template-columns:var(--side) minmax(0,1fr)}
.signed-office.compact-office #layout{grid-template-columns:var(--rail) minmax(0,1fr)}
.office-sidebar{position:sticky;top:0;align-self:start;height:100dvh;display:flex;flex-direction:column;background:#fff;border-right:1px solid #e0dbd2;z-index:12;min-width:0}
.side-header{min-height:75px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between}
.side-inner{flex:1;min-height:0;overflow:auto;padding:6px 12px 20px}
.nav-group,.other-pages{margin:0;padding:12px 0 9px}
.nav-label{margin:0 12px 7px;font:650 .70rem/1.4 var(--body);color:#70695c;letter-spacing:.025em}
.nav-item{position:relative;display:flex;gap:12px;align-items:center;padding:11px 12px;min-height:42px;border-radius:9px;text-decoration:none;font-size:.88rem;font-weight:530;color:#4c4942}
.nav-item+.nav-item{margin-top:3px}
.nav-item:hover{background:#f5f2eb;color:var(--ink)}
.nav-item[aria-current=page]{color:#fff;background:#27251f;font-weight:650;box-shadow:0 2px 3px #322c1e15}
.nav-item[aria-current=page] .nav-icon{color:#e9c466}
.nav-item[aria-current=page]::after{content:"";width:5px;height:5px;border-radius:100%;background:#d6ad52;margin-left:auto}
.nav-icon,.panel-icon{flex:none;width:19px;height:19px;vertical-align:middle}
.nav-exit{margin-left:auto;font-size:.85rem;color:#7f786c}
.other-pages{border-top:1px solid var(--line);margin-top:15px;padding-top:19px}
.sidebar-foot{display:flex;align-items:center;gap:9px;min-height:76px;border-top:1px solid var(--line);padding:12px 13px;background:#fbfaf7}
.staff-avatar{border:1px solid #dfd4b8;background:#f1e9d3;color:#655126;display:grid;place-items:center;font:680 1.1rem var(--display);border-radius:11px;width:36px;height:36px;flex:none}
.staff-info{flex:1;min-width:0}.staff-info b,.staff-info span{display:block;line-height:1.35}.staff-info b{font-size:.81rem}.staff-info span{font-size:.71rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
#logout,.icon-button,.side-close{display:grid;place-items:center;padding:6px;min-height:34px;width:34px;background:transparent;border:1px solid transparent;border-radius:7px;color:#6b6457}
#logout:hover,.icon-button:hover,.side-close:hover{background:#efece5}
.side-close{display:none;font-size:22px}
.office-top{height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);background:#fff;padding:0 clamp(16px,2.5vw,42px)}
.top-context{display:flex;align-items:center;gap:12px;min-width:0;color:var(--muted);font-size:.8rem;white-space:nowrap}
.top-context strong{font-weight:630;color:var(--ink)}.breadcrumb-slash{color:#ada497}.office-top time{font-size:.78rem;color:var(--muted)}
.work-area{max-width:1600px;margin:auto;padding:0 clamp(16px,2.7vw,45px);min-width:0}
.masthead{padding:clamp(22px,3vw,42px) 0 20px}
.masthead h1{font-size:clamp(2.1rem,3.5vw,3.35rem);letter-spacing:-.055em}
.identity{font-weight:560;font-size:.77rem}
#content{padding-top:0}
.compact-office .side-text,.compact-office .nav-exit,.compact-office .nav-label,.compact-office .staff-avatar{display:none}
.compact-office .side-header{padding:19px;justify-content:center}
.compact-office .nav-item{justify-content:center;padding:11px}
.compact-office .nav-item[aria-current=page]::after{position:absolute;width:3px;height:14px;border-radius:3px;left:3px}
.compact-office .sidebar-foot{justify-content:center}
.compact-office .nav-group+.nav-group{border-top:1px solid var(--line)}
#loading{margin:24px clamp(24px,5vw,76px)}
.login{width:min(1100px,100% - 48px);max-width:none;margin:clamp(20px,6vh,76px) auto 36px}
.login-shell{display:grid;grid-template-columns:1fr 1fr;background:white;padding:9px;border:1px solid #e1dcd2;border-radius:26px;min-height:440px}
.login form{border:none;align-self:center;padding:clamp(24px,4.6vw,68px)}
.login form h1{font:690 clamp(2.5rem,4vw,3.6rem)/1.03 var(--display);letter-spacing:-.055em}
.login form .identity{align-items:center}.login input,.login button{min-height:46px}
.login button{display:flex;align-items:center;justify-content:space-between}
.login-visual{border-radius:19px;background:#302c22 url('/pos-assets/grill.webp') center/cover}
#nav-shade{position:fixed;inset:0;z-index:11;background:#211e18a8;border:0;border-radius:0;margin:0;padding:0;width:100%;height:100%}
@media(min-width:1025px){#office-nav{display:block;overflow:visible;padding:0;border:0}.office-sidebar .side-close{display:none}}
@media(max-width:1024px){
  .signed-office #layout,.signed-office.compact-office #layout{display:block}.office-top{height:55px}
  .office-sidebar{position:fixed;inset:0 auto 0 0;width:min(285px,86vw);height:100dvh;visibility:hidden;transform:translateX(-100%);transition:transform .16s ease,visibility .16s}
  .open-drawer{overflow:hidden}.open-drawer .office-sidebar{visibility:visible;transform:translateX(0);box-shadow:5px 0 20px #271f111f}
  .side-close{display:grid}.side-header{min-height:62px}
  .office-sidebar #office-nav{display:block;overflow:visible;padding:0;border:0}
  .office-sidebar #office-nav a{padding:11px 12px}.masthead{padding:22px 0 15px}
  .office-top time{font-size:.7rem}.top-context{gap:6px}.masthead h1{font-size:clamp(2.05rem,6vw,2.8rem)}
}
@media(max-width:570px){.public-bar{padding:20px}.login{width:calc(100% - 32px);margin:18px auto}.login-shell{grid-template-columns:1fr;min-height:0}.login-visual{height:105px;grid-row:1;background-position:50% 43%}.office-top time{display:none}.office-top{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.office-sidebar{transition:none}}
.office-panel form.card.finance-filter{display:flex;align-items:flex-end;gap:12px;padding:15px 18px}
[data-results]>.cards{grid-template-columns:repeat(4,minmax(0,1fr))}
[data-results]>.cards>.card{position:relative;overflow:hidden}
[data-results]>.cards>.card:first-child::after{content:"";position:absolute;bottom:0;left:19px;width:38px;height:3px;background:var(--gold)}
@media(max-width:1010px) and (min-width:801px),(max-width:650px){[data-results]>.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.identity,.actions,.section-head{display:flex;align-items:center}

/* Shared components inside the owner workspace. */
.office-panel {
  --office-radius: 14px;
  --field-edge: #d4cfc5;
  --subtle-fill: #f8f7f4;
  --card-shadow: 0 2px 5px #211d1506;
  font-variant-numeric: tabular-nums;
}
.office-panel .card {
  border-color: #e1dcd2;
  box-shadow: var(--card-shadow);
}
.office-panel :where(h2, h3) { text-wrap: pretty; }
.office-panel .card h2 {
  font-size: clamp(1.12rem, 1.5vw, 1.34rem);
  font-weight: 690;
  line-height: 1.22;
}
.office-panel .section-head h2 { margin: 0; }
.office-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  vertical-align: middle;
}
.office-heading, .office-panel button:has(> .office-icon), .branch-picker label > span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.office-panel .office-heading > .office-icon { width: 1.23rem; height: 1.23rem; color: #746345; }
.office-panel button > .office-icon { width: 1rem; height: 1rem; }
.office-panel :where(input:not([type=checkbox],[type=radio]), select, textarea) {
  min-height: 41px;
  border: 1px solid var(--field-edge);
  border-radius: 8px;
}
.office-panel :where(input, select, textarea):hover { border-color: #b3ab99; }
.office-panel label { font-size: .86rem; font-weight: 610; gap: .38rem; }
.office-panel :where(label, p, h2, h3, td, th, code) { overflow-wrap: break-word; }
.office-panel button { border-radius: 8px; }
.office-panel button:is(.primary,[type=submit]) { color: #fff; border-color: #25231f; background: #25231f; }
.office-panel button:is(.primary,[type=submit]):hover { background: #38352e; }
.office-panel .table-wrap, .office-panel .loyal-history {
  min-width: 0;
  border: 1px solid #e5e1d9;
  border-radius: 9px;
}
.office-panel :where(.table-wrap,.loyal-history) :is(td, th) {
  padding: .78rem .86rem;
  line-height: 1.42;
}
.office-panel :where(.table-wrap,.loyal-history) th {
  color: #615c53;
  background: #f6f5f1;
  font-size: .79rem;
  white-space: nowrap;
}
.office-panel td { font-size: .86rem; }
.office-panel tbody tr:hover { background: #faf9f6; }
.office-panel .table-wrap+p { line-height: 1.5; }
.office-panel .finance-table td:not(:first-child) { white-space: nowrap; }
.office-panel .finance-table th:not(:first-child), .office-panel .finance-table td:not(:first-child) { text-align: right; }
.office-panel .branch-picker { padding: 14px clamp(16px, 2vw, 25px); }
.branch-picker label { display: flex; align-items: center; gap: 16px; width: fit-content; max-width:100%; }
.branch-picker select { width: min(15rem, 55vw); }
.branch-picker .office-icon { width: 1rem; height: 1rem; color: #776c57; }
.office-panel .office-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(22px, 4vw, 50px) 16px;
  min-width: 0;
  background: var(--subtle-fill);
  border: 1px dashed #dbd6ca;
  border-radius: 10px;
}
.office-empty .empty-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  background: #fff;
  color: #766344;
  border: 1px solid #dfd9ca;
  border-radius: 12px;
}
.office-empty .office-icon { width: 21px; height: 21px; }
.office-empty strong { font-weight: 640; font-size: .94rem; }
.office-empty p { margin: 3px 0 0; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.office-panel .office-status {
  border-radius: 20px;
  padding: .23rem .65rem;
  border: 1px solid #ded9cf;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .775rem;
  font-weight: 620;
  line-height: 1.4;
}
.office-status .office-icon { width: 14px; height: 14px; }
.office-status.status-active { background: #edf4ec; border-color: #d3e5d0; color: #365e41; }
.office-status.status-pending { background: #fbf3df; border-color: #ead9b2; color: #785922; }
.office-status.status-muted { background: #f5f4f1; color: #625d54; }
.qris-config > p { color: var(--muted); max-width: 72ch; font-size: .92rem; }
.qris-endpoint { margin-top: 20px; background: var(--subtle-fill); border: 1px solid #e5e0d6; padding: 14px 16px; border-radius: 9px; }
.qris-endpoint span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; font-weight: 590; }
.qris-endpoint .office-icon { width: 15px; height: 15px; }
.qris-endpoint code { display: block; margin-top: 5px; font-size: .87rem; overflow-wrap: anywhere; }
.office-panel .form-grid > button { justify-self: start; }
.office-panel .card > details > summary, .office-panel .card > .actions + details > summary { font-size: .9rem; }
.office-panel [data-portions] form + [data-editor] + [data-result] + h3 { margin-block: 20px 8px; }
.office-panel .staff-form [type=submit], .office-panel .menu-form [type=submit] { background: #fff; color: var(--ink); border-color: var(--field-edge); }
.office-panel .staff-form [type=submit]:hover, .office-panel .menu-form [type=submit]:hover { background: var(--subtle-fill); }
.office-panel [data-drawer-move] { display: grid; gap: 12px; }
.office-panel [data-drawer-move] > button { justify-self: start; }
@media(max-width: 600px) {
  .office-panel .card { padding: 16px; }
  .office-panel .office-empty { justify-content: flex-start; gap: 12px; padding: 22px 14px; }
  .office-panel .office-heading { gap: .42rem; }
  .office-heading .office-icon { width: 1.1rem; height: 1.1rem; }
  .office-panel .form-grid { grid-template-columns: 1fr; }
  .office-panel .section-head { align-items: center; }
  .office-panel :where(input:not([type=checkbox],[type=radio]), select, textarea) { min-height: 44px; font-size: 1rem; }
  .office-panel .table-wrap:focus-visible { outline-offset: 2px; }
}
.office-panel label { grid-template-columns: minmax(0,1fr); }
.office-panel label > :is(select,textarea,input:not([type=radio],[type=checkbox])) { min-width: 0; width: 100%; }
.office-panel .branch-picker select { width: min(15rem, 55vw); }
