:root {
      --body-bg: #0f172a;
      --body-text: #e5e7eb;
  
      --sidebar-bg: #020617;
      --sidebar-border: rgba(148, 163, 184, .14);
  
      --main-bg: #0f172a;
  
      --header-bg: rgba(15, 23, 42, .9);
      --header-border: rgba(148, 163, 184, .14);
  
      --card-bg: rgba(15, 23, 42, .92);
      --card-border: rgba(148, 163, 184, .14);
      --card-shadow: rgba(0, 0, 0, .22);
  
      --text-primary: #ffffff;
      --text-secondary: #94a3b8;
      --text-muted: #64748b;
  
      --input-bg: #020617;
      --input-border: #334155;
      --input-text: #f8fafc;
  
      --table-border: rgba(148, 163, 184, .14);
  
      --modal-bg: #0f172a;
  
      --nav-hover: rgba(148, 163, 184, .12);
  }
  
  body.theme-light {
      --body-bg: #f4f7fb;
      --body-text: #0f172a;
  
      --sidebar-bg: #ffffff;
      --sidebar-border: rgba(15, 23, 42, .10);
  
      --main-bg: #f4f7fb;
  
      --header-bg: rgba(255, 255, 255, .92);
      --header-border: rgba(15, 23, 42, .10);
  
      --card-bg: #ffffff;
      --card-border: rgba(15, 23, 42, .10);
      --card-shadow: rgba(15, 23, 42, .08);
  
      --text-primary: #0f172a;
      --text-secondary: #475569;
      --text-muted: #64748b;
  
      --input-bg: #ffffff;
      --input-border: #cbd5e1;
      --input-text: #0f172a;
  
      --table-border: rgba(15, 23, 42, .10);
  
      --modal-bg: #ffffff;
  
      --nav-hover: rgba(15, 23, 42, .06);
  }
  
  /*=============================================
  GENERAL
  =============================================*/
  
  * {
      box-sizing: border-box;
  }
  
  body {
      margin: 0;
      background: var(--body-bg);
      color: var(--body-text);
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      transition: background .25s ease, color .25s ease;
  }
  
  a {
      text-decoration: none;
  }
  
  /*=============================================
  LOGIN
  =============================================*/
  
  .login-wrapper {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 24px;
      background:
          radial-gradient(circle at top left, rgba(147, 51, 234, .35), transparent 35%),
          radial-gradient(circle at bottom right, rgba(37, 99, 235, .35), transparent 35%),
          #020617;
  }
  
  .login-card {
      width: 100%;
      max-width: 420px;
      background: rgba(15, 23, 42, .92);
      border: 1px solid rgba(148, 163, 184, .18);
      border-radius: 24px;
      padding: 32px;
      box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  }
  
  .login-brand {
      text-align: center;
      margin-bottom: 28px;
  }
  
  .login-logo {
      width: 64px;
      height: 64px;
      margin: 0 auto 16px;
      display: grid;
      place-items: center;
      border-radius: 20px;
      background: linear-gradient(135deg, #2563eb, #9333ea);
      font-size: 30px;
      color: #fff;
  }
  
  .login-brand h1 {
      font-size: 26px;
      margin: 0;
      color: #fff;
  }
  
  .login-brand p {
      margin: 8px 0 0;
      color: #94a3b8;
  }
  
  /*=============================================
  FORMULARIOS
  =============================================*/
  
  .form-label {
      color: var(--text-secondary);
      font-size: 14px;
  }
  
  .form-control,
  .form-select {
      background: var(--input-bg);
      border: 1px solid var(--input-border);
      color: var(--input-text);
      border-radius: 12px;
      min-height: 46px;
  }
  
  .form-control:focus,
  .form-select:focus {
      background: var(--input-bg);
      color: var(--input-text);
      border-color: #6366f1;
      box-shadow: 0 0 0 .25rem rgba(99, 102, 241, .2);
  }
  
  .form-control::placeholder {
      color: var(--text-muted);
  }
  
  textarea.form-control {
      resize: vertical;
  }
  
  .form-control-color {
      width: 70px;
      height: 44px;
      padding: 4px;
  }
  
  /*=============================================
  LAYOUT
  =============================================*/
  
  .app-wrapper {
      min-height: 100vh;
      display: flex;
  }
  
  .app-sidebar {
      width: 280px;
      min-height: 100vh;
      background: var(--sidebar-bg);
      border-right: 1px solid var(--sidebar-border);
      padding: 20px;
      position: fixed;
      left: 0;
      top: 0;
      bottom: 0;
      z-index: 90;
      transition: transform .25s ease, background .25s ease, border .25s ease;
  }
  
  .app-main {
      margin-left: 280px;
      width: calc(100% - 280px);
      min-height: 100vh;
      background: var(--main-bg);
      transition: background .25s ease;
  }
  
  /*=============================================
  SIDEBAR
  =============================================*/
  
  .sidebar-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 28px;
  }
  
  .brand-icon {
      width: 46px;
      height: 46px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      background: linear-gradient(135deg, #2563eb, #9333ea);
      font-size: 22px;
      color: #fff;
  }
  
  .sidebar-brand strong {
      display: block;
      color: var(--text-primary);
  }
  
  .sidebar-brand span {
      display: block;
      color: var(--text-secondary);
      font-size: 13px;
      text-transform: capitalize;
  }
  
  .sidebar-nav {
      display: grid;
      gap: 8px;
  }
  
  .nav-item {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--text-secondary);
      text-decoration: none;
      padding: 12px 14px;
      border-radius: 14px;
      transition: .2s ease;
  }
  
  .nav-item i {
      font-size: 18px;
  }
  
  .nav-item:hover {
      background: var(--nav-hover);
      color: var(--text-primary);
  }
  
  .nav-item.active {
      background: linear-gradient(135deg, #2563eb, #9333ea);
      color: #fff;
  }
  
  .nav-logout {
      margin-top: 20px;
      color: #fca5a5;
  }
  
  /*=============================================
  HEADER
  =============================================*/
  
  .app-header {
      height: 72px;
      padding: 0 28px;
      border-bottom: 1px solid var(--header-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--header-bg);
      backdrop-filter: blur(16px);
      position: sticky;
      top: 0;
      z-index: 20;
      transition: background .25s ease, border .25s ease;
  }
  
  .btn-menu {
      display: none;
      border: 0;
      background: transparent;
      color: var(--text-primary);
      font-size: 28px;
  }
  
  .header-actions {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-left: auto;
  }
  
  .theme-toggle {
      border: 1px solid var(--card-border);
      background: var(--card-bg);
      color: var(--text-primary);
      border-radius: 999px;
      padding: 9px 14px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      transition: .2s ease;
  }
  
  .theme-toggle:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 24px var(--card-shadow);
  }
  
  .header-user {
      text-align: right;
  }
  
  .header-user span {
      display: block;
      color: var(--text-primary);
      font-weight: 600;
  }
  
  .header-user small {
      color: var(--text-secondary);
      text-transform: capitalize;
  }
  
  /*=============================================
  CONTENIDO
  =============================================*/
  
  .content-wrapper {
      padding: 28px;
  }
  
  .page-title {
      margin-bottom: 24px;
  }
  
  .page-title h2 {
      margin: 0;
      font-size: 28px;
      color: var(--text-primary);
  }
  
  .page-title p {
      margin: 6px 0 0;
      color: var(--text-secondary);
  }
  
  /*=============================================
  DASHBOARD
  =============================================*/
  
  .dashboard-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 22px;
      padding: 22px;
      box-shadow: 0 16px 40px var(--card-shadow);
      transition: background .25s ease, border .25s ease, box-shadow .25s ease;
  }
  
  .dashboard-card span {
      color: var(--text-secondary);
      font-size: 14px;
  }
  
  .dashboard-card strong {
      display: block;
      margin-top: 8px;
      font-size: 34px;
      color: var(--text-primary);
  }
  
  /*=============================================
  TABLAS
  =============================================*/
  
  .table-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 22px;
      overflow: hidden;
      box-shadow: 0 16px 40px var(--card-shadow);
      transition: background .25s ease, border .25s ease, box-shadow .25s ease;
  }
  
  .table {
      margin-bottom: 0;
  }
  
  .table > :not(caption) > * > * {
      background-color: transparent;
      color: var(--body-text);
      border-bottom-color: var(--table-border);
  }
  
  .table thead th {
      color: var(--text-secondary);
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: .04em;
      font-weight: 700;
  }
  
  .table tbody td {
      color: var(--body-text);
  }
  
  .table-hover tbody tr:hover td {
      color: var(--text-primary);
  }
  
  body.theme-light .table-dark {
      --bs-table-bg: transparent;
      --bs-table-color: #0f172a;
      --bs-table-border-color: rgba(15, 23, 42, .10);
      --bs-table-hover-bg: rgba(15, 23, 42, .04);
      --bs-table-hover-color: #0f172a;
  }
  
  /*=============================================
  IMÁGENES / COLORES
  =============================================*/
  
  .brand-thumb {
      width: 48px;
      height: 48px;
      object-fit: contain;
      border-radius: 12px;
      background: rgba(255, 255, 255, .08);
      border: 1px solid rgba(148, 163, 184, .18);
      padding: 5px;
  }
  
  .brand-thumb-empty {
      display: grid;
      place-items: center;
      color: var(--text-secondary);
  }
  
  .color-dot {
      width: 18px;
      height: 18px;
      display: inline-block;
      border-radius: 50%;
      margin-right: 8px;
      vertical-align: middle;
      border: 2px solid rgba(255, 255, 255, .35);
  }
  
  /*=============================================
  MODALES
  =============================================*/
  
  .modal-content {
      border-radius: 22px;
      border: 1px solid rgba(148, 163, 184, .18);
      background: var(--modal-bg);
      color: var(--body-text);
  }
  
  .modal-header,
  .modal-footer {
      border-color: var(--table-border) !important;
  }
  
  body.theme-light .modal-content.bg-dark {
      background: #ffffff !important;
      color: #0f172a !important;
  }
  
  body.theme-light .btn-close-white {
      filter: none;
  }
  
  /*=============================================
  MODO LIGHT AJUSTES
  =============================================*/
  
  body.theme-light .text-secondary {
      color: #64748b !important;
  }
  
  body.theme-light .brand-thumb {
      background: rgba(15, 23, 42, .04);
      border-color: rgba(15, 23, 42, .12);
  }
  
  body.theme-light .login-wrapper {
      background:
          radial-gradient(circle at top left, rgba(37, 99, 235, .16), transparent 35%),
          radial-gradient(circle at bottom right, rgba(147, 51, 234, .14), transparent 35%),
          #f4f7fb;
  }
  
  body.theme-light .login-card {
      background: rgba(255, 255, 255, .94);
      border-color: rgba(15, 23, 42, .10);
      box-shadow: 0 30px 80px rgba(15, 23, 42, .10);
  }
  
  body.theme-light .login-brand h1 {
      color: #0f172a;
  }
  
  body.theme-light .login-brand p {
      color: #64748b;
  }
  
  body.theme-light .login-logo,
  body.theme-light .brand-icon {
      color: #fff;
  }
  
  /*=============================================
  BOOTSTRAP AJUSTES
  =============================================*/
  
  .btn {
      border-radius: 12px;
  }
  
  .btn-primary {
      background: linear-gradient(135deg, #2563eb, #9333ea);
      border: 0;
  }
  
  .btn-primary:hover {
      opacity: .92;
  }
  
  .btn-warning {
      color: #111827;
  }
  
  .alert {
      border-radius: 14px;
  }
  
  /*=============================================
  RESPONSIVE
  =============================================*/
  
  @media (max-width: 991px) {
  
      .app-sidebar {
          transform: translateX(-100%);
      }
  
      .app-sidebar.active {
          transform: translateX(0);
      }
  
      .app-main {
          margin-left: 0;
          width: 100%;
      }
  
      .btn-menu {
          display: block;
      }
  
  }
  
  @media (max-width: 575px) {
  
      .content-wrapper {
          padding: 20px;
      }
  
      .app-header {
          padding: 0 18px;
      }
  
      .theme-toggle span {
          display: none;
      }
  
      .header-actions {
          gap: 10px;
      }
  
      .page-title h2 {
          font-size: 24px;
      }
  
      .dashboard-card strong {
          font-size: 28px;
      }
  
  }

  /*=============================================
MEJOR ESPACIADO EN TABLAS
=============================================*/

.table-card {
      padding: 8px;
  }
  
  .table-card .table {
      border-collapse: separate;
      border-spacing: 0;
  }
  
  .table-card .table thead th {
      padding: 18px 20px;
  }
  
  .table-card .table tbody td {
      padding: 18px 20px;
      vertical-align: middle;
  }
  
  .table-card .table tbody tr:last-child td {
      border-bottom: 0;
  }
  
  .table-card .table-responsive {
      border-radius: 18px;
      overflow: hidden;
  }
  
  @media (max-width: 575px) {
  
      .table-card {
          padding: 6px;
      }
  
      .table-card .table thead th,
      .table-card .table tbody td {
          padding: 14px 16px;
      }
  
  }

  /*=============================================
COLAPSAR SIDEBAR
=============================================*/

.btn-sidebar-collapse {
      border: 1px solid var(--card-border);
      background: var(--card-bg);
      color: var(--text-primary);
      border-radius: 12px;
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      font-size: 20px;
      transition: .2s ease;
  }
  
  .btn-sidebar-collapse:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 24px var(--card-shadow);
  }
  
  body.sidebar-collapsed .app-sidebar {
      width: 86px;
      padding: 20px 14px;
  }
  
  body.sidebar-collapsed .app-main {
      margin-left: 86px;
      width: calc(100% - 86px);
  }
  
  body.sidebar-collapsed .sidebar-brand {
      justify-content: center;
  }
  
  body.sidebar-collapsed .sidebar-brand > div:last-child {
      display: none;
  }
  
  body.sidebar-collapsed .nav-item {
      justify-content: center;
      padding: 13px;
  }
  
  body.sidebar-collapsed .nav-item span {
      display: none;
  }
  
  body.sidebar-collapsed .nav-item i {
      font-size: 20px;
  }
  
  body.sidebar-collapsed .nav-logout {
      margin-top: 20px;
  }
  
  /* Tooltip simple al colapsar */
  body.sidebar-collapsed .nav-item {
      position: relative;
  }
  
  body.sidebar-collapsed .nav-item:hover::after {
      content: attr(title);
      position: absolute;
      left: calc(100% + 12px);
      top: 50%;
      transform: translateY(-50%);
      background: #020617;
      color: #fff;
      padding: 8px 10px;
      border-radius: 10px;
      font-size: 13px;
      white-space: nowrap;
      box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
      z-index: 999;
  }
  
  body.theme-light.sidebar-collapsed .nav-item:hover::after {
      background: #0f172a;
      color: #fff;
  }
  
  /* En mobile no usamos sidebar colapsado, usamos menú deslizable */
  @media (max-width: 991px) {
  
      .btn-sidebar-collapse {
          display: none;
      }
  
      body.sidebar-collapsed .app-sidebar {
          width: 280px;
          padding: 20px;
      }
  
      body.sidebar-collapsed .app-main {
          margin-left: 0;
          width: 100%;
      }
  
      body.sidebar-collapsed .sidebar-brand {
          justify-content: flex-start;
      }
  
      body.sidebar-collapsed .sidebar-brand > div:last-child {
          display: block;
      }
  
      body.sidebar-collapsed .nav-item {
          justify-content: flex-start;
          padding: 12px 14px;
      }
  
      body.sidebar-collapsed .nav-item span {
          display: inline;
      }
  
      body.sidebar-collapsed .nav-item:hover::after {
          display: none;
      }
  
  }

  /*=============================================
DJS
=============================================*/

.dj-cell {
      display: flex;
      align-items: center;
      gap: 12px;
  }
  
  .dj-thumb {
      width: 52px;
      height: 52px;
      object-fit: cover;
      border-radius: 16px;
      background: rgba(255, 255, 255, .08);
      border: 1px solid rgba(148, 163, 184, .18);
  }
  
  .dj-thumb-empty {
      display: grid;
      place-items: center;
      color: var(--text-secondary);
      font-size: 22px;
  }
  
  .dj-preview {
      width: 96px;
      height: 96px;
      object-fit: cover;
      border-radius: 22px;
      background: rgba(255, 255, 255, .08);
      border: 1px solid rgba(148, 163, 184, .18);
  }
  
  body.theme-light .dj-thumb,
  body.theme-light .dj-preview {
      background: rgba(15, 23, 42, .04);
      border-color: rgba(15, 23, 42, .12);
  }

  td.text-end .btn {
      margin-left: 4px;
  }

  /*=============================================
CALENDARIO / DISPONIBILIDAD DJ
=============================================*/

.calendar-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 24px;
      padding: 22px;
      box-shadow: 0 16px 40px var(--card-shadow);
  }
  
  .availability-toolbar {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 20px;
      padding: 18px 22px;
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
  }
  
  .availability-toolbar strong {
      color: var(--text-primary);
  }
  
  .availability-toolbar span {
      color: var(--text-secondary);
  }
  
  .availability-legend {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
  }
  
  .availability-legend span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
  }
  
  .legend-dot {
      width: 12px;
      height: 12px;
      display: inline-block;
      border-radius: 50%;
  }
  
  .legend-dot.available {
      background: #22c55e;
  }
  
  .legend-dot.blocked {
      background: #ef4444;
  }
  
  .disponibilidad-selector {
      min-width: 260px;
  }
  
  /* FullCalendar theme */
  
  .fc {
      color: var(--body-text);
  }
  
  .fc .fc-toolbar-title {
      color: var(--text-primary);
      font-size: 24px;
      font-weight: 700;
  }
  
  .fc .fc-button {
      background: linear-gradient(135deg, #2563eb, #9333ea) !important;
      border: 0 !important;
      border-radius: 10px !important;
      padding: 8px 12px !important;
      box-shadow: none !important;
  }
  
  .fc .fc-button:disabled {
      opacity: .55;
  }
  
  .fc .fc-col-header-cell-cushion,
  .fc .fc-daygrid-day-number {
      color: var(--text-primary);
      text-decoration: none;
  }
  
  .fc-theme-standard td,
  .fc-theme-standard th {
      border-color: var(--table-border);
  }
  
  .fc-theme-standard .fc-scrollgrid {
      border-color: var(--table-border);
  }
  
  .fc .fc-daygrid-day.fc-day-today {
      background: rgba(99, 102, 241, .14);
  }
  
  .fc-event {
      border-radius: 10px;
      padding: 3px 6px;
      font-size: 13px;
      border: 0;
      cursor: pointer;
  }
  
  body.theme-light .fc {
      color: #0f172a;
  }
  
  body.theme-light .fc .fc-col-header-cell-cushion,
  body.theme-light .fc .fc-daygrid-day-number {
      color: #0f172a;
  }
  
  @media (max-width: 575px) {
  
      .calendar-card {
          padding: 14px;
      }
  
      .fc .fc-toolbar {
          flex-direction: column;
          gap: 12px;
      }
  
      .fc .fc-toolbar-title {
          font-size: 20px;
      }
  
      .disponibilidad-selector {
          width: 100%;
          min-width: 100%;
      }
  
  }

  /*=============================================
AJUSTE HEADER DÍAS FULLCALENDAR
=============================================*/

.fc-theme-standard .fc-col-header th {
      background: var(--card-bg) !important;
  }
  
  .fc .fc-col-header-cell {
      background: var(--card-bg) !important;
  }
  
  .fc .fc-col-header-cell-cushion {
      color: var(--text-primary) !important;
      font-weight: 700;
      padding: 12px 8px;
  }
  
  body.theme-light .fc-theme-standard .fc-col-header th,
  body.theme-light .fc .fc-col-header-cell {
      background: #f8fafc !important;
  }
  
  body.theme-light .fc .fc-col-header-cell-cushion {
      color: #0f172a !important;
  }

  /*=============================================
SEPARACIÓN BOTONES FULLCALENDAR
=============================================*/

.fc .fc-toolbar-chunk {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
  }
  
  .fc .fc-button-group {
      display: flex;
      gap: 8px;
  }
  
  .fc .fc-button-group > .fc-button {
      border-radius: 10px !important;
  }
  
  .fc .fc-button-group > .fc-button:not(:first-child) {
      margin-left: 0 !important;
  }
  
  .fc .fc-button {
      margin: 0 !important;
  }

  /*=============================================
EMPTY STATE
=============================================*/

.empty-state-card {
      min-height: 360px;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 26px;
      padding: 48px 24px;
      box-shadow: 0 16px 40px var(--card-shadow);
      display: grid;
      place-items: center;
      text-align: center;
  }
  
  .empty-state-icon {
      width: 82px;
      height: 82px;
      display: grid;
      place-items: center;
      border-radius: 26px;
      background: linear-gradient(135deg, #2563eb, #9333ea);
      color: #fff;
      font-size: 38px;
      margin-bottom: 18px;
  }
  
  .empty-state-card h3 {
      color: var(--text-primary);
      font-size: 26px;
      margin: 0 0 8px;
  }
  
  .empty-state-card p {
      color: var(--text-secondary);
      max-width: 520px;
      margin: 0 auto 8px;
  }
  
  .empty-state-card small {
      color: var(--text-muted);
  }

  /*=============================================
CALENDARIO ADMIN
=============================================*/

.calendar-filters {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 22px;
      padding: 18px;
      box-shadow: 0 16px 40px var(--card-shadow);
      margin-bottom: 18px;
      display: grid;
      grid-template-columns: repeat(3, minmax(180px, 1fr));
      gap: 16px;
  }
  
  .legend-dot.pending {
      background: #f59e0b;
  }
  
  .legend-dot.confirmed {
      background: #2563eb;
  }
  
  .legend-dot.cancelled {
      background: #ef4444;
  }
  
  .legend-dot.finished {
      background: #22c55e;
  }
  
  .djs-available-list {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 12px;
      max-height: 360px;
      overflow-y: auto;
      padding: 4px;
  }
  
  .dj-available-card {
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--input-bg);
      border: 1px solid var(--input-border);
      border-radius: 18px;
      padding: 12px;
      cursor: pointer;
      transition: .2s ease;
  }
  
  .dj-available-card:hover {
      transform: translateY(-1px);
      border-color: #6366f1;
  }
  
  .dj-available-card.selected {
      border-color: #22c55e;
      box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
  }
  
  .dj-available-img {
      width: 54px;
      height: 54px;
      object-fit: cover;
      border-radius: 16px;
      background: rgba(255, 255, 255, .08);
      border: 1px solid rgba(148, 163, 184, .18);
      flex: 0 0 auto;
  }
  
  .dj-available-info {
      display: grid;
      gap: 2px;
  }
  
  .dj-available-info strong {
      color: var(--text-primary);
  }
  
  .dj-available-info span,
  .dj-available-info small {
      color: var(--text-secondary);
  }
  
  .detail-box {
      background: var(--input-bg);
      border: 1px solid var(--input-border);
      border-radius: 18px;
      padding: 18px;
  }
  
  .detail-box h4 {
      margin: 0 0 6px;
      color: var(--text-primary);
  }
  
  .detail-box p {
      margin: 0;
      color: var(--text-secondary);
  }
  
  @media (max-width: 767px) {
  
      .calendar-filters {
          grid-template-columns: 1fr;
      }
  
      .djs-available-list {
          grid-template-columns: 1fr;
      }
  
  }

/*=============================================
BADGES DJS DISPONIBLES - FULL FIX
=============================================*/

.fc .fc-daygrid-event.evento-disponibles-badge,
.fc .evento-disponibles-badge {
    background-image: none !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    color: #ffffff !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    max-width: calc(100% - 8px) !important;

    border-radius: 999px !important;
    padding: 4px 13px !important;
    margin: 2px 4px !important;

    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    overflow: hidden !important;
    cursor: pointer;
}

/* Quita cualquier borde o fondo interno de FullCalendar */
.fc .evento-disponibles-badge .fc-event-main,
.fc .evento-disponibles-badge .fc-event-main-frame,
.fc .evento-disponibles-badge .fc-event-title-container,
.fc .evento-disponibles-badge .fc-event-title {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

/* Quita el puntito o indicador de FullCalendar */
.fc .evento-disponibles-badge .fc-daygrid-event-dot,
.fc .evento-disponibles-badge .fc-list-event-dot {
    display: none !important;
}

/* Quita pseudo elementos que puedan generar la media luna blanca */
.fc .evento-disponibles-badge::before,
.fc .evento-disponibles-badge::after,
.fc .evento-disponibles-badge .fc-event-main::before,
.fc .evento-disponibles-badge .fc-event-main::after {
    display: none !important;
    content: none !important;
}

/* Texto */
.fc .evento-disponibles-badge .fc-event-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Hover */
.fc .evento-disponibles-badge:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/*=============================================
VIÁTICOS DJS
=============================================*/

.form-card {
      background: var(--input-bg);
      border: 1px solid var(--input-border);
      border-radius: 20px;
      padding: 18px;
  }
  
  .form-card h5 {
      color: var(--text-primary);
  }
  
  .viaticos-list {
      display: grid;
      gap: 12px;
      max-height: 560px;
      overflow-y: auto;
      padding-right: 4px;
  }
  
  .viatico-item {
      background: var(--input-bg);
      border: 1px solid var(--input-border);
      border-radius: 18px;
      padding: 14px;
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: center;
  }
  
  .viatico-item strong {
      color: var(--text-primary);
  }
  
  .viatico-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
  }
  
  @media (max-width: 575px) {
  
      .viatico-item {
          align-items: flex-start;
          flex-direction: column;
      }
  
      .viatico-actions {
          justify-content: flex-start;
      }
  
  }

  /*=============================================
REPORTES
=============================================*/

.report-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 16px;
  }
  
  .report-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 22px;
      padding: 20px;
      box-shadow: 0 16px 40px var(--card-shadow);
  }
  
  .report-card span {
      display: block;
      color: var(--text-secondary);
      font-size: 13px;
      margin-bottom: 8px;
  }
  
  .report-card strong {
      display: block;
      color: var(--text-primary);
      font-size: 26px;
      line-height: 1.2;
  }
  
  .report-card.highlight {
      border-color: rgba(34, 197, 94, .45);
      background: linear-gradient(135deg, rgba(34, 197, 94, .18), var(--card-bg));
  }
  
  .report-card.warning {
      border-color: rgba(245, 158, 11, .45);
      background: linear-gradient(135deg, rgba(245, 158, 11, .16), var(--card-bg));
  }
  
  .table-card-header {
      padding: 18px 20px;
      border-bottom: 1px solid var(--table-border);
  }
  
  .table-card-header h4 {
      margin: 0;
      color: var(--text-primary);
      font-size: 18px;
  }

 /*=============================================
INPUT DATE ICON
=============================================*/

.date-input-wrap {
      position: relative;
      display: block;
      width: 100%;
  }
  
  .date-input-wrap .input-date-icon {
      width: 100%;
      height: 46px;
      line-height: 46px;
      padding-right: 46px;
  }
  
  .date-input-custom-icon {
      position: absolute;
      right: 14px;
      top: 0;
      height: 46px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      pointer-events: none;
      font-size: 17px;
  }
  
  .date-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
      opacity: 0;
      cursor: pointer;
      position: absolute;
      right: 10px;
      width: 34px;
      height: 34px;
  }

/* Más separación solo en inputs date dentro de modales */
.modal .date-input-wrap .input-date-icon {
      padding-right: 70px !important;
  }
  
  .modal .date-input-custom-icon {
      right: 28px;
  }
  
  .modal .date-input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
      right: 22px;
      width: 48px;
  }

  /*=============================================
SIDEBAR - BOTÓN SALIR SIEMPRE VISIBLE
=============================================*/

.app-sidebar {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 16px;
}

.sidebar-nav .nav-logout {
    margin-top: auto;
    color: #ef4444 !important;
}

.sidebar-nav .nav-logout i,
.sidebar-nav .nav-logout span {
    color: #ef4444 !important;
}

.sidebar-nav .nav-logout:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
}