:root{
  --warm-1: #ff7a18;
  --warm-2: #af002d;
  --warm-3: #ffb347;
  --ink: #1f2937;
  --soft: #f6f4f2;
}

body.bg-soft{
  background: radial-gradient(1200px 600px at 10% 10%, rgba(255, 179, 71, 0.25), transparent 60%),
              radial-gradient(1000px 600px at 90% 20%, rgba(255, 122, 24, 0.18), transparent 55%),
              linear-gradient(180deg, #faf8f7, var(--soft));
  color: var(--ink);
  min-height: 100vh;
}

.navbar-warm{
  background: linear-gradient(135deg, var(--warm-2), var(--warm-1));
}

.topbar-shell{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.topbar-start{
  min-width: 0;
}

.topbar-center{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
}

.topbar-end{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

.topbar-system-link{
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: rgba(255,255,255,0.82);
  color: #111;
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.topbar-system-link:hover{
  color: #111;
  background: rgba(255,255,255,0.96);
}

.menu-modal-title{
  color: #111;
  font-size: 1.6875rem;
}

.topbar-club-name{
  max-width: min(36vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark{
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.brand-mark-lg{
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.95), rgba(175, 0, 45, 0.95));
  color: white;
  box-shadow: 0 12px 30px rgba(175,0,45,0.18);
  overflow: hidden;
}

.brand-mark img,
.brand-mark-lg img{
  width: 100%;
  height: 100%;
  display: block;
}

.brand-accent{ color: #ffd2a6; }

.glass-card{
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
}

.login-club-image-shell{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.68), rgba(247, 242, 238, 0.9));
  border: 1px solid rgba(175, 0, 45, 0.08);
}

.login-club-image{
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.system-admin-auth-header{
  display: flex;
  align-items: center;
  gap: 1rem;
}

.system-admin-auth-icon{
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.95), rgba(175, 0, 45, 0.95));
  color: #fff;
  box-shadow: 0 14px 30px rgba(175, 0, 45, 0.2);
}

.system-admin-auth-icon i{
  font-size: 1.7rem;
}

.system-admin-preview-card{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(245,248,251,0.9));
  border: 1px solid rgba(88, 104, 120, 0.12);
}

.system-admin-preview-label{
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a5b00;
}

.system-admin-preview-image-shell{
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px dashed rgba(88, 104, 120, 0.2);
}

.system-admin-preview-image{
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.system-admin-preview-placeholder{
  color: #6b7280;
  font-weight: 600;
  text-align: center;
}

.btn-warm{
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--warm-1), var(--warm-2));
  box-shadow: 0 12px 25px rgba(175,0,45,0.18);
}
.btn-warm:hover{
  filter: brightness(1.02);
  color: #fff;
}

.text-bg-warm{
  color: #fff !important;
  background: linear-gradient(135deg, var(--warm-1), var(--warm-2)) !important;
}

.pill-soft{
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.06);
}

.cancha-card{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
}

.cancha-card-disabled{
  background: linear-gradient(180deg, rgba(252, 243, 243, 0.95), rgba(249, 233, 233, 0.88));
  border: 1px solid rgba(175, 0, 45, 0.15) !important;
}

.cancha-card-loader{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(2px);
  z-index: 3;
}

.day-selector-card{
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.78));
}

.cancha-icon{
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(255, 122, 24, 0.12);
  color: rgba(175, 0, 45, 0.9);
  font-size: 1.3rem;
  overflow: hidden;
}

.cancha-icon img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-slots-card{
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.78));
}

.quick-slot-btn{
  border-radius: 999px;
  border-color: rgba(31, 41, 55, 0.2);
  background: rgba(255,255,255,0.82);
  color: var(--ink);
}

.quick-slot-btn:hover{
  border-color: rgba(175, 0, 45, 0.45);
  color: var(--ink);
}

.quick-slot-btn.active,
.quick-slot-btn:active{
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--warm-1), var(--warm-2));
}

.availability-card{
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.78));
}

.availability-legend{
  font-weight: 500;
}

.availability-legend-available{
  color: #165c39;
  background: #e9f8f0;
  border: 1px solid #95d5b2;
}

.availability-legend-blocked{
  color: #495057;
  background: #f1f3f5;
  border: 1px solid #ced4da;
}

.availability-legend-pending{
  color: #8a5b00;
  background: #fff8e6;
  border: 1px solid #ffd27a;
}

.availability-legend-confirmed{
  color: #0d3f8a;
  background: #e8f1ff;
  border: 1px solid #9fc1ff;
}

.availability-slot-btn{
  border-radius: 999px;
  border-width: 1px;
}

.availability-slot-btn.is-available{
  border-color: #95d5b2;
  background: #e9f8f0;
  color: #165c39;
}

.availability-slot-btn.is-available:hover{
  border-color: #74c69d;
  background: #d9f3e6;
  color: #0f5132;
}

.availability-slot-btn.is-pending{
  border-color: #ffd27a;
  background: #fff8e6;
  color: #8a5b00;
}

.availability-slot-btn.is-confirmed{
  border-color: #9fc1ff;
  background: #e8f1ff;
  color: #0d3f8a;
}

.availability-slot-btn.is-blocked{
  border-color: #ced4da;
  background: #f1f3f5;
  color: #495057;
}

.availability-slot-btn:disabled{
  opacity: 1;
  cursor: not-allowed;
}

/* Floating Action Button */
.fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px; height: 58px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--warm-1), var(--warm-2));
  color: white;
  display: grid;
  place-items: center;
  z-index: 1050;
}
.fab i{ font-size: 1.7rem; }

/* Global loader */
.global-loader{
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.20);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 2000;
  padding: 18px;
}
.loader-card{
  background: rgba(255,255,255,0.86);
  border-radius: 22px;
  padding: 24px 26px;
  text-align: center;
  min-width: 220px;
  border: 1px solid rgba(0,0,0,0.06);
}

.agenda-page{
  display: grid;
  min-height: calc(100vh - 2rem);
}

.agenda-hero-kicker{
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #355070;
}

.agenda-hero-title{
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.agenda-hero-text{
  max-width: 52rem;
  color: #516174;
}

.agenda-hero-stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 0.85rem;
  width: min(100%, 460px);
}

.agenda-stat-card{
  border-radius: 22px;
  padding: 1rem 1.05rem;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(69, 90, 100, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 32px rgba(31, 41, 55, 0.06);
}

.agenda-stat-card strong{
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
}

.agenda-stat-label{
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7a8c;
}

.agenda-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  overflow-x: auto;
}

.agenda-shell-card{
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 2rem);
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(700px 260px at 0% 0%, rgba(41, 98, 255, 0.16), transparent 65%),
    radial-gradient(560px 240px at 100% 10%, rgba(23, 162, 184, 0.18), transparent 60%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(244,248,252,0.92));
}

.agenda-shell-toolbar{
  position: relative;
  z-index: 9;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(88, 104, 120, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(248,251,253,0.78));
  backdrop-filter: blur(12px);
}

.agenda-empty-state{
  padding: 1.75rem;
}

.agenda-filter-form{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  margin: 0;
}

.agenda-filter-label{
  margin: 0;
  white-space: nowrap;
  font-size: 0.95rem;
}

.agenda-filter-input{
  width: 170px;
  min-height: 38px;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.agenda-filter-btn{
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  white-space: nowrap;
}

.agenda-toolbar-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.agenda-toolbar-meta{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.agenda-caja-status{
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(69, 90, 100, 0.12);
  background: rgba(255,255,255,0.82);
  color: #34495e;
  box-shadow: 0 8px 20px rgba(68, 84, 101, 0.08);
}

.agenda-caja-status-label{
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7a8c;
}

.agenda-caja-status strong{
  font-size: 0.94rem;
}

.agenda-caja-status--open{
  border-color: rgba(34, 139, 34, 0.2);
  background: linear-gradient(180deg, rgba(226, 250, 234, 0.95), rgba(208, 243, 219, 0.92));
  color: #1f6b33;
}

.agenda-caja-status--open .agenda-caja-status-label{
  color: #3f7a52;
}

.agenda-caja-status--closed{
  border-color: rgba(116, 127, 141, 0.18);
  background: linear-gradient(180deg, rgba(236, 240, 244, 0.95), rgba(223, 229, 235, 0.92));
  color: #4b5a68;
}

.agenda-caja-status--closed .agenda-caja-status-label{
  color: #677787;
}

.agenda-caja-status--pending{
  border-color: rgba(176, 111, 24, 0.22);
  background: linear-gradient(180deg, rgba(255, 249, 228, 0.95), rgba(255, 239, 197, 0.92));
  color: #83540f;
}

.agenda-caja-status--pending .agenda-caja-status-label{
  color: #a16a18;
}

.agenda-toolbar-warning{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(176, 111, 24, 0.22);
  background: linear-gradient(180deg, rgba(255, 244, 214, 0.95), rgba(255, 236, 188, 0.92));
  color: #83540f;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(176, 111, 24, 0.08);
}

.agenda-legend{
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.agenda-legend-chip{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(69, 90, 100, 0.12);
  color: #495a6b;
  font-size: 0.92rem;
  font-weight: 500;
}

.agenda-legend-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.agenda-legend-dot-confirmado{
  background: #c7f9cc;
  box-shadow: 0 0 0 5px rgba(199, 249, 204, 0.35);
}

.agenda-legend-dot-pendiente{
  background: #ffe08a;
  box-shadow: 0 0 0 5px rgba(255, 224, 138, 0.35);
}

.agenda-board-scroll{
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1rem;
}

.agenda-board{
  display: grid;
  gap: 0;
  min-width: 980px;
}

.agenda-corner-cell,
.agenda-column-header{
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 74px;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(88, 104, 120, 0.12);
  background: rgba(247, 249, 252, 0.96);
  backdrop-filter: blur(10px);
}

.agenda-corner-cell{
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(88, 104, 120, 0.12);
  color: #627181;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agenda-column-header{
  border-left: 1px solid rgba(88, 104, 120, 0.12);
}

.agenda-column-header.is-disabled{
  background: rgba(242, 245, 248, 0.96);
}

.agenda-column-header-top{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.agenda-column-header h2{
  margin: 0;
  font-size: 1.06rem;
}

.agenda-column-add{
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #1177d1, #06a0b5);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(17, 119, 209, 0.18);
}

.agenda-column-add:hover{
  color: #fff;
  filter: brightness(1.04);
}

.agenda-time-axis,
.agenda-track{
  min-height: calc(var(--agenda-rows) * 34px);
}

.agenda-time-axis{
  position: sticky;
  left: 0;
  z-index: 7;
  display: grid;
  grid-template-rows: repeat(var(--agenda-rows), minmax(34px, 1fr));
  border-right: 1px solid rgba(88, 104, 120, 0.12);
  background:
    linear-gradient(180deg, rgba(245,248,251,0.98), rgba(239,243,247,0.96));
}

.agenda-time-slot{
  display: flex;
  align-items: start;
  justify-content: end;
  padding: 0.18rem 0.55rem 0 0.2rem;
  border-top: 1px solid rgba(144, 158, 170, 0.14);
  color: #6c7a89;
  font-size: 0.72rem;
  font-weight: 500;
}

.agenda-time-slot.is-hour{
  color: #33485c;
  font-weight: 700;
}

.agenda-track{
  position: relative;
  border-left: 1px solid rgba(88, 104, 120, 0.12);
  background:
    linear-gradient(180deg, rgba(241,244,247,0.9), rgba(236,241,245,0.86));
}

.agenda-track.is-dropdown-open{
  z-index: 30;
}

@media (hover: hover) and (pointer: fine) {
  .agenda-track:hover{
    z-index: 6;
  }
}

.agenda-track-surface{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(var(--agenda-rows), minmax(34px, 1fr));
  min-height: 100%;
  padding: 0.2rem 0.2rem 0.2rem 0;
  isolation: isolate;
}

.agenda-track-line{
  grid-column: 1;
  z-index: 1;
  margin: 0;
  border-top: 1px solid rgba(150, 164, 176, 0.14);
  pointer-events: none;
}

.agenda-track-line.is-hour{
  border-top-color: rgba(86, 103, 121, 0.24);
}

.agenda-slot-link{
  z-index: 2;
  align-self: center;
  justify-self: end;
  margin-right: 0.75rem;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px dashed rgba(71, 85, 105, 0.26);
  color: #64748b;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(148, 163, 184, 0.14);
}

.agenda-slot-link:hover{
  color: #0f766e;
  border-style: solid;
  border-color: rgba(15, 118, 110, 0.36);
  background: rgba(240, 253, 250, 0.96);
}

.agenda-turno{
  grid-column: 1;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-self: stretch;
  width: auto;
  margin: 0.12rem 0.2rem 0.12rem 0;
  padding: 0.38rem 0.45rem;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  min-height: 0;
  overflow: visible;
}

.agenda-turno.is-dropdown-open{
  z-index: 25;
}

.agenda-turno--ocean{
  background: linear-gradient(160deg, #1098d4, #0a4f7a);
}

.agenda-turno--indigo{
  background: linear-gradient(160deg, #4f46e5, #1e1b4b);
}

.agenda-turno--jade{
  background: linear-gradient(160deg, #10b981, #0f4c5c);
}

.agenda-turno--slate{
  background: linear-gradient(160deg, #475569, #0f172a);
}

.agenda-turno-header{
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.35rem;
}

.agenda-turno-time{
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

.agenda-turno-status{
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0.05rem 0.38rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agenda-turno-status--confirmado{
  background: rgba(199, 249, 204, 0.24);
  color: #efffed;
}

.agenda-turno-status--pendiente{
  background: #111111;
  color: #ffd54a;
}

.agenda-turno-main{
  display: grid;
  gap: 0.15rem;
  color: inherit;
  text-decoration: none;
}

.agenda-turno-main-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.agenda-turno-main strong{
  flex: 1 1 auto;
  font-size: 0.88rem;
  line-height: 1.1;
  min-width: 0;
}

.agenda-turno-confirm-btn{
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 213, 74, 0.45);
  border-radius: 999px;
  background: #111111;
  color: #ffd54a;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.agenda-turno-confirm-btn:hover{
  background: #ffd54a;
  color: #111111;
}

.agenda-turno-footer{
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.45rem;
  margin-top: auto;
}

.agenda-turno-meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.agenda-turno-amount{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: #000;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 700;
}

.agenda-turno-paid-badge{
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #facc15;
  color: #111;
  border: 1px solid #eab308;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agenda-turno-actions{
  display: flex;
  justify-content: end;
}

.agenda-turno-action{
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.72rem;
  cursor: pointer;
}

.agenda-turno-action:disabled{
  opacity: 0.45;
  cursor: not-allowed;
}

.agenda-turno-action:not(:disabled):hover{
  color: #fff;
  background: rgba(255,255,255,0.24);
}

.agenda-turno-menu{
  z-index: 2000;
}

.agenda-turno-detail-modal-dialog{
  max-width: 850px;
}

.agenda-turno-detail-summary-note{
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.78rem;
}

.agenda-turno-detail-summary-row.is-highlight td{
  background: rgba(255, 244, 214, 0.7);
}

.agenda-turno-detail-consumos-table{
  table-layout: auto;
}

.agenda-turno-detail-consumos-table th:nth-child(3),
.agenda-turno-detail-consumos-table th:nth-child(4),
.agenda-turno-detail-consumos-table th:nth-child(5),
.agenda-turno-detail-consumos-table td:nth-child(3),
.agenda-turno-detail-consumos-table td:nth-child(4),
.agenda-turno-detail-consumos-table td:nth-child(5){
  width: 1%;
  white-space: nowrap;
}

.agenda-turno-consumo-modal{
  position: relative;
  border: 0;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(560px 220px at 0% 0%, rgba(17, 119, 209, 0.16), transparent 60%),
    radial-gradient(480px 220px at 100% 0%, rgba(255, 122, 24, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(244, 248, 252, 0.96));
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.18);
}

.agenda-turno-consumo-modal-header{
  align-items: start;
  padding: 1.15rem 1.2rem 0.85rem;
  border-bottom: 1px solid rgba(88, 104, 120, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.28));
}

.agenda-turno-consumo-modal-heading{
  display: flex;
  align-items: start;
  gap: 0.85rem;
}

.agenda-turno-consumo-modal-icon{
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--warm-1), #1177d1);
  color: #fff;
  box-shadow: 0 14px 24px rgba(17, 119, 209, 0.18);
  flex-shrink: 0;
}

.agenda-turno-consumo-modal-icon i{
  font-size: 1.15rem;
}

.agenda-turno-consumo-modal-header .modal-title{
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.agenda-turno-consumo-modal-body{
  padding: 1.1rem 1.2rem 1rem;
}

.agenda-turno-consumo-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.agenda-turno-consumo-panel{
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(88, 104, 120, 0.12);
  background: rgba(255,255,255,0.76);
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.06);
}

.agenda-turno-consumo-panel-form{
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(249, 251, 255, 0.84));
}

.agenda-turno-consumo-toolbar{
  display: flex;
  justify-content: end;
  margin-top: 1rem;
}

.agenda-turno-consumo-section-title{
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.85rem;
}

.agenda-turno-consumo-table-shell,
.agenda-product-picker{
  position: relative;
}

.agenda-turno-consumo-table-shell{
  border: 1px solid rgba(88, 104, 120, 0.12);
  border-radius: 18px;
  background: rgba(249, 251, 254, 0.9);
}

.agenda-turno-consumo-table thead th,
.agenda-turno-consumo-table tbody td{
  background: transparent;
}

.agenda-product-picker-trigger{
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(88, 104, 120, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, #314b68, #223449);
  color: #eef4fb;
  font-weight: 700;
  text-align: left;
}

.agenda-product-picker-trigger.is-selected{
  color: #fff;
}

.agenda-product-picker-trigger.is-open{
  border-color: rgba(52, 144, 255, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(17, 119, 209, 0.16);
}

.agenda-product-picker-trigger i{
  transition: transform 0.2s ease;
}

.agenda-product-picker-trigger.is-open i{
  transform: rotate(180deg);
}

.agenda-product-picker-menu{
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0.75rem;
  border: 1px solid rgba(52, 144, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, #203043, #1b2838);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.28);
}

.agenda-product-picker-search-shell{
  margin-bottom: 0.7rem;
}

.agenda-product-picker-search-input{
  min-height: 40px;
  border-radius: 12px;
  border-color: rgba(72, 122, 176, 0.4);
  background: rgba(16, 26, 39, 0.5);
  color: #eef4fb;
}

.agenda-product-picker-search-input::placeholder{
  color: rgba(221, 232, 244, 0.68);
}

.agenda-product-picker-search-input:focus{
  border-color: rgba(82, 162, 255, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(52, 144, 255, 0.16);
  background: rgba(16, 26, 39, 0.72);
  color: #fff;
}

.agenda-product-picker-list{
  display: grid;
  gap: 0.28rem;
  max-height: 240px;
  overflow-y: auto;
}

.agenda-product-picker-item{
  width: 100%;
  display: grid;
  gap: 0.08rem;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #eef4fb;
  text-align: left;
}

.agenda-product-picker-item:hover,
.agenda-product-picker-item.is-selected{
  background: rgba(66, 117, 171, 0.72);
}

.agenda-product-picker-item-title{
  font-weight: 800;
  line-height: 1.1;
}

.agenda-product-picker-item-meta{
  font-size: 0.8rem;
  color: rgba(221, 232, 244, 0.78);
}

.agenda-product-picker-empty{
  padding: 0.9rem 0.75rem;
  border-radius: 12px;
  color: rgba(221, 232, 244, 0.72);
  text-align: center;
}

.agenda-turno-consumo-table thead th{
  border-bottom: 1px solid rgba(88, 104, 120, 0.12);
  background: rgba(241, 245, 249, 0.92);
  color: #536273;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.agenda-turno-consumo-input{
  min-height: 44px;
  border-radius: 14px;
  border-color: rgba(88, 104, 120, 0.18);
  background: rgba(255,255,255,0.9);
}

.agenda-turno-consumo-input:focus{
  border-color: rgba(17, 119, 209, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(17, 119, 209, 0.12);
}

.agenda-turno-consumo-form-footer{
  display: grid;
  grid-template-columns: minmax(130px, 180px);
  gap: 0.9rem;
  align-items: end;
}

.agenda-turno-consumo-overlay{
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(4px);
}

.agenda-turno-consumo-floating-card{
  width: min(100%, 460px);
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(88, 104, 120, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(245, 249, 253, 0.94));
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.agenda-turno-consumo-floating-actions{
  display: flex;
  justify-content: end;
  gap: 0.65rem;
  margin-top: 1rem;
}

.agenda-turno-consumo-confirm-card{
  width: min(100%, 360px);
}

.agenda-turno-consumo-confirm-text{
  margin: 0;
  color: #516174;
}

.agenda-turno-consumo-delete-btn{
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.agenda-turno-consumo-delete-btn:hover{
  background: rgba(220, 38, 38, 0.16);
}

.agenda-turno-consumo-modal-footer{
  padding: 0.95rem 1.2rem 1.15rem;
  border-top: 1px solid rgba(88, 104, 120, 0.12);
  background: rgba(255,255,255,0.64);
}

.agenda-track-disabled-state{
  grid-column: 1;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.45rem;
  margin: 0.5rem;
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(226, 232, 240, 0.88);
  border: 1px dashed rgba(100, 116, 139, 0.5);
  color: #475569;
  text-align: center;
}

.agenda-track-disabled-state i{
  font-size: 1.4rem;
}

.agenda-track-disabled-state span{
  font-size: 0.88rem;
  color: #64748b;
}

@media (max-width: 991.98px){
  .agenda-page,
  .agenda-shell-card{
    min-height: calc(100vh - 1.5rem);
    max-height: calc(100vh - 1.5rem);
  }
}

@media (max-width: 767.98px){
  .topbar-shell{
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .topbar-center{
    justify-content: flex-start;
  }

  .topbar-end{
    justify-content: flex-start;
  }

  .topbar-club-name{
    max-width: 100%;
    font-size: 0.95rem;
  }

  .system-admin-preview-card{
    grid-template-columns: 1fr;
  }

  .agenda-shell-card{
    top: 0.75rem;
    min-height: calc(100vh - 1.25rem);
    max-height: calc(100vh - 1.25rem);
    border-radius: 24px;
  }

  .agenda-shell-toolbar{
    padding: 0.75rem;
  }

  .agenda-filter-form{
    gap: 0.4rem;
  }

  .agenda-board-scroll{
    padding: 0.75rem;
  }

  .agenda-turno-consumo-layout{
    grid-template-columns: 1fr;
  }

  .agenda-turno-consumo-panel{
    padding: 0.85rem;
  }

  .agenda-turno-consumo-form-footer{
    grid-template-columns: 1fr;
  }

  .agenda-corner-cell,
  .agenda-column-header{
    min-height: 68px;
    padding: 0.55rem 0.7rem;
  }
}
