:root{font-family:Segoe UI,Arial,sans-serif;color:#29362e;background:#f5f5ef;--sage:#536b55;--muted:#788074;--line:#e1e5da;--cream:#fbfcf8}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;padding:10px 16px;background:white;color:inherit;font-weight:600}button:hover{background:#eef1e8}button:disabled{opacity:.55;cursor:wait}button.primary,.primary{background:var(--sage);color:white;border-color:var(--sage)}button.danger{color:#a24539;background:#fff4ef}input,select,textarea{width:100%;border:1px solid #d6dccc;border-radius:8px;padding:11px 12px;background:#fff;color:inherit}input[type=checkbox]{width:auto;accent-color:var(--sage)}label{display:block;font-size:13px;font-weight:600;line-height:1.7;margin-bottom:13px}textarea{min-height:85px}a{color:var(--sage)}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;margin-bottom:7px}h2{font-size:21px;letter-spacing:-.4px}h3{font-size:16px}.muted,small{color:var(--muted)}small{font-size:12px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:var(--sage);text-transform:uppercase}.shell{display:grid;grid-template-columns:235px 1fr;min-height:100vh}.sidebar{background:#fbfcf8;border-right:1px solid var(--line);padding:32px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font-size:24px;letter-spacing:-1px;font-weight:650;margin-bottom:40px;display:flex;align-items:center;gap:10px}.brand span{display:inline-grid;place-items:center;border-radius:50%;background:#dfe7d7;color:var(--sage);width:37px;height:37px}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:2px}.nav-label{font-size:10px;letter-spacing:1.7px;color:#949c8c;margin:16px 12px 10px}.nav button{width:100%;text-align:left;background:transparent;border:none;margin-bottom:5px;color:#747d6f;font-weight:500;padding:13px 15px}.nav button.active{color:#435e43;background:#e7eddf;font-weight:650}.nav b{display:inline-block;width:27px;font-size:17px}.sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding-top:20px;font-size:12px;line-height:1.7}.avatar{width:34px;height:34px;display:inline-grid;place-items:center;background:#e3e9dc;border-radius:50%;margin-right:9px;font-weight:bold}.main{min-width:0}.topbar{height:83px;padding:18px 34px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:#fbfcf8;gap:15px}.topbar select{width:240px;background:#f5f6ef}.live{font-size:11px;color:#65745c;border:1px solid #dfe6d8;border-radius:20px;padding:6px 10px}.live:before{content:'●';color:#7e9e6f;margin-right:5px}.workspace{padding:30px 34px;max-width:1700px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:20px}.page-head p{font-size:13px;margin:0;color:#818879}.cash-grid{display:grid;grid-template-columns:minmax(330px,1fr) 380px;gap:26px}.catalog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.search{max-width:320px;position:relative}.search input{background:#fff}.tabs{display:flex;gap:8px;margin:17px 0 23px;flex-wrap:wrap}.tabs button{font-size:12px;border-radius:30px;padding:8px 16px;font-weight:500}.tabs button.active{background:#e4ebdc;border-color:#cbd8c0;color:#45613d}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.service{padding:20px;border:1px solid var(--line);border-radius:13px;background:var(--cream);position:relative;min-height:175px;text-align:left;display:flex;flex-direction:column;align-items:flex-start}.service:hover{border-color:#92a582;box-shadow:0 3px 12px #435e4308}.service-icon{font-size:24px;background:#eef1e7;width:44px;height:44px;display:grid;place-items:center;border-radius:11px;margin-bottom:14px;color:#7d916d}.service h3{margin:0 0 5px}.service small{font-weight:400}.service-bottom{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:18px}.service strong{font-size:15px}.add{background:#e8eddf;border-radius:50%;width:27px;height:27px;display:grid;place-items:center;font-size:20px;color:#5c7750}.bill{border:1px solid var(--line);border-radius:15px;background:white;overflow:hidden;align-self:start;position:sticky;top:20px}.bill-title{padding:22px;border-bottom:1px dashed var(--line);display:flex;justify-content:space-between;align-items:center}.bill-title h2{margin:0}.bill-body{padding:22px}.bill-line{padding:14px 0;border-bottom:1px solid #edf0e7}.row{display:flex;justify-content:space-between;align-items:center;gap:10px}.row.wrap{flex-wrap:wrap}.bill-line input{width:90px;padding:5px 7px}.quantity{display:flex;align-items:center;gap:10px;margin-top:10px}.quantity button{padding:1px 8px;font-size:15px}.quantity small{margin-left:auto}.totals{margin:22px 0;font-size:13px;line-height:2.2}.grand{font-size:20px;font-weight:700;border-top:1px dashed var(--line);margin-top:10px;padding-top:13px}.full{width:100%}.empty{text-align:center;padding:40px 15px;color:#8d9585;font-size:13px;border:1px dashed #dce2d3;border-radius:9px;line-height:1.8}.note{background:#edf2e5;border-radius:10px;padding:13px 16px;font-size:12px;color:#6d7d60;line-height:1.6;margin-top:20px}.panel{background:white;border:1px solid var(--line);border-radius:13px;padding:24px;margin-bottom:20px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.metric{background:white;border:1px solid var(--line);border-radius:12px;padding:20px}.metric strong{display:block;font-size:25px;margin-top:13px}.filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:20px}.filter label{margin:0;flex:1;min-width:130px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;font-weight:500;color:#859078;background:#f7f8f2}td,th{padding:14px 12px;border-bottom:1px solid var(--line);white-space:nowrap}.badge{display:inline-block;padding:4px 9px;border-radius:20px;background:#edf0e6;color:#6b795d;font-size:11px}.badge.paid{background:#e4efdd;color:#4a7041}.badge.cancelled,.badge.refund{background:#f7e7df;color:#9d6352}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions button{font-size:12px;padding:8px 11px}.pager{display:flex;justify-content:end;align-items:center;gap:15px;margin-top:16px;font-size:12px}dialog{width:min(620px,95vw);border:1px solid var(--line);border-radius:16px;padding:28px;max-height:90vh;color:inherit}dialog::backdrop{background:#1e2b2370;backdrop-filter:blur(3px)}dialog h2{margin-bottom:20px}.modal-head{display:flex;justify-content:space-between;align-items:start}.close{padding:3px 10px;font-size:22px;border:none}.qr{display:block;width:min(270px,100%);height:auto;max-height:350px;object-fit:contain;margin:18px auto}.error{color:#a24539;background:#fff1e9;padding:12px;border-radius:7px;font-size:13px;margin-bottom:15px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#293e2d;color:white;border-radius:10px;padding:13px 22px;z-index:10;display:none;box-shadow:0 5px 30px #0002;max-width:90vw}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-art{background:#536b55;color:#fff;padding:70px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-art:after{content:'❧';position:absolute;bottom:-100px;right:-70px;font-size:500px;color:#ffffff0c}.login-art h1{font-family:Georgia,serif;font-weight:400;font-size:66px;line-height:1.1;margin:50px 0 25px;max-width:500px}.login-art p{line-height:1.8;color:#d9e1d3;max-width:350px}.login-form{align-self:center;padding:60px;max-width:500px;width:100%;margin:auto}.login-form h2{font-size:29px}.landing{max-width:1150px;margin:auto;padding:30px}.landing-nav{display:flex;justify-content:space-between;align-items:center}.hero{background:#e3e9da;padding:65px;border-radius:24px;margin:30px 0}.hero h1{font:normal 60px/1.1 Georgia,serif;max-width:650px}.hero p{max-width:600px;line-height:1.8}.branch-card{display:block;text-decoration:none;background:white;padding:28px;border:1px solid var(--line);border-radius:15px}.gallery{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px}.display{min-height:100vh;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:25px;background:#fbfcf8}.display h1{font:40px Georgia,serif}.display .amount{font-size:60px;margin:20px 0}.display .qr{max-height:45vh;width:min(420px,80vw)}.receipt{font-family:Arial,sans-serif;background:white;color:#000;padding:20px;max-width:780px;margin:auto;font-size:13px}.receipt h1{font-size:24px;letter-spacing:0}.receipt header{text-align:center}.receipt table{font-size:12px}.receipt td,.receipt th{white-space:normal;padding:7px 3px}.receipt .print-tools{margin-bottom:25px}.receipt.thermal58{width:58mm;padding:3mm;font-size:10px}.receipt.thermal80{width:80mm;padding:4mm;font-size:11px}.receipt.thermal58 h1,.receipt.thermal80 h1{font-size:16px}.receipt.thermal58 table,.receipt.thermal80 table{font-size:10px}.checklist{display:flex;gap:8px 20px;flex-wrap:wrap}.checklist label{font-weight:400}.loading{padding:50px;text-align:center}.audit-json{white-space:pre-wrap;max-width:550px;overflow-wrap:anywhere;font-size:11px}.mobile-menu{display:none}.list-edit{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 0;gap:10px;align-items:center}
@media(min-width:1450px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.cash-grid{grid-template-columns:1fr 410px}}@media(max-width:1100px){.shell{grid-template-columns:190px 1fr}.sidebar{padding:25px 12px}.workspace{padding:25px 20px}.topbar{padding:15px 20px}.cash-grid{grid-template-columns:1fr 330px;gap:16px}.cards{grid-template-columns:1fr}.service{min-height:120px}.service-icon{display:none}}@media(max-width:800px){.shell{display:block}.sidebar{height:auto;position:static;padding:16px}.brand{margin:0;font-size:20px}.sidebar .nav{display:flex;overflow-x:auto;margin-top:15px}.nav button{width:auto;white-space:nowrap;padding:9px 13px;margin:0}.nav-label,.sidebar-foot{display:none}.topbar{height:auto;flex-wrap:wrap}.topbar select{width:200px}.workspace{padding:22px 16px}.cash-grid{grid-template-columns:1fr}.bill{position:static}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.grid3{grid-template-columns:1fr 1fr}.grid2{grid-template-columns:1fr}.login{grid-template-columns:1fr}.login-art{padding:30px}.login-art h1{font-size:37px;margin:20px 0}.login-art p{display:none}.login-form{padding:35px 25px}.hero{padding:35px 25px}.hero h1{font-size:39px}.page-head{align-items:start}.page-head h1{font-size:25px}.display .amount{font-size:40px}.panel{padding:17px}.live{display:none}}@media(max-width:420px){.cards{gap:9px}.service{padding:15px}.service h3{font-size:14px}.service strong{font-size:12px}.grid3{grid-template-columns:1fr}.topbar select{width:170px}}
@media print{body{background:white}.shell,.landing,#toast,dialog,.print-tools{display:none!important}.receipt{display:block!important}.print-report .sidebar,.print-report .topbar,.print-report .filter,.print-report button{display:none!important}.print-report .shell{display:block!important}.print-report .workspace{padding:0}.print-report .panel{border:none;padding:0}.print-report .table-wrap{overflow:visible}.print-report table{font-size:10px}.print-report td,.print-report th{white-space:normal;padding:6px}.print-report .grid3{display:flex;flex-wrap:wrap}.print-report .metric{border:none;padding:10px}.print-report .metric strong{font-size:17px}@page{margin:10mm}}
.topbar > .row{flex-wrap:wrap}
.audit-table{table-layout:fixed}
.audit-table th,.audit-table td{white-space:normal;vertical-align:top;overflow-wrap:anywhere;line-height:1.65}
.audit-table th:first-child{width:160px}
.audit-table th:nth-child(2){width:190px}
.audit-title{font-weight:650;color:#3e573e}
.audit-summary{margin:5px 0 10px;color:#4f5f50}
.audit-details>summary{cursor:pointer;color:var(--sage);font-size:12px;padding:3px 0}
.audit-details dl{margin:10px 0 2px;padding:12px 15px;background:#f6f8f1;border:1px solid var(--line);border-radius:9px;font-size:12px}
.audit-details dl>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px;padding:5px 0}
.audit-details dt{font-weight:600;color:#6b795f}
.audit-details dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:800px){
 .audit-table,.audit-table tbody,.audit-table tr,.audit-table td{display:block;width:100%}
 .audit-table thead{display:none}
 .audit-table tr{padding:16px 0;border-bottom:1px solid var(--line)}
 .audit-table td{border:0;padding:3px 0}
 .audit-table .audit-time{font-size:11px;color:var(--muted);margin-bottom:5px}
 .audit-table .audit-person small{display:block}
 .audit-table .audit-person br{display:none}
 .audit-title{margin-top:7px}
 .audit-details dl>div{grid-template-columns:1fr;gap:1px}
}
.room-card{position:relative}
.room-card.selected{background:#edf3e5;border-color:#69855d;box-shadow:inset 0 0 0 1px #69855d}
.room-marker{margin-top:auto;padding-top:15px;color:var(--sage);font-size:12px}
.room-help{font-size:13px;margin-bottom:20px;line-height:1.6}
.room-card .service-icon{display:grid}
.item-picker{position:relative;margin-bottom:8px}
.item-picker>label{margin-bottom:3px}
.item-results{position:absolute;top:100%;left:0;right:0;z-index:6;max-height:min(220px,30dvh);overflow:auto;padding:5px;background:white;border:1px solid #c6d2bc;border-radius:9px;box-shadow:0 8px 22px #29362e25;overscroll-behavior:contain}
.item-results[hidden]{display:none}
.item-results>p{font-size:12px;padding:8px;margin:0}
.item-option{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;border:0;padding:10px;min-height:52px;background:white;font-size:13px}
.item-option.highlighted,.item-option:hover{background:#edf3e5}
.item-option small{font-weight:400}
.selected-room-summary{display:flex;justify-content:space-between;gap:12px;padding:7px 0 10px;font-size:12px;border-bottom:1px solid var(--line);margin-bottom:5px}
.selected-room-summary strong{overflow-wrap:anywhere;text-align:right}
.cashier-note{margin:0 0 10px;font-size:12px}
.cashier-note>summary{cursor:pointer;padding:5px 0;color:#6d7d60}
.cashier-note textarea{margin-top:5px;min-height:38px}
.line-duration{display:block;margin-top:4px}
.cashier-person-fields input{display:block}
.transaction-assignment{font-size:13px;line-height:1.7}
@media screen and (min-width:1000px) and (min-height:600px){
 .cashier-mode .room-help{flex-shrink:0;margin-bottom:16px}
 .cashier-mode .cashier-person-fields label{margin-bottom:6px}
 .cashier-mode .room-cards{flex:1}
 .cashier-mode .item-picker{margin-bottom:4px}
 .cashier-mode .selected-room-summary{padding:4px 0 6px}
 .cashier-mode .cashier-note{margin-bottom:6px}
 .cashier-mode .cashier-note[open] textarea{max-height:48px}
}
.item-row{align-items:center;gap:12px}
.item-info{min-width:0;overflow-wrap:anywhere}
.item-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.item-actions>button{min-height:40px;padding:8px 13px}
.item-more{position:relative}
.item-more>summary{cursor:pointer;display:grid;place-items:center;list-style:none;width:40px;height:40px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:24px;font-weight:700;line-height:1;user-select:none}
.item-more>summary::-webkit-details-marker{display:none}
.item-more>summary:hover,.item-more[open]>summary{background:#eef1e8}
.item-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:5;min-width:145px;padding:5px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #29362e20}
.item-menu button{display:block;width:100%;min-height:42px;text-align:left;border:0;padding:10px 13px;background:transparent;font-size:13px}
.item-menu button:hover{background:#eef1e8}
.item-menu button.danger{color:#a24539}
/* Kasir desktop: kontrol tetap terlihat, hanya daftar panjang yang bergulir. */
@media screen and (min-width:1000px) and (min-height:600px){
 .cashier-mode{height:100dvh;min-height:0;overflow:hidden}
 .cashier-mode .main{display:flex;flex-direction:column;min-height:0;overflow:hidden}
 .cashier-mode .topbar{height:64px;min-height:64px;padding:10px 24px;flex-shrink:0}
 .cashier-mode .topbar select{padding:8px 10px}
 .cashier-mode .workspace{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:18px 24px}
 .cashier-mode .page-head{flex-shrink:0;margin-bottom:16px}
 .cashier-mode .page-head .eyebrow{display:none}
 .cashier-mode .page-head h1{font-size:25px;margin-bottom:4px}
 .cashier-mode .cash-grid{flex:1;min-height:0;gap:20px;grid-template-columns:minmax(0,1fr) 380px}
 .cashier-mode .cash-grid>section:first-child{display:flex;flex-direction:column;min-height:0;min-width:0}
 .cashier-mode .catalog-head{margin-bottom:12px;flex-shrink:0}
 .cashier-mode .catalog-head h2{font-size:18px}
 .cashier-mode .search{flex-shrink:0}
 .cashier-mode .tabs{margin:12px 0 15px;flex-shrink:0}
 .cashier-mode .cards{overflow-y:auto;min-height:0;align-content:start;grid-auto-rows:max-content;padding-right:4px;overscroll-behavior:contain}
 .cashier-mode .service{min-height:135px;padding:15px}
 .cashier-mode .service-icon{width:30px;height:30px;font-size:20px;margin-bottom:8px}
 .cashier-mode .service-bottom{margin-top:12px}
 .cashier-mode .cash-grid>section:first-child>.note{display:none}
 .cashier-mode .bill{position:static;align-self:stretch;height:100%;min-height:0;display:flex;flex-direction:column}
 .cashier-mode .bill-title{padding:14px 16px;flex-shrink:0}
 .cashier-mode .bill-title h2{font-size:19px}
 .cashier-mode .bill-body{padding:14px 16px;display:flex;flex-direction:column;flex:1;min-height:0}
 .cashier-mode .bill-body>*{flex-shrink:0}
 .cashier-mode .bill-body>.grid2{grid-template-columns:1fr 1fr}
 .cashier-mode .bill-body label{margin-bottom:8px}
 .cashier-mode .bill-body input,.cashier-mode .bill-body select{padding:8px 10px}
 .cashier-mode #bill-lines{flex:1;min-height:55px;overflow-y:auto;overscroll-behavior:contain;padding-right:3px}
 .cashier-mode #bill-lines .empty{padding:16px 10px;line-height:1.5}
 .cashier-mode .bill-line{padding:10px 0}
 .cashier-mode .quantity{margin-top:6px}
 .cashier-mode .quantity input{padding:4px 7px}
 .cashier-mode .totals{margin:10px 0;line-height:1.8}
 .cashier-mode .grand{margin-top:6px;padding-top:8px;font-size:19px}
 .cashier-mode #note{display:block;min-height:38px;height:38px;resize:none;padding:8px 10px}
 .cashier-mode .bill-body>small{font-size:10px;margin-top:7px!important}
 .cashier-mode .bill-actions{display:grid;grid-template-columns:minmax(0,1fr) 115px;gap:8px}
 .cashier-mode .bill-actions button{margin:0!important;padding:10px;font-size:12px;min-height:44px}
 .cashier-mode .sidebar{height:100dvh;min-height:0;padding:20px 16px;overflow:hidden}
 .cashier-mode .sidebar .brand{margin-bottom:24px}
 .cashier-mode .sidebar .nav{min-height:0;overflow-y:auto}
 .cashier-mode .sidebar-foot{flex-shrink:0;padding-top:12px}
}
@media screen and (min-width:1000px) and (max-height:720px) and (min-height:600px){
 .cashier-mode .workspace{padding:12px 20px}
 .cashier-mode .page-head{margin-bottom:10px}
 .cashier-mode .page-head p{display:none}
 .cashier-mode .sidebar .brand{margin-bottom:10px}
 .cashier-mode .nav button{padding:9px 12px}
 .cashier-mode .sidebar-foot{font-size:11px;line-height:1.4}
 .cashier-mode .bill-body{padding:10px 14px}
 .cashier-mode .bill-title{padding:10px 14px}
 .cashier-mode .bill-body>small{display:none!important}
 .cashier-mode .bill-body>button{padding:8px 10px}
 .cashier-mode .totals{margin:6px 0}
 .cashier-mode .bill-body .cashier-person-fields label{font-size:12px;line-height:1.3;margin-bottom:4px}
 .cashier-mode .bill-body .cashier-person-fields input{height:30px;padding:5px 9px}
 .cashier-mode .item-picker>label{font-size:12px;line-height:1.3;margin-bottom:2px}
 .cashier-mode .item-picker>input{height:30px;padding:5px 9px}
 .cashier-mode .selected-room-summary{padding:2px 0 4px;margin-bottom:3px}
 .cashier-mode .totals{margin:4px 0;line-height:1.5}
 .cashier-mode .totals label{margin-bottom:2px}
 .cashier-mode .grand{margin-top:4px;padding-top:5px;font-size:18px}
 .cashier-mode .cashier-note{margin-bottom:4px}
 .cashier-mode .cashier-note>summary{padding:2px 0}
}
@media screen and (min-width:1000px) and (min-height:600px){
 .cashier-mode .cashier-note{position:relative}
 .cashier-mode .cashier-note[open] textarea{position:absolute;bottom:100%;left:0;width:100%;height:60px;max-height:60px;z-index:4;background:white;box-shadow:0 4px 18px #29362e20}
}
@media screen and (min-width:1000px) and (min-height:721px) and (max-height:850px){
 .cashier-mode .bill-title{padding:12px 16px}
 .cashier-mode .bill-body .cashier-person-fields label{font-size:12px;line-height:1.3;margin-bottom:4px}
 .cashier-mode .bill-body .cashier-person-fields input{height:32px;padding:6px 9px}
 .cashier-mode .item-picker>label{font-size:12px;line-height:1.3;margin-bottom:2px}
 .cashier-mode .item-picker>input{height:34px;padding:6px 9px}
 .cashier-mode .totals{margin:6px 0;line-height:1.6}
 .cashier-mode .totals label{margin-bottom:3px}
 .cashier-mode .totals input{height:30px}
 .cashier-mode .grand{margin-top:4px;padding-top:6px}
 .cashier-mode .bill-body>small{display:none!important}
 .cashier-mode .bill-line{padding:8px 0}
}
/* Room tegak dengan ukuran tetap; tidak meregang mengisi kolom. */
#room-cards{display:grid;grid-template-columns:repeat(auto-fill,210px);grid-auto-rows:297px;justify-content:start;align-content:start;align-items:start;gap:16px;min-height:0;overflow-y:auto;padding-right:4px}
.room-card{width:210px;height:297px;min-height:297px;display:flex;flex-direction:column;gap:7px;padding:14px;border:1px solid var(--line);border-radius:13px;background:#fbfcf8;overflow:hidden;cursor:pointer}
.room-select{position:relative;display:flex;align-items:center;gap:8px;text-align:left;width:100%;padding:0;border:0;background:transparent;flex-shrink:0;min-height:35px}
.room-select:hover{background:transparent}
.room-select h3{font-size:16px;line-height:1.25;margin:0;overflow-wrap:anywhere;max-height:42px;overflow:auto;flex:1}
.room-icon{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border-radius:8px;background:#e9eedf;color:#7d916d;font-size:18px}
.room-selected-mark{font-size:10px;color:#4d7042;white-space:nowrap}
.room-status{align-self:start;border-radius:15px;padding:3px 9px;background:#e8efdf;color:#4c7041;font-size:11px;line-height:1.3;flex-shrink:0}
.room-card.occupied .room-status{background:#e4eae2;color:#4d6551}
.room-card.overdue{border-color:#d8a488;background:#fff8f2}
.room-card.overdue .room-status{background:#f8e3d5;color:#a1502d}
.room-content{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:4px;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.room-content p{margin:0;color:#818879;font-size:12px}
.room-package{font-size:13px;line-height:1.35;font-weight:650}
.room-therapist{font-size:12px;color:#536b55}
.room-timer-block{flex-shrink:0;text-align:center;line-height:1.4;min-height:43px}
.room-timer-block>small{display:block;font-size:10px}
.room-timer{display:block;font-variant-numeric:tabular-nums;font-size:25px;letter-spacing:.5px;color:#3e5c40}
.room-card.overdue .room-timer{color:#a1502d}
.room-card-actions{min-height:38px;flex-shrink:0;text-align:center}
.room-card-actions button{font-size:12px;min-height:38px;padding:8px}
.room-card-actions>span{font-size:11px;color:#788074;display:block;padding:10px 0}
.no-room{align-self:flex-start;display:inline-block;background:#fbfcf8;padding:9px 14px;font-size:12px;margin-bottom:14px;flex-shrink:0}
.no-room.selected{background:#e8efdf;border-color:#69855d;color:#3e5c40}
.room-session-notice{font-size:11px;line-height:1.6;color:#788074;margin:12px 0 0;flex-shrink:0}
@media(max-width:800px){
 #room-cards{grid-template-columns:repeat(2,minmax(0,210px));grid-auto-rows:auto;gap:12px;padding:0;overflow:visible}
 .room-card{width:100%;height:auto;min-height:0;aspect-ratio:210/297;padding:10px;gap:5px}
 .room-select{min-height:30px;gap:5px}
 .room-select h3{font-size:14px;max-height:36px}
 .room-icon{width:23px;height:23px;font-size:16px}
 .room-status{font-size:10px;padding:3px 7px}
 .room-timer{font-size:21px}
 .room-package{font-size:12px}
 .room-content,.room-content p,.room-therapist{font-size:11px}
 .room-content small{font-size:10px}
 .room-card-actions button{font-size:11px;min-height:36px}
 .room-timer-block{min-height:38px}
}
@media(max-width:360px){#room-cards{grid-template-columns:210px}.room-card{height:297px;aspect-ratio:auto}}
.cashier-person-fields input{width:100%;box-sizing:border-box}
.cashier-person-fields input[readonly]{background:#f4f6ef;color:#536b55}
@media screen and (min-width:1000px) and (min-height:600px){
 .cashier-mode .bill-body>.cashier-person-fields{flex-shrink:1;min-height:100px;overflow-y:auto}
}
/* Ruang untuk outline di dalam pembungkus yang dapat bergulir. */
.bill{overflow:clip}
.bill input,.bill select,.bill textarea{width:100%;max-width:100%;box-sizing:border-box;min-width:0}
.bill input:focus,.bill select:focus,.bill textarea:focus{outline:2px solid #536b55;outline-offset:1px}
.bill .cashier-person-fields{padding:4px;margin:-4px -4px 0;scroll-padding:8px;overflow-x:hidden}
.bill .cashier-person-fields label{display:block;line-height:1.4;margin-bottom:8px}
.bill .cashier-person-fields input{margin-top:4px;scroll-margin:8px}
.bill .item-picker{padding:4px;margin:0 -4px 4px}
.bill .item-picker>label{display:block;margin-bottom:4px;line-height:1.4}
.bill .item-results{left:4px;right:4px}
.bill #bill-lines{overflow-y:auto;overflow-x:hidden;scroll-padding:8px;padding:4px;box-sizing:border-box}
.bill #bill-lines:has(>.empty){padding:0}
.bill #bill-lines .empty{min-height:0;padding:8px;line-height:1.5;font-size:12px}
.bill .cashier-note{margin-left:0;margin-right:0;padding:3px}
.bill .cashier-note[open] textarea{position:static;width:100%;height:60px;max-height:none;box-shadow:none}
.room-panel #room-cards{grid-auto-rows:auto}
.room-panel .room-card{height:auto;min-height:260px;aspect-ratio:auto;gap:6px;overflow:visible}
.room-panel .room-select h3{font-size:16px;max-height:none;overflow:visible;line-height:1.35}
.room-panel .room-status{font-size:13px}
.room-panel .room-content{flex:0 0 auto;overflow:visible;font-size:13px;gap:3px}
.room-panel .room-content:empty,.room-panel .room-content p:empty,.room-panel .room-timer-block:empty{display:none}
.room-panel .room-content p,.room-panel .room-content small,.room-panel .room-package,.room-panel .room-therapist{font-size:13px;line-height:1.4}
.room-panel .room-timer-block{min-height:0;line-height:1.3}
.room-panel .room-timer{font-size:26px}
.room-panel .room-timer-label{font-size:13px}
.room-panel .room-card-actions{margin-top:auto;min-height:0}
.room-panel .room-card-actions>span{padding:4px 0;font-size:13px}
.room-panel .room-card-actions button{font-size:13px}
.room-manage-row{display:block}
.room-info{min-width:0;overflow-wrap:anywhere}
.room-photo-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:12px 0}
.room-photo-controls>.upload-form{display:contents}
.room-photo-controls>.upload-form>input{grid-column:1;grid-row:1;width:100%;min-width:0;height:42px;padding:8px 10px;font-size:13px;box-sizing:border-box}
.room-photo-controls>.upload-form>button{grid-column:1;grid-row:2;justify-self:start;height:42px;margin-top:0!important}
.room-manage-actions{grid-column:2;grid-row:1;gap:8px;align-items:center;flex-wrap:nowrap;width:auto}
.room-manage-actions>button{width:56px;height:42px;min-height:42px;padding:8px;flex:0 0 56px}
.room-manage-actions .item-more>summary{width:42px;height:42px;box-sizing:border-box}
.room-more.menu-above>.item-menu{top:auto;bottom:calc(100% + 5px)}
@media(max-width:600px){
 .room-photo-controls{grid-template-columns:minmax(0,1fr)}
 .room-manage-actions{grid-column:1;grid-row:2;justify-self:end}
 .room-photo-controls>.upload-form>button{grid-row:3}
}
@media(max-width:800px){
 .room-panel .room-card{padding:12px;min-height:260px;height:auto;aspect-ratio:auto}
 .room-panel .room-select{flex-wrap:wrap}
 .room-panel .room-select h3{min-width:65px}
 .room-panel .room-timer{font-size:25px;letter-spacing:0}
}
.bill .totals{padding:3px}
@media screen and (min-width:1000px) and (min-height:600px){
 .cashier-mode .bill-body{overflow-y:auto;overflow-x:hidden;scroll-padding:8px}
 .cashier-mode .bill-body>.cashier-person-fields{flex-shrink:0;min-height:auto;overflow:visible}
 .cashier-mode .bill-actions{position:sticky;bottom:-1px;background:white;padding-top:4px;z-index:3}
 .cashier-mode .bill-body .cashier-person-fields label{margin-bottom:8px;line-height:1.4}
}
/* Header and responsive navigation */
.mobile-nav-toggle,.connection-short{display:none}
.branch-controls{display:flex;align-items:center;gap:10px;min-width:0}
.branch-controls select{margin:0;min-width:0;min-height:44px;box-sizing:border-box}
.branch-menu{position:relative;flex:0 0 44px;z-index:40}
.branch-menu>summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;box-sizing:border-box;border:1px solid var(--line);border-radius:9px;background:white;font-size:24px;cursor:pointer;list-style:none}
.branch-menu>summary::-webkit-details-marker{display:none}
.branch-menu-list{position:absolute;right:0;top:calc(100% + 8px);width:220px;max-width:calc(100vw - 32px);padding:6px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #26372b26;box-sizing:border-box}
.branch-menu-list button{display:block;width:100%;min-height:44px;text-align:left;border:0;background:transparent;white-space:normal;font-size:14px;padding:10px 12px}
.branch-menu-list button:hover{background:var(--sage,#edf2e6)}
.header-meta{display:flex;align-items:center;gap:12px;min-width:0}
.header-meta small{white-space:nowrap}
.header-account{flex:0 0 44px;width:44px;height:44px;margin:0;border:0;cursor:pointer}
.branch-menu summary:focus-visible,.mobile-nav-toggle:focus-visible{outline:2px solid var(--green,#526c55);outline-offset:2px}
@media(max-width:800px){
 .shell>.sidebar{padding:16px 16px 10px;height:auto;overflow:visible}
 .sidebar .brand{margin-bottom:14px}
 .mobile-nav-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 12px;font-size:14px;text-align:left}
 .mobile-nav-toggle>span{white-space:nowrap}
 .mobile-nav-toggle strong{font-size:14px;text-align:right;overflow-wrap:anywhere}
 .sidebar .nav{display:none;overflow:visible;margin:8px 0 0;flex-direction:column;width:100%}
 .sidebar.navigation-open .nav{display:flex}
 .sidebar .nav button{display:block;width:100%;min-height:44px;margin:0;padding:12px;text-align:left;white-space:normal;font-size:14px;box-sizing:border-box}
 .topbar,.cashier-mode .topbar{display:flex;flex-direction:column;align-items:stretch;gap:8px;height:auto;padding:10px 16px 12px;overflow:visible}
 .topbar .branch-controls{display:flex;width:100%;gap:8px;flex-wrap:nowrap;min-width:0}
 .topbar .branch-controls select{width:100%;flex:1 1 0;font-size:14px;height:44px;padding:9px 12px}
 .header-meta{width:100%;gap:8px;justify-content:space-between;font-size:12px}
 .header-meta .live{display:inline-flex;font-size:11px;white-space:nowrap;padding:4px 8px}
 .connection-full{display:none}.connection-short{display:inline}
 .header-meta small{font-size:11px}
 .header-account{font-size:14px}
 .shell>.main{min-width:0}
}
/* Compact user editor; other dialogs retain their existing dimensions. */
dialog:has(#user-form){width:min(500px,calc(100vw - 24px));padding:20px 24px;max-height:calc(100dvh - 24px);overflow-y:auto}
dialog:has(#user-form) h2{font-size:20px;line-height:1.3;margin:0 0 16px}
#user-form{display:grid;gap:12px;min-width:0}
#user-form>label{margin:0;font-size:13px;line-height:1.4;font-weight:600}
#user-form>label>input,#user-form>label>select{display:block;width:100%;box-sizing:border-box;height:40px;margin-top:5px;padding:8px 10px;font-size:14px;line-height:1.4;font-weight:400;min-width:0}
#user-form .user-field-help{display:block;font-size:12px;line-height:1.4;font-weight:400;margin-top:5px}
#user-form>p{font-size:13px;line-height:1.5;margin:0}
#user-form>h3{font-size:14px;line-height:1.4;margin:2px 0 -6px}
#user-form .checklist{display:grid;gap:6px 16px;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
#user-form .checklist label{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;gap:8px;margin:0;padding:7px 0;min-height:36px;line-height:1.45;font-size:13px;font-weight:400;cursor:pointer}
#user-form .checklist input{width:16px;height:16px;min-width:16px;margin:2px 0 0;padding:0;cursor:pointer}
#user-form .checklist span{min-width:0;overflow-wrap:anywhere}
#user-form>button{min-height:40px;padding:9px 12px;font-size:14px;line-height:1.4;margin:0}
@media(max-width:600px){
 dialog:has(#user-form){padding:16px 20px}
 #user-form .checklist{grid-template-columns:minmax(0,1fr);gap:4px}
 #user-form .checklist label{min-height:44px;align-items:center}
 #user-form .checklist input{margin:0}
 #user-form>button{min-height:44px}
}
/* Branch contact links remain within the profile and public layout. */
#branch-form{min-width:0}
#branch-form input{width:100%;min-width:0;box-sizing:border-box}
.branch-maps-tools{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:-5px 0 13px;min-width:0}
.branch-maps-tools small{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.maps-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:10px 14px;border:1px solid var(--line);border-radius:9px;background:white;text-decoration:none;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.maps-button[hidden]{display:none}
.maps-button:hover{background:#eef1e8}
.public-directions{margin:8px 0 0 8px;vertical-align:middle}
@media(max-width:600px){.public-directions{margin-left:0;display:flex;width:fit-content}}
.public-location{overflow-wrap:anywhere;word-break:break-word}
/* Check-in popup: scroll the form body while keeping confirmation accessible. */
dialog:has(#room-checkin-form){width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px 20px;overflow:hidden}
dialog[open]:has(#room-checkin-form){display:flex;flex-direction:column}
dialog:has(#room-checkin-form) .modal-head{flex-shrink:0}
dialog:has(#room-checkin-form) h2{font-size:20px;margin:0 0 12px;overflow-wrap:anywhere;flex-shrink:0}
#room-checkin-form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.checkin-body{border:0;padding:4px 6px 10px;margin:0;min-width:0;overflow-y:auto;overscroll-behavior:contain}
.checkin-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
#room-checkin-form label{font-size:13px;margin-bottom:10px}
#room-checkin-form input,#room-checkin-form select{font-size:14px;min-height:40px;padding:9px 10px;width:100%;min-width:0}
#room-checkin-form input[readonly]{background:#f5f6ef}
#room-checkin-form h3{font-size:15px;margin:6px 0 10px}
#checkin-catalog{max-height:205px;overflow-y:auto;margin-bottom:16px;border:1px solid var(--line);border-radius:9px;padding:0 10px}
.checkin-catalog-row,.checkin-summary-row{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.checkin-catalog-row:last-child,.checkin-summary-row:last-child{border-bottom:0}
.checkin-catalog-row>div:first-child,.checkin-summary-row>div:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
.checkin-catalog-row small,.checkin-summary-row small{display:block;margin-top:4px;line-height:1.4}
.checkin-catalog-row button{flex-shrink:0;min-height:40px;padding:8px 10px;font-size:13px}
.checkin-quantity{display:flex;align-items:center;gap:6px;flex-shrink:0}
.checkin-quantity button{width:32px;height:36px;padding:4px;font-size:16px}
.checkin-summary-row{flex-wrap:wrap}
.checkin-summary-row>span{font-size:12px}
#checkin-summary>label{margin-top:12px}
.checkin-duration{font-size:13px;margin:12px 0}
.checkin-hint{padding:10px;border-radius:8px;background:#edf2e5;font-size:13px;line-height:1.5}
#checkin-summary>.row{font-size:13px;margin:8px 0}
#checkin-summary>.checkin-total{border-top:1px dashed var(--line);padding-top:10px;font-size:15px}
#checkin-summary>small{display:block;line-height:1.5}
.checkin-footer{display:flex;justify-content:flex-end;gap:8px;flex-shrink:0;padding-top:12px;border-top:1px solid var(--line);background:white}
.checkin-footer button{min-height:44px;font-size:14px;padding:10px 14px}
#room-checkin-form>.form-error{flex-shrink:0}
#room-checkin-form>.form-error .error{margin:8px 0;font-size:13px}
@media(max-width:600px){
 dialog:has(#room-checkin-form){padding:12px}
 .checkin-people{grid-template-columns:minmax(0,1fr);gap:0}
 .checkin-footer button.primary{flex:1}
 .checkin-catalog-row button,.checkin-quantity button{min-height:44px}
 .checkin-quantity button{width:36px}
}
.checkin-body{min-height:0;flex:1 1 auto}
/* Consistent inline action groups, including profile save and public links. */
.actions{align-items:center;gap:8px;flex-wrap:wrap}
.actions>button,.actions>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;margin:0;padding:10px 12px;font-size:14px;line-height:1.4;max-width:100%;overflow-wrap:anywhere}
.profile-actions{margin-top:4px}
/* Finishing details shared across public pages, admin controls and dialogs. */
:root{--control-radius:9px;--action-gap:8px}
:where(button,input,select,textarea){line-height:1.4}
:where(button){font-weight:600;overflow-wrap:anywhere}
:where(input,select,textarea){font-size:14px;font-weight:400;min-width:0}
:where(h1,h2,h3){line-height:1.3;font-weight:650;overflow-wrap:anywhere}
:where(label){font-size:13px;font-weight:600}
:where(.panel,dialog,.landing) p{line-height:1.6}
.actions,.item-actions,.branch-controls,.checkin-footer{gap:var(--action-gap)}
.actions>button,.actions>a,.checkin-footer>button{border-radius:var(--control-radius);text-align:center;white-space:normal}
.item-actions>button{display:inline-flex;align-items:center;justify-content:center;line-height:1.4}
.item-more>summary{line-height:1}
.public-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;margin-top:16px}
.public-actions>a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;max-width:100%;margin:0;padding:11px 18px;border:1px solid var(--line);border-radius:var(--control-radius);font-size:14px;font-weight:600;line-height:1.5;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
.public-actions>a.primary{border-color:var(--sage)}
.public-actions>a.primary:hover{background:#465e48}
.landing-nav{gap:16px;flex-wrap:wrap}
.landing-links{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.landing-links>a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;line-height:1.4}
.panel>.row:has(>h2){align-items:center;gap:12px;flex-wrap:wrap}
.panel>.row>h2{margin-bottom:0}
.panel>.row:has(>h2){margin-bottom:8px}
@media(max-width:600px){
 .actions{row-gap:8px;column-gap:8px}
 .public-actions{gap:10px}
 .public-actions>a{flex:0 1 auto}
 .landing-nav .brand{max-width:100%;overflow-wrap:anywhere}
 dialog:not(:has(#user-form,#room-checkin-form)){padding:20px;width:min(620px,calc(100vw - 24px))}
}
@media(max-width:420px){.landing .cards{grid-template-columns:minmax(0,1fr)}}
/* Profile public-page action matches its adjacent copy button. */
.profile-actions>#branch-page-link{border:1px solid var(--line);border-radius:var(--control-radius,9px);background:white;color:inherit;text-decoration:none;font-weight:600}
.profile-actions>#branch-page-link:hover{background:#eef1e8}
#branch-form+h3{margin-top:20px}
/* Compact room directory and photo editing inside the room dialog. */
#rooms-panel{min-width:0}
.room-search-label{margin:12px 0;font-size:13px}
.room-manage-row{display:flex;align-items:center;flex-wrap:nowrap;gap:12px;padding:10px 0}
.room-manage-row>.room-info{flex:1;min-width:0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.room-manage-actions{display:flex;flex:0 0 auto;align-items:center;align-self:center;gap:8px;width:auto}
.room-pagination{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding-top:12px}
.room-pagination small{line-height:1.5}
.room-photo-editor{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.room-photo-editor h3{font-size:15px}
.room-photo-editor img{display:block;max-width:240px;max-height:180px;object-fit:contain;margin:12px 0}
.room-photo-editor img[hidden]{display:none}
.room-photo-editor input{max-width:100%}
/* Touch targets preserve compact text and icon sizes. */
button,summary,a,input,select,textarea,[data-action]{touch-action:manipulation}
button:not(.room-select),select,input:not([type=checkbox]),.item-more>summary{min-height:44px}
button:not(.room-select),.item-more>summary{min-width:44px}
.item-actions>button,.room-manage-actions>button{height:44px;min-height:44px}
.item-more>summary,.room-manage-actions .item-more>summary{width:44px;height:44px;min-height:44px;box-sizing:border-box}
.item-menu button,.branch-menu-list button{min-height:44px}
.quantity button,.checkin-quantity button{min-width:44px;min-height:44px}
input[type=file]{height:auto;min-height:44px;padding:0;font-size:14px}
input[type=file]::file-selector-button{min-height:44px;padding:8px 10px;margin-right:8px;border:0;border-right:1px solid var(--line);background:#f5f6ef;color:inherit;font:inherit;cursor:pointer}
.checklist label,#user-form .checklist label{min-width:44px;min-height:44px;cursor:pointer;align-items:center}
#user-form>label>input,#user-form>label>select{height:44px;min-height:44px}
.landing-links a,.sidebar-foot a{min-height:44px;display:inline-flex;align-items:center}
.nav b,.room-icon{flex-shrink:0}
dialog{max-height:calc(min(var(--visible-height,100dvh),100dvh) - 24px);overscroll-behavior:contain;scroll-padding:12px}
dialog:has(#user-form),dialog:has(#room-checkin-form){max-height:calc(min(var(--visible-height,100dvh),100dvh) - 24px)}
dialog input,dialog select,dialog textarea{scroll-margin:12px}
@media(pointer:coarse){input:not([type=checkbox]),select,textarea{font-size:16px}#user-form>label>input,#user-form>label>select,#room-checkin-form input,#room-checkin-form select{font-size:16px}}
@media(max-width:600px){.room-pagination>.actions{margin-left:auto}.room-manage-row{gap:8px}}
label:has(>input[type=checkbox]){min-height:44px;cursor:pointer}
dialog[data-visual-keyboard]{position:fixed;top:var(--visible-top,0px);bottom:auto;margin-top:12px;margin-bottom:0}
summary{min-height:44px;min-width:44px;cursor:pointer}
/* Boxed secondary links for the admin footer and public header only. */
.sidebar-foot a,.landing-links>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;max-width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid var(--line);border-radius:var(--control-radius,9px);background:var(--cream,#fbfcf8);color:var(--sage);font-size:14px;font-weight:600;line-height:1.4;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
.sidebar-foot a:hover,.landing-links>a:hover{background:#eef1e8}
.landing-links{gap:8px}
/* Room rows are independent groups; cards wrap only inside their own row. */
.room-panel #room-cards{display:block;overflow-y:auto}
.room-group{margin:0 0 20px;min-width:0}
.room-group>h3{font-size:15px;line-height:1.4;margin:0 0 10px;color:var(--sage)}
.room-group-cards{display:grid;grid-template-columns:repeat(auto-fill,210px);justify-content:start;align-items:start;gap:16px;min-width:0}
.room-name-preview{font-size:13px;line-height:1.5;margin:0 0 12px;color:var(--sage);overflow-wrap:anywhere}
@media(max-width:600px){.room-group-cards{grid-template-columns:repeat(auto-fill,minmax(150px,173px));gap:12px}.room-panel #room-cards{overflow:visible}}
/* Fluid room cards: fill each row group instead of keeping fixed card widths. */
.room-panel,.room-group,.room-group-cards{width:100%;max-width:none;min-width:0}
.room-group-cards{grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));gap:12px;align-items:start}
.room-panel .room-card{width:100%;max-width:none;height:auto;min-height:164px;aspect-ratio:auto;padding:12px;gap:6px;box-sizing:border-box}
.room-panel .room-select{min-height:32px;flex-wrap:wrap;gap:6px}
.room-panel .room-select h3{font-size:16px;line-height:1.35;min-width:0;overflow-wrap:anywhere}
.room-panel .room-content{flex:0 0 auto}
.room-panel .room-card-actions{margin-top:auto}
.room-panel .room-timer{font-size:26px;line-height:1.2}
.room-panel .room-card-actions button{min-height:44px;font-size:13px}
@media(min-width:601px) and (max-width:800px){.room-group-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:361px) and (max-width:600px){.room-group-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.room-group-cards{grid-template-columns:minmax(0,1fr)}}
/* Fixed-size room columns remain identical for single and multi-room groups. */
.room-panel .room-group-cards{grid-template-columns:repeat(auto-fill,160px);gap:12px;justify-content:start;align-items:start}
.room-panel .room-card{width:160px;min-width:160px;max-width:160px;min-height:160px;height:auto;padding:12px;gap:5px}
.room-panel .room-card:not(.occupied){height:160px}
.room-panel .room-select{min-height:24px;gap:5px}
.room-panel .room-select h3{font-size:15px;line-height:1.3}
.room-panel .room-icon{width:22px;height:22px;min-width:22px;font-size:15px}
.room-panel .room-status{font-size:12px;line-height:1.4}
.room-panel .room-timer{font-size:23px;line-height:1.2;letter-spacing:0}
.room-panel .room-content,.room-panel .room-content small,.room-panel .room-package,.room-panel .room-therapist{font-size:12px;line-height:1.4}
.room-panel .room-card-actions:empty{display:none}
.room-panel .room-card-actions button{min-height:44px;font-size:12px;padding:8px 5px}

/* Billing filters: scoped spacing and type, preserving native form controls. */
#report-form {
  gap: 16px;
  align-items: end;
}
#report-form > label {
  flex: 1 1 160px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .015em;
}
#report-form input,
#report-form select {
  display: block;
  margin-top: 7px;
  height: 46px;
  padding: 11px 13px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
}
#report-form select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23536b55' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px;
  text-overflow: ellipsis;
}
#report-form > button {
  min-height: 46px;
  font-size: 14px;
  letter-spacing: normal;
}
#report-form :is(input, select, button):focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}
@media (max-width: 800px) {
  #report-form input,
  #report-form select { font-size: 16px; }
}
@media (max-width: 520px) {
  #report-form > label,
  #report-form > button { flex-basis: 100%; width: 100%; }
}
@media (forced-colors: active) {
  #report-form select {
    appearance: auto;
    background-image: none;
    padding-right: 13px;
  }
}

/* Only the application's billing print view; browser margin headers are a print setting. */
.report-printed-at { display: none; }
@media print {
  html:has(body.print-report) { background: #fff; }
  .print-report { color: #26382d; background: #fff; font-family: "Segoe UI", Arial, sans-serif; font-size: 10pt; line-height: 1.5; }
  .print-report .shell { min-height: 0; background: #fff; }
  .print-report #content { padding: 0; }
  .print-report .page-head { display: block; padding: 0 0 14pt; margin: 0 0 18pt; border-bottom: 1.5pt solid #536b55; break-inside: avoid; break-after: avoid; }
  .print-report .page-head .eyebrow { font-size: 8pt; letter-spacing: 1.3pt; margin-bottom: 8pt !important; }
  .print-report .page-head h1 { font-family: Georgia, "Times New Roman", serif; font-size: 25pt; font-weight: 400; line-height: 1.2; letter-spacing: -.4pt; margin: 0 0 7pt; }
  .print-report .report-printed-at { display: block; color: #536b55; font-size: 9pt; font-weight: 400; margin: 0; }
  .print-report .page-head p:not(.report-printed-at),
  .print-report .page-head + .panel,
  .print-report #report-result .pager { display: none !important; }
  .print-report #report-result > .grid3 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10pt; margin-bottom: 20pt !important; break-inside: avoid; }
  .print-report .metric { border: 1px solid #d6ded4; border-radius: 6pt; padding: 10pt; min-width: 0; }
  .print-report .metric small { color: #536b55; font-size: 8pt; }
  .print-report .metric strong { font-size: 14pt; line-height: 1.3; margin-top: 7pt; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  .print-report #report-result > .panel { padding: 0; margin: 0 0 20pt; border: 0; border-radius: 0; }
  .print-report h2 { font-size: 13pt; line-height: 1.3; letter-spacing: -.15pt; margin: 0 0 10pt; break-after: avoid; }
  .print-report h3 { font-size: 10pt; break-after: avoid; }
  .print-report p { orphans: 3; widows: 3; }
  .print-report .table-wrap { overflow: visible; }
  .print-report table { width: 100%; font-size: 9pt; table-layout: fixed; border-collapse: collapse; }
  .print-report thead { display: table-header-group; }
  .print-report tr { break-inside: avoid; }
  .print-report td, .print-report th { padding: 8pt 6pt; line-height: 1.4; vertical-align: top; white-space: normal; overflow-wrap: anywhere; border-bottom: 1px solid #d6ded4; }
  .print-report th { color: #354f3b; background: #f0f3ed; font-size: 8pt; font-weight: 600; }
  .print-report .badge { background: transparent; color: inherit; padding: 0; border-radius: 0; font-size: 9pt; }
  .print-report #report-result > .panel:last-child th:last-child,
  .print-report #report-result > .panel:last-child td:last-child { display: none; }
  .print-report #report-result > .panel:last-child td[colspan] { display: table-cell; }
  .print-report #report-result > .panel:last-child th:first-child { width: 24%; }
  .print-report #report-result > .panel:last-child th:nth-child(2) { width: 21%; }
  .print-report #report-result > .panel:last-child th:nth-child(3) { width: 22%; }
  .print-report #report-result > .panel:last-child th:nth-child(4) { width: 14%; }
  .print-report #report-result > .panel:last-child th:nth-child(5) { width: 19%; }
  .print-report #report-result > .panel:not(:last-child) td:not(:first-child),
  .print-report #report-result > .panel:not(:last-child) th:not(:first-child),
  .print-report #report-result > .panel:last-child td:nth-child(5),
  .print-report #report-result > .panel:last-child th:nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; }
  .print-report .note { color: #536b55; font-size: 8pt; line-height: 1.5; margin: 12pt 0 0; }
}
