/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.5;
}

body.auth-mode {
  background-color: #0b1220;
  background-image: linear-gradient(rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.55)), var(--auth-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}
body.auth-mode .app-container { background: transparent; }
body.auth-mode .app-nav { display: none; }
body.auth-mode .app-main {
  padding: 24px;
  min-height: 100vh;
}
body.auth-mode .auth-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
}
body.auth-mode .auth-top {
  text-align: center;
  padding-top: 12px;
}
body.auth-mode .auth-brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
  margin: 0;
}
body.auth-mode .auth-tagline {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
body.auth-mode .auth-footer {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  padding-bottom: 10px;
  line-height: 1.45;
}
body.auth-mode .auth-footer a {
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
}
body.auth-mode .auth-footer .sep {
  display: inline-block;
  padding: 0 8px;
  opacity: 0.6;
}
body.auth-mode .auth-panel {
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  background: rgba(255,255,255,0.96);
}

/* Layout principale */
.app-container {
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.app-nav {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.bp-user-menu {
  position: relative;
  display: flex;
  align-items: center;
}
.bp-user-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #374151;
  font-weight: 600;
}
.bp-user-button:hover {
  background: #f3f4f6;
}
.bp-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.bp-user-label {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bp-user-caret {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}
.bp-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  padding: 8px;
  z-index: 50;
}
.bp-user-menu.open .bp-user-dropdown {
  display: block;
}
.bp-user-dd-head {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 6px;
}
.bp-user-dd-name {
  font-weight: 800;
  color: #111827;
}
.bp-user-dd-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
}
.bp-user-dd-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #374151;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.bp-user-dd-item:hover {
  background: #f3f4f6;
}
.bp-user-dd-item.danger {
  color: #b91c1c;
}
.bp-user-dd-item.danger:hover {
  background: #fef2f2;
}

.nav-item {
  text-decoration: none;
  color: #6b7280;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-item:hover {
  color: #374151;
  background: #f3f4f6;
}

.nav-item.active {
  color: #3b82f6;
  background: #eff6ff;
}

/* Bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-outline {
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* Navigazione date */
.date-navigation {
  display: flex;
  align-items: center;
  gap: 12px;
}

.current-month {
  font-size: 16px;
  font-weight: 500;
  min-width: 120px;
  text-align: center;
}

.app-main {
  flex: 1;
  padding: 0;
  max-width: none;
  margin: 0;
  width: 100%;
}

.tableau-grid {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: visible;
}

.tableau-header-row {
  display: grid;
  grid-template-columns: 200px repeat(auto-fit, minmax(60px, 1fr));
  border-bottom: 2px solid #e5e7eb;
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 20;
}

.room-header {
  padding: 12px 16px;
  font-weight: 600;
  color: #374151;
  border-right: 1px solid #e5e7eb;
  background: #f3f4f6;
  position: sticky;
  left: 0;
  z-index: 21;
}



.date-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 0;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
  z-index: 1;
}

.room-header {
  width: 200px;
  min-width: 200px;
  padding: 16px;
  font-weight: 600;
  border-right: 1px solid #e2e8f0;
  background: #f1f5f9;
  position: sticky;
  left: 0;
  z-index: 21;
}

.date-cell {
  flex: 1;
  min-width: 54px;
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid #e2e8f0;
  font-size: 12px;
}

.date-cell:last-child {
  border-right: none;
}

.date-day {
  font-weight: 600;
  color: #1e293b;
}

.date-number {
  color: #64748b;
  margin-top: 2px;
}

.day-name { text-transform: lowercase; color:#374151; font-weight:600; }
.day-number { font-weight:600; color:#111827; }
.day-month { font-size:11px; color:#6b7280; }

.date-cell.weekend {
  background: #fef2f2;
}

.date-cell.today {
  background: #eff6ff;
  color: #3b82f6;
  border-left: 2px solid #94a3b8;
  border-right: 2px solid #94a3b8;
}

.date-header.today {
  background: #eff6ff;
  border-left: 2px solid #94a3b8;
  border-right: 2px solid #94a3b8;
  border-bottom-color: #94a3b8;
}

.date-cell.weekend:hover {
  background: #fef3c7;
}
.date-cell.selected {
  background: #dbeafe !important;
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}

/* Stili per le pagine */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.page-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

/* Tableau container quando è dentro app-main */
.tableau-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 100%;
}

.tableau-header {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
}

.tableau-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tableau-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.tableau-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tableau-main {
  padding: 0;
  overflow: auto;
  height: calc(100vh - 100px);
}

.tableau-scroll {
  width: max-content;
  min-width: 100%;
  overflow: visible;
}

.month-label {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  white-space: nowrap;
}

/* Dashboard - Lista prenotazioni */
.reservations-table {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 1.6fr 110px 130px 140px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 1.6fr 110px 130px 140px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}

.table-row:hover {
  background: #f9fafb;
}

.service-res-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.service-res-filter {
  min-width: 220px;
  flex: 1 1 260px;
}

.service-res-filter .bp-sub {
  display: block;
  margin-bottom: 6px;
}

.service-res-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.service-res-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.service-res-table .table-header,
.service-res-table .table-row {
  grid-template-columns: 52px minmax(200px, 2fr) 120px 120px 120px 130px minmax(140px, 1.4fr) 110px;
  min-width: 980px;
  align-items: center;
}

.service-res-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-res-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* Dashboard header */
.dashboard-page {
  padding: 16px;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.dashboard-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-left: 8px;
}
.dh-left {
  display: flex;
  align-items: center;
}
.dh-right {
  display: flex;
  gap: 12px;
  align-items: center;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: #f9fafb; border-color: #d1d5db; }
.icon-btn.danger { color: #ef4444; border-color: #fee2e2; }
.icon {
  width: 18px;
  height: 18px;
}

/* Dashboard - overview */
.dash-kpis,
.dash-panels {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.dash-kpi-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.dash-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.dash-kpi-icon svg {
  width: 22px;
  height: 22px;
}
.dash-kpi-icon.green { background: #ecfdf5; color: #059669; }
.dash-kpi-icon.amber { background: #fffbeb; color: #d97706; }
.dash-kpi-icon.purple { background: #f5f3ff; color: #7c3aed; }
.dash-kpi-meta { min-width: 0; }
.dash-kpi-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}
.dash-kpi-value {
  margin-top: 2px;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
}
.dash-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  padding-bottom: 16px;
}
.dash-panel {
  overflow: hidden;
}
.dash-panel-full {
  grid-column: 1 / -1;
}
.dash-panel-body {
  padding: 0;
}
.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #f1f5f9;
  cursor: pointer;
}
.dash-row:hover {
  background: #f9fafb;
}
.dash-row:focus {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}
.dash-row-main { min-width: 0; }
.dash-row-room {
  flex: 0 0 72px;
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #1d4ed8;
  text-align: center;
}
.dash-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-row-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-row-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #e5e7eb;
  color: #374151;
  background: #f9fafb;
}
.dash-chip.ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.dash-row-occ .dash-row-main {
  flex: 1 1 auto;
}
.dash-row-occ .dash-row-title,
.dash-row-occ .dash-row-sub {
  white-space: normal;
}
@media (max-width: 640px) {
  .dash-row-room {
    flex-basis: 60px;
    min-width: 60px;
    padding: 8px 10px;
    font-size: 18px;
  }
}
.dash-chip.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.dash-chip.danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #e5e7eb;
  flex: 0 0 auto;
}
.dash-empty {
  padding: 14px 16px;
  color: #6b7280;
  font-size: 13px;
}
.ps-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ps-day-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid #f1f5f9;
}
.ps-day-main {
  min-width: 0;
}
.ps-day-label {
  font-weight: 700;
  color: #111827;
}
.ps-day-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
}
.ps-day-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ps-day-total {
  min-width: 42px;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: #111827;
}
.ps-day-total.is-alert {
  color: #b91c1c;
}
.ps-day-total.is-ok {
  color: #047857;
}
.ps-day-total.is-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.ps-day-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Segmented tabs */
.segmented-tabs {
  display: flex;
  gap: 8px;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 6px;
  width: fit-content;
  margin-bottom: 16px;
}
.segmented-tabs .tab {
  padding: 8px 16px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
}
.segmented-tabs .tab.active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.tax-shell {
  display: block;
  width: 100%;
}
.tax-tabs {
  width: 100%;
  display: flex;
}
.tax-summary-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.tax-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.tax-summary-main {
  min-width: 0;
}
.tax-summary-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
.tax-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tax-summary-item {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}
.tax-summary-value {
  margin-top: 4px;
  font-weight: 700;
  color: #111827;
}
.tax-panel {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}
.tax-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.tax-search-card {
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}
.tax-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.tax-search-action {
  display: flex;
  align-items: end;
  gap: 8px;
}
.tax-search-action .btn {
  min-width: 120px;
}
.tax-sim-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}
.tax-sim-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.tax-sim-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tax-sim-item {
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
.tax-sim-value {
  margin-top: 4px;
  font-weight: 700;
  color: #111827;
}
.tax-results-card {
  margin-top: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.tax-empty-state {
  padding: 22px 10px;
}
.tax-results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.tax-results-counter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tax-tree-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tax-tree-group {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.tax-tree-parent {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(0, 2fr);
  gap: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}
.tax-tree-parent-main {
  min-width: 0;
}
.tax-tree-title {
  font-weight: 700;
  color: #111827;
}
.tax-tree-parent-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tax-tree-meta-item {
  min-width: 0;
}
.tax-tree-meta-value {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  color: #111827;
  font-weight: 600;
}
.tax-tree-children {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 14px 30px;
  background: #fff;
}
.tax-tree-child {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(220px, 1.8fr) repeat(3, minmax(120px, 1fr));
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #fafbfc;
  cursor: pointer;
}
.tax-tree-child::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 12px;
  border-top: 1px solid #cbd5e1;
}
.tax-tree-check {
  display: flex;
  justify-content: center;
}
.tax-tree-child-main,
.tax-tree-child-meta {
  min-width: 0;
}
.tax-tree-child-title {
  font-weight: 600;
  color: #111827;
}
.tax-export-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tax-export-foot-main {
  min-width: 0;
}
.tax-export-actions {
  display: flex;
  gap: 8px;
}

/* Config panel */
.config-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-top: 16px;
}
#config-card,
#reservations-card,
#settings-card {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.config-head {
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.config-head .title { font-size: 20px; font-weight: 600; color: #111827; }
.config-head .subtitle { font-size: 14px; color: #6b7280; }
.config-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
}
.config-tab {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
}
.config-tab.active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}
.inner-card {
  margin: 0 16px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.price-tabs {
  display: flex;
  gap: 8px;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 6px;
  width: fit-content;
  margin: 12px 16px;
}
.price-tab {
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
}
.price-tab.active {
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.inner-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.inner-head .title { font-size: 16px; font-weight: 600; color: #111827; }
.inner-head .subtitle { font-size: 13px; color: #6b7280; }
.inner-head .actions { display: flex; gap: 8px; }
.inner-head.inner-head-pricelist {
  flex-wrap: wrap;
  gap: 12px;
}
.inner-head.inner-head-pricelist .price-tabs {
  margin: 0;
}
.config-table .table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 90px 140px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  color: #374151;
}
.config-table .table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 90px 140px;
  padding: 12px 16px;
  border-top: 1px solid #f3f4f6;
}
.color-cell { display: flex; align-items: center; gap: 8px; }
.color-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #e5e7eb; }
.action-cell { display: flex; gap: 10px; }
/* Reservations card */
.reservations-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  border: 1px solid #e5e7eb;
}
.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.card-head .title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}
.card-head .subtitle {
  font-size: 14px;
  color: #6b7280;
}

/* Table cells */
.client-name { font-weight: 600; color: #111827; }
.client-sub { color: #6b7280; font-size: 13px; }
.room-number { font-weight: 700; color: #111827; }
.room-type { color: #6b7280; font-size: 12px; }
.period-line { display: flex; align-items: center; gap: 8px; color: #374151; }
.type-badge { display:flex; align-items:center; gap:8px; font-size:14px; color:#374151; }
.type-badge .dot { width:8px; height:8px; border-radius:50%; display:inline-block; }
.type-individual .dot { background:#10b981; }
.type-agency .dot { background:#ef4444; }
.code-pill { display:inline-block; padding:6px 10px; border-radius:999px; font-size:12px; border:1px solid #e5e7eb; color:#374151; background:#f9fafb; }
.code-tag { background:#eef2ff; border-color:#c7d2fe; color:#3730a3; }
.code-na { background:#f3f4f6; color:#6b7280; }
/* accentua il codice in testata modale */
.modal-head .code-pill { font-size: 15px; padding: 8px 12px; border-width: 2px; }
.cell-status { color:#111827; font-weight:500; }
.cell-status .dot { width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:8px; }
.status-confirmed { color:#10b981; }
.status-confirmed .dot { background:#10b981; }
.status-pending { color:#f59e0b; }
.status-pending .dot { background:#f59e0b; }
.status-cancelled { color:#ef4444; }
.status-cancelled .dot { background:#ef4444; }
.cell-actions { display:flex; gap:10px; align-items:center; }
.cell-actions .icon-btn { width:30px; height:30px; }

.table-row:last-child {
  border-bottom: none;
}

.guest-name {
  font-weight: 600;
  color: #374151;
  margin-bottom: 2px;
}

.guest-phone {
  font-size: 12px;
  color: #6b7280;
}

.date-range {
  font-size: 14px;
  color: #374151;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.confirmed {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.col-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 4px 8px;
  font-size: 12px;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

@media (max-width: 900px) {
  .service-res-actions {
    justify-content: flex-start;
  }
}

/* Righe camere */
.room-row {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  min-height: 60px;
}

.room-info {
  width: 200px;
  min-width: 200px;
  padding: 16px;
  border-right: 1px solid #e2e8f0;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: sticky;
  left: 0;
  z-index: 12;
}

.room-number {
  font-weight: 600;
  color: #1e293b;
}

.room-type {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.day-cell {
  flex: 1;
  min-width: 80px;
  border-right: 1px solid #e2e8f0;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
}

.day-cell:hover {
  background: #f8fafc;
}

.day-cell:last-child {
  border-right: none;
}

.day-cell.weekend {
  background: #fefefe;
}

.day-cell.selected {
  background: #dbeafe !important;
}
.day-cell.drop-hover {
  outline: 2px dashed #60a5fa;
  outline-offset: -2px;
  background: #eff6ff;
}
.day-cell.invalid-drop {
  outline: 2px solid #ef4444;
  outline-offset: -2px;
  background: #fee2e2;
}

/* Prenotazioni */
.reservation {
  position: absolute;
  top: 4px;
  height: 52px;
  background: #3b82f6;
  color: white;
  border-radius: 4px;
  padding: 8px;
  padding-left: 22px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 5;
  overflow: visible;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
}

.reservation:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.reservation.dragging {
  opacity: 0.85;
  box-shadow: 0 0 0 3px #f59e0b, 0 8px 16px rgba(0,0,0,0.25);
  cursor: grabbing;
}

.reservation.confirmed {
  background: #10b981;
}

.reservation.pending {
  background: #f59e0b;
}

.reservation.cancelled {
  background: #ef4444;
}

/* Tooltip prenotazione */
.res-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(15,23,42,0.15);
  padding: 10px 12px;
  min-width: 180px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease, transform .12s ease;
  z-index: 30;
}
.reservation:hover .res-tooltip {
  opacity: 1;
  transform: none;
}
.res-tooltip.res-tooltip-show { opacity: 1; }
.res-tooltip .tip-line {
  font-size: 12px;
  color: #334155;
  white-space: nowrap;
}
.res-tooltip .tip-line + .tip-line {
  margin-top: 4px;
}
.res-tooltip .tip-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #111827;
}
.res-tooltip .tip-name { font-weight: 600; }
.res-tooltip .tip-code {
  font-weight: 700;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 2px 6px;
}
.res-tooltip .tip-notes {
  font-size: 12px;
  color: #475569;
  margin-top: 6px;
  white-space: normal;
}


.reservation-guest {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reservation-dates {
  font-size: 10px;
  opacity: 0.9;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cards */
.bp-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.bp-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1e293b;
}
.bp-head-prices {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bp-head-prices .bp-title {
  margin-bottom: 0;
}
.bp-head-prices .price-tabs {
  margin: 0;
}

/* Tables */
.bp-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.bp-table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #475569;
  font-size: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.bp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.bp-table tr:hover {
  background: #f8fafc;
}

.bp-table tr:last-child td {
  border-bottom: none;
}

/* Drag and Drop per Camere */
.room-sort-row {
  cursor: move;
  transition: all 0.2s ease;
}

.room-sort-row:hover {
  background: #f1f5f9 !important;
}

.room-sort-row.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

.room-sort-row.drag-over {
  border-top: 3px solid #3b82f6;
  background: #eff6ff !important;
}

.room-order-handle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.drag-handle {
  color: #9ca3af;
  font-size: 16px;
  cursor: grab;
  user-select: none;
  line-height: 1;
}

.drag-handle:active {
  cursor: grabbing;
}

.order-number {
  background: #e5e7eb;
  color: #374151;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  min-width: 20px;
  text-align: center;
}

/* Badges */
.bp-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  min-width: 60px;
  justify-content: center;
}
.bp-badge.green { background:#d1fae5; color:#065f46; }
.bp-badge.blue { background:#dbeafe; color:#1e40af; }
.bp-badge.yellow { background:#fef3c7; color:#92400e; }

/* Form elements */
.bp-form-group {
  margin-bottom: 16px;
}

.bp-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.bp-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.bp-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bp-toolbar { display:flex; gap:8px; align-items:center; margin-bottom:10px; }
.bp-grid {
  display: grid; gap: 12px;
}
.bp-grid-2 { grid-template-columns: 1fr 1fr; }
.bp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bp-sub { font-size: 13px; color: var(--bp-muted); }

.bp-switch {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 26px;
  align-items: center;
}
.bp-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.bp-slider {
  position: absolute;
  inset: 0;
  background: #e5e7eb;
  border-radius: 999px;
  transition: background 0.2s;
}
.bp-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.bp-switch input:checked + .bp-slider {
  background: #22c55e;
}
.bp-switch input:checked + .bp-slider::before {
  transform: translateX(20px);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-page {
    padding: 12px;
  }
  .dash-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .dash-panels {
    grid-template-columns: 1fr;
  }
  .dash-panel-full {
    grid-column: auto;
  }
  .ps-card-body {
    grid-template-columns: 1fr;
  }
  .tableau-header {
    padding: 1rem;
  }
  
  .tableau-header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .tableau-controls {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .date-navigation {
    justify-content: center;
  }
  
  .tableau-header-row,
  .room-row {
    grid-template-columns: 150px repeat(auto-fit, minmax(50px, 1fr));
  }
  
  .room-header,
  .room-info {
    padding: 8px 12px;
  }
  
  .date-header {
    padding: 6px 2px;
    min-width: 50px;
  }
  
  .day-name {
    font-size: 10px;
  }
  
  .day-number {
    font-size: 12px;
  }
  
  .room-name {
    font-size: 13px;
  }
  
  .room-type {
    font-size: 11px;
  }
  
  .date-cell {
    min-height: 50px;
  }
  
  .bp-container {
    grid-template-areas: 
      "header"
      "nav"
      "main";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }
  
  .bp-nav {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .bp-nav-content {
    display: flex;
    overflow-x: auto;
    padding: 12px 0;
  }
  
  .bp-nav-link {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  
  .bp-nav-link:hover,
  .bp-nav-link.active {
    border-left: none;
    border-bottom-color: #3b82f6;
  }
  
  .bp-nav-section {
    display: none;
  }
  .bp-grid-2,
  .bp-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .dash-kpis {
    grid-template-columns: 1fr;
  }
}
.bp-tableau {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
}
.bp-rooms {
  background: var(--bp-panel); border: 1px solid var(--bp-border); border-radius: 10px; padding: 10px;
}
.bp-rooms .room { padding: 8px 6px; border-bottom: 1px solid var(--bp-border); }
.bp-rooms .room:last-child { border-bottom: 0; }
.bp-timeline {
  background: var(--bp-panel); border: 1px solid var(--bp-border); border-radius: 10px; padding: 10px;
}
.bp-days { display: grid; gap: 6px; }
.bp-days .day { text-align: center; font-size: 12px; color: var(--bp-muted); }
.bp-reservations {
  position: relative;
  margin-top: 8px;
}
.bp-reservation {
  position: absolute;
  height: 28px; line-height: 28px; padding: 0 10px;
  border-radius: 8px; color: #111827; font-size: 13px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bp-reservation.status-confirmed { background: #dbeafe; border: 1px solid #93c5fd; }
.bp-reservation.status-pending { background: #fef3c7; border: 1px solid #fcd34d; }
.bp-reservation.status-cancelled { background: #fee2e2; border: 1px solid #fca5a5; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(15,23,42,0.35);
  padding: 20px 24px;
  width: 520px;
  max-width: 100%;
}
.modal-head {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #111827;
}
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.form-label {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 4px;
}
.form-input,
.form-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
  resize: vertical;
}
.form-input:focus,
.form-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb33;
}
.form-input.error,
.form-textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px #ef444433;
}
.form-error {
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.2;
  min-height: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row.form-row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.guest-card-modal {
  width: 1080px;
  max-width: min(1080px, calc(100vw - 24px));
}

.guest-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guest-card-type-select {
  width: min(280px, 42vw);
  min-width: 220px;
}

.guest-card-section {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fafafa;
}

.guest-card-section-title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #e11d48;
}

.guest-card-grid {
  display: grid;
  gap: 12px 16px;
}

.guest-card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guest-card-span-2 {
  grid-column: span 2;
}

.guest-card-static {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  padding: 8px 10px;
  font-size: 14px;
  color: #111827;
}

@media (max-width: 900px) {
  .guest-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .guest-card-type-select {
    width: 100%;
    min-width: 0;
  }

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

@media (max-width: 640px) {
  .guest-card-grid-4 {
    grid-template-columns: 1fr;
  }

  .guest-card-span-2 {
    grid-column: auto;
  }
}

.reservation-modal {
  width: 640px;
  max-width: min(640px, calc(100vw - 24px));
}

@media (max-width: 720px) {
  .reservation-modal {
    width: min(100vw - 16px, 640px);
    padding: 18px;
  }
}

.bp-toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
  pointer-events: none;
}
.bp-toast {
  min-width: 320px;
  max-width: 520px;
  padding: 18px 18px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: #111827;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.20);
  white-space: pre-line;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: auto;
}
.bp-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.bp-toast.success {
  border-left: 6px solid #22c55e;
}
.bp-toast.error {
  border-left: 6px solid #ef4444;
}
.bp-toast.info {
  border-left: 6px solid #3b82f6;
}

@media (max-width: 768px) {
  .tax-summary-head,
  .tax-sim-head,
  .tax-panel-head,
  .tax-results-toolbar,
  .tax-export-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .tax-summary-status {
    align-items: flex-start;
    text-align: left;
  }
  .tax-summary-grid,
  .tax-sim-grid,
  .tax-tree-parent-meta {
    grid-template-columns: 1fr 1fr;
  }
  .tax-search-grid,
  .tax-tree-parent,
  .tax-tree-child {
    grid-template-columns: 1fr;
  }
  .tax-search-action .btn,
  .tax-export-actions .btn {
    width: 100%;
  }
  .tax-tree-children {
    padding-left: 18px;
  }
  .tax-tree-child::before {
    display: none;
  }
  .form-row.form-row-4 {
    grid-template-columns: 1fr 1fr;
  }
}

.web-checkin-body {
  min-height: 100vh;
  background: #f8fafc;
}

.web-checkin-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.web-checkin-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.web-checkin-loading,
.web-checkin-state {
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  text-align: center;
}

.web-checkin-state.error,
.web-checkin-banner.error {
  background: #fef2f2;
  color: #b91c1c;
}

.web-checkin-banner.success,
.web-checkin-state.success {
  background: #ecfdf5;
  color: #065f46;
}

.web-checkin-banner.info {
  background: #eff6ff;
  color: #1d4ed8;
}

.web-checkin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.web-checkin-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.web-checkin-top h1 {
  margin: 6px 0 8px;
  font-size: 32px;
  line-height: 1.1;
  color: #111827;
}

.web-checkin-lead {
  max-width: 720px;
  color: #475569;
}

.web-checkin-code {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700;
  white-space: nowrap;
}

.web-checkin-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
}

.web-checkin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.web-checkin-summary > div {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.web-checkin-summary span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.web-checkin-summary strong {
  color: #111827;
}

.web-checkin-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.web-checkin-step {
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  text-align: left;
  cursor: pointer;
}

.web-checkin-step span,
.web-checkin-step strong {
  display: block;
}

.web-checkin-step span {
  font-size: 12px;
  color: #64748b;
}

.web-checkin-step strong {
  margin-top: 4px;
  font-size: 14px;
}

.web-checkin-step.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.web-checkin-step.is-complete {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.web-checkin-count {
  max-width: 180px;
}

.web-checkin-guest-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.web-checkin-guest-card.is-complete {
  border-color: #86efac;
  background: #f0fdf4;
}

.web-checkin-guest-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.web-checkin-guest-head h3 {
  margin: 0;
  color: #111827;
}

.web-checkin-guest-head p {
  margin-top: 4px;
  color: #64748b;
}

.web-checkin-guest-status {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.web-checkin-guest-card.is-complete .web-checkin-guest-status {
  background: #dcfce7;
  color: #166534;
}

.web-checkin-guest-card.is-active {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.web-checkin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.web-checkin-span-2 {
  grid-column: span 2;
}

.web-checkin-mini {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.web-checkin-textarea {
  min-height: 110px;
  resize: vertical;
}

.web-checkin-step-actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.web-checkin-step-indicator {
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.web-checkin-actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .web-checkin-shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 12px;
  }

  .web-checkin-card {
    padding: 18px;
  }

  .web-checkin-top,
  .web-checkin-step-actions,
  .web-checkin-actions,
  .web-checkin-guest-head {
    flex-direction: column;
    align-items: stretch;
  }

  .web-checkin-summary,
  .web-checkin-grid {
    grid-template-columns: 1fr;
  }

  .web-checkin-span-2 {
    grid-column: auto;
  }

  .web-checkin-count,
  .web-checkin-step,
  .web-checkin-step-actions .btn,
  .web-checkin-actions .btn {
    max-width: none;
    width: 100%;
  }
}
