/* ========================================
   MARMOLERÍA BENJAMIN — Page-Specific Styles
   ======================================== */

/* ── Dashboard ── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.dashboard-alerts {
  margin-bottom: var(--space-6);
}

.dashboard-alert-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-warning-light);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-warning-dark);
  margin-bottom: var(--space-2);
}

.dashboard-alert-item.error {
  background: var(--color-error-light);
  color: var(--color-error-dark);
}

/* ── Client Detail / Provider Detail ── */
.detail-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.detail-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  background: var(--color-stone-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-stone-400);
  flex-shrink: 0;
}

.detail-header-info {
  flex: 1;
  min-width: 0;
}

.detail-header-name {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-stone-900);
  margin-bottom: var(--space-1);
}

.detail-header-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.detail-header-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-stone-500);
}

.detail-header-meta-item svg {
  width: 14px;
  height: 14px;
}

.detail-stats-row {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.detail-stat-mini {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  background: var(--color-stone-50);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  min-width: 140px;
}

.detail-stat-mini-label {
  font-size: var(--text-xs);
  color: var(--color-stone-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.detail-stat-mini-value {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-stone-900);
}

/* ── Presupuesto Form ── */
.presupuesto-form-section {
  margin-bottom: var(--space-6);
}

.presupuesto-form-section-title {
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  color: var(--color-stone-800);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.presupuesto-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.pres-item-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.pres-item-card:hover {
  border-color: var(--color-stone-300);
}

.pres-item-card:focus-within {
  border-color: var(--color-stone-500);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pres-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-stone-100);
}

.pres-item-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
}

.pres-item-badge {
  background: var(--color-stone-900);
  color: var(--color-white);
  font-size: 11px;
  font-weight: var(--font-bold);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.pres-item-desc-input {
  height: 34px !important;
  font-size: 13px !important;
  font-weight: var(--font-medium);
  padding: 4px 10px !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--color-stone-200) !important;
  background: var(--color-stone-50) !important;
}

.pres-item-desc-input:focus {
  background: var(--color-white) !important;
  border-color: var(--color-stone-400) !important;
}

.form-label-sm {
  display: block;
  font-size: 11.5px;
  font-weight: var(--font-semibold);
  color: var(--color-stone-600);
  margin-bottom: 4px;
}

.item-material-select {
  font-size: 13.5px !important;
  font-weight: var(--font-medium) !important;
  padding: 9px 12px !important;
  border-color: var(--color-stone-300) !important;
  background-color: var(--color-white) !important;
  border-radius: var(--radius-md) !important;
}

.pres-item-measures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 75px;
  gap: 8px;
  margin-bottom: var(--space-3);
}

@media (max-width: 480px) {
  .pres-item-measures-grid {
    grid-template-columns: 1fr 1fr 65px;
    gap: 6px;
  }
}

.pres-item-calc-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--color-stone-50);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

@media (max-width: 480px) {
  .pres-item-calc-footer {
    gap: 6px;
    padding: 7px 8px;
  }
}

.pres-item-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pres-item-stat-label {
  font-size: 10.5px;
  font-weight: var(--font-semibold);
  color: var(--color-stone-500);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pres-item-stat-val {
  font-size: 13.5px;
  font-weight: var(--font-bold);
  color: var(--color-stone-800);
  font-family: var(--font-mono);
  margin-top: 1px;
}

.pres-item-stat-pill.subtotal-pill {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}

.pres-item-stat-pill.subtotal-pill .pres-item-stat-label {
  color: #047857;
}

.pres-item-stat-pill.subtotal-pill .pres-item-stat-val {
  color: #065f46;
  font-size: 14px;
}

/* Material Breakdown Box */
.material-breakdown-box {
  background: var(--color-stone-50);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
}

.material-breakdown-header {
  font-size: 12px;
  font-weight: var(--font-bold);
  color: var(--color-stone-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.material-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.material-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--color-stone-700);
  padding: 3px 0;
  border-bottom: 1px dashed var(--color-stone-200);
}

.material-breakdown-row:last-child {
  border-bottom: none;
}

/* Detail items list */
.detail-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.detail-item-card {
  background: var(--color-stone-50);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.detail-item-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.detail-item-card-desc {
  font-size: var(--text-sm);
  color: var(--color-stone-900);
}

.detail-item-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-stone-700);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-stone-200);
}

.detail-item-card-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--color-stone-800);
}

.presupuesto-adicionales {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
}

.presupuesto-actions-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-stone-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-stone-200);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

/* ── Obra Timeline ── */
.obra-timeline {
  position: relative;
  padding-left: var(--space-8);
}

.obra-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--color-stone-200);
}

.obra-timeline-item {
  position: relative;
  padding-bottom: var(--space-5);
}

.obra-timeline-item:last-child {
  padding-bottom: 0;
}

.obra-timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 4px);
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-stone-300);
}

.obra-timeline-dot.active {
  background: var(--color-success);
  border-color: var(--color-success);
}

.obra-timeline-dot.current {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.obra-timeline-date {
  font-size: var(--text-xs);
  color: var(--color-stone-400);
  margin-bottom: var(--space-1);
}

.obra-timeline-text {
  font-size: var(--text-sm);
  color: var(--color-stone-700);
}

/* ── Stock Alerts ── */
.stock-alert-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-stone-100);
}

.stock-alert-item:last-child {
  border-bottom: none;
}

.stock-alert-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-error-light);
  color: var(--color-error);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stock-alert-name {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-stone-800);
}

.stock-alert-value {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-error);
}

/* ── Cuenta Corriente ── */
.cuenta-corriente-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.cc-summary-item {
  padding: var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cc-summary-label {
  font-size: var(--text-xs);
  color: var(--color-stone-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-1);
}

.cc-summary-value {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-stone-900);
  font-family: var(--font-mono);
}

.cc-summary-value.positive {
  color: var(--color-success);
}

.cc-summary-value.negative {
  color: var(--color-error);
}

/* ── Vencimientos ── */
.vencimiento-group {
  margin-bottom: var(--space-6);
}

.vencimiento-group-title {
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  color: var(--color-stone-800);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.vencimiento-count {
  background: var(--color-stone-200);
  color: var(--color-stone-600);
  font-size: var(--text-xs);
  padding: 1px 8px;
  border-radius: var(--radius-full);
}

/* ── Configuracion ── */
.config-section {
  background: var(--color-white);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.config-section-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-stone-100);
}

.config-section-title {
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  color: var(--color-stone-800);
}

.config-section-body {
  padding: var(--space-5);
}

/* ── Responsive Dashboard ── */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .detail-stats-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cuenta-corriente-summary {
    grid-template-columns: 1fr 1fr;
  }

  .presupuesto-adicionales {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .detail-stats-row {
    flex-direction: column;
  }

  .detail-stat-mini {
    min-width: auto;
  }

  .cuenta-corriente-summary {
    grid-template-columns: 1fr;
  }

  .presupuesto-actions-bar {
    flex-direction: column;
  }

  .presupuesto-actions-bar .btn {
    width: 100%;
  }
}

/* ── Segmented Client Type Toggle ── */
.client-type-toggle {
  display: flex;
  background: var(--color-stone-100);
  padding: 4px;
  border-radius: var(--radius-lg);
  gap: 4px;
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-stone-200);
}

.client-type-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border: none;
  background: transparent;
  color: var(--color-stone-600);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  touch-action: manipulation;
}

.client-type-btn.active {
  background: #ffffff;
  color: var(--color-stone-900);
  font-weight: var(--font-bold);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ── Material Summary Box ── */
.material-summary-box {
  background: var(--color-stone-50);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3);
}

.compact-item-card {
  padding: var(--space-3);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* ========================================
   CALENDARIO OPERATIVO — STYLES
   ======================================== */

/* ── Top Navigation & Filters Bar ── */
.calendar-actions-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.view-toggle-group {
  display: inline-flex;
  background: var(--color-stone-100);
  padding: 3px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-stone-200);
  gap: 2px;
}

.calendar-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: #ffffff;
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.calendar-nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.calendar-month-title {
  font-size: var(--text-md);
  font-weight: var(--font-bold);
  color: var(--color-stone-900);
  min-width: 140px;
  text-align: center;
}

.calendar-filters {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ── Agenda View ── */
.agenda-view-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.agenda-section {
  display: flex;
  flex-direction: column;
}

.agenda-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-stone-200);
}

.agenda-section-title {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-stone-900);
  margin: 0;
}

.agenda-section-badge-today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: var(--font-extrabold);
  letter-spacing: 0.08em;
  background: var(--color-stone-900);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.agenda-section-badge-upcoming {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: var(--font-extrabold);
  letter-spacing: 0.08em;
  background: var(--color-stone-200);
  color: var(--color-stone-800);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.agenda-cards-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.agenda-upcoming-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.agenda-day-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-stone-700);
  margin-bottom: var(--space-2);
  padding-left: var(--space-1);
}

.agenda-empty-card {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: #ffffff;
  border: 1px dashed var(--color-stone-300);
  border-radius: var(--radius-lg);
}

/* ── Agenda Card ── */
.agenda-card {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
  gap: var(--space-3);
}

.agenda-card:hover {
  border-color: var(--color-stone-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.agenda-card.is-done {
  background: var(--color-stone-50);
  border-color: var(--color-stone-200);
  opacity: 0.85;
}

.agenda-card.is-done .agenda-client-name {
  text-decoration: line-through;
  color: var(--color-stone-500);
}

.agenda-card.is-canceled {
  background: var(--color-stone-50);
  opacity: 0.6;
  border-left: 3px solid var(--color-error);
}

.agenda-card-time-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 50px;
  flex-shrink: 0;
  border-right: 1px solid var(--color-stone-100);
  padding-right: var(--space-2);
}

.agenda-time-val {
  font-size: 13px;
  font-weight: var(--font-bold);
  color: var(--color-stone-800);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.agenda-check-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-stone-300);
  background: #ffffff;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.agenda-check-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.5;
}

.agenda-check-btn:hover {
  border-color: var(--color-stone-700);
  background: var(--color-stone-100);
  color: var(--color-stone-400);
}

.agenda-check-btn.checked {
  background: var(--color-stone-900);
  border-color: var(--color-stone-900);
  color: #ffffff;
}

.agenda-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agenda-card-top-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.agenda-pres-pill {
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: var(--font-bold);
  color: var(--color-stone-700);
  background: var(--color-stone-100);
  border: 1px solid var(--color-stone-300);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.agenda-card-client-row {
  margin-top: 1px;
}

.agenda-client-name {
  font-size: 14.5px;
  font-weight: var(--font-bold);
  color: var(--color-stone-900);
}

.agenda-card-sub-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--color-stone-600);
}

.agenda-sub-icon {
  display: inline-flex;
  color: var(--color-stone-400);
  flex-shrink: 0;
}

.agenda-sub-icon svg {
  width: 13px;
  height: 13px;
}

.agenda-card-note-row {
  margin-top: 2px;
}

/* ── Month Calendar Grid ── */
.month-view-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.calendar-month-card {
  background: #ffffff;
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.calendar-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--color-stone-50);
  border-bottom: 1px solid var(--color-stone-200);
}

.calendar-weekday {
  padding: 10px 4px;
  text-align: center;
  font-size: 11.5px;
  font-weight: var(--font-bold);
  color: var(--color-stone-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--color-stone-200);
  gap: 1px;
}

.calendar-day-cell {
  background: #ffffff;
  min-height: 86px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.12s ease;
  position: relative;
}

.calendar-day-cell:hover {
  background: var(--color-stone-50);
}

.calendar-day-cell.is-other-month {
  background: #fafaf9;
  opacity: 0.45;
  cursor: default;
}

.calendar-day-cell.is-today {
  background: #fdfbf7;
}

.calendar-day-cell.is-today .day-num {
  background: var(--color-stone-900);
  color: #ffffff;
  border-radius: var(--radius-full);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.calendar-day-cell.is-selected {
  outline: 2px solid var(--color-stone-900);
  outline-offset: -2px;
  background: #f8fafc;
}

.calendar-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.day-num {
  font-size: 12px;
  font-weight: var(--font-bold);
  color: var(--color-stone-800);
}

.day-events-count {
  font-size: 10px;
  font-weight: var(--font-bold);
  background: var(--color-stone-100);
  color: var(--color-stone-700);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-full);
  padding: 0 5px;
  line-height: 16px;
}

.calendar-day-chips {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.calendar-event-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color-stone-100);
  border-radius: var(--radius-sm);
  padding: 2px 5px;
  font-size: 10.5px;
  font-weight: var(--font-medium);
  color: var(--color-stone-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 2px solid var(--color-stone-700);
}

.calendar-event-chip.is-done {
  opacity: 0.65;
  text-decoration: line-through;
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-more-chip {
  font-size: 10px;
  font-weight: var(--font-bold);
  color: var(--color-stone-500);
  padding-left: 4px;
}

/* ── Selected Day Panel (Under Month Grid) ── */
.selected-day-box {
  background: #ffffff;
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.selected-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-stone-100);
}

/* ── Event Detail Sheet & Modals ── */
.event-detail-sheet {
  display: flex;
  flex-direction: column;
}

.detail-mini-card {
  background: var(--color-stone-50);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-mini-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: var(--font-bold);
  color: var(--color-stone-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-mini-label svg {
  width: 12px;
  height: 12px;
}

.detail-mini-val {
  font-size: 14px;
  font-weight: var(--font-bold);
  color: var(--color-stone-900);
}

.detail-info-block {
  background: var(--color-stone-50);
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.cobro-balance-alert {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: #fff8e7;
  border: 1px solid #e7ce8f;
  border-radius: var(--radius-md);
  color: var(--color-stone-900);
}

/* ── Interactive Hovers ── */
.cliente-evento-row:hover {
  background: var(--color-stone-50);
}

.dashboard-evento-item:hover {
  background: var(--color-stone-50);
  border-radius: var(--radius-md);
}

/* ── Responsive Rules for Calendar ── */
@media (max-width: 640px) {
  .calendar-nav-bar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }

  .calendar-nav-controls {
    justify-content: space-between;
  }

  .calendar-filters {
    width: 100%;
  }

  .calendar-filters select {
    flex: 1;
  }

  .calendar-day-cell {
    min-height: 54px;
    padding: 3px 4px;
  }

  .calendar-day-chips {
    display: none;
  }

  .calendar-weekday {
    padding: 6px 2px;
    font-size: 10px;
  }

  .agenda-card {
    padding: var(--space-2) var(--space-3);
  }
}


