﻿:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#202c29;background:#f6f7f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:7px;padding:11px 16px;font-weight:600}button:disabled{opacity:.5;cursor:wait}button:hover{filter:brightness(.96)}.primary{background:#214c3b;color:white}.secondary{background:white;border:1px solid #dce1da;color:#34443b}.quiet{background:transparent;color:inherit}h1{font-size:34px;letter-spacing:-1.1px;margin:7px 0 10px}h2{font-size:18px;margin:0 0 7px}p{line-height:1.5}.muted{color:#79817a;font-size:14px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px;color:#849177;margin:0}.brand-mark{display:inline-grid;place-items:center;width:39px;height:43px;background:#d6b679;color:#203e31;border-radius:9px;font-family:Georgia,serif;font-size:32px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#f6f5e9;font-size:14px;font-weight:700;letter-spacing:1.5px}.brand small{display:block;font-size:8px;letter-spacing:2px;margin-top:6px;color:#a7b7a9}aside{position:fixed;inset:0 auto 0 0;width:244px;background:#183d30;padding:34px 23px;color:#b8c9bd}.nav-label{font-size:10px;letter-spacing:1.6px;margin:53px 10px 17px}.nav{display:block;text-align:left;width:100%;margin:8px 0;background:transparent;color:inherit;font-size:13px;padding:14px 12px}.nav.active{background:#335443;color:white}.sidebar-bottom{position:absolute;bottom:30px;font-size:11px}.sidebar-bottom p{font-size:13px;margin-bottom:4px}.live-dot,.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#91b893;margin-right:6px}.gold{background:#b59b60}.blue{background:#7e9ba7}main{margin-left:244px}header{height:80px;border-bottom:1px solid #e3e7df;display:flex;align-items:center;justify-content:space-between;padding:0 42px;font-size:12px}#today{color:#79817a}.page{padding:40px 42px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.heading p{margin-bottom:0}.actions{display:flex;gap:10px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:32px 0}.stats article{background:white;border:1px solid #e1e6dc;border-radius:10px;padding:22px}.stats p{font-size:12px;color:#707c72;margin:0 0 16px}.stats strong{display:block;font-size:33px;font-weight:600;letter-spacing:-1px}.stats small{display:block;font-size:10px;color:#899086;margin-top:10px;line-height:1.5}.panel{background:white;border:1px solid #e0e5db;border-radius:10px;overflow:hidden}.panel-title{padding:24px;display:flex;justify-content:space-between;align-items:center}.panel-title p{margin:0;font-size:12px}.toolbar{padding:0 24px 22px;display:flex;gap:10px;align-items:center}.tabs{display:flex;background:#f4f5f1;padding:4px;border-radius:7px;margin-right:auto}.tabs button{font-size:11px;padding:8px 12px;background:transparent;color:#7a8177}.tabs .selected{background:white;box-shadow:0 1px 4px #0001;color:#254a38}.toolbar input{width:190px;font-size:12px}.toolbar>button{font-size:11px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;white-space:nowrap}th{background:#f9faf7;color:#84907f;font-size:10px;font-weight:600;letter-spacing:.7px;text-transform:uppercase;padding:15px 24px;border-block:1px solid #edf0e8}td{padding:18px 24px;border-bottom:1px solid #edf0e8}td strong{font-weight:600}td small{display:block;color:#879080;font-size:10px;margin-top:5px}.badge{display:inline-block;padding:5px 9px;border-radius:5px;font-size:10px;background:#eef4ec;color:#5e7e58}.badge.low{background:#fff3da;color:#9c792b}.badge.out{background:#fbe8e4;color:#a35f51}.table-footer{display:flex;justify-content:space-between;padding:18px 24px;font-size:10px;color:#8b9387}.footnote{font-size:11px;color:#929a8c;margin-top:20px}.empty{text-align:center;padding:55px;color:#7c897a;white-space:normal}.empty strong{display:block;font-size:17px;color:#384d3c;margin-bottom:10px}input,select,textarea{width:100%;padding:11px;border:1px solid #dce2d6;border-radius:6px;background:white;color:#253c2e}input:focus,select:focus,textarea:focus{outline:2px solid #a3b79c;outline-offset:1px}label{display:block;font-size:12px;margin:17px 0 6px;color:#677560}label input,label select,label textarea{margin-top:8px}dialog{width:480px;max-width:94vw;border:1px solid #dce2d6;border-radius:14px;padding:28px;color:#253c2e}dialog::backdrop{background:#12271e99;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:23px;margin-top:9px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}#form-error,#login-error{color:#ad473d;font-size:13px}#notice{padding:13px 18px;background:#e7efdf;color:#345432;border-radius:7px;margin-top:20px;font-size:13px}#login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(at top right,#57725c,#183d30 70%);padding:25px}.login-card{width:410px;max-width:100%;background:#fafbf7;border-radius:16px;padding:38px}.login-card .eyebrow{margin-top:24px}.login-card h1{font-size:36px}.login-card form button{width:100%;margin-top:20px}.login-card small{display:block;color:#91998a;font-size:10px;margin-top:25px} [hidden]{display:none!important}@media(min-width:1600px){.page{max-width:1550px;margin:auto}}@media(max-width:1150px){aside{width:200px;padding:30px 16px}main{margin-left:200px}.page{padding:30px 24px}.heading{align-items:flex-start;flex-direction:column}.stats{gap:10px}.stats article{padding:16px}.toolbar{flex-wrap:wrap}.tabs{margin-right:0}.table-footer span:last-child{display:none}}@media(max-width:700px){aside{position:static;width:auto;padding:18px;display:flex;flex-wrap:wrap;gap:8px}.brand{width:100%;margin-bottom:10px}.nav{width:auto;margin:0}.nav-label,.sidebar-bottom{display:none}main{margin:0}header{height:52px;padding:0 20px;font-size:10px}.page{padding:26px 16px}h1{font-size:28px}.stats{grid-template-columns:1fr 1fr;margin:24px 0}.stats strong{font-size:27px}.toolbar{padding:0 14px 18px}.toolbar input{flex:1;min-width:120px}.tabs{width:100%}.panel-title{padding:20px 14px}th,td{padding:14px}.actions{width:100%}.actions button{flex:1;font-size:12px}}

.workflow { padding: 24px; margin-top: 24px; }
.workflow fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.workflow legend { font-size: 18px; font-weight: 600; }
.delivery-meta, .delivery-line, .catalog-controls, #catalog-import {
  display: flex; align-items: end; gap: 12px; flex-wrap: wrap;
}
.delivery-meta label, .delivery-line label:first-child { flex: 1 1 160px; }
.delivery-line label:nth-child(2) { width: 130px; }
.delivery-line button, #catalog-import button, .catalog-controls > button { margin-bottom: 6px; }
#add-line { margin-top: 12px; }
.inline-error { color: #ad473d; font-size: 13px; }
#catalog-search { max-width: 360px; display: block; }

.daily-receipts { margin-top: 28px; }
#held-stock-summary { background: #fff3da; color: #70551c; padding: 10px 14px; border-radius: 7px; font-size: 14px; }
.share-date { max-width: 220px; }
#sharing-rows input { min-width: 70px; width: 88px; }
#sharing-view td, #sharing-view th { padding: 12px; }

.report-controls, .report-heading { display: flex; flex-wrap: wrap; gap: 14px; }
.report-controls { align-items: end; }
.report-controls button { margin-bottom: 6px; }
.report-heading { justify-content: space-between; align-items: center; }
#report-results { margin-top: 24px; }
#report-range { margin: 0; }
#report-results tfoot { font-weight: 700; }
@media print {
  @page { size: A4; margin: 15mm; }
  body:has(#reports-view:not([hidden])), body:has(#reports-view:not([hidden])) main { background: white; margin: 0; }
  #workspace:has(#reports-view:not([hidden])) :is(aside, header, .heading, #notice), .report-controls,
  #report-error, .report-downloads { display: none !important; }
  #workspace:has(#reports-view:not([hidden])) .page, #reports-view { margin: 0; padding: 0; border: 0; }
  #report-results .table-wrap { overflow: visible; }
  #report-results table { white-space: normal; }
  #report-results th, #report-results td { padding: 8px; }
  #report-results tr { break-inside: avoid; }
}

.receipt-row-actions { display: flex; gap: 4px; flex-wrap: wrap; }

/* Ludaversal Lounge branding */
:root { color: #29221b; background: #f6f2eb; }
body { background: #f6f2eb; }
#login {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 1fr);
  grid-template-rows: 1fr;
  padding: 0;
  background: #f6f2eb;
}
.login-art {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 110px);
  background: radial-gradient(ellipse at 50% 48%, #22150c28, #120b07a8),
    #28180f url('/ludaversal-lounge.png') center / cover no-repeat;
  border-right: 1px solid #99703c;
}
.lounge-logo {
  width: min(100%, 490px);
  height: auto;
  filter: drop-shadow(0 14px 26px #000a);
}
.login-panel { display: grid; place-items: center; width: 100%; padding: 36px; }
.login-card {
  width: min(100%, 430px);
  padding: clamp(24px, 4vw, 48px);
  background: #fffdf8;
  border: 1px solid #e5daca;
  box-shadow: 0 16px 52px #4b311111;
}
.login-card .eyebrow { margin-top: 0; }
.login-card h1 { font-family: Georgia, serif; font-size: clamp(42px, 5vw, 64px); font-weight: 500; }
aside {
  background: linear-gradient(150deg, #292018, #15120f 75%);
  color: #e3d6c5;
  border-right: 1px solid #493725;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.brand { justify-content: center; flex-shrink: 0; }
.brand img { width: 116px; max-width: 100%; height: auto; display: block; }
.nav-label { color: #bcab93; margin: 26px 10px 9px; }
.nav { margin: 3px 0; flex-shrink: 0; }
.nav:hover, .nav.active { background: #403022; color: #ffe0a2; }
.nav.active { box-shadow: inset 3px 0 #e7a849; }
.sidebar-bottom { position: static; margin-top: auto; padding-top: 24px; }
.live-dot { background: #ddb067; }
header { background: #fbf8f2; border-color: #e6ddcf; }
.heading {
  min-height: 126px;
  padding: clamp(18px, 3vw, 36px);
  background: linear-gradient(90deg, #20150ff5 0%, #221710eb 56%, #2c1a0e88 100%),
    #332317 url('/ludaversal-lounge.png') center 56% / cover no-repeat;
  color: #fff4e3;
  border: 1px solid #654426;
  border-radius: 12px;
}
.heading h1 { margin: 0; font-family: Georgia, serif; font-weight: 500; }
.primary { background: #e8b35d; color: #261909; }
.primary:hover { background: #f4c77d; }
.secondary { background: #fffdf8; border-color: #ddcdb8; color: #412d1b; }
.heading .secondary { background: #302116; border-color: #b99259; color: #fff4e3; }
.eyebrow { color: #825623; }
.muted, #today { color: #6d6052; }
.stats article, .panel, dialog { background: #fffdf8; border-color: #e6dace; }
.stats article { box-shadow: inset 0 3px #d9b277; }
.stats p, .stats small, label { color: #645547; }
th { background: #f4ece0; color: #675440; border-color: #ecdfcd; }
td { border-color: #eee6db; }
td small, .table-footer { color: #706151; }
input, select, textarea { border-color: #dfd1be; color: #302418; }
:is(input,select,textarea,button,a):focus-visible { outline: 2px solid #ab732c; outline-offset: 2px; }
@media (max-width: 700px) {
  #login { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-art { min-height: 0; padding: 18px; border-right: 0; border-bottom: 1px solid #99703c; }
  .lounge-logo { width: min(56vw, 190px); }
  .login-panel { padding: 18px; align-items: start; }
  aside { flex-direction: row; }
  .brand { justify-content: start; margin-bottom: 0; width: auto; }
  .brand img { width: 62px; }
  .nav { padding: 9px 10px; }
  .sidebar-bottom { display: flex; align-items: center; padding-top: 0; margin-left: auto; }
  .sidebar-bottom p, .sidebar-bottom .live-dot { display: none; }
  .sidebar-bottom { font-size: 0; }
  .sidebar-bottom button { font-size: 12px; }
  .heading { min-height: auto; }
}

#report-results h3 { margin: 24px 0 10px; }
#report-results :is(.report-day-total, tfoot) td { font-weight: 700; background: #f4ece0; }

.finance-fields { display: flex; flex-wrap: wrap; gap: 12px; }
.finance-fields label { flex: 1 1 140px; }
.finance-fields .finance-description { flex: 2 1 260px; }
.finance-totals { display: flex; flex-wrap: wrap; gap: 12px; }
.finance-totals p { min-width: 170px; padding: 12px; border: 1px solid #e6dace; border-radius: 8px; }
.finance-totals strong { display: block; margin-top: 4px; font-size: 21px; }
.finance-note { white-space: normal; overflow-wrap: anywhere; }
.finance-status { text-transform: capitalize; }

#finance-report-details summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
#finance-report-details .report-day-total td { background: #f4ece0; font-weight: 700; }

.finance-row-actions button { font-size: 12px; padding: 7px 11px; }
.finance-delete { color: #a1372b; }

@media print {
  body.print-finance, .print-finance main { background: white; margin: 0; }
  .print-finance :is(aside, header, .heading, #notice, #finance-form, #finance-view > section:first-of-type) {
    display: none !important;
  }
  .print-finance :is(.page, #finance-view) { padding: 0; margin: 0; border: 0; }
  .print-finance #finance-view > section { margin-top: 0; }
  .print-finance .table-wrap { overflow: visible; }
  .print-finance table { white-space: normal; }
  .print-finance :is(th,td) { padding: 8px; }
  .print-finance tr { break-inside: avoid; }
}
