:root{
  --warm-1: #ff7a18;
  --warm-2: #af002d;
  --warm-3: #ffb347;
  --ink: #1f2937;
  --soft: #f6f4f2;
  --sidebar-width: 260px;
  --sidebar-rail-width: 76px;
}

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;
}

body.agenda-body{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.agenda-main{
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.app-layout{
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

.agenda-body .app-layout{
  flex: 1 1 auto;
  min-height: 0;
}

.app-layout > main{
  flex: 1 1 auto;
  min-width: 0;
}

.app-mobile-topbar{
  display: none;
}

.app-mobile-bottom-nav-container{
  display: none;
}

.app-mobile-topbar-main{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  background:
    radial-gradient(240px 120px at 0% 0%, rgba(255, 179, 71, 0.22), transparent 70%),
    linear-gradient(180deg, #ffffff, #fbf7f4);
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.app-mobile-brand{
  flex: 0 0 auto;
  width: 46px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}

.app-mobile-brand img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.app-mobile-title{
  min-width: 0;
  display: grid;
  gap: 0.05rem;
  flex: 1 1 auto;
}

.app-mobile-title strong,
.app-mobile-title span{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-mobile-title strong{
  color: #111827;
  font-size: 0.96rem;
  line-height: 1.15;
}

.app-mobile-title span{
  color: #6b7280;
  font-size: 0.76rem;
  line-height: 1.1;
  text-transform: capitalize;
}

.app-mobile-icon-link,
.app-mobile-nav-link{
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
}

.app-mobile-icon-link i,
.app-mobile-nav-link i{
  width: 1.25rem;
  height: 1.25rem;
  display: inline-grid;
  place-items: center;
  font-size: 1.16rem;
  line-height: 1;
}

.app-mobile-icon-link:hover,
.app-mobile-nav-link:hover{
  color: #111827;
  background: rgba(255, 122, 24, 0.1);
}

.app-mobile-nav-link.active{
  color: #fff;
  background: linear-gradient(135deg, var(--warm-1), var(--warm-2));
  box-shadow: 0 8px 18px rgba(175, 0, 45, 0.14);
}

.app-mobile-nav-link.disabled{
  color: #9ca3af;
  background: rgba(243, 244, 246, 0.82);
}

.app-mobile-logout{
  color: #7f1d1d;
  background: rgba(254, 242, 242, 0.75);
}

.app-mobile-nav{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(42px, 1fr);
  align-items: center;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overscroll-behavior-x: contain;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(31, 41, 55, 0.08);
  scrollbar-width: none;
}

.app-mobile-nav::-webkit-scrollbar{
  display: none;
}

.caja-movimientos-table{
  min-width: 760px;
}

.caja-movimientos-mobile-list{
  display: grid;
  gap: 0.85rem;
}

.caja-movimientos-mobile-card{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 0.95rem;
  background: #fff;
}

.caja-movimientos-mobile-card-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.caja-movimientos-mobile-concepto{
  min-width: 0;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.caja-movimientos-mobile-monto{
  flex: 0 0 auto;
  text-align: right;
  font-weight: 750;
  white-space: nowrap;
}

.caja-movimientos-mobile-meta{
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.25;
}

.caja-movimientos-mobile-details{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.caja-movimientos-mobile-label{
  display: block;
  margin-bottom: 0.15rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.caja-movimientos-mobile-empty{
  padding: 1.25rem;
  text-align: center;
  color: #64748b;
}

.sidebar-menu{
  position: sticky;
  top: 0;
  z-index: 1020;
  flex: 0 0 var(--sidebar-rail-width);
  width: var(--sidebar-rail-width);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0.55rem;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(220px 160px at 20% 0%, rgba(255, 179, 71, 0.28), transparent 70%),
    linear-gradient(180deg, #ffffff, #fbf7f4);
  border-right: 1px solid rgba(31, 41, 55, 0.1);
  transition: flex-basis 0.2s ease, width 0.2s ease, padding 0.2s ease, align-items 0.2s ease;
}

.sidebar-menu:hover,
.sidebar-menu:focus-within{
  flex-basis: var(--sidebar-width);
  width: var(--sidebar-width);
  align-items: stretch;
  padding: 1rem;
}

.sidebar-header{
  display: grid;
  gap: 0.65rem;
  width: 100%;
  justify-items: center;
  padding: 0.35rem 0 0.75rem;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.sidebar-menu:hover .sidebar-header,
.sidebar-menu:focus-within .sidebar-header{
  justify-items: start;
  padding-inline: 0.25rem;
}

.sidebar-brand{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.sidebar-club-name{
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 700;
}

.sidebar-nav{
  display: grid;
  gap: 0.35rem;
  width: 100%;
}

.sidebar-link,
.sidebar-logout{
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 0.65rem;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.15;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, gap 0.2s ease, padding 0.2s ease;
}

.sidebar-menu:hover .sidebar-link,
.sidebar-menu:hover .sidebar-logout,
.sidebar-menu:focus-within .sidebar-link,
.sidebar-menu:focus-within .sidebar-logout{
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
}

.sidebar-link i,
.sidebar-logout i{
  flex: 0 0 auto;
  width: 1.35rem;
  display: inline-grid;
  place-items: center;
  font-size: 1.15rem;
}

.sidebar-menu:hover .sidebar-link i,
.sidebar-menu:hover .sidebar-logout i,
.sidebar-menu:focus-within .sidebar-link i,
.sidebar-menu:focus-within .sidebar-logout i{
  width: 1.35rem;
}

.sidebar-club-name,
.sidebar-link span,
.sidebar-user-text,
.sidebar-logout span,
.sidebar-link .bi-lock{
  display: none;
}

.sidebar-menu:hover .sidebar-club-name,
.sidebar-menu:hover .sidebar-link span,
.sidebar-menu:hover .sidebar-user-text,
.sidebar-menu:hover .sidebar-logout span,
.sidebar-menu:hover .sidebar-link .bi-lock,
.sidebar-menu:focus-within .sidebar-club-name,
.sidebar-menu:focus-within .sidebar-link span,
.sidebar-menu:focus-within .sidebar-user-text,
.sidebar-menu:focus-within .sidebar-logout span,
.sidebar-menu:focus-within .sidebar-link .bi-lock{
  display: initial;
}

.sidebar-menu:hover .sidebar-user-text,
.sidebar-menu:focus-within .sidebar-user-text{
  display: grid;
}

.sidebar-menu:hover .sidebar-club-name,
.sidebar-menu:focus-within .sidebar-club-name{
  display: block;
}

.sidebar-link:hover,
.sidebar-logout:hover{
  color: #111827;
  background: rgba(255, 122, 24, 0.1);
}

.sidebar-link.active{
  color: #fff;
  background: linear-gradient(135deg, var(--warm-1), var(--warm-2));
  box-shadow: 0 10px 22px rgba(175, 0, 45, 0.16);
}

.sidebar-link.disabled{
  color: #9ca3af;
  cursor: not-allowed;
  background: rgba(243, 244, 246, 0.82);
}

.sidebar-link-compact{
  min-height: 42px;
  padding-block: 0.6rem;
}

.sidebar-footer{
  display: grid;
  gap: 0.5rem;
  width: 100%;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.sidebar-user{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  padding: 0.65rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(31, 41, 55, 0.08);
}

.sidebar-menu:hover .sidebar-user,
.sidebar-menu:focus-within .sidebar-user{
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem;
}

.sidebar-user > i{
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 1.25rem;
}

.sidebar-user-text{
  min-width: 0;
  display: grid;
  gap: 0.05rem;
}

.sidebar-user-text strong,
.sidebar-user-text span{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-text strong{
  color: #111827;
  font-size: 0.92rem;
}

.sidebar-user-text span{
  color: #6b7280;
  font-size: 0.78rem;
  text-transform: capitalize;
}

.sidebar-logout{
  color: #7f1d1d;
  background: rgba(254, 242, 242, 0.75);
}

.sidebar-logout:hover{
  color: #7f1d1d;
  background: rgba(254, 226, 226, 0.95);
}

.brand-mark{
  width: 48px;
  height: 48px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
  transition: width 0.2s ease, height 0.2s ease;
}

.sidebar-menu:hover .brand-mark,
.sidebar-menu:focus-within .brand-mark{
  width: 132px;
  height: 42px;
}
.brand-mark-lg{
  width: 184px;
  height: 76px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
}

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

.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-brand-row{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  margin-bottom: 1.5rem;
}

.login-brand-logo{
  width: 260px;
  height: 96px;
}

.login-brand-logo img{
  object-fit: contain;
  object-position: center;
}

.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-section-card{
  padding: 1.1rem 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-section-toggle{
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}

.system-admin-section-toggle-icon{
  font-size: 1rem;
  color: #6b7280;
  transition: transform 0.2s ease, color 0.2s ease;
}

.system-admin-section-toggle[aria-expanded="true"] .system-admin-section-toggle-icon{
  transform: rotate(180deg);
  color: #8a5b00;
}

.system-admin-section-body{
  padding-top: 1rem;
}

.system-admin-preview-body{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 1.25rem;
  align-items: center;
}

.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-help-text{
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 248, 235, 0.9);
  border: 1px solid rgba(138, 91, 0, 0.12);
  color: #6b5a33;
  font-size: 0.95rem;
}

.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;
}

/* 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;
  flex: 1;
  height: 100%;
  min-height: 0;
}

.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: 100%;
  max-height: 100%;
  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-date-nav-btn{
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.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.94rem;
  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;
  position: relative;
  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--fixed{
  background: linear-gradient(160deg, #8c96a3, #4b5563);
}

.agenda-turno--series::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, #ef4444, #991b1b);
}

.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-badge{
  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-badge--fixed{
  background: rgba(127, 29, 29, 0.26);
  border: 1px solid rgba(254, 202, 202, 0.24);
  color: #fee2e2;
}

.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){
  .sidebar-menu{
    flex-basis: var(--sidebar-rail-width);
    width: var(--sidebar-rail-width);
    padding: 0.75rem 0.55rem;
    align-items: center;
  }

  .sidebar-header{
    width: 100%;
    justify-items: center;
    padding-inline: 0;
  }

  .sidebar-menu .brand-mark{
    width: 48px;
    height: 48px;
  }

  .sidebar-club-name,
  .sidebar-link span,
  .sidebar-user-text,
  .sidebar-logout span,
  .sidebar-link .bi-lock{
    display: none;
  }

  .sidebar-nav,
  .sidebar-footer{
    width: 100%;
  }

  .sidebar-link,
  .sidebar-logout{
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0.65rem;
  }

  .sidebar-link i,
  .sidebar-logout i{
    width: 1.35rem;
  }

  .sidebar-user{
    justify-content: center;
    padding: 0.65rem;
  }

  .agenda-page,
  .agenda-shell-card{
    min-height: 0;
    max-height: 100%;
  }
}

@media (max-width: 767.98px), (hover: none) and (pointer: coarse){
  .app-mobile-topbar{
    position: sticky;
    top: 0;
    z-index: 1030;
    display: block;
  }

  .app-mobile-bottom-nav-container{
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    display: block;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  }

  .sidebar-menu{
    display: none;
  }

  .app-layout > main{
    width: 100%;
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 767.98px){
  .system-admin-section-card{
    padding: 1rem;
  }

  .system-admin-section-toggle{
    grid-template-columns: 1fr auto;
  }

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

  .agenda-shell-card{
    top: 0.75rem;
    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;
  }
}
