.tff-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  box-sizing: border-box;
}

.tff-wrap *, .tff-wrap *::before, .tff-wrap *::after { box-sizing: border-box; }

.tff-app {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.tff-wrap[data-tff-mode="admin"] .tff-app {
  max-width: 420px;
}

.tff-wrap[data-tff-mode="admin"].tff-admin-logged-in .tff-app {
  max-width: 920px;
}

.tff-ford-banner {
  width: 100%;
  min-height: 100px;
  background: #00095B;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tff-ford-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent, transparent 40px, rgba(255,255,255,0.03) 40px, rgba(255,255,255,0.03) 80px);
}

.tff-ford-banner img.tff-logo-img {
  max-height: 90px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
  padding: 14px 20px;
}

.tff-ford-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
  padding: 24px;
}

.tff-ford-oval {
  width: 68px;
  height: 44px;
  border: 2.5px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tff-ford-oval span {
  color: white;
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -1px;
}

.tff-ford-name {
  color: white;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.tff-nav-tabs { display: flex; background: #00095B; }

.tff-nav-tab {
  padding: 11px 22px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  user-select: none;
}

.tff-nav-tab:hover { color: rgba(255,255,255,0.85); }
.tff-nav-tab.active { color: white; border-bottom-color: #4A9EFF; }

.tff-body { padding: 22px; }
.tff-screen { display: none; }
.tff-screen.active { display: block; }

.tff-form-group { margin-bottom: 14px; }

.tff-form-group label {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 5px;
  font-weight: 500;
}

.tff-form-group input,
.tff-form-group select,
.tff-form-group textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  font-size: 13px;
  color: #1a1a1a;
  background: #fafafa;
  font-family: inherit;
  transition: border-color 0.15s;
}

.tff-form-group input:focus,
.tff-form-group select:focus,
.tff-form-group textarea:focus {
  outline: none;
  border-color: #1B6FD8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27,111,216,0.12);
}

.tff-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tff-btn {
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #1a1a1a;
  transition: all 0.15s;
  font-family: inherit;
}

.tff-btn:hover { background: #f4f5f7; }
.tff-btn:active {
  background: #e8eaee;
  color: #1a1a1a;
  border-color: #b0b8c4;
}
.tff-btn:focus { outline: none; }
.tff-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 9, 91, 0.18);
  border-color: #00095B;
}
.tff-btn-primary { background: #00095B; color: white; border-color: #00095B; }
.tff-btn-primary:hover { background: #0015A0; border-color: #0015A0; }
.tff-btn-danger { background: #C0392B; color: white; border-color: #C0392B; padding: 6px 12px; font-size: 12px; }
.tff-btn-danger:hover { background: #962d22; }
.tff-btn-block { width: 100%; margin-top: 6px; }
.tff-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.tff-alert { padding: 10px 14px; border-radius: 7px; font-size: 13px; margin-bottom: 12px; }
.tff-alert-success { background: #EAF5EA; color: #1A6B2A; border: 1px solid #A8D5A8; }
.tff-alert-err { background: #FEF2F2; color: #9B1C1C; border: 1px solid #FECACA; }

.tff-step-indicator { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }

.tff-step {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  background: #f0f2f5;
  color: #888;
  border: 1px solid #e0e0e0;
}

.tff-step.done { background: #EBF4FF; color: #1B5FAA; border-color: #B5D4F4; }
.tff-step.current { background: #00095B; color: white; border-color: #00095B; }

.tff-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.tff-day-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 18px; }

.tff-day-btn {
  padding: 9px 4px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #fafafa;
  cursor: pointer;
  text-align: center;
  font-size: 11px;
  color: #555;
  transition: all 0.15s;
  user-select: none;
}

.tff-day-btn:hover { border-color: #1B6FD8; color: #1B6FD8; background: #EBF4FF; }
.tff-day-btn.selected { background: #00095B; color: white; border-color: #00095B; }
.tff-day-btn strong { display: block; font-size: 16px; color: inherit; margin-bottom: 2px; }

.tff-time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }

.tff-slot {
  padding: 8px 4px;
  border-radius: 7px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.tff-slot.available { background: #EAF5EA; color: #1A6B2A; border-color: #A8D5A8; }
.tff-slot.available:hover { opacity: 0.75; }
.tff-slot.half { background: #FFF8E1; color: #8B6300; border-color: #F5C518; }
.tff-slot.half:hover { opacity: 0.75; }
.tff-slot.full { background: #FEF2F2; color: #9B1C1C; cursor: not-allowed; border-color: #FECACA; }
.tff-slot.selected-slot { background: #00095B; color: white; border-color: #00095B; }
.tff-slot strong { display: block; font-size: 12px; margin-bottom: 2px; }

.tff-legend { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.tff-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #666; }
.tff-legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.tff-dot-avail { background: #EAF5EA; border: 1px solid #A8D5A8; }
.tff-dot-half { background: #FFF8E1; border: 1px solid #F5C518; }
.tff-dot-full { background: #FEF2F2; border: 1px solid #FECACA; }

.tff-confirm-card {
  background: #fafafa;
  border: 1px solid #B5D4F4;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.tff-confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  border-bottom: 1px solid #eee;
}

.tff-confirm-row:last-child { border: none; }
.tff-confirm-row span:first-child { color: #666; }
.tff-confirm-row span:last-child { color: #1a1a1a; font-weight: 500; text-align: right; max-width: 60%; }

.tff-user-info {
  background: #f0f2f5;
  border-radius: 7px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #555;
}

.tff-user-info strong { color: #1a1a1a; font-size: 13px; }

/* —— Panel concesionario —— */
.tff-admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tff-admin-title {
  margin: 0;
  border: none;
  padding: 0;
}

.tff-btn-ghost {
  font-size: 12px;
  padding: 6px 12px;
  background: transparent;
  border-color: #d0d5dd;
  color: #555;
}

.tff-btn-ghost:hover {
  background: #f4f5f7;
  color: #1a1a1a;
}

.tff-week-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8f9fc 0%, #eef2f8 100%);
  border: 1px solid #e3e8f0;
  border-radius: 12px;
}

.tff-week-range {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 160px;
}

.tff-week-range strong {
  font-size: 15px;
  color: #00095B;
  font-weight: 600;
}

.tff-week-stats {
  font-size: 11px;
  color: #6b7280;
}

.tff-week-nav {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #00095B;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
}

.tff-week-nav:hover {
  border-color: #00095B;
  background: #00095B;
  color: #fff;
}

.tff-week-nav-today {
  width: auto;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
}

.tff-week-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.tff-week-day {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 9, 91, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tff-week-day.is-today {
  border-color: #4A9EFF;
  box-shadow: 0 4px 16px rgba(74, 158, 255, 0.15);
}

.tff-week-day-head {
  padding: 12px 12px 10px;
  background: linear-gradient(180deg, #00095B 0%, #001580 100%);
  color: #fff;
}

.tff-week-day.is-today .tff-week-day-head {
  background: linear-gradient(180deg, #1B6FD8 0%, #00095B 100%);
}

.tff-week-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.tff-week-day-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.tff-week-day-date {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.tff-week-today-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 2px 7px;
}

.tff-week-day-list {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  min-width: 0;
}

.tff-week-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
}

.tff-week-event {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: left;
  border: 1px solid #dbe4f4;
  border-left: 3px solid #00095B;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
  padding: 10px 10px 9px;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.tff-week-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 9, 91, 0.1);
  border-color: #4A9EFF;
}

.tff-week-event-time {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #00095B;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tff-week-event-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tff-week-event-meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tff-week-day-foot {
  padding: 8px 12px;
  border-top: 1px solid #eef1f6;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: #fafbfc;
  text-align: center;
}

.tff-week-hint {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 12px;
  text-align: center;
}

.tff-cal-view-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.tff-cal-view-tab {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: #666;
  background: #f4f5f7;
  border: 1px solid #e0e0e0;
  font-family: inherit;
  transition: all 0.15s;
}

.tff-cal-view-tab:hover {
  color: #00095B;
  border-color: #B5D4F4;
}

.tff-cal-view-tab.active {
  background: #EBF4FF;
  color: #00095B;
  border-color: #4A9EFF;
  font-weight: 600;
}

.tff-calendar-scroll {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e5e9f0;
  box-shadow: 0 2px 8px rgba(0, 9, 91, 0.04);
}

.tff-calendar-grid {
  min-width: 520px;
  overflow: hidden;
}

.tff-cal-header {
  display: grid;
  grid-template-columns: 64px repeat(5, 1fr);
  background: linear-gradient(180deg, #00095B 0%, #001580 100%);
}

.tff-cal-header div {
  padding: 10px 6px;
  text-align: center;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.tff-cal-row {
  display: grid;
  grid-template-columns: 64px repeat(5, 1fr);
  border-top: 1px solid #eef1f6;
}

.tff-cal-row:nth-child(even) {
  background: #fafbfc;
}

.tff-cal-time {
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  display: flex;
  align-items: center;
  border-right: 1px solid #eef1f6;
  background: #f8f9fc;
}

.tff-cal-cell {
  border-left: 1px solid #eef1f6;
  padding: 4px;
  min-height: 32px;
  position: relative;
}

.tff-cal-event {
  background: linear-gradient(135deg, #00095B 0%, #001580 100%);
  color: #fff;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: opacity 0.15s;
}

.tff-cal-event:hover {
  opacity: 0.85;
}

.tff-cal-free {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EAF5EA;
  border: 1px solid #A8D5A8;
  margin: 10px auto 0;
}

.tff-month-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f8f9fc 0%, #eef2f8 100%);
  border: 1px solid #e3e8f0;
  border-radius: 12px;
}

.tff-month-label {
  font-size: 15px;
  color: #00095B;
  font-weight: 600;
  min-width: 140px;
  text-align: center;
}

.tff-month-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 16px;
  align-items: start;
}

.tff-month-picker {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 9, 91, 0.04);
}

.tff-month-picker-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8f9fc;
  border-bottom: 1px solid #eef1f6;
}

.tff-month-picker-dow span {
  padding: 8px 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tff-month-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 8px;
}

.tff-month-cell {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  transition: all 0.12s;
  position: relative;
}

.tff-month-cell:hover {
  background: #f0f6ff;
  border-color: #B5D4F4;
}

.tff-month-cell.other-month {
  opacity: 0.35;
}

.tff-month-cell.is-today .tff-month-cell-num {
  color: #1B6FD8;
  font-weight: 800;
}

.tff-month-cell.is-selected {
  background: #00095B;
  border-color: #00095B;
}

.tff-month-cell.is-selected .tff-month-cell-num {
  color: #fff;
}

.tff-month-cell.is-selected .tff-month-cell-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.tff-month-cell-num {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1;
}

.tff-month-cell-badge {
  font-size: 9px;
  font-weight: 700;
  background: #EBF4FF;
  color: #00095B;
  border-radius: 999px;
  padding: 1px 5px;
  line-height: 1.3;
}

.tff-month-day-panel {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 9, 91, 0.04);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.tff-month-day-head {
  padding: 14px 16px;
  background: linear-gradient(180deg, #00095B 0%, #001580 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.tff-month-day-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  max-height: 420px;
  overflow-y: auto;
}

.tff-month-day-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-size: 13px;
  color: #9ca3af;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.tff-admin-nav-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.tff-admin-nav-tab {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: #666;
  background: #f0f2f5;
  border: 1px solid #e0e0e0;
  user-select: none;
}

.tff-admin-nav-tab:hover { color: #00095B; border-color: #B5D4F4; }
.tff-admin-nav-tab.active { background: #00095B; color: #fff; border-color: #00095B; }

.tff-history-list { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; }

.tff-history-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.tff-history-item:hover { border-color: #B5D4F4; background: #f8fbff; }

.tff-history-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.tff-history-item-top strong { font-size: 14px; color: #1a1a1a; }

.tff-history-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.tff-history-badge.cancelled { background: #FEF2F2; color: #9B1C1C; border: 1px solid #FECACA; }
.tff-history-badge.restored { background: #EAF5EA; color: #1A6B2A; border: 1px solid #A8D5A8; }

.tff-history-meta { font-size: 12px; color: #666; line-height: 1.5; }

.tff-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tff-modal-overlay.active { display: flex; }

.tff-modal-box {
  background: white;
  border-radius: 12px;
  padding: 22px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.tff-modal-title { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px; }
.tff-modal-actions { display: flex; gap: 8px; margin-top: 16px; }

.tff-modal-actions .tff-btn {
  flex: 1;
  color: #1a1a1a !important;
  background: #fff !important;
  border: 1px solid #d0d5dd !important;
}

.tff-modal-actions .tff-btn:hover {
  background: #f4f5f7 !important;
  color: #1a1a1a !important;
  border-color: #b0b8c4 !important;
}

.tff-modal-actions .tff-btn:active {
  background: #e2e5ea !important;
  color: #00095B !important;
  border-color: #00095B !important;
  transform: none;
}

.tff-modal-actions .tff-btn:focus,
.tff-modal-actions .tff-btn:focus-visible {
  background: #fff !important;
  color: #1a1a1a !important;
  border-color: #00095B !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 9, 91, 0.18);
}

.tff-modal-actions .tff-btn-primary {
  color: #fff !important;
  background: #00095B !important;
  border-color: #00095B !important;
}

.tff-modal-actions .tff-btn-primary:hover {
  background: #0015A0 !important;
  border-color: #0015A0 !important;
  color: #fff !important;
}

.tff-modal-actions .tff-btn-primary:active {
  background: #000740 !important;
  color: #fff !important;
}

.tff-modal-actions .tff-btn-danger {
  color: #fff !important;
  background: #C0392B !important;
  border-color: #C0392B !important;
}

.tff-modal-actions .tff-btn-danger:hover {
  background: #962d22 !important;
  color: #fff !important;
}

.tff-modal-actions .tff-btn-danger:active {
  background: #7a2419 !important;
  color: #fff !important;
}

.tff-footer { text-align: center; font-size: 11px; color: #aaa; margin-top: 16px; }

.tff-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: #555;
}

.tff-loading-overlay.hidden { display: none; }

.tff-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: #00095B;
  border-radius: 50%;
  animation: tff-spin 0.8s linear infinite;
}

@keyframes tff-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .tff-grid2 { grid-template-columns: 1fr; }
  .tff-time-grid { grid-template-columns: repeat(3, 1fr); }
  .tff-day-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .tff-week-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tff-month-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .tff-week-board {
    grid-template-columns: 1fr;
  }

  .tff-week-toolbar {
    flex-wrap: wrap;
  }

  .tff-week-range {
    order: -1;
    width: 100%;
    margin-bottom: 4px;
  }
}

.tff-stats-period {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tff-stats-range {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 14px;
}

.tff-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.tff-stat-card {
  background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
  border: 1px solid #dbe4f4;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}

.tff-stat-card span {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 6px;
}

.tff-stat-card strong {
  font-size: 24px;
  color: #00095B;
  line-height: 1;
}

.tff-stats-motivos-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  overflow: hidden;
}

.tff-stats-motivos-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid #eef1f6;
  font-size: 13px;
}

.tff-stats-motivos-list li:first-child {
  border-top: none;
}

.tff-stats-motivos-list li span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tff-stats-motivos-list li strong {
  color: #00095B;
}

.tff-stats-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tff-btn-sm {
  padding: 7px 12px;
  font-size: 12px;
}

.tff-stats-charts-wrap {
  margin-top: 20px;
  display: grid;
  gap: 18px;
}

.tff-chart-block {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  padding: 14px;
}

.tff-chart-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.tff-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 11px;
  color: #6b7280;
}

.tff-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
}

.tff-legend-dot--reservas { background: #00095B; }
.tff-legend-dot--cancelados { background: #dc2626; }

.tff-chart-row {
  display: grid;
  grid-template-columns: 52px 1fr 48px;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.tff-chart-row--dual {
  grid-template-columns: 52px 1fr 64px;
}

.tff-chart-label {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
}

.tff-chart-label--wide {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tff-chart-track {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tff-chart-bar {
  height: 12px;
  border-radius: 4px;
  min-width: 2px;
  transition: width 0.25s ease;
}

.tff-chart-bar--reservas { background: linear-gradient(90deg, #00095B, #1e3a8a); }
.tff-chart-bar--cancelados { background: linear-gradient(90deg, #dc2626, #ef4444); }
.tff-chart-bar--motivo { background: linear-gradient(90deg, #0f766e, #14b8a6); }

.tff-chart-value {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  text-align: right;
}

.tff-stats-empty {
  font-size: 13px;
  color: #888;
  text-align: center;
  padding: 20px 0;
  margin: 0;
}
