:root {
  --gold: #c4933a;
  --gold-dark: #9b6d20;
  --gold-soft: #fff6df;
  --ink: #111111;
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-700: #57534e;
  --stone-500: #78716c;
  --stone-300: #d6d3d1;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --white: #ffffff;
  --green: #16a34a;
  --red: #dc2626;
  --yellow: #d97706;
  --blue: #2563eb;
  --shadow: 0 12px 34px rgba(28, 25, 23, .08);
  --radius: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Segoe UI, Arial, sans-serif; color: var(--stone-900); background: #f3efe6; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #fff, #f8edda 52%, #1b1a17); }
.login-card { width: min(440px, 100%); background: white; border-radius: 28px; box-shadow: var(--shadow); padding: 28px; border: 1px solid rgba(28, 25, 23, .08); }
.login-logo { width: 280px; max-width: 100%; display: block; margin: 0 auto 22px; border-radius: 10px; }
.login-card h1 { margin: 0; font-size: 28px; color: var(--stone-950); }
.login-card p { color: var(--stone-500); line-height: 1.5; }
.form-grid { display: grid; gap: 14px; }
.form-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field label { display: block; color: var(--stone-700); font-size: 13px; font-weight: 800; margin-bottom: 7px; }
.input, .select, .textarea { width: 100%; border: 1px solid #ded6c7; border-radius: 12px; padding: 11px 12px; background: white; color: var(--stone-900); outline: none; }
.textarea { min-height: 90px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(196, 147, 58, .16); }
.btn { border: 0; border-radius: 12px; padding: 10px 14px; background: var(--stone-950); color: white; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; }
.btn.primary { background: var(--gold); color: var(--ink); }
.btn.primary:hover { background: #d7a84e; }
.btn.secondary { background: white; color: var(--stone-900); border: 1px solid #ded6c7; }
.btn.danger { background: var(--red); color: white; }
.btn.small { min-height: 32px; padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.btn.link { background: transparent; color: var(--gold-dark); padding: 0; min-height: auto; }
.error { color: var(--red); font-size: 13px; margin-top: 10px; }
.muted { color: var(--stone-500); }
.shell { min-height: 100vh; display: grid; grid-template-columns: 292px 1fr; }
.sidebar { background: white; border-right: 1px solid #e6dccd; padding: 18px 16px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { background: white; border-radius: 22px; border: 1px solid #eee4d2; padding: 12px; box-shadow: 0 8px 22px rgba(28,25,23,.05); }
.brand img { width: 245px; max-width: 100%; border-radius: 8px; display: block; margin: auto; }
.nav { margin-top: 24px; display: grid; gap: 7px; }
.nav button { border: 0; background: transparent; color: var(--stone-700); padding: 12px 14px; border-radius: 14px; text-align: left; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.nav button.active { background: var(--stone-950); color: white; box-shadow: 0 12px 22px rgba(28, 25, 23, .18); }
.nav button:hover:not(.active) { background: var(--stone-100); }
.info-card { margin-top: 26px; border: 1px solid #e6dccd; border-radius: 18px; padding: 16px; background: linear-gradient(180deg, #fff, var(--gold-soft)); }
.info-card h3 { margin: 0 0 8px; font-size: 15px; }
.info-card p { margin: 6px 0; color: var(--stone-500); font-size: 13px; line-height: 1.45; }
.status-dot { width: 9px; height: 9px; border-radius: 99px; display: inline-block; background: var(--green); margin-right: 6px; }
.main { min-width: 0; }
.topbar { height: 76px; background: rgba(255,255,255,.92); border-bottom: 1px solid #e6dccd; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.top-left { display: flex; align-items: center; gap: 18px; }
.mobile-menu { display: none; border: 0; background: var(--stone-100); border-radius: 10px; padding: 9px; }
.page-title { font-size: 24px; margin: 0; color: var(--stone-950); }
.user-box { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; font-weight: 900; color: var(--gold-dark); border: 1px solid #ead6aa; }
.content { padding: 24px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.kpi { grid-column: span 1; background: white; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(28, 25, 23, .06); padding: 18px; min-height: 126px; }
.kpi .label { color: var(--stone-500); font-weight: 900; font-size: 13px; }
.kpi .value { margin-top: 18px; font-size: 27px; font-weight: 950; letter-spacing: -.02em; color: var(--stone-950); }
.kpi .note { margin-top: 7px; color: var(--stone-500); font-size: 12px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: 1.25fr 1fr; }
.grid.three { grid-template-columns: 1.1fr 1fr 1fr; }
.panel { background: white; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(28, 25, 23, .06); padding: 18px; min-width: 0; }
.panel h2 { margin: 0 0 16px; font-size: 16px; text-transform: uppercase; letter-spacing: .03em; color: var(--stone-950); }
.table-wrap { overflow: auto; border: 1px solid #e6dccd; border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 820px; }
th { text-align: left; color: var(--stone-500); background: var(--stone-50); padding: 12px; white-space: nowrap; }
td { border-top: 1px solid #f0e8dc; padding: 12px; vertical-align: middle; }
tr:hover td { background: #fffaf0; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 900; border: 1px solid transparent; white-space: nowrap; }
.pill.green { color: #15803d; background: #dcfce7; border-color: #bbf7d0; }
.pill.red { color: #b91c1c; background: #fee2e2; border-color: #fecaca; }
.pill.orange { color: #92400e; background: #fef3c7; border-color: #fde68a; }
.pill.blue { color: #1d4ed8; background: #dbeafe; border-color: #bfdbfe; }
.pill.gray { color: #57534e; background: #f5f5f4; border-color: #e7e5e4; }
.money { font-weight: 900; white-space: nowrap; color: var(--stone-950); }
.money.red { color: var(--red); }
.money.green { color: var(--green); }
.preline { white-space: pre-line; line-height: 1.5; display: inline-block; min-width: 220px; }
.alert-list { display: grid; gap: 10px; }
.alert { border-left: 4px solid var(--gold); border-radius: 12px; padding: 12px; background: #fff9ea; display: flex; justify-content: space-between; gap: 12px; }
.alert strong { display: block; font-size: 13px; }
.alert span { color: var(--stone-500); font-size: 12px; }
.room-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.room-card { border: 1px solid #e6dccd; border-radius: 16px; padding: 14px; background: #fffaf2; }
.room-card strong { display: block; font-size: 14px; }
.room-card span { color: var(--stone-500); font-size: 12px; display: block; margin-top: 4px; }
.calendar-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.calendar-wrap { overflow: auto; border: 1px solid #e6dccd; border-radius: 14px; background: white; }
.calendar { min-width: 1040px; }
.calendar-row { display: grid; grid-template-columns: 185px repeat(31, minmax(28px, 1fr)); border-top: 1px solid #f0e8dc; }
.calendar-row.header { border-top: 0; background: var(--stone-50); font-size: 12px; color: var(--stone-500); font-weight: 900; }
.calendar-cell { min-height: 40px; border-left: 1px solid #f0e8dc; padding: 6px 4px; }
.calendar-room { position: sticky; left: 0; z-index: 2; background: white; border-left: 0; font-weight: 900; color: var(--stone-900); }
.calendar-booked { background: var(--gold-soft); color: #7c4f11; border-radius: 9px; padding: 5px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid #ead6aa; }
.calendar-free { background: #fbfaf8; height: 28px; border-radius: 8px; }
.items-box { border: 1px solid #e6dccd; border-radius: 14px; padding: 12px; background: var(--stone-50); display: grid; gap: 10px; }
.line-item { display: grid; grid-template-columns: 1.5fr 90px 100px 40px; gap: 8px; align-items: end; }
.readonly-banner { margin-bottom: 18px; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; padding: 12px 14px; border-radius: 14px; font-weight: 800; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(28, 25, 23, .45); z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal { width: min(940px, 100%); max-height: 90vh; overflow: auto; background: white; border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #e6dccd; }
.modal header h2 { margin: 0; font-size: 20px; }
.modal .body { padding: 22px; }
.modal footer { padding: 18px 22px; border-top: 1px solid #e6dccd; display: flex; justify-content: flex-end; gap: 10px; }
.toast { position: fixed; bottom: 18px; right: 18px; background: var(--stone-950); color: white; border-radius: 14px; padding: 12px 15px; z-index: 100; box-shadow: var(--shadow); }
.donut-box { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut { width: 170px; height: 170px; border-radius: 50%; background: conic-gradient(var(--green) 0 42%, var(--gold) 42% 72%, var(--red) 72% 100%); display: grid; place-items: center; }
.donut-inner { width: 108px; height: 108px; background: white; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: var(--stone-950); }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 90px; gap: 10px; align-items: center; font-size: 13px; }
.bar-track { height: 12px; background: var(--stone-100); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--gold); border-radius: 99px; }
@media (max-width: 1180px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.two, .grid.three { grid-template-columns: 1fr; } .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 840px) { .shell { grid-template-columns: 1fr; } .sidebar { display: none; position: fixed; z-index: 40; width: 292px; } .sidebar.open { display: block; } .mobile-menu { display: inline-flex; } .topbar { padding: 0 14px; } .content { padding: 14px; } .form-cols { grid-template-columns: 1fr; } .cards { grid-template-columns: 1fr; } .user-box .meta { display: none; } .room-grid { grid-template-columns: 1fr; } .line-item { grid-template-columns: 1fr 80px 90px 40px; } }
.thumb { width: 92px; height: 52px; object-fit: cover; border-radius: 10px; border: 1px solid #e6dccd; background: #fffaf2; display: block; }
@media (max-width: 840px) { .thumb { width: 76px; height: 46px; } }

.inline-field {
  display: flex;
  gap: 10px;
  align-items: center;
}
.inline-field .input {
  flex: 1;
}
@media (max-width: 700px) {
  .inline-field {
    flex-direction: column;
    align-items: stretch;
  }
}

.company-box {
  border: 1px solid rgba(196, 144, 48, .35);
  background: rgba(196, 144, 48, .07);
  border-radius: 16px;
  padding: 14px;
}
.company-box h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.checkline input {
  width: auto;
}


/* v4.0 Mobile + Rapid Workflow */
.mobile-only { display: none; }
.desktop-only { display: inline-flex; }
.mobile-booking-cards { display: none; }

.fab-add {
  display: none;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-actions .btn,
.search-row .btn {
  text-decoration: none;
}

.booking-card-mobile {
  border: 1px solid rgba(196, 144, 48, .28);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(29, 24, 18, .06);
  margin-bottom: 12px;
}

.booking-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.booking-card-head strong {
  display: block;
  font-size: 16px;
}

.booking-card-head span {
  display: block;
  color: #777;
  margin-top: 3px;
  font-size: 12px;
}

.booking-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.booking-card-grid > div {
  border-radius: 12px;
  background: rgba(196, 144, 48, .08);
  padding: 10px;
}

.booking-card-grid span {
  display: block;
  font-size: 11px;
  color: #777;
  margin-bottom: 4px;
}

.booking-card-grid strong {
  font-size: 13px;
}

.mobile-calendar-list {
  display: none;
}

.mobile-cal-day {
  border: 1px solid rgba(196, 144, 48, .25);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  margin-bottom: 10px;
}

.mobile-cal-day h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.mobile-cal-room {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #f0e5d6;
}

.mobile-cal-room:first-of-type {
  border-top: 0;
}

.mobile-cal-room .free {
  color: #116b3a;
  font-weight: 800;
}

.mobile-cal-room .busy {
  color: #a35200;
  font-weight: 800;
}

@media (max-width: 820px) {
  body {
    overflow-x: hidden;
  }

  .shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: 76px;
    z-index: 70;
    border-radius: 22px 22px 0 0;
    padding: 6px 8px 8px;
    background: rgba(20, 18, 15, .98);
    box-shadow: 0 -10px 30px rgba(0,0,0,.18);
  }

  .sidebar .brand,
  .sidebar .info-card {
    display: none;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    height: 100%;
    overflow: hidden;
  }

  .nav button {
    min-height: 60px;
    padding: 6px 4px;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1.1;
    justify-content: center;
    text-align: center;
    gap: 4px;
    flex-direction: column;
  }

  .nav button span {
    font-size: 18px;
  }

  .nav button:nth-child(n+6) {
    display: none;
  }

  .main {
    margin-left: 0 !important;
    padding-bottom: 92px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 12px 14px;
    backdrop-filter: blur(16px);
  }

  .page-title {
    font-size: 22px;
  }

  .user-box .meta {
    display: none;
  }

  .content {
    padding: 14px;
  }

  .toolbar,
  .mobile-toolbar {
    align-items: flex-start;
    gap: 10px;
  }

  .toolbar .search-row {
    justify-content: flex-end;
  }

  .panel {
    border-radius: 20px;
    padding: 14px;
  }

  .calendar-wrap,
  .desktop-bookings,
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block;
  }

  .mobile-calendar-list,
  .mobile-booking-cards {
    display: block;
  }

  .form-cols {
    grid-template-columns: 1fr !important;
  }

  .modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 24px);
    border-radius: 22px;
  }

  .modal .body {
    max-height: calc(100vh - 128px);
    overflow-y: auto;
  }

  .btn {
    min-height: 42px;
  }

  .btn.small {
    min-height: 36px;
    padding: 8px 11px;
  }

  .fab-add {
    display: inline-flex;
    position: fixed;
    right: 16px;
    bottom: 92px;
    z-index: 75;
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    background: #c49030;
    color: #19130c;
    font-weight: 900;
    box-shadow: 0 12px 32px rgba(196, 144, 48, .45);
  }

  .booking-card-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions .btn,
  .quick-actions a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .content {
    padding: 10px;
  }

  .panel {
    padding: 12px;
  }

  .page-title {
    font-size: 19px;
  }

  .nav button {
    font-size: 10px;
  }

  .quick-actions .btn,
  .quick-actions a {
    flex: 1 1 100%;
  }
}

/* v4.2 booking new client */
#bookingClientFields.company-box {
  border-style: dashed;
}


/* v4.5 Mobile full visibility */
@media (max-width: 820px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .main {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }

  .content {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .kpi {
    padding: 14px;
    min-height: 126px;
  }

  .kpi .label {
    font-size: 12px;
    line-height: 1.25;
  }

  .kpi .value {
    font-size: 28px;
    line-height: 1.1;
    word-break: break-word;
  }

  .kpi .note {
    font-size: 11px;
    line-height: 1.25;
  }

  .grid.two,
  .grid.three {
    gap: 12px;
  }

  .table-wrap {
    overflow: visible !important;
    border: 0;
    background: transparent;
  }

  .table-wrap table {
    width: 100% !important;
    min-width: 0 !important;
    display: block;
    border: 0;
    background: transparent;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tbody {
    display: grid;
    gap: 10px;
  }

  .table-wrap tr {
    display: block;
    border: 1px solid #e6dccd;
    border-radius: 16px;
    background: #fffaf2;
    padding: 8px 10px;
    overflow: hidden;
  }

  .table-wrap td {
    display: grid;
    grid-template-columns: minmax(92px, 36%) 1fr;
    gap: 10px;
    align-items: start;
    border: 0 !important;
    padding: 8px 0 !important;
    white-space: normal;
    word-break: break-word;
  }

  .table-wrap td + td {
    border-top: 1px solid #efe4d5 !important;
  }

  .table-wrap td::before {
    content: attr(data-label);
    color: var(--stone-500);
    font-size: 12px;
    font-weight: 900;
  }

  .table-wrap td[colspan] {
    display: block;
  }

  .table-wrap td[colspan]::before {
    content: '';
    display: none;
  }

  .room-grid {
    gap: 10px;
  }

  .room-card {
    padding: 12px;
  }

  .room-card strong {
    font-size: 16px;
  }

  .room-card span {
    font-size: 13px;
    line-height: 1.35;
  }

  .modal-backdrop {
    align-items: start;
    place-items: start center;
    padding: 10px;
    overflow-y: auto;
  }

  .modal {
    max-height: none;
    height: auto;
    margin: 0 0 30px;
  }

  .modal .body {
    max-height: none;
  }

  .modal footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 2;
  }
}

@media (max-width: 420px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .kpi {
    padding: 12px;
    min-height: 116px;
  }

  .kpi .value {
    font-size: 24px;
  }

  .table-wrap td {
    grid-template-columns: minmax(82px, 34%) 1fr;
    gap: 8px;
  }
}


/* v4.6 dashboard restanțe și detalii rezervare */
.dashboard-section { margin-bottom: 18px; }
.dashboard-summary.cards { margin-top: 12px; }
.overdue-kpi { border-color: rgba(224, 49, 49, .35); }
.overdue-panel { border-color: rgba(224, 49, 49, .18); }
.link-btn {
  border: 0;
  background: transparent;
  color: #8a5a00;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.booking-link { text-align: left; }
.booking-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.booking-detail-grid > div {
  border: 1px solid #eadfce;
  background: #fffaf2;
  border-radius: 14px;
  padding: 12px;
}
.booking-detail-grid span {
  display: block;
  color: #777;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}
.booking-detail-grid strong {
  display: block;
  font-size: 15px;
}
.booking-detail-grid .detail-wide { grid-column: 1 / -1; }
.overdue-note { border-color: rgba(224, 49, 49, .35) !important; background: rgba(224, 49, 49, .06) !important; }
@media (max-width: 820px) {
  .dashboard-section { margin-bottom: 12px; }
  .dashboard-summary.cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .booking-detail-grid { grid-template-columns: 1fr; }
  .booking-details-modal footer.search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .booking-details-modal footer .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .booking-details-modal footer.search-row { grid-template-columns: 1fr; }
}


/* v4.7 dashboard mobile compact reservations */
.dashboard-mobile-reservations { display: none; }
.dashboard-mobile-bookings { display: grid; gap: 10px; }
.dashboard-mobile-booking {
  width: 100%;
  border: 1px solid rgba(196, 144, 48, .25);
  border-radius: 16px;
  background: #fffaf2;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.dashboard-mobile-booking .booking-no { font-weight: 900; color: #1d1812; }
.dashboard-mobile-booking .booking-client { font-weight: 700; color: #3c352c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-mobile-booking .booking-price { font-weight: 900; color: #1d1812; white-space: nowrap; }
.dashboard-mobile-empty { margin: 0; }

@media (max-width: 820px) {
  .dashboard-desktop-reservations { display: none !important; }
  .dashboard-mobile-reservations { display: block; }
  .dashboard-mobile-booking { grid-template-columns: 82px 1fr auto; padding: 12px; }
  .dashboard-mobile-booking .booking-no,
  .dashboard-mobile-booking .booking-client,
  .dashboard-mobile-booking .booking-price { font-size: 14px; }
}

@media (max-width: 380px) {
  .dashboard-mobile-booking { grid-template-columns: 1fr auto; }
  .dashboard-mobile-booking .booking-no { grid-column: 1 / -1; }
}


/* v4.8 mobile menu as left drawer */
.mobile-sidebar-overlay { display: none; }
@media (max-width: 820px) {
  .mobile-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, .42);
    z-index: 64;
  }

  .sidebar {
    display: block !important;
    position: fixed !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    bottom: 0 !important;
    width: min(292px, 86vw) !important;
    height: 100vh !important;
    z-index: 70;
    border-radius: 0 22px 22px 0 !important;
    padding: 16px 14px 18px !important;
    background: #fff !important;
    color: var(--stone-900);
    box-shadow: 14px 0 34px rgba(0,0,0,.22) !important;
    overflow-y: auto;
    transform: translateX(-106%);
    transition: transform .22s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar .brand {
    display: block !important;
    padding: 10px;
    margin-bottom: 12px;
  }

  .sidebar .brand img {
    width: 210px;
  }

  .sidebar .info-card {
    display: block !important;
    margin-top: 18px;
  }

  .nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    height: auto !important;
    overflow: visible !important;
    margin-top: 12px !important;
  }

  .nav button,
  .nav button:nth-child(n+6) {
    display: flex !important;
    min-height: 46px !important;
    padding: 11px 13px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 11px !important;
    flex-direction: row !important;
  }

  .nav button span {
    font-size: 18px !important;
  }

  .main {
    padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
  }

  .topbar {
    z-index: 60;
  }

  .mobile-menu {
    display: inline-flex !important;
  }
}


/* v4.9 menu order and mobile reservations order */
.bookings-page { display: block; }
.settings-rooms .toolbar { margin-bottom: 12px; }
@media (max-width: 820px) {
  .bookings-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .bookings-list {
    order: 1;
  }
  .bookings-calendar {
    order: 2;
  }
}


/* v5.0 mobile monthly reservation calendar */
.mobile-month-calendar { display: none; }
.mobile-month-legend {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 10px 0 12px;
  font-size: 13px;
  font-weight: 800;
}
.mobile-month-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}
.legend-dot.occupied { background: #dc2626; }
.legend-dot.free { background: #16a34a; }
.mobile-month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}
.mobile-month-weekdays span {
  text-align: center;
  color: #7a6d5c;
  font-size: 11px;
  font-weight: 900;
}
.mobile-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.mobile-month-cell {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  font-family: inherit;
  box-shadow: 0 6px 14px rgba(0,0,0,.07);
}
.mobile-month-cell.empty {
  background: transparent;
  box-shadow: none;
}
.mobile-month-cell.free {
  background: #dcfce7;
  color: #14532d;
}
.mobile-month-cell.occupied {
  background: #fee2e2;
  color: #7f1d1d;
  cursor: pointer;
}
.mobile-month-cell .day-no {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.mobile-month-cell .day-status {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.mobile-month-cell.occupied .day-status { color: #dc2626; }
.mobile-month-cell.free .day-status { color: #16a34a; }
@media (max-width: 820px) {
  .mobile-calendar-list { display: none !important; }
  .mobile-month-calendar { display: block; }
}
@media (max-width: 380px) {
  .mobile-month-grid,
  .mobile-month-weekdays { gap: 4px; }
  .mobile-month-cell { min-height: 46px; border-radius: 10px; }
  .mobile-month-cell .day-no { font-size: 14px; }
  .mobile-month-cell .day-status { font-size: 8px; }
}


/* v5.1 rezervări mobile compact */
.compact-booking-list {
  display: none;
  gap: 10px;
}
.mobile-booking-list-item {
  width: 100%;
  border: 1px solid rgba(196, 144, 48, .28);
  border-radius: 16px;
  background: #fffaf2;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(29, 24, 18, .05);
}
.mobile-booking-list-item strong {
  font-size: 15px;
  line-height: 1.2;
  color: #241d16;
}
.mobile-booking-list-item span {
  font-size: 12px;
  font-weight: 800;
  color: #8a5a00;
  white-space: nowrap;
}
.mobile-booking-list-item:active {
  transform: translateY(1px);
}
@media (max-width: 820px) {
  .compact-booking-list.mobile-only {
    display: grid;
  }
}
@media (max-width: 420px) {
  .mobile-booking-list-item {
    grid-template-columns: 1fr;
  }
  .mobile-booking-list-item span {
    white-space: normal;
  }
}

/* v5.5 mobile fixed menu button */
@media (max-width: 820px) {
  .top-left {
    padding-left: 58px !important;
  }

  .mobile-menu {
    position: fixed !important;
    top: max(12px, env(safe-area-inset-top)) !important;
    left: 14px !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    z-index: 90 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid #e6dccd !important;
    box-shadow: 0 10px 26px rgba(28,25,23,.15) !important;
    color: var(--stone-950) !important;
    font-size: 24px !important;
    line-height: 1 !important;
  }
}


/* v5.7 mobile menu button truly fixed outside the header */
.mobile-menu-fixed {
  display: none;
}
@media (max-width: 820px) {
  .topbar .mobile-menu {
    display: none !important;
  }

  .top-left {
    padding-left: 58px !important;
  }

  .mobile-menu-fixed {
    position: fixed !important;
    top: calc(12px + env(safe-area-inset-top)) !important;
    left: 14px !important;
    width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 !important;
    z-index: 140 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e6dccd !important;
    border-radius: 15px !important;
    background: #fff !important;
    color: var(--stone-950) !important;
    box-shadow: 0 12px 30px rgba(28,25,23,.22) !important;
    font-size: 25px !important;
    line-height: 1 !important;
  }

  .sidebar.open {
    padding-top: calc(74px + env(safe-area-inset-top)) !important;
  }
}

/* v5.8 dashboard linkuit + calendar client-click */
.dashboard-new-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr);
  gap: 18px;
}
.dashboard-new-layout .dashboard-hero-card,
.dashboard-new-layout .dashboard-summary-panel,
.dashboard-new-layout .overdue-panel {
  grid-column: 1 / -1;
}
.panel-head-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-head-link h2 {
  margin: 0;
}
.linked-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kpi-link {
  border: 1px solid #e6dccd;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.kpi-link:hover,
.room-link-card:hover,
.dashboard-order-card:hover,
.alert-link:hover,
.calendar-client-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(29, 24, 18, .10);
  border-color: rgba(196, 144, 48, .45);
}
.kpi-link.balance-link {
  border-color: rgba(196, 144, 48, .42);
}
.client-link { color: #5940a8; }
.calendar-client-link {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.room-link-card {
  appearance: none;
  border: 1px solid #e6dccd;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.alert-link {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.dashboard-order-list,
.client-bookings-list {
  display: grid;
  gap: 10px;
}
.dashboard-order-card {
  border: 1px solid #e6dccd;
  border-radius: 14px;
  background: #fffaf2;
  padding: 12px;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.dashboard-order-card strong { color: var(--stone-950); }
.dashboard-order-card span { color: var(--stone-500); font-size: 13px; }
.dashboard-order-card em { font-style: normal; font-weight: 900; }
.client-details-modal .client-bookings-list .mobile-booking-list-item { display: grid; }
.mobile-month-cell.occupied .day-status {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .linked-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-new-layout { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .dashboard-new-layout { gap: 12px; }
  .linked-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-head-link { align-items: flex-start; }
  .dashboard-order-card { grid-template-columns: 1fr auto; }
  .dashboard-order-card strong { grid-column: 1 / -1; }
  .client-details-modal footer.search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .client-details-modal footer .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .linked-summary { grid-template-columns: 1fr; }
  .client-details-modal footer.search-row { grid-template-columns: 1fr; }
}

/* v6.0 dashboard layout tip panou operational */
.dash-dark-shell {
  --dash-bg: #17133a;
  --dash-card: #2a2b5d;
  --dash-card-2: #303e5a;
  --dash-line: rgba(255,255,255,.10);
  --dash-text: #f6f4ff;
  --dash-muted: #cbc8e8;
  --dash-cyan: #19d4f5;
  --dash-green: #8fd163;
  --dash-red: #ff5e78;
  --dash-orange: #ffbd5c;
  background: var(--dash-bg);
  border-radius: 24px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.55fr 2.35fr;
  grid-auto-rows: minmax(136px, auto);
  gap: 14px;
  color: var(--dash-text);
  box-shadow: 0 22px 55px rgba(17, 13, 48, .25);
}
.dash-dark-shell * { box-sizing: border-box; }
.dash-dark-card {
  background: var(--dash-card);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 9px;
  color: var(--dash-text);
  padding: 14px;
  box-shadow: none;
  min-width: 0;
}
button.dash-dark-card,
.dash-dark-shell button {
  font: inherit;
}
button.dash-dark-card {
  appearance: none;
  text-align: left;
  cursor: pointer;
}
button.dash-dark-card:hover,
.dash-dark-shell button:hover {
  border-color: rgba(25, 212, 245, .45);
  filter: brightness(1.05);
}
.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.dash-card-head h2,
.dash-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  color: var(--dash-text);
  letter-spacing: -.01em;
  text-transform: none;
  font-weight: 900;
}
.dash-card-head button {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.08);
  color: var(--dash-text);
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}
.dash-metric strong {
  display: block;
  font-size: 46px;
  line-height: .95;
  margin: 20px 0 4px;
  letter-spacing: -.04em;
  color: var(--dash-text);
}
.dash-metric small,
.dash-empty,
.dash-budget-left span,
.dash-budget-left em,
.dash-uptime-main small,
.dash-uptime-main span {
  color: var(--dash-muted);
  font-size: 15px;
  line-height: 1.25;
}
.dash-card-tall { min-height: 280px; }
.dash-arrivals { grid-column: span 2; }
.dash-overdue { grid-row: span 2; }
.dash-projects { grid-row: span 2; }
.dash-uptime { grid-column: span 2; }
.dash-budget {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.7fr);
  gap: 16px;
  align-items: end;
}
.dash-budget .dash-card-head { grid-column: 1 / -1; margin-bottom: 0; }
.dash-alerts-card,
.dash-orders-card { grid-column: span 2; }
.dash-booking-lines { display: grid; gap: 0; }
.dash-booking-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--dash-line);
  padding: 8px 0;
}
.dash-booking-line:last-child { border-bottom: 0; }
.dash-booking-line button {
  border: 0;
  background: transparent;
  color: var(--dash-text);
  padding: 0;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-booking-line button:nth-child(2) { color: var(--dash-muted); }
.dash-booking-line .money { color: var(--dash-text); }
.dash-booking-line .money.red { color: var(--dash-red); }
.dash-booking-line .money.green { color: var(--dash-green); }
.dash-overdue-box {
  width: 100%;
  border: 1px solid rgba(255, 94, 120, .70);
  background: rgba(255, 94, 120, .10);
  color: var(--dash-text);
  border-radius: 8px;
  padding: 18px 14px;
  display: grid;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  margin-bottom: 12px;
}
.dash-overdue-box strong { font-size: 44px; line-height: .95; }
.dash-overdue-box span { color: var(--dash-muted); }
.dash-overdue-box em { color: var(--dash-red); font-style: normal; font-weight: 900; }
.dash-mini-list .dash-booking-line { grid-template-columns: 78px 1fr auto; font-size: 12px; }
.dash-big-number {
  font-size: 46px;
  line-height: .95;
  font-weight: 950;
  margin: 10px 0 16px;
}
.dash-big-number span { font-size: 18px; color: var(--dash-muted); font-weight: 700; }
.dash-bars { display: grid; gap: 10px; }
.dash-bar-row {
  display: grid;
  grid-template-columns: 120px minmax(0,1fr) 36px;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--dash-text);
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.dash-bar-row i {
  display: block;
  height: 7px;
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  overflow: hidden;
}
.dash-bar-row b {
  display: block;
  height: 100%;
  background: var(--dash-cyan);
}
.dash-bar-row em {
  font-style: normal;
  text-align: right;
  color: var(--dash-text);
}
.dash-uptime-main {
  border: 0;
  background: transparent;
  color: var(--dash-text);
  padding: 6px 0 14px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 9px;
}
.dash-uptime-main strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dash-green);
  font-size: 34px;
  line-height: 1;
}
.dash-uptime-main strong i {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 16px solid var(--dash-green);
}
.dash-room-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.dash-room-mini button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--dash-line);
  background: rgba(255,255,255,.04);
  color: var(--dash-text);
  border-radius: 7px;
  padding: 9px;
  text-align: left;
  cursor: pointer;
}
.dash-room-mini button.is-free em { color: var(--dash-green); }
.dash-room-mini button.is-busy em { color: var(--dash-red); }
.dash-room-mini em { font-style: normal; font-weight: 900; }
.dash-budget-left strong {
  display: block;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 8px;
}
.dash-budget-left i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  overflow: hidden;
  margin: 28px 0 6px;
}
.dash-budget-left b {
  display: block;
  height: 100%;
  background: var(--dash-cyan);
}
.dash-chart {
  min-height: 210px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  border-left: 1px solid var(--dash-line);
  border-bottom: 1px solid var(--dash-line);
  padding: 12px 6px 0 18px;
}
.dash-chart-col {
  height: 100%;
  min-height: 180px;
  border: 0;
  background: transparent;
  color: var(--dash-text);
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 6px;
  align-items: end;
  text-align: center;
  cursor: pointer;
}
.dash-chart-col i {
  display: block;
  width: 42px;
  max-height: 170px;
  background: var(--dash-cyan);
  justify-self: center;
  border-radius: 2px 2px 0 0;
}
.dash-chart-col span { color: var(--dash-muted); font-weight: 900; }
.dash-chart-col strong { font-size: 12px; color: var(--dash-text); }
.dash-dark-shell .alert-list { gap: 8px; }
.dash-dark-shell .alert {
  background: rgba(255,255,255,.05);
  border-left-color: var(--dash-orange);
  border-radius: 7px;
  color: var(--dash-text);
}
.dash-dark-shell .alert strong { color: var(--dash-text); }
.dash-dark-shell .alert span { color: var(--dash-muted); }
.dash-dark-shell .dashboard-order-card {
  background: rgba(255,255,255,.05);
  border-color: var(--dash-line);
  color: var(--dash-text);
  border-radius: 7px;
}
.dash-dark-shell .dashboard-order-card strong,
.dash-dark-shell .dashboard-order-card em { color: var(--dash-text); }
.dash-dark-shell .dashboard-order-card span { color: var(--dash-muted); }
.dash-mobile-only { display: none; }
.dash-desktop-only { display: block; }
.dash-mobile-arrivals { display: grid; gap: 8px; }
.dash-mobile-arrivals button {
  border: 1px solid var(--dash-line);
  background: rgba(255,255,255,.05);
  color: var(--dash-text);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 8px;
  align-items: center;
  text-align: left;
}
.dash-mobile-arrivals .money { color: var(--dash-text); }
.dash-mobile-arrivals .money.red { color: var(--dash-red); }
.dash-mobile-arrivals .money.green { color: var(--dash-green); }
@media (max-width: 1280px) {
  .dash-dark-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-arrivals,
  .dash-overdue,
  .dash-projects,
  .dash-uptime,
  .dash-budget,
  .dash-alerts-card,
  .dash-orders-card { grid-column: auto; grid-row: auto; }
  .dash-budget { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .dash-dark-shell {
    border-radius: 18px;
    padding: 10px;
    gap: 10px;
    grid-template-columns: 1fr;
    background: var(--dash-bg) !important;
  }
  .dash-dark-card { padding: 12px; }
  .dash-card-tall { min-height: 0; }
  .dash-budget { display: block; }
  .dash-chart { min-height: 150px; padding-left: 10px; gap: 8px; margin-top: 16px; }
  .dash-chart-col { min-height: 140px; }
  .dash-chart-col i { width: 30px; max-height: 120px; }
  .dash-metric strong,
  .dash-big-number,
  .dash-budget-left strong,
  .dash-overdue-box strong { font-size: 36px; }
  .dash-desktop-only { display: none; }
  .dash-mobile-only { display: block; }
  .dash-room-mini { grid-template-columns: 1fr; }
  .dash-mobile-arrivals button { grid-template-columns: 76px 1fr; }
  .dash-mobile-arrivals em { grid-column: 1 / -1; }
  .dash-card-head h2, .dash-title { font-size: 16px; }
}

/* v7.0 recommendations */
.backup-list { margin-top: 14px; display: grid; gap: 10px; }
.backup-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid rgba(196,144,48,.24); border-radius: 14px; background: rgba(196,144,48,.06); }
.backup-item span { display: block; color: #777; font-size: 12px; margin-top: 3px; }
.integration-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.integration-card { display: block; text-decoration: none; color: inherit; border: 1px solid rgba(196,144,48,.28); border-radius: 16px; padding: 14px; background: #fffaf2; }
.integration-card strong { display: block; margin-bottom: 6px; }
.integration-card span { display: block; color: #777; font-size: 13px; line-height: 1.45; }
@media (max-width: 820px) { .integration-grid { grid-template-columns: 1fr; } .backup-item { align-items: flex-start; flex-direction: column; } }


/* v7.1 mobile booking delete */
.booking-details-modal footer .btn.danger {
  background: #e03131;
  color: #fff;
  border-color: #e03131;
}
@media (max-width: 820px) {
  .booking-details-modal footer .btn.danger {
    width: 100%;
  }
}

/* v7.2 - receptie, calendar hotelier si cos gunoi */
.hotel-calendar-wrap {
  overflow-x: auto;
  border: 1px solid rgba(196,144,48,.25);
  border-radius: 16px;
  background: #fff;
}
.hotel-calendar {
  display: grid;
  gap: 0;
}
.hotel-head,
.hotel-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  border-bottom: 1px solid rgba(196,144,48,.18);
}
.hotel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fffaf2;
}
.hotel-room-name {
  padding: 12px;
  font-weight: 900;
  border-right: 1px solid rgba(196,144,48,.18);
  background: #fffaf2;
  min-height: 48px;
}
.hotel-room-name.head {
  background: #f4eadb;
}
.hotel-head-days,
.hotel-room-timeline {
  display: grid;
  position: relative;
}
.hotel-day-head {
  padding: 12px 4px;
  text-align: center;
  font-weight: 800;
  color: #74624a;
  border-right: 1px solid rgba(196,144,48,.12);
}
.hotel-room-timeline {
  min-height: 54px;
  align-items: center;
}
.hotel-day-bg {
  grid-row: 1;
  min-height: 54px;
  border-right: 1px solid rgba(196,144,48,.10);
  background: rgba(255,255,255,.72);
}
.hotel-day-bg.alt {
  background: rgba(196,144,48,.045);
}
.hotel-booking-bar {
  grid-row: 1;
  align-self: center;
  height: 34px;
  border: 0;
  border-radius: 999px;
  margin: 0 3px;
  background: linear-gradient(135deg, #c49030, #e5b75d);
  color: #1b140d;
  font-weight: 900;
  padding: 0 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: 0 8px 20px rgba(196,144,48,.28);
  cursor: pointer;
}
.hotel-booking-bar:hover {
  transform: translateY(-1px);
}
.reception-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
}
.reception-kpi {
  border: 1px solid rgba(196,144,48,.28);
  border-radius: 22px;
  background: #fff;
  padding: 20px;
  text-align: left;
  box-shadow: 0 14px 34px rgba(29,24,18,.08);
  cursor: pointer;
}
.reception-kpi strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}
.reception-kpi span {
  display: block;
  margin-top: 8px;
  color: #776d62;
  font-weight: 800;
}
.reception-panel {
  grid-column: span 2;
}
.reception-list,
.room-free-list {
  display: grid;
  gap: 10px;
}
.reception-list button,
.room-free-list button {
  border: 1px solid rgba(196,144,48,.25);
  border-radius: 16px;
  background: #fffaf2;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}
.reception-list strong,
.room-free-list strong {
  display: block;
}
.reception-list span,
.room-free-list span {
  display: block;
  margin-top: 4px;
  color: #776d62;
}
@media (max-width: 820px) {
  .reception-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .reception-panel {
    grid-column: 1 / -1;
  }
  .reception-kpi {
    padding: 14px;
    border-radius: 18px;
  }
  .reception-kpi strong {
    font-size: 30px;
  }
  .hotel-head,
  .hotel-row {
    grid-template-columns: 140px 1fr;
  }
  .hotel-room-name {
    padding: 10px;
    font-size: 13px;
  }
}


/* v7.3 extra operational features */
.filter-row {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin: 0 0 14px;
}
.disabled-room {
  opacity:.55;
  cursor:not-allowed;
}
.disabled-room input {
  cursor:not-allowed;
}
.dash-dark-card .dash-mini-list .muted {
  color: rgba(255,255,255,.7);
}
@media (max-width: 820px) {
  .filter-row {
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:6px;
  }
  .filter-row .btn {
    white-space:nowrap;
  }
}


/* v7.4 mobile accessibility and friendly UI */
:root {
  --tap-target: 48px;
}

@media (max-width: 820px) {
  html {
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
  }

  body {
    background: #fbf6ed;
  }

  .mobile-only {
    display: block;
  }

  .mobile-page-helper {
    border: 1px solid rgba(196,144,48,.28);
    border-radius: 18px;
    background: #fffaf2;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(29,24,18,.06);
  }

  .mobile-page-helper strong {
    display: block;
    font-size: 17px;
    color: #2c2118;
  }

  .mobile-page-helper span {
    display: block;
    margin-top: 4px;
    color: #6f6255;
    font-size: 13px;
    line-height: 1.35;
  }

  .content {
    padding: 12px 10px 128px !important;
  }

  .topbar {
    padding: 10px 12px;
    min-height: 58px;
    box-shadow: 0 10px 28px rgba(29,24,18,.08);
    background: rgba(255,250,242,.96);
  }

  .page-title {
    font-size: 21px !important;
    line-height: 1.15;
  }

  .mobile-menu-fixed {
    position: fixed !important;
    left: 12px !important;
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    top: auto !important;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 999px !important;
    z-index: 9999 !important;
    background: #c49030 !important;
    color: #20160d !important;
    border: 2px solid rgba(255,255,255,.7) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.28) !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-menu {
    display: none !important;
  }

  .sidebar {
    width: min(86vw, 340px) !important;
    padding: calc(16px + env(safe-area-inset-top)) 14px 18px !important;
    border-radius: 0 26px 26px 0 !important;
  }

  .sidebar.open {
    box-shadow: 18px 0 48px rgba(0,0,0,.30);
  }

  .nav {
    gap: 9px !important;
  }

  .nav button {
    min-height: 54px !important;
    border-radius: 16px !important;
    font-size: 16px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 12px 14px !important;
  }

  .nav button span {
    font-size: 22px !important;
  }

  .panel,
  .dash-dark-card,
  .booking-card-mobile,
  .mobile-cal-day,
  .reception-kpi,
  .integration-card {
    border-radius: 20px !important;
  }

  .panel {
    padding: 14px !important;
    box-shadow: 0 10px 28px rgba(29,24,18,.07);
  }

  .panel h2,
  .dash-card-head h2 {
    font-size: 18px !important;
    line-height: 1.2;
  }

  .toolbar,
  .mobile-toolbar {
    gap: 12px !important;
    align-items: stretch !important;
  }

  .toolbar .search-row,
  .mobile-toolbar .search-row {
    width: 100%;
  }

  .toolbar .search-row .btn,
  .mobile-toolbar .search-row .btn {
    flex: 1 1 auto;
  }

  .btn,
  .input,
  .select,
  .textarea,
  button {
    min-height: var(--tap-target);
  }

  .btn {
    border-radius: 14px !important;
    font-size: 15px;
    font-weight: 850;
  }

  .btn.small {
    min-height: 44px !important;
    padding: 10px 13px !important;
    font-size: 14px !important;
  }

  .input,
  .select,
  .textarea {
    font-size: 16px !important;
    border-radius: 14px !important;
    padding: 13px 14px !important;
  }

  .field label {
    font-size: 14px;
    font-weight: 850;
    color: #413425;
  }

  .form-cols {
    gap: 12px !important;
  }

  .modal {
    width: calc(100vw - 14px) !important;
    max-height: calc(100vh - 14px) !important;
    border-radius: 24px !important;
  }

  .modal header,
  .modal footer {
    position: sticky;
    z-index: 4;
    background: #fffaf2;
  }

  .modal header {
    top: 0;
  }

  .modal footer {
    bottom: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal footer .btn,
  .booking-details-modal footer .btn {
    width: 100%;
    justify-content: center;
  }

  .booking-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .booking-detail-grid > div {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .mobile-booking-list-item {
    min-height: 78px;
    border-radius: 18px !important;
    padding: 14px !important;
    background: #fff !important;
    border: 1px solid rgba(196,144,48,.24) !important;
    box-shadow: 0 8px 22px rgba(29,24,18,.06);
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 4px;
    text-align: left;
  }

  .mobile-booking-list-item strong {
    font-size: 17px;
    line-height: 1.2;
    color: #2a2118;
  }

  .mobile-booking-list-item span {
    font-size: 14px;
    color: #6d604f;
  }

  .mobile-booking-list-item em {
    font-style: normal;
    font-size: 12px;
    color: #8a735a;
    font-weight: 800;
  }

  .filter-row {
    background: rgba(255,250,242,.96);
    position: sticky;
    top: 58px;
    z-index: 25;
    padding: 8px 0 10px;
    margin: -2px 0 12px;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-row .btn {
    min-width: max-content;
  }

  .dash-dark-shell {
    padding: 8px !important;
  }

  .dash-dark-card {
    min-height: auto !important;
    padding: 14px !important;
  }

  .dash-card-head {
    gap: 10px;
    align-items: center;
  }

  .dash-card-head button {
    min-height: 40px;
    border-radius: 999px;
    padding: 8px 12px;
  }

  .dash-mobile-arrivals button,
  .dashboard-order-card,
  .alert-link,
  .reception-list button,
  .room-free-list button {
    min-height: 58px !important;
    border-radius: 16px !important;
  }

  .reception-grid {
    grid-template-columns: 1fr !important;
  }

  .reception-kpi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
  }

  .reception-kpi strong {
    font-size: 34px !important;
  }

  .hotel-calendar-wrap {
    border-radius: 18px !important;
    -webkit-overflow-scrolling: touch;
  }

  .hotel-booking-bar {
    height: 42px !important;
    border-radius: 18px !important;
    font-size: 13px;
  }

  .table-wrap {
    border-radius: 18px !important;
  }

  .mobile-month-calendar {
    background: #fff;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(29,24,18,.06);
  }

  .mobile-month-cell {
    min-height: 56px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
  }

  .fab-add {
    right: 12px !important;
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    min-height: 58px !important;
    border-radius: 999px !important;
    padding: 0 18px !important;
    font-size: 15px !important;
    z-index: 9998 !important;
  }

  .toast,
  #toast {
    bottom: calc(88px + env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    border-radius: 16px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 380px) {
  html {
    font-size: 16px;
  }

  .content {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .mobile-menu-fixed {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
  }

  .fab-add {
    padding: 0 14px !important;
  }
}
