/* Weylora - custom stiller */

body { background: #f5f6fa; }

/* KPI kartlari */
.kpi { border-left: 4px solid; }
.kpi-value { font-size: 1.9rem; font-weight: 700; line-height: 1.2; margin: 4px 0; }
.kpi-sub { color: #6c757d; font-size: 0.85rem; }

/* Rezervasyon durumu rozetleri */
.status-confirmed   { background:#0d6efd; color:#fff; }
.status-checked_in  { background:#198754; color:#fff; }
.status-checked_out { background:#6c757d; color:#fff; }
.status-cancelled   { background:#dc3545; color:#fff; }
.status-no_show     { background:#fd7e14; color:#fff; }

/* Oda tipi renkleri (accent) */
.type-double { background:#e7f1ff; }
.type-triple { background:#fff4e5; }
.type-quad   { background:#e6f7ee; }
.type-king   { background:#f8e6ff; }

/* ============================================================================
   TAKVIM
   ============================================================================ */
.calendar-wrap {
  overflow-x: auto;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #fff;
}

.calendar-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-size: 12px;
}

.calendar-table th,
.calendar-table td {
  border: 1px solid #e0e4ea;
  padding: 0;
  min-width: 46px;
  height: 44px;
  text-align: center;
  vertical-align: middle;
}

.calendar-table thead th {
  background: #212529;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 4px 2px;
  line-height: 1.1;
}

.calendar-table thead th .dow { font-size: 10px; opacity: 0.8; }
.calendar-table thead th .dom { font-size: 16px; font-weight: 700; }
.calendar-table thead th .mon { color: #adb5bd !important; }
.calendar-table thead th.weekend { background: #495057; }
.calendar-table thead th.today-col { background: #ffc107; color: #212529; }

.calendar-table .room-header {
  background: #212529;
  color: #fff;
  position: sticky;
  left: 0;
  z-index: 6;
  min-width: 100px;
}

.calendar-table .room-cell {
  position: sticky;
  left: 0;
  z-index: 4;
  padding: 6px 8px;
  text-align: left;
  min-width: 100px;
  border-right: 2px solid #adb5bd;
}
.calendar-table .room-cell .room-num { font-weight: 700; font-size: 14px; }
.calendar-table .room-cell .room-type { font-size: 10px; color: #6c757d; }

.calendar-table .separator td {
  height: 4px;
  background: #dee2e6;
  border: none;
}

/* Hucreler */
.cell { position: relative; }
.cell-empty { background: #fff; }
.cell-empty.today-cell { background: #fff8e1; }
.cell-empty.weekend { background: #f8f9fa; }

.cell-empty-link {
  display: block;
  width: 100%;
  height: 100%;
  color: transparent;
  text-decoration: none;
  padding: 12px 0;
}
.cell-empty-link:hover {
  background: #cfe2ff;
  color: #0d6efd;
  font-weight: 700;
}

.cell-link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 4px 6px;
  color: #fff;
  text-decoration: none;
  text-align: left;
  overflow: hidden;
}
.cell-link:hover { color: #fff; opacity: 0.85; }

.cell-guest { font-weight: 600; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.cell-meta { font-size: 9px; opacity: 0.85; }

.cell-confirmed   { background:#0d6efd; }
.cell-confirmed   .cell-link { color:#fff; }
.cell-checked_in  { background:#198754; }
.cell-checked_in  .cell-link { color:#fff; }
.cell-checked_out { background:#6c757d; }
.cell-checked_out .cell-link { color:#fff; }
.cell-cont        { /* continuation - just colored bar */ }

/* Yeni: tip bazli musaitlik hucreleri */
.avail-low  { background:#d1e7dd; }   /* bol yer */
.avail-mid  { background:#fff3cd; }   /* orta */
.avail-hi   { background:#f8d7da; }   /* az */
.avail-full { background:#dc3545; color:#fff; }
.avail-full .cell-link { color:#fff; }
.avail-full .cell-occ .lbl,
.avail-full .cell-free .lbl { color:#ffe1e4; }

.cell .cell-link {
  padding: 3px 4px;
  text-align: center;
  color: #212529;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  height: 100%;
}
.cell .cell-link:hover { background: rgba(0,0,0,0.08); }

.cell-occ, .cell-free {
  font-size: 11px;
  line-height: 1.15;
  display: flex;
  justify-content: space-between;
  padding: 0 3px;
}
.cell-occ { border-bottom: 1px dashed rgba(0,0,0,0.15); }
.cell-occ .lbl, .cell-free .lbl { color: #6c757d; font-size: 9px; font-weight: 500; text-transform: uppercase; }
.cell-occ strong { color: #b02a37; font-weight: 700; }
.cell-free strong { color: #146c43; font-weight: 700; }
.avail-full .cell-occ strong { color: #fff; }
.avail-full .cell-free strong { color: #ffd1d5; }

/* Eski: geri uyumluluk icin bir sey kalsin diye korunuyor ama artik kullanilmiyor */
.avail-free { font-size: 16px; font-weight: 700; line-height: 1.1; }
.avail-used { font-size: 10px; opacity: 0.7; }

.calendar-legend .badge { padding: 6px 10px; margin-right: 6px; }

/* ============================================================================
   TAKVIM TFOOT - Toplam Satilan / Musait Oda
   ============================================================================ */
.calendar-table tfoot tr { position: sticky; bottom: 0; z-index: 3; }
.calendar-table tfoot .foot-label {
  background: #212529 !important;
  color: #fff !important;
  border-right: 2px solid #adb5bd;
}
.calendar-table tfoot .foot-label .room-num { color: #fff; font-weight: 700; }
.calendar-table tfoot .foot-label .room-type { color: #adb5bd; }

.calendar-table tfoot .foot-cell {
  font-size: 14px;
  font-weight: 700;
  padding: 6px 0;
}
.calendar-table tfoot .foot-cell-sold {
  background: #f8d7da;
  color: #842029;
  border-top: 2px solid #adb5bd;
}
.calendar-table tfoot .foot-cell-free {
  background: #d1e7dd;
  color: #0f5132;
}
.calendar-table tfoot .foot-cell.today-cell { outline: 2px solid #ffc107; outline-offset: -2px; }
.calendar-table tfoot .foot-cell.weekend { filter: brightness(0.96); }

/* ============================================================================
   PACE TABLE (Reports History + Forecast)
   ============================================================================ */
.pace-table tbody tr.row-past { background: #f8f9fa; color: #6c757d; }
.pace-table tbody tr.row-past strong { color: #495057; }
.pace-table tbody tr.row-today { background: #fff8e1; font-weight: 600; }
.pace-table tbody tr.row-today td { border-top: 2px solid #ffc107; border-bottom: 2px solid #ffc107; }
.pace-table tbody tr.row-future { background: #fff; }

.pace-bar {
  position: relative;
  background: #e9ecef;
  border-radius: 3px;
  height: 18px;
  min-width: 70px;
  overflow: hidden;
  margin-left: auto;
}
.pace-bar .pace-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #198754, #ffc107 60%, #dc3545 90%);
  border-radius: 3px;
}
.pace-bar span {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  color: #212529;
  display: block;
  text-align: center;
  line-height: 18px;
  text-shadow: 0 0 3px rgba(255,255,255,0.9);
}
