:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#17364d;background:#edf3f8;--blue:#083d68;--blue2:#0d5a9e;--line:#d8e2ea;--muted:#6a7f91;--danger:#b42318}*{box-sizing:border-box}body{margin:0;background:#edf3f8}.hidden{display:none!important}button,input,select,textarea{font:inherit}.loginShell{min-height:100vh;display:grid;place-items:center;padding:22px}.loginCard{width:min(430px,100%);background:#fff;border-radius:22px;padding:28px;box-shadow:0 16px 50px #0b345422}.loginCard .logo{display:block;width:170px;max-height:90px;object-fit:contain;margin:auto}.loginCard h1{margin:12px 0 2px;text-align:center;color:var(--blue)}.loginCard p{text-align:center;color:var(--muted);margin:0 0 22px}.loginCard label{display:block;font-size:13px;font-weight:800;margin-top:11px}.loginCard input{width:100%;padding:13px;border:1px solid #c8d4df;border-radius:11px;margin-top:5px}.loginCard button{width:100%;margin-top:18px;padding:13px;border:0;border-radius:11px;background:var(--blue2);color:#fff;font-weight:900}.loginCard small{display:block;text-align:center;color:var(--muted);margin-top:14px}.error{background:#fff0f0;color:#9b1c1c;padding:10px;border-radius:10px;margin:10px 0}header{position:sticky;top:0;z-index:30;background:var(--blue);color:#fff;padding:calc(11px + env(safe-area-inset-top)) 14px 11px;display:flex;align-items:center;gap:10px}header>div{flex:1;display:flex;flex-direction:column}header b{font-size:18px}header span{font-size:12px;opacity:.9}header button{border:1px solid #ffffff55;background:#ffffff13;color:#fff;border-radius:9px;padding:8px 10px}nav{position:sticky;top:67px;z-index:29;display:flex;overflow:auto;background:#fff;border-bottom:1px solid var(--line)}nav button{border:0;background:#fff;color:#526b7e;padding:12px 14px;font-weight:800;white-space:nowrap;border-bottom:3px solid transparent}nav button.active{color:var(--blue2);border-bottom-color:var(--blue2)}main{padding:14px;max-width:1450px;margin:auto}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;box-shadow:0 4px 18px #17364d0b}.card .label{font-size:12px;color:var(--muted);font-weight:800}.card .value{font-size:23px;font-weight:900;color:#0a466f;margin-top:4px}.section{margin-top:14px}.section h2,.section h3{margin:0 0 9px}.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:10px}.toolbar input,.toolbar select,.field input,.field select,.field textarea{border:1px solid #c9d7e2;border-radius:10px;padding:10px;background:#fff}.toolbar .grow{flex:1;min-width:190px}.primary,.secondary,.danger,.good{border:0;border-radius:10px;padding:10px 12px;font-weight:850}.primary{background:var(--blue2);color:#fff}.secondary{background:#e5eef5;color:#174767}.danger{background:var(--danger);color:#fff}.good{background:#08783f;color:#fff}.tablewrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px}table{border-collapse:collapse;width:100%;min-width:760px}th,td{padding:10px;border-bottom:1px solid #e7edf2;text-align:left;font-size:13px}th{background:#f7fafc;position:sticky;top:0}tr.clickable:hover{background:#f2f8fc;cursor:pointer}.status{font-weight:900}.badge{display:inline-block;padding:3px 7px;border-radius:999px;background:#edf3f8;font-size:11px;font-weight:850}.calendar{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.grid{display:grid;grid-template-columns:150px repeat(7,minmax(145px,1fr));min-width:1165px}.head,.unit,.cell{border-right:1px solid #e4ebf0;border-bottom:1px solid #e4ebf0;padding:9px;min-height:88px}.head{min-height:auto;background:#f5f9fc;font-size:12px;font-weight:900;position:sticky;top:0;z-index:4}.head:first-child,.unit{position:sticky;left:0;z-index:5}.unit{background:#f8fbfd;font-weight:900}.cell{background:#fff}.cell.canadd{cursor:pointer}.booking{border-radius:9px;padding:8px;font-size:12px;font-weight:800;min-height:64px;cursor:pointer}.unpaid{background:#f7b0ad}.partial{background:#ffe29a}.paid{background:#b7e4c7}.checkedin{background:#9ed1ff}.checkedout{background:#d9dde3}.noshow{background:#d8b4fe}.modalBack{position:fixed;inset:0;background:#0b203399;z-index:60;display:grid;place-items:end center;padding-top:30px}.modal{background:#fff;width:min(760px,100%);max-height:93vh;overflow:auto;border-radius:20px 20px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom))}.modal h2{margin:0 0 12px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field label{display:block;font-size:12px;font-weight:800;color:#5d7284;margin-bottom:5px}.field input,.field select,.field textarea{width:100%}.field.full{grid-column:1/-1}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.actions button{flex:1;min-width:125px}.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:20px;z-index:90;background:#17364d;color:#fff;padding:11px 15px;border-radius:12px;max-width:90%;box-shadow:0 8px 24px #0003}.muted{color:var(--muted);font-size:12px}.rights{display:grid;grid-template-columns:1fr 1fr;gap:6px}.rights label{display:flex;gap:7px;align-items:flex-start;padding:6px;border:1px solid #e5edf3;border-radius:8px;font-size:12px}.lookupGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.fileRow{display:flex;gap:8px;align-items:center;padding:8px;border-bottom:1px solid #edf1f4}.fileRow a{flex:1}.reportPrint{background:#fff;padding:12px;border-radius:12px}@media(min-width:760px){.cards{grid-template-columns:repeat(4,1fr)}.modalBack{place-items:center}.modal{border-radius:18px;max-height:90vh}}@media(max-width:560px){main{padding:10px}.formgrid,.rights,.lookupGrid{grid-template-columns:1fr}.field.full{grid-column:auto}.cards{grid-template-columns:1fr 1fr}header{min-height:62px}nav{top:62px}.toolbar button{flex:1}.toolbar .grow{width:100%;flex-basis:100%}}
@media print{header,nav,.toolbar,.actions,.noPrint{display:none!important}body,main{background:#fff;padding:0}.tablewrap{overflow:visible;border:0}table{min-width:0;font-size:10pt}.reportPrint{padding:0}}

.settingsLogoWrap{min-height:70px;display:flex;align-items:center;margin:4px 0 8px}.settingsLogo{max-width:180px;max-height:90px;object-fit:contain;border:1px solid var(--line);border-radius:10px;background:#fff;padding:5px}.inlineButtons{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.licenseBox{margin-top:12px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f7fafc;color:#274b64;font-size:13px}.field input[readonly]{background:#f3f6f8;color:#334e60}

.headerLogo{width:38px;height:38px;object-fit:cover;border-radius:10px;flex:0 0 auto;background:#fff}.techlodgeBrandCard{display:flex;align-items:center;justify-content:space-between;gap:16px}.techlodgeBrandInfo{display:flex;align-items:center;gap:14px;min-width:0}.techlodgeBrandLogo{width:74px;height:74px;object-fit:cover;border-radius:16px;flex:0 0 auto}.techlodgeBrandInfo h3,.techlodgeBrandInfo p{margin:0 0 5px}.installBtn{min-width:150px}.modalBack{padding:18px}.modal{width:min(820px,calc(100vw - 24px));border-radius:18px}.tablewrap{-webkit-overflow-scrolling:touch}.toolbar>*{max-width:100%}@media(max-width:760px){header{padding-left:10px;padding-right:10px}.headerLogo{width:34px;height:34px;border-radius:9px}header b{font-size:16px}header span{font-size:11px}main{width:100%;max-width:100%;overflow-x:hidden}.card{min-width:0}.techlodgeBrandCard{display:block}.techlodgeBrandInfo{align-items:flex-start}.techlodgeBrandLogo{width:64px;height:64px}.techlodgeBrandCard .actions{margin-top:12px}.installBtn{width:100%}.modalBack{padding:8px;place-items:center}.modal{width:100%;max-height:calc(100vh - 16px);border-radius:16px;padding:15px 13px calc(15px + env(safe-area-inset-bottom))}.actions button{min-width:110px}.toolbar input,.toolbar select{min-width:0}.calendar,.tablewrap{max-width:100%}}@media(max-width:420px){.cards{grid-template-columns:1fr}.loginShell{padding:12px}.loginCard{padding:20px 16px;border-radius:17px}.loginCard .logo{width:112px;max-height:112px}.techlodgeBrandInfo{display:block}.techlodgeBrandLogo{margin-bottom:10px}.formgrid,.rights,.lookupGrid{grid-template-columns:1fr}.actions{display:grid;grid-template-columns:1fr}.actions button{width:100%;min-width:0}nav button{padding:11px 12px}.card .value{font-size:21px}}

/* R15.6: guest picker, drill-downs, and isolated branded prints */
.dashboardMetric{cursor:pointer;transition:box-shadow .15s,transform .15s}.dashboardMetric:hover,.dashboardMetric:focus{outline:2px solid #438eb9;box-shadow:0 6px 20px #0b42602b;transform:translateY(-1px)}.metricHint{font-size:10px;font-weight:850;letter-spacing:.08em;color:#0d5a9e;margin-top:8px}.guestChooser{position:relative}.guestSuggestions{position:relative;display:flex;flex-direction:column;max-height:175px;overflow-y:auto;z-index:8;background:#fff;border:1px solid #d8e2ea;border-radius:8px;margin-top:4px}.guestSuggestions:empty{display:none}.guestOption{background:#fff;border:0;text-align:left;padding:9px 12px;border-bottom:1px solid #edf1f5;color:#17364d}.guestOption:hover{background:#e9f4ff}.guestOption small{display:block;color:#648093}.rights label[hidden]{display:none!important}.printBrand{display:flex;align-items:center;gap:16px;margin-bottom:16px;border-bottom:2px solid #17364d;padding-bottom:12px}.printBrand img{width:105px;max-height:85px;object-fit:contain}.printBrand h1,.printBrand h2{margin:0}.printBrand p{margin:3px 0;font-size:12px}#receiptPrintRoot{display:none}.receiptDoc{max-width:680px;margin:0 auto;padding:16px;background:#fff;color:#17364d}.receiptDoc>h2{text-align:center;letter-spacing:.08em}.receiptFacts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0;font-size:14px}.receiptAmount{text-align:center;padding:22px 10px;border:2px solid #17364d;font-size:22px;font-weight:900}.receiptFooter{text-align:center;margin-top:30px}
@media print{body.receiptPrinting>*:not(#receiptPrintRoot){display:none!important}body.receiptPrinting #receiptPrintRoot{display:block!important}body.receiptPrinting{background:#fff!important}body.receiptPrinting #receiptPrintRoot .receiptDoc{width:100%;max-width:none} .noPrint{display:none!important}.reportPrint .printBrand{display:flex!important}.reportPrint .printBrand img{display:block;max-width:110px} }

@media print{body:not(.receiptPrinting) #login,body:not(.receiptPrinting) #modalRoot,body:not(.receiptPrinting) #receiptPrintRoot,body:not(.receiptPrinting) .section:not(:has(.reportPrint)),body:not(.receiptPrinting) .cards{display:none!important}body:not(.receiptPrinting) .reportPrint{display:block!important}body:not(.receiptPrinting) .reportPrint .printBrand{display:flex!important}}

/* R15.8: cashier shift closes, branded printable detail and summary */
.cashierPrint{max-width:1050px!important}.cashierPrint .tablewrap{overflow:visible}.cashierPrint table{min-width:0;table-layout:auto}.cashierPrint td,.cashierPrint th{overflow-wrap:anywhere;font-size:11px}.cashierPrint h3{margin-top:16px}.cashierPrint .receiptFacts{gap:8px;margin:12px 0}.cashierPrint .printBrand{page-break-after:avoid}.cashierPrint tr{break-inside:avoid}@media print{.cashierPrint{padding:6mm!important}.cashierPrint .tablewrap{width:100%;overflow:visible}.cashierPrint th,.cashierPrint td{padding:5px;font-size:9pt}}

/* R15.8: today's highlighted bookings and calendar filters */
.newBookingToday{background:#e2f4ff!important;border-left:5px solid #087bcb}.newBookingToday td:first-child{font-weight:900;color:#074771}.newBookingToday:hover{background:#cbeaff!important}.calFilterActive{background:#bfebff;color:#083d68;outline:2px solid #3f8db8}

/* R15.11 dedicated expense-report filters (permissions isolated from expense entries) */
.expenseReportSection{border:1px solid #a9cee7;background:#f9fcff}
.expenseReportSection h2{color:var(--blue2);margin:0 0 4px}
.expenseReportControls{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:14px 0}
.expenseReportControls .field{flex:1 1 155px;min-width:135px}
.expenseReportControls .field label{font-size:13px;color:#174767}
.expenseReportControls input,.expenseReportControls select{width:100%;min-height:43px}
.expenseReportControls button{min-height:43px}
.expenseReportControls button:disabled{opacity:.5;cursor:not-allowed}
.expenseReportPreview{padding:14px;background:white;border:1px solid #d8e2ea;border-radius:12px;overflow:auto}
.expenseReportPreview .tablewrap{max-width:100%}
@media(max-width:600px){.expenseReportControls .field{flex-basis:100%;min-width:0}.expenseReportControls button{flex:1 1 100%}}
@media print{.expenseReportSection{border:0;box-shadow:none;background:white}.expenseReportControls{display:none!important}}

/* R15.11: adaptive hotel UI, laptop/desktop/tablet/phone, including Android WebView. */
html{max-width:100%;overflow-x:hidden}body{max-width:100%;overflow-x:hidden}
#app,#main,#modalRoot{min-width:0}#main{width:100%;max-width:1600px;min-width:0;margin:0 auto}
.card,.section,.formgrid,.receiptDoc,.reportPrint,.tablewrap,.calendar{min-width:0;max-width:100%}
.card{overflow-wrap:break-word}
input,textarea,select,button{max-width:100%}
textarea{resize:vertical}input[type="date"]{min-width:0}
.modal .formgrid>.field{min-width:0}
.tablewrap{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.calendar{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
.expenseReportControls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto auto;align-items:end;gap:10px}
.expenseReportControls .field{min-width:0;max-width:none}
.expenseReportControls button{white-space:normal}
.menuToggle{display:none}
@media(min-width:1200px){
  #main{padding:22px 26px}
  .cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
  .card{padding:18px}
  .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .expenseReportPreview{padding:20px}
}
@media(min-width:761px) and (max-width:1199px){
  #main{padding:16px}
  .cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .expenseReportControls{grid-template-columns:repeat(3,minmax(0,1fr))}
  .expenseReportControls button{min-width:0}
}
@media(max-width:760px){
  #app header{position:sticky;top:0;z-index:52;gap:8px}
  #app header>div{min-width:0}
  #app header b,#app header span{overflow-wrap:anywhere}
  #app header b{font-size:clamp(13px,3.2vw,17px)}
  #app header span{font-size:11px;line-height:1.2}
  #menuToggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:8px 10px;font-size:12px;white-space:nowrap}
  #logout{min-height:42px;padding:8px;font-size:12px;white-space:nowrap}
  #nav{display:none;position:fixed;top:var(--mobile-navigation-top,64px);left:0;right:0;bottom:auto;max-height:calc(100dvh - var(--mobile-navigation-top,64px));overflow-y:auto;overflow-x:hidden;z-index:51;flex-direction:column;box-shadow:0 18px 26px #0b203339;border-bottom:2px solid var(--line);padding:5px 8px;background:#fff}
  body.mobileNavOpen #nav{display:flex}
  #nav button{width:100%;white-space:normal;text-align:left;min-height:43px;padding:11px 15px;border-bottom:1px solid #e7edf2;border-left:4px solid transparent}
  #nav button.active{border-left-color:var(--blue2);background:#eaf5fc}
  #main{padding:12px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .card{padding:12px}
  .formgrid,.rights,.lookupGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .field.full{grid-column:1/-1}
  .expenseReportControls{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .expenseReportControls .field{min-width:0}
  .expenseReportControls button{width:100%;min-width:0}
  .modalBack{padding:8px;place-items:center}
  .modal{width:100%;max-height:calc(100dvh - 16px);overflow-y:auto;overscroll-behavior:contain;padding:16px 13px calc(20px + env(safe-area-inset-bottom))}
  .actions{display:flex;gap:7px}
  .actions button{min-width:0;flex:1 1 135px}
  .techlodgeBrandInfo{flex-wrap:wrap}
}
@media screen and (max-width:650px){
  /* Data lists become labelled cards; the calendar and printable reports stay scrollable tables. */
  #main .tablewrap.adaptiveTable:not(.expenseReportPreview .adaptiveTable):not(.reportPrint .adaptiveTable) table{min-width:0;width:100%;border-collapse:separate;border-spacing:0 7px}
  #main .tablewrap.adaptiveTable:not(.expenseReportPreview .adaptiveTable):not(.reportPrint .adaptiveTable) thead{display:none}
  #main .tablewrap.adaptiveTable:not(.expenseReportPreview .adaptiveTable):not(.reportPrint .adaptiveTable) tbody tr{display:block;background:#fff;border:1px solid #d8e2ea;border-radius:10px;margin:8px;padding:5px;overflow:hidden}
  #main .tablewrap.adaptiveTable:not(.expenseReportPreview .adaptiveTable):not(.reportPrint .adaptiveTable) tbody td{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;text-align:right;width:100%;min-width:0;padding:8px;border-bottom:1px solid #f0f2f4;overflow-wrap:anywhere;word-break:normal}
  #main .tablewrap.adaptiveTable:not(.expenseReportPreview .adaptiveTable):not(.reportPrint .adaptiveTable) tbody td:last-child{border-bottom:0}
  #main .tablewrap.adaptiveTable:not(.expenseReportPreview .adaptiveTable):not(.reportPrint .adaptiveTable) tbody td::before{content:attr(data-label);font-weight:800;text-align:left;color:#4b6376;min-width:95px;flex:0 0 36%;max-width:46%}
  #main .tablewrap.adaptiveTable:not(.expenseReportPreview .adaptiveTable):not(.reportPrint .adaptiveTable) tbody td[colspan]::before{content:none}
  #main .tablewrap.adaptiveTable:not(.expenseReportPreview .adaptiveTable):not(.reportPrint .adaptiveTable) td button{min-height:38px;margin:2px 0}
  .expenseReportPreview{padding:10px;overflow-x:auto}
  .expenseReportPreview table{min-width:650px}
  .expenseReportControls{grid-template-columns:1fr}
  .expenseReportControls .field,.expenseReportControls button{width:100%;flex-basis:auto}
  .receiptFacts{grid-template-columns:1fr}
  .printBrand{gap:10px;align-items:flex-start}
  .printBrand img{max-width:68px;max-height:65px}
}
@media(max-width:420px){
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .card .value{font-size:clamp(17px,5.2vw,22px)}
  .formgrid,.rights,.lookupGrid{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  #app header .headerLogo{width:30px;height:30px}
  #app header>div b{font-size:13px}
  #app header>div span{font-size:10px}
  .actions{display:grid;grid-template-columns:1fr}
  .actions button{width:100%;min-width:0}
  .techlodgeBrandInfo{display:block}
}
@media(max-width:350px){
  #main{padding:8px}
  .cards{grid-template-columns:1fr}
  #app header{gap:4px}
  #menuToggle{font-size:11px;padding:7px}
  #logout{font-size:11px;padding:7px}
}
@media print{
  #menuToggle{display:none!important}
  html,body{overflow:visible!important;max-width:none!important}
  .adaptiveTable,.expenseReportPreview{overflow:visible!important;max-width:none!important}
  .adaptiveTable table,.expenseReportPreview table{display:table!important;width:100%!important;min-width:0!important;border-collapse:collapse!important}
  .adaptiveTable thead{display:table-header-group!important}
  .adaptiveTable tbody tr{display:table-row!important}
  .adaptiveTable tbody td{display:table-cell!important;min-width:0!important;text-align:left!important}
  .adaptiveTable td::before{content:none!important}
  .printBrand img{max-width:105px}
  .expenseReportControls{display:none!important}
}
