:root {
  --bg: #eef1eb;
  --bg-strong: #e2e7dd;
  --surface: #ffffff;
  --surface-2: #f7f9f5;
  --ink: #142014;
  --muted: #62705f;
  --line: rgba(20, 32, 20, 0.1);
  --brand: #c8f000;
  --brand-deep: #94b300;
  --dark: #11170f;
  --danger: #c6483b;
  --warning: #e7a818;
  --ok: #2f8f4e;
  --shadow: 0 18px 48px rgba(17, 23, 15, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Sora", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 240, 0, 0.18), transparent 32%),
    linear-gradient(180deg, #f6f8f2 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.screen {
  min-height: 100vh;
}

.boot-splash {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
  background: rgba(238, 241, 235, 0.96);
  backdrop-filter: blur(8px);
}

.boot-card,
.auth-card,
.surface-card,
.hero-card,
.stat-card {
  box-shadow: var(--shadow);
}

.boot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  width: min(90vw, 420px);
}

.boot-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.auth-screen {
  display: grid;
  align-items: center;
  padding: 32px;
}

.auth-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.auth-copy {
  padding: 24px 20px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(200, 240, 0, 0.22);
  color: #394918;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-copy h1,
.hero-card h1 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.auth-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 5vw, 70px);
}

.auth-copy p,
.section-copy,
.profile-caption {
  color: var(--muted);
  line-height: 1.55;
}

.auth-admin-copy {
  margin: 6px 0 10px;
}

.auth-points,
.status-list {
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.auth-points li,
.status-list li {
  padding-left: 20px;
  position: relative;
}

.auth-points li::before,
.status-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-deep);
}

.secondary-link {
  display: inline-flex;
  margin-top: 24px;
  font-weight: 700;
  color: #33452a;
}

.auth-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 32, 20, 0.08);
  border-radius: 28px;
  padding: 24px;
}

.auth-header,
.surface-head,
.workspace-topbar,
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup.compact {
  gap: 10px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-title span {
  color: var(--brand-deep);
}

.brand-subtitle,
.workspace-kicker {
  color: var(--muted);
  font-size: 13px;
}

.security-pill,
.mini-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  background: var(--dark);
  color: #efffd5;
}

.mini-pill.neutral {
  background: rgba(20, 32, 20, 0.08);
  color: #41543b;
}

.mini-pill.warn {
  background: rgba(231, 168, 24, 0.14);
  color: #8a5f00;
}

.tab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 24px 0 16px;
  padding: 6px;
  background: var(--surface-2);
  border-radius: 16px;
}

.tab {
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background: var(--dark);
  color: #efffd5;
}

.auth-form,
.profile-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 12px;
  font-weight: 700;
  color: #4a5a46;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(20, 32, 20, 0.14);
  border-radius: 14px;
  padding: 14px 15px;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.profile-section {
  padding: 16px 0;
  border-bottom: 1px solid rgba(20, 32, 20, 0.08);
}

.profile-section:last-child {
  border-bottom: none;
}

.profile-section-fields input:disabled,
.profile-section-fields select:disabled,
.profile-section-fields textarea:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: rgba(20, 32, 20, 0.04);
  color: #5f6c5a;
  pointer-events: none;
}

.profile-section-fields .ghost-btn:disabled,
.profile-section-fields .primary-btn:disabled,
.profile-section-fields input[type="file"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.profile-edit-btn.editing {
  background: rgba(20, 32, 20, 0.06);
  color: var(--danger);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(148, 179, 0, 0.24);
  border-color: rgba(148, 179, 0, 0.55);
}

.split-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hair-staff-field {
  padding: 14px;
  border: 1px solid rgba(20, 32, 20, 0.1);
  border-radius: 14px;
  background: rgba(20, 32, 20, 0.03);
}

.hair-staff-list {
  display: grid;
  gap: 10px;
}

.hair-staff-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  align-items: center;
}

.hair-staff-row .remove-row-btn {
  width: 42px;
  height: 42px;
}

.hair-staff-add {
  justify-content: center;
  min-height: 42px;
}

.hair-staff-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 10px 0;
}

.google-btn,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  min-height: 50px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.google-btn:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.google-btn {
  border: 1px solid rgba(20, 32, 20, 0.12);
  background: #fff;
  color: var(--ink);
}

.primary-btn {
  border: 0;
  background: linear-gradient(135deg, var(--brand) 0%, #d7ff39 100%);
  color: #172011;
}

.ghost-btn {
  border: 1px solid rgba(20, 32, 20, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.ghost-btn.danger {
  color: var(--danger);
}

.divider {
  position: relative;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0;
}

.divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(20, 32, 20, 0.12);
}

.divider span {
  position: relative;
  background: var(--surface);
  padding: 0 12px;
}

.notice {
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.notice.info {
  background: rgba(200, 240, 0, 0.16);
  color: #41541d;
  border-color: rgba(148, 179, 0, 0.25);
}

.notice.error {
  background: rgba(198, 72, 59, 0.1);
  color: #8f3227;
  border-color: rgba(198, 72, 59, 0.2);
}

.app-screen {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  min-height: 100vh;
  padding: 22px 18px;
  background: linear-gradient(180deg, #12190f 0%, #182115 100%);
  color: #edf1e8;
  position: sticky;
  top: 0;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  margin: 30px 0;
}

.nav-link {
  padding: 13px 14px;
  border-radius: 14px;
  color: rgba(237, 241, 232, 0.74);
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(200, 240, 0, 0.13);
  color: #efffd5;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-user p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(237, 241, 232, 0.68);
}

.workspace {
  padding: 28px;
}

.workspace-topbar {
  margin-bottom: 18px;
}

.workspace-topbar h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.workspace-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── NOTIFICATION BELL ─────────────────────────────────────── */
.notif-bell-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.notif-bell-btn:hover {
  background: rgba(163,230,53,0.12);
  transform: scale(1.05);
}
.notif-bell-btn.has-unread {
  animation: bellShake 0.5s ease;
}
@keyframes bellShake {
  0%,100%{transform:rotate(0)}
  20%{transform:rotate(-12deg)}
  40%{transform:rotate(12deg)}
  60%{transform:rotate(-8deg)}
  80%{transform:rotate(8deg)}
}
.notif-bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface, #0f1f0d);
  line-height: 1;
}

/* ── NOTIFICATION DRAWER ───────────────────────────────────── */
.notif-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 92vw;
  height: 100vh;
  background: var(--surface, #0f1f0d);
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -8px 0 32px rgba(0,0,0,0.35);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  animation: drawerSlideIn 0.25s ease;
}
@keyframes drawerSlideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.notif-drawer[hidden] { display: none; }
.notif-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.notif-drawer-head h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}
.notif-drawer-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.notif-drawer-close:hover { background: rgba(255,255,255,0.07); }
.notif-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}
.notif-drawer-empty {
  padding: 32px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.notif-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
  cursor: default;
}
.notif-item.unread {
  background: rgba(163,230,53,0.05);
}
.notif-item:hover { background: rgba(255,255,255,0.04); }
.notif-item-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
}
.notif-item-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.notif-item-time {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0.7;
}
.notif-item-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a3e635;
  flex-shrink: 0;
  margin-top: 5px;
}
.notif-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1199;
}
.notif-drawer-backdrop[hidden] { display: none; }

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.hero-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(200, 240, 0, 0.28), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f7faf0 100%);
  border: 1px solid rgba(20, 32, 20, 0.08);
}

.hero-card h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 4vw, 52px);
}

.hero-badge {
  min-width: 220px;
  padding: 18px;
  border-radius: 20px;
  background: var(--dark);
  color: #f4ffe1;
}

.hero-badge-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(244, 255, 225, 0.7);
}

.hero-badge strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
}

.stats-grid,
.grid-two {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.analytics-board {
  margin-top: 18px;
}

.analytics-live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.analytics-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.analytics-box {
  border-radius: 18px;
  border: 1px solid rgba(20, 32, 20, 0.08);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
}

.analytics-list {
  display: grid;
  gap: 10px;
}

.analytics-row {
  border: 1px solid rgba(20, 32, 20, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--surface-2);
}

.analytics-row-head,
.analytics-row-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.analytics-row-head strong {
  font-size: 14px;
}

.analytics-row-head span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.analytics-row-foot {
  margin-top: 6px;
}

.analytics-row-foot small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analytics-row-foot b {
  font-size: 13px;
}

.analytics-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(20, 32, 20, 0.1);
  overflow: hidden;
  margin-top: 8px;
}

.analytics-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #9ec100 0%, #c8f000 100%);
}

.collab-pulse-board {
  margin-top: 18px;
}

.collab-pulse-kpis {
  margin-top: 16px;
}

.collab-pulse-bottom {
  margin-top: 16px;
}

.collab-pulse-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.analytics-empty {
  padding: 14px;
  border: 1px dashed rgba(20, 32, 20, 0.12);
  border-radius: 14px;
  background: rgba(247, 249, 245, 0.85);
  color: var(--muted);
  font-size: 13px;
}

.report-stat-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 32, 20, 0.08);
}

.report-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.report-stat-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.payment-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20, 32, 20, 0.06);
  border: 1px solid rgba(20, 32, 20, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.payment-pill small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.stat-card,
.surface-card {
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid rgba(20, 32, 20, 0.08);
}

.stat-card {
  padding: 20px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: -0.05em;
}

.stat-card.highlight {
  background: linear-gradient(135deg, #182115 0%, #283020 100%);
  color: #f2ffd1;
}

.stat-card.highlight span {
  color: rgba(242, 255, 209, 0.74);
}

.surface-card {
  padding: 22px;
}

.surface-head {
  margin-bottom: 18px;
}

.surface-head h3 {
  margin: 0;
  font-size: 20px;
}

.surface-head.compact {
  margin-bottom: 12px;
}

.surface-head.compact h4 {
  margin: 0;
  font-size: 16px;
}

.detail-list {
  display: grid;
  gap: 16px;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(20, 32, 20, 0.06);
  padding-bottom: 12px;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.transfer-card {
  display: grid;
  gap: 18px;
}

.transfer-card > .surface-head {
  margin-bottom: 0;
}

.transfer-detail-list {
  margin: 0;
  gap: 14px;
}

.transfer-share-box {
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(200, 240, 0, 0.16), transparent 42%),
    linear-gradient(135deg, #f7faf0 0%, #eef3e8 100%);
  border: 1px solid rgba(20, 32, 20, 0.08);
}

.transfer-share-copy,
.transfer-edit-hint {
  margin: 0;
  color: var(--muted);
}

.transfer-share-copy {
  font-size: 13px;
  line-height: 1.5;
}

.transfer-link-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 32, 20, 0.08);
}

.transfer-link-box--info {
  justify-content: center;
  background: rgba(248, 251, 242, 0.92);
}

.transfer-link-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  color: #31402c;
  font-size: 15px;
  line-height: 1.5;
  font-family: var(--font-body);
  font-weight: 700;
  text-align: center;
}

.transfer-copy-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 14px;
  min-height: 44px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--brand) 0%, #d7ff39 100%);
  color: #172011;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 10px 20px rgba(148, 179, 0, 0.18);
}

.transfer-copy-btn:hover {
  transform: translateY(-1px);
}

.transfer-copy-feedback {
  display: none;
  margin: 10px 0 0;
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
}

.transfer-edit-hint {
  font-size: 12px;
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(20, 32, 20, 0.08);
  text-align: left;
  font-size: 14px;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.empty-row {
  text-align: center;
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-editor,
.gallery-editor {
  display: grid;
  gap: 14px;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid rgba(20, 32, 20, 0.08);
}

.service-item strong {
  display: block;
}

.service-item span {
  color: var(--muted);
  font-size: 13px;
}

.service-row,
.gallery-row {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(20, 32, 20, 0.08);
  background: var(--surface-2);
}

.service-row-grid,
.gallery-row-grid,
.inline-actions,
.checkbox-grid {
  display: grid;
  gap: 12px;
}

.service-row-grid {
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 0.8fr)) auto;
}

.gallery-row-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
}

.inline-actions {
  grid-template-columns: repeat(auto-fit, minmax(220px, max-content));
  margin: 12px 0 18px;
}

.checkbox-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(20, 32, 20, 0.08);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.check-card input {
  width: 18px;
  height: 18px;
}

.surface-subsection {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 32, 20, 0.08);
}

.collab-accordion {
  padding: 14px 0 0;
}

.collab-accordion-head {
  gap: 12px;
}

.collab-accordion-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  min-width: 0;
  flex: 1;
  cursor: pointer;
  font-family: inherit;
}

.collab-accordion-toggle strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.collab-accordion-toggle small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

.accordion-chevron {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(190, 242, 100, 0.28);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform .16s ease;
  flex: 0 0 auto;
}

.collab-accordion.is-collapsed .accordion-chevron {
  transform: rotate(0deg);
}

.collab-accordion.is-collapsed .collab-accordion-body {
  display: none;
}

.collab-accordion-body {
  padding-top: 12px;
}

.coords-grid {
  margin-top: -2px;
}

.mini-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.remove-row-btn {
  border: 0;
  border-radius: 12px;
  width: 44px;
  min-width: 44px;
  height: 48px;
  background: rgba(198, 72, 59, 0.1);
  color: var(--danger);
  font-weight: 800;
  cursor: pointer;
}

.empty-helper {
  padding: 16px;
  border-radius: 16px;
  background: rgba(20, 32, 20, 0.04);
  color: var(--muted);
}

.access-role-copy {
  min-height: 100%;
}

.gallery-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.gallery-preview img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(20, 32, 20, 0.08);
  background: #fff;
  cursor: zoom-in;
}

.gallery-preview-empty {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px dashed rgba(20, 32, 20, 0.2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.gallery-file-wrap {
  display: grid;
  gap: 8px;
}

.gallery-file-wrap input[type="file"] {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(20, 32, 20, 0.08);
  background: #fff;
  padding: 10px 12px;
}

.summary-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.summary-gallery-item {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(20, 32, 20, 0.08);
  background: #fff;
  cursor: pointer;
}

.summary-gallery-item img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: rgba(20, 32, 20, 0.04);
}

.summary-gallery-item:hover img,
.gallery-preview img:hover {
  filter: brightness(0.98);
}

.summary-gallery-copy {
  padding: 12px 14px 14px;
}

.summary-gallery-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.summary-gallery-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 9, 0.48);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(920px, 100%);
  padding: 22px;
  border-radius: 28px;
  background: #fefefe;
  box-shadow: 0 30px 80px rgba(16, 24, 12, 0.22);
  border: 1px solid rgba(20, 32, 20, 0.08);
}

.map-canvas {
  width: 100%;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(20, 32, 20, 0.08);
  background: rgba(20, 32, 20, 0.06);
}

.photo-modal-card {
  width: min(980px, 100%);
}

.photo-modal-frame {
  display: grid;
  place-items: center;
  min-height: 320px;
  max-height: 72vh;
  overflow: auto;
  border-radius: 22px;
  background: rgba(20, 32, 20, 0.05);
  border: 1px solid rgba(20, 32, 20, 0.08);
  padding: 12px;
}

.photo-modal-frame img {
  max-width: 100%;
  max-height: calc(72vh - 24px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}

.leaflet-container {
  font-family: var(--font-body);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.profile-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, #d6ff3b 100%);
  color: #1b2514;
  font-family: var(--font-display);
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar.large {
  width: 68px;
  height: 68px;
  font-size: 24px;
}

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

.avatar-upload-wrap {
  position: relative;
  flex-shrink: 0;
}

.avatar-cam-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--surface);
  color: #172011;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
}

.avatar-cam-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(163, 230, 53, 0.4);
}

.avatar-cam-btn svg {
  display: block;
}

.status-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-tag.pending {
  background: rgba(231, 168, 24, 0.14);
  color: #8a5f00;
}

.status-tag.done {
  background: rgba(47, 143, 78, 0.14);
  color: #266f3c;
}

.status-tag.cancel {
  background: rgba(198, 72, 59, 0.12);
  color: #983b31;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

.request-filter-bar {
  align-items: end;
}

.compact-toolbar {
  grid-template-columns: 220px minmax(260px, 1fr) auto;
}

.ticket-summary-grid {
  margin-top: 8px;
}

.admin-ticket-table td strong,
.admin-ticket-table td code {
  white-space: nowrap;
}

.admin-ticket-table td code {
  color: var(--muted);
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background: rgba(200, 240, 0, 0.08);
}

.recent-group-list {
  display: grid;
  gap: 18px;
}

.recent-day-group {
  border: 1px solid rgba(20, 32, 20, 0.08);
  border-radius: 20px;
  padding: 16px;
  background: var(--surface-2);
}

.pagination-bar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pagination-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 42px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(20, 32, 20, 0.12);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.pagination-btn.active {
  background: var(--dark);
  color: #efffd5;
  border-color: var(--dark);
}

.pagination-btn.disabled,
.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.booking-list,
.address-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.booking-card,
.address-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--surface-2);
}

.booking-card h4,
.address-card h4 {
  margin: 0;
  font-size: 18px;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.request-meta {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.request-meta strong {
  color: var(--ink);
}

.two-column,
.address-form-grid {
  display: grid;
  gap: 16px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.address-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.address-span-2 {
  grid-column: 1 / -1;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.inline-primary {
  width: auto;
}

.danger-text {
  color: var(--danger);
}

.feedback-modal-card {
  max-width: 440px;
  text-align: left;
}

.feedback-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #d9ff57 0%, #c8f000 100%);
  color: #20310f;
  font-size: 28px;
  font-weight: 800;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.feedback-icon.error {
  background: linear-gradient(180deg, #f7d1cb 0%, #f1b3a8 100%);
  color: #8d2b1f;
}

.feedback-icon.warn {
  background: linear-gradient(180deg, #ffe9b5 0%, #ffd36d 100%);
  color: #805300;
}

.feedback-copy h3 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.feedback-actions {
  margin-top: 22px;
  justify-content: flex-start;
}

@media (max-width: 1080px) {
  .auth-shell,
  .app-screen,
  .stats-grid,
  .grid-two,
  .analytics-split,
  .report-summary-grid,
  .report-toolbar {
    grid-template-columns: 1fr;
  }

  .analytics-live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* ── MENÚ TIPO LISTA GRANDE (Opción C) en móvil ─────────────────────── */

  /* Ocultar sidebar original en móvil */
  .sidebar {
    display: none !important;
  }

  /* App screen: columna única (sin sidebar) — solo cuando está visible */
  .app-screen:not([hidden]) {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }

  /* Auth screen: layout normal centrado */
  .auth-screen {
    display: flex;
  }

  /* mobile-header: visible cuando JS agrega .mh-visible */
  .mobile-header.mh-visible {
    display: flex !important;
  }

  /* Workspace sin padding lateral extra */
  .workspace {
    padding: 16px 14px 100px;
  }

  .hero-card {
    flex-direction: column;
    align-items: start;
  }

  .service-row-grid,
  .gallery-row-grid,
  .two-column,
  .address-form-grid {
    grid-template-columns: 1fr;
  }

  .address-span-2 {
    grid-column: auto;
  }

  .modal-card {
    padding: 18px;
  }

  .map-canvas {
    height: 360px;
  }
}

@media (max-width: 720px) {
  .auth-screen,
  .workspace {
    padding: 18px;
  }

  .auth-card,
  .surface-card,
  .hero-card {
    padding: 18px;
  }

  .split-fields {
    grid-template-columns: 1fr;
    display: grid;
  }

  .workspace-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .workspace-actions .ghost-btn {
    width: auto !important;
    font-size: 12px;
    padding: 0 12px;
    min-height: 34px;
    white-space: nowrap;
  }

  .analytics-live-grid {
    grid-template-columns: 1fr;
  }

  .workspace-topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .modal-shell {
    padding: 14px;
  }

  .map-canvas {
    height: 300px;
  }
}


/* ── MANTENEDOR CLIENTES / COLABORADORES ─────────────────── */
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 9px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-body);
  transition: border-color .15s;
}
.search-input:focus { outline: none; border-color: var(--brand-deep); }
.filter-select {
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-body);
}
.table-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  margin-left: auto;
  font-weight: 600;
}
.btn-sm { font-size: 13px !important; padding: 7px 16px !important; }
.btn-primary {
  background: var(--brand);
  color: var(--dark);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity .15s;
  letter-spacing: -.01em;
}
.btn-primary:hover { opacity: .85; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background .12s;
}
.btn-secondary:hover { background: var(--bg-strong); }
.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-body);
}
.action-btn {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  margin-right: 4px;
  font-family: var(--font-body);
  transition: background .1s;
}
.action-btn:hover { background: var(--bg-strong); }
.action-btn.danger { border-color: var(--danger); color: var(--danger); }
.action-btn.danger:hover { background: rgba(198,72,59,.08); }

/* Modal overlay — usa el mismo estilo base del portal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.44);
  backdrop-filter: blur(12px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  padding: 0;
}
@media(min-width:768px){
  .modal-overlay { align-items: center; padding: 20px; }
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: rgba(248,250,247,.96);
  border: 1px solid rgba(16,24,40,.1);
  box-shadow: 0 -24px 60px rgba(15,23,42,.2);
  border-radius: 28px 28px 0 0;
  padding: 28px 24px 32px;
  width: 100%;
  max-width: 580px;
  animation: modalIn .18s ease;
}
@media(min-width:768px){
  .modal-box { border-radius: 28px; box-shadow: 0 8px 48px rgba(15,23,42,.18); }
}
.modal-sm { max-width: 420px; }
@keyframes modalIn {
  from { opacity:0; transform: translateY(20px) scale(.98); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.modal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}
.modal-close {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(16,24,40,.12);
  box-shadow: var(--shadow-sm);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease, background .18s ease;
  color: var(--ink);
}
.modal-close:hover { transform: rotate(90deg); background: var(--bg-strong); }
.form-row { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { flex: none; width: 100%; }
.form-group label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brand-deep);
}
.form-group input:disabled, .form-group textarea:disabled {
  background: var(--surface-2); color: var(--muted); cursor: default;
}
.form-notice {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.form-notice.error { background: rgba(198,72,59,.1); color: var(--danger); }
.form-notice.success { background: rgba(47,143,78,.1); color: var(--ok); }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.delete-msg { font-size: 14px; color: var(--muted); margin-bottom: 8px; line-height: 1.65; }
.pill-active {
  background: rgba(47,143,78,.12); color: var(--ok);
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 800;
}
.pill-inactive {
  background: rgba(198,72,59,.1); color: var(--danger);
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 800;
}
.surface-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.section-copy { font-size: 13px; color: var(--muted); margin-top: 2px; }
/* ============================================================
   ADMIN — MOBILE RESPONSIVE (≤768px, ≤600px, ≤480px, ≤360px)
   ============================================================ */
html, body { overflow-x: hidden; max-width: 100vw; }
*, *::before, *::after { box-sizing: border-box; }

@media (max-width: 768px) {
  /* Sidebar collapses to top nav */
  .app-screen { grid-template-columns: 1fr; }

  .sidebar {
    min-height: auto;
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar-head { flex-shrink: 0; margin: 0; }

  .sidebar-nav {
    display: flex;
    flex-direction: row;
    gap: 4px;
    margin: 0;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .nav-link { padding: 7px 12px; font-size: 12px; white-space: nowrap; border-radius: 20px; }

  .sidebar-user {
    flex-shrink: 0;
    padding: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
  }
  .sidebar-user p,
  .sidebar-user strong,
  .sidebar-user span:not(.sidebar-avatar) { display: none; }

  /* Workspace */
  .workspace { padding: 14px; }
  .surface-card { padding: 14px; border-radius: 16px; }
  .surface-head { flex-wrap: wrap; gap: 8px; }
  .transfer-share-box {
    padding: 14px;
    border-radius: 16px;
  }
  .transfer-link-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }
  .transfer-copy-btn {
    width: auto;
    min-width: 132px;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 16px;
    white-space: nowrap;
  }

  /* Analytics / stat grids */
  .stats-grid,
  .analytics-split,
  .report-summary-grid { grid-template-columns: 1fr 1fr; }

  /* Tables: scrollable */
  .table-wrap,
  .report-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table,
  .report-table { min-width: 500px; font-size: 12px; }
  .data-table td,
  .data-table th { padding: 9px 7px; }

  /* Table toolbar filters */
  .table-toolbar,
  .report-toolbar { flex-direction: column; align-items: stretch; }
  .table-toolbar input,
  .table-toolbar select,
  .report-toolbar select { width: 100%; }

  /* Form rows */
  .form-row,
  .split-fields,
  .two-column { grid-template-columns: 1fr; flex-direction: column; }

  /* Modals */
  .modal-shell { padding: 0; align-items: flex-end; }
  .modal-card  {
    width: 100%;
    max-width: 100%;
    border-radius: 22px 22px 0 0;
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 600px) {
  .workspace { padding: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .analytics-live-grid { grid-template-columns: 1fr 1fr; }
  .workspace-topbar h2 { font-size: 20px; }
  .transfer-link-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .workspace { padding: 10px; }
  .surface-card { padding: 12px; border-radius: 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .analytics-live-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 14px 12px; }
  .transfer-share-copy,
  .transfer-edit-hint {
    font-size: 12px;
  }
  .transfer-link-box {
    padding: 10px 10px 10px 12px;
    border-radius: 14px;
  }
  .transfer-link-text {
    justify-content: flex-start;
    text-align: left;
    font-size: 13px;
  }
  .transfer-copy-btn {
    min-width: 118px;
    min-height: 46px;
    padding: 0 14px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .workspace    { padding: 8px; }
  .surface-card { padding: 10px; border-radius: 12px; }
  .nav-link     { padding: 6px 10px; font-size: 11px; }
  .stats-grid   { grid-template-columns: 1fr; }
  .modal-card   { padding: 12px 10px; }
}
/* ── Hero status button ─────────────────────────────────────── */
.hero-badges-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  flex-shrink: 0;
}

.hero-status-btn {
  width: 200px;
  box-sizing: border-box;
  padding: 18px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .12s, filter .15s;
}
.hero-status-btn:hover { filter: brightness(1.08); }
.hero-status-btn:active { transform: scale(.96); }

.hero-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-status-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.hero-status-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.hero-status-btn strong {
  font-size: 22px;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.hero-status-sub {
  font-size: 11px;
}

/* ── Desactivado: fondo rojo, ícono y pill burdeo ── */
.hero-status-btn.inactive {
  background: #dc2626 !important;
}
.hero-status-btn.inactive .hero-status-icon {
  background: #991b1b;
  color: #fff;
}
.hero-status-btn.inactive .hero-status-pill {
  background: #991b1b;
  color: #fff;
}
.hero-status-btn.inactive strong { color: #fff; }
.hero-status-btn.inactive .hero-status-sub { color: rgba(255,255,255,.65); }

/* ── Activado: fondo verde lima, ícono y pill verde oscuro ── */
.hero-status-btn.active {
  background: #a3e635 !important;
}
.hero-status-btn.active .hero-status-icon {
  background: #3a5c0a;
  color: #a3e635;
}
.hero-status-btn.active .hero-status-pill {
  background: #3a5c0a;
  color: #a3e635;
}
.hero-status-btn.active strong { color: #1a2e05; }
.hero-status-btn.active .hero-status-sub { color: rgba(26,46,5,.6); }

/* Badge categoría mismo ancho */
.hero-badge {
  width: 200px;
  min-width: 200px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .hero-badges-col {
    width: 100%;
    align-items: stretch;
  }

  .hero-status-btn,
  .hero-badge {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .hero-badge {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero-card {
    gap: 18px;
    padding: 20px;
  }

  .hero-card h1 {
    font-size: clamp(30px, 10vw, 52px);
  }

  .hero-status-btn,
  .hero-badge {
    padding: 16px 18px;
  }
}

@media (max-width: 480px) {
  .hero-card {
    padding: 18px 16px;
  }

  .hero-badges-col {
    gap: 10px;
  }

  .hero-status-btn strong,
  .hero-badge strong {
    font-size: 20px;
  }
}
/* ──────────────────────────────────────────────────────────── *//* ── DISPONIBILIDAD SEMANAL ──────────────────────────────────────────── */

.avail-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avail-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  transition: background 0.2s, border-color 0.2s;
}

.avail-row--on {
  background: rgba(163, 230, 53, 0.08);
  border-color: rgba(148, 179, 0, 0.35);
}

/* Toggle switch */
.avail-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.avail-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.avail-track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(20, 32, 20, 0.14);
  border: 1.5px solid rgba(20, 32, 20, 0.12);
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.avail-toggle input:checked ~ .avail-track {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}
.avail-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s;
}
.avail-toggle input:checked ~ .avail-track .avail-thumb {
  transform: translateX(18px);
}

.avail-day-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  width: 96px;
  flex-shrink: 0;
}

.avail-times {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.avail-times--disabled {
  opacity: 0.38;
  pointer-events: none;
}

.avail-field {
  min-width: 110px;
  flex: 1;
}
.avail-field label.field span {
  font-size: 11px;
  letter-spacing: 0.04em;
}
.avail-field input[type='time'] {
  padding: 8px 12px;
  font-size: 14px;
  border: 1.5px solid rgba(20, 32, 20, 0.14);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s;
}
.avail-field input[type='time']:focus {
  outline: none;
  border-color: rgba(148, 179, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(148, 179, 0, 0.12);
}

/* Responsive: tablet */
@media (max-width: 768px) {
  .avail-row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 12px;
  }
  .avail-day-label { width: auto; min-width: 80px; }
  .avail-times { width: 100%; flex-wrap: nowrap; }
  .avail-field { min-width: 90px; }
}

/* Responsive: mobile */
@media (max-width: 480px) {
  .avail-row { padding: 10px 10px; gap: 8px; }
  .avail-day-label { font-size: 13px; min-width: 70px; }
  .avail-times { flex-direction: column; gap: 6px; }
  .avail-field { min-width: 0; width: 100%; }
  .avail-field input[type='time'] { font-size: 15px; padding: 10px 12px; }
}
/* ── Tabla de trabajos: card layout en móvil ─────────────────────────────── */
@media (max-width: 640px) {
  /* Ocultar el thead — las etiquetas vienen del data-label */
  #jobsTable thead { display: none; }

  /* Quitar el overflow horizontal: las cards se apilan verticalmente */
  #panel-trabajos .table-wrap { overflow-x: visible; }
  #jobsTable { min-width: 0; width: 100%; display: block; }
  #jobsTable tbody { display: block; }

  /* Cada fila se convierte en una tarjeta */
  #jobsTable tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    background: var(--surface-2, #f7faf2);
    border: 1px solid var(--line, rgba(20,32,20,.1));
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }
  #jobsTable tbody tr:last-child { margin-bottom: 0; }

  /* Cada celda muestra su etiqueta encima del valor */
  #jobsTable tbody td {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none;
    font-size: 13px;
  }
  #jobsTable tbody td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted, #6b7c6b);
    margin-bottom: 2px;
  }

  /* Cliente y Servicio: ocupan mitad del ancho cada uno */
  #jobsTable tbody td:nth-child(1),
  #jobsTable tbody td:nth-child(2) { grid-column: span 1; }

  /* Fecha, Monto, Estado: alineados en la segunda fila */
  #jobsTable tbody td:nth-child(3),
  #jobsTable tbody td:nth-child(4),
  #jobsTable tbody td:nth-child(5) { grid-column: span 1; }

  /* Acciones: ancho completo en fila propia */
  #jobsTable tbody td:nth-child(6) {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 8px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line, rgba(20,32,20,.08));
  }
  #jobsTable tbody td:nth-child(6)::before { display: none; }
  #jobsTable tbody td:nth-child(6) button { flex: 1; text-align: center; }

  /* Filtros del toolbar en columna */
  .crud-toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .crud-search-wrap,
  .crud-search-input,
  .crud-filter-select { width: 100%; box-sizing: border-box; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOQUEO DE HORAS ESPECÍFICAS — Layout responsivo
   ═══════════════════════════════════════════════════════════════════════════ */

/* Leyenda */
.block-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 14px 0 16px;
  align-items: center;
}
.block-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.block-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.block-legend-dot--free   { background: var(--surface-2); border: 1.5px solid var(--line); }
.block-legend-dot--booked { background: rgba(231,168,24,0.22); border: 1.5px solid rgba(231,168,24,0.6); }
.block-legend-dot--manual { background: rgba(198,72,59,0.15); border: 1.5px solid rgba(198,72,59,0.5); }

/* ── Contenedor principal: calendario + slots en fila ──────────────────── */
.block-main-row {
  display: grid;
  grid-template-columns: 340px 1fr;   /* cal fijo | slots flex */
  gap: 20px;
  align-items: start;
}

/* Calendario */
.block-cal-wrap {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  /* ancho controlado por el grid, sin max-width aquí */
  flex-shrink: 0;
}

.block-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.block-cal-month {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  text-transform: capitalize;
}

.block-cal-nav {
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.block-cal-nav:hover { background: var(--bg-strong); }

.block-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.block-cal-dow {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  padding: 3px 0 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.block-cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
  gap: 1px;
}
.block-cal-day:hover:not(.block-cal-day--empty):not(.block-cal-day--inactive):not(.block-cal-day--past) {
  background: var(--bg-strong);
  border-color: var(--line);
}
.block-cal-day--empty    { cursor: default; }
.block-cal-day--past     { color: var(--muted); opacity: 0.38; cursor: default; }
.block-cal-day--inactive { color: var(--muted); opacity: 0.4; cursor: not-allowed; }
.block-cal-day--today    { border-color: var(--brand-deep) !important; }
.block-cal-day--selected {
  background: var(--brand) !important;
  border-color: var(--brand-deep) !important;
  color: var(--dark) !important;
}

/* Puntos indicadores debajo del número */
.block-cal-dots {
  display: flex;
  gap: 2px;
  height: 4px;
  align-items: center;
}
.block-cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}
.block-cal-dot--booked { background: var(--warning); }
.block-cal-dot--manual { background: var(--danger); }

/* ── Panel de slots (columna derecha) ──────────────────────────────────── */
.block-slots-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 200px;
}

/* Placeholder cuando no hay fecha seleccionada */
.block-slots-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  gap: 10px;
  padding: 24px;
  text-align: center;
}
.block-slots-empty-icon { font-size: 28px; opacity: 0.5; }

/* Slots wrap (cuando hay fecha seleccionada) */
.block-slots-wrap {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.block-slots-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.block-slots-title > span:first-child {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-transform: capitalize;
}
.block-slots-hint {
  font-size: 11px;
  color: var(--muted);
}

.block-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 7px;
}

/* Slot base */
.block-slot {
  padding: 10px 4px;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
  line-height: 1.2;
}
.block-slot:hover:not(.block-slot--booked) { background: var(--bg-strong); }

/* Slot reservado por cliente */
.block-slot--booked {
  background: rgba(231,168,24,0.1);
  border-color: rgba(231,168,24,0.5);
  color: #a07000;
  cursor: not-allowed;
  font-size: 11px;
}
.block-slot--booked .block-slot-label { display: block; font-size: 9px; color: #a07000; margin-top: 1px; }

/* Slot bloqueado manualmente */
.block-slot--manual {
  background: rgba(198,72,59,0.1);
  border-color: rgba(198,72,59,0.4);
  color: var(--danger);
  text-decoration: line-through;
}
.block-slot--manual:hover { background: rgba(198,72,59,0.18); }

/* Botones acción */
.block-slot-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1.5px solid var(--line);
}

/* Resumen de bloqueos */
.block-summary {
  margin-top: 18px;
  border-top: 1.5px solid var(--line);
  padding-top: 16px;
}
.block-summary-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}
.block-summary-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.block-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 12px;
}
.block-summary-date  { font-weight: 700; color: var(--ink); min-width: 90px; }
.block-summary-hours { color: var(--danger); font-size: 11px; flex: 1; line-height: 1.4; }
.block-summary-clear {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 16px; line-height: 1;
  padding: 0 3px; border-radius: 4px;
  transition: color 0.15s; flex-shrink: 0;
}
.block-summary-clear:hover { color: var(--danger); }

/* Ghost button */
.ghost-btn {
  padding: 9px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ghost-btn:hover { background: var(--bg-strong); border-color: rgba(20,32,20,0.22); }

/* Badge danger */
.danger-pill {
  background: rgba(198,72,59,0.1);
  color: var(--danger);
  border-color: rgba(198,72,59,0.3);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

/* Tablet: calendario más angosto, slots en columna */
@media (max-width: 900px) {
  .block-main-row {
    grid-template-columns: 300px 1fr;
    gap: 14px;
  }
}

/* Tablet pequeña / landscape móvil: colapsa a columna */
@media (max-width: 680px) {
  .block-main-row {
    grid-template-columns: 1fr;   /* apila verticalmente */
    gap: 12px;
  }
  .block-cal-wrap {
    /* En móvil el calendario ocupa todo el ancho pero limitado para no quedar gigante */
    max-width: 100%;
  }
  .block-slots-empty {
    min-height: 100px;
    padding: 16px;
  }
}

/* Móvil pequeño */
@media (max-width: 400px) {
  .block-cal-wrap  { padding: 10px; }
  .block-cal-day   { font-size: 11px; }
  .block-slots-wrap { padding: 10px; }
  .block-slots-grid { grid-template-columns: repeat(auto-fill, minmax(62px,1fr)); gap: 5px; }
  .block-slot { font-size: 11px; padding: 8px 3px; }
  .block-summary-date { min-width: 72px; }
}


/* ═══════════════════════════════════════════════════════════════════════
   AGENDA DE TRABAJOS — layout 2 columnas responsivo
   ═══════════════════════════════════════════════════════════════════════ */

/* Toggle de vista */
.view-toggle-group {
  display: flex;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}
.view-toggle-btn {
  background: none; border: none; border-radius: 8px;
  padding: 5px 13px; font-size: 12px; font-weight: 600;
  color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s; white-space: nowrap;
}
.view-toggle-btn.active { background: var(--brand); color: var(--ink); }

/* ── Layout principal: 2 columnas ─────────────────────────────────── */
.agenda-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}

/* ── Columna izquierda: mini calendario ──────────────────────────── */
.agenda-col-cal { position: sticky; top: 12px; }

.agenda-mini-cal-wrap {
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}
.agenda-cal-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 8px; gap: 4px;
}
.agenda-cal-nav {
  background: none; border: 1.5px solid var(--line);
  border-radius: 7px; width: 26px; height: 26px;
  font-size: 15px; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .12s;
}
.agenda-cal-nav:hover { background: var(--brand); border-color: var(--brand-deep); }
.agenda-cal-month {
  font-size: 12px; font-weight: 700; color: var(--ink);
  text-transform: capitalize; text-align: center; flex: 1;
}
.agenda-cal-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 1px;
  width: 100%;
}
.agenda-cal-dow {
  text-align: center; font-size: 9px; font-weight: 700;
  color: var(--muted); padding: 2px 0 4px;
  text-transform: uppercase; letter-spacing: .03em;
}
.agenda-cal-day {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 6px; font-size: 11px; font-weight: 600;
  cursor: pointer; color: var(--ink);
  border: 1.5px solid transparent; position: relative;
  transition: background .12s, border-color .12s;
  gap: 1px; user-select: none; min-width: 0;
}
.agenda-cal-day:hover:not(.agenda-cal-day--empty):not(.agenda-cal-day--past) {
  background: rgba(200,240,0,.25); border-color: var(--brand-deep);
}
.agenda-cal-day--empty { cursor: default; }
.agenda-cal-day--past  { color: var(--muted); opacity: .35; cursor: default; }
.agenda-cal-day--today { border-color: var(--brand-deep) !important; font-weight: 800; }
.agenda-cal-day--sel   {
  background: var(--ink) !important; color: var(--brand) !important;
  border-color: var(--ink) !important;
}
.agenda-cal-day--has-booking::after {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--brand-deep); display: block;
}
.agenda-cal-day--sel.agenda-cal-day--has-booking::after { background: var(--brand); }

/* ── Columna derecha: navegación + timeline ──────────────────────── */
.agenda-col-timeline { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* Barra de navegación de día */
.agenda-date-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agenda-nav-btn {
  width: 32px; height: 32px; border: 1.5px solid var(--line);
  border-radius: 9px; background: var(--surface-2);
  font-size: 18px; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .12s, border-color .12s;
}
.agenda-nav-btn:hover { background: var(--brand); border-color: var(--brand-deep); }
.agenda-date-center { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.agenda-date-label {
  font-size: 15px; font-weight: 700; color: var(--ink);
  text-transform: capitalize; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.agenda-today-badge {
  background: var(--brand); color: var(--ink);
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 99px; border: 1.5px solid var(--brand-deep);
  white-space: nowrap; flex-shrink: 0;
}
.agenda-goto-today {
  background: none; border: 1.5px solid var(--line); border-radius: 8px;
  padding: 4px 11px; font-size: 11px; font-weight: 600;
  color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: background .12s, color .12s;
}
.agenda-goto-today:hover { background: var(--surface-2); color: var(--ink); }

/* Scroll del timeline */
.agenda-timeline-scroll {
  max-height: 480px; overflow-y: auto;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.agenda-timeline-scroll::-webkit-scrollbar { width: 4px; }
.agenda-timeline-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* Timeline */
.agenda-timeline { display: flex; flex-direction: column; }
.agenda-hour-row {
  display: grid; grid-template-columns: 44px 1fr;
  min-height: 52px; border-bottom: 1px solid var(--line);
}
.agenda-hour-row:last-child { border-bottom: none; }
.agenda-hour-row--current { background: rgba(200,240,0,.05); }
.agenda-hour-label {
  font-size: 10px; font-weight: 600; color: var(--muted);
  padding: 7px 8px 0; text-align: right; white-space: nowrap;
  border-right: 1px solid var(--line); box-sizing: border-box;
}
.agenda-hour-row--current .agenda-hour-label { color: var(--brand-deep); font-weight: 800; }
.agenda-hour-slot { padding: 5px 6px; display: flex; flex-direction: column; gap: 4px; min-height: 52px; }

/* Tarjeta de reserva */
.agenda-booking-card {
  background: var(--surface-2); border: 1.5px solid var(--line);
  border-left: 4px solid var(--brand-deep); border-radius: 9px;
  padding: 7px 10px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; cursor: pointer;
  transition: box-shadow .12s, transform .08s; flex-wrap: wrap;
}
.agenda-booking-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.07); transform: translateY(-1px); }
.agenda-booking-card--pending    { border-left-color: var(--brand-deep); }
.agenda-booking-card--confirmed  { border-left-color: #3b82f6; }
.agenda-booking-card--completed  { border-left-color: #22c55e; }
.agenda-booking-card--cancelled  { border-left-color: #ef4444; opacity: .55; }
.agenda-booking-card--in_progress{ border-left-color: #f59e0b; }

.agenda-booking-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.agenda-booking-client { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-booking-service { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-booking-staff { font-size: 11px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-booking-meta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.agenda-booking-amount { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.agenda-booking-actions { display: flex; gap: 5px; flex-shrink: 0; }
.agenda-booking-actions button { font-size: 11px !important; padding: 3px 8px !important; }

/* Estado vacío */
.agenda-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 36px 16px; gap: 8px;
  color: var(--muted); font-size: 13px; text-align: center;
}
.agenda-empty p { margin: 0; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .agenda-layout { grid-template-columns: 180px 1fr; gap: 12px; }
  .agenda-cal-day { font-size: 10px; }
  .agenda-date-label { font-size: 14px; }
}

@media (max-width: 640px) {
  .agenda-layout {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .agenda-col-cal { position: static; width: 100%; }
  .agenda-mini-cal-wrap { max-width: 100%; padding: 12px; }
  .agenda-cal-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 3px;
  }
  .agenda-cal-day { font-size: 13px; border-radius: 8px; }
  .agenda-cal-dow { font-size: 10px; }
  .agenda-cal-month { font-size: 13px; }
  .agenda-timeline-scroll { max-height: 360px; }
  .agenda-date-label { font-size: 13px; }
  .agenda-booking-card { flex-direction: column; align-items: flex-start; gap: 6px; }
  .agenda-booking-meta { width: 100%; justify-content: space-between; }
  .agenda-booking-actions { width: 100%; }
  .agenda-booking-actions button { flex: 1; text-align: center; }
  .view-toggle-btn { padding: 5px 10px; font-size: 11px; }
}

@media (max-width: 400px) {
  .agenda-hour-row { grid-template-columns: 36px 1fr; }
  .agenda-hour-label { font-size: 9px; padding: 6px 4px 0; }
  .agenda-cal-month { font-size: 11px; }
  .agenda-cal-nav { width: 22px; height: 22px; font-size: 13px; }
}

/* ══════════════════════════════════════════════════════════════════
   MENÚ MÓVIL — Lista grande (Opción C)
   Funciona en colaborador y cliente
   ══════════════════════════════════════════════════════════════════ */

/* Header fijo en móvil (oculto en desktop) */
.mobile-header {
  display: none !important;
  align-items: center;
  justify-content: space-between;
  background: #12190f;
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}
.mh-logo {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: white;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.mh-logo span { color: #c8f000; }
.mh-right { display: flex; align-items: center; gap: 10px; }
.mh-av {
  width: 34px; height: 34px; border-radius: 50%;
  background: #c8f000; color: #12190f;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  overflow: hidden; cursor: pointer; flex-shrink: 0;
}
.mh-av img { width: 100%; height: 100%; object-fit: cover; }
.mh-menu-btn {
  width: 38px; height: 38px;
  background: rgba(200,240,0,.12);
  border: 1px solid rgba(200,240,0,.25);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; color: #c8f000;
}

/* Backdrop oscuro */
.mnav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.mnav-backdrop.open { display: block; }

/* Panel del menú (slide desde abajo) */
.mnav-panel {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--surface, #fff);
  border-radius: 24px 24px 0 0;
  z-index: 201;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mnav-panel.open { transform: translateY(0); }

/* Asa del panel */
.mnav-handle {
  width: 40px; height: 4px;
  background: var(--line, rgba(0,0,0,.12));
  border-radius: 99px;
  margin: 12px auto 4px;
}

/* Cabecera del panel */
.mnav-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 14px;
  border-bottom: 1px solid var(--line, rgba(0,0,0,.08));
}
.mnav-head-info { flex: 1; min-width: 0; }
.mnav-head-name {
  font-size: 16px; font-weight: 700;
  color: var(--ink, #12190f);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mnav-head-email {
  font-size: 12px; color: var(--muted, #6b7a68);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mnav-close {
  width: 32px; height: 32px;
  background: var(--surface-2, #f7f9f5);
  border: 1px solid var(--line, rgba(0,0,0,.08));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--muted, #6b7a68);
  flex-shrink: 0;
}

/* Sección título */
.mnav-section-title {
  font-size: 11px; font-weight: 700;
  color: var(--muted, #6b7a68);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 14px 18px 6px;
}

/* Item de menú grande */
.mnav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--line, rgba(0,0,0,.06));
  cursor: pointer;
  transition: background .1s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mnav-item:last-of-type { border-bottom: none; }
.mnav-item:active { background: var(--surface-2, #f7f9f5); }
.mnav-item.active { background: #f0f9e8; }

/* Ícono grande */
.mnav-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: #e8f5e0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
  transition: background .1s, transform .1s;
}
.mnav-item.active .mnav-icon {
  background: #c8f000;
  transform: scale(1.05);
}

/* Texto del ítem */
.mnav-item-text { flex: 1; min-width: 0; }
.mnav-item-name {
  font-size: 16px; font-weight: 600;
  color: var(--ink, #12190f);
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mnav-item.active .mnav-item-name { color: #1a5a1a; }
.mnav-item-desc {
  font-size: 12px; color: var(--muted, #6b7a68);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Badge de notificación */
.mnav-badge {
  background: #ef4444; color: white;
  font-size: 11px; font-weight: 700;
  min-width: 22px; height: 22px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px; flex-shrink: 0;
}
.mnav-arrow { font-size: 20px; color: var(--muted, #6b7a68); flex-shrink: 0; }

/* Botones de acción al fondo */
.mnav-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line, rgba(0,0,0,.08));
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}
.mnav-action-btn {
  padding: 13px 10px;
  border-radius: 12px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: none; transition: opacity .12s;
}
.mnav-action-btn:active { opacity: .8; }
.mnav-btn-public {
  background: #e8f5e0;
  color: #1a5a1a;
}
.mnav-btn-logout {
  background: #fff5f5;
  color: #dc2626;
  border: 1px solid #fecaca !important;
}

/* Fab botón "Menú" flotante (solo visible si no hay header) */
.mnav-fab {
  display: none;
  position: fixed;
  bottom: 20px; right: 16px;
  width: 56px; height: 56px;
  background: #12190f;
  color: #c8f000;
  border-radius: 50%;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 99;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

/* ── LOGIN COLABORADOR: responsive h1 ───────────────────────────
   Solo sobreescribe el font-size del título que usa clamp(40px…)
   El resto del layout ya colapsa a 1 columna en 1080px (auth-shell)
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .auth-copy h1 { font-size: clamp(26px, 5vw, 42px); line-height: 1.1; }
}
@media (max-width: 600px) {
  .auth-copy h1 { font-size: 22px; }
  .auth-copy p  { font-size: 14px; }
  .auth-screen  { padding: 18px 16px; }
  .auth-form .field input,
  .auth-form .field select,
  .auth-form .field textarea { font-size: 16px; } /* evitar zoom iOS */
}
@media (max-width: 400px) {
  .auth-copy h1 { font-size: 19px; }
}
.income-toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
  margin: 18px 0 14px;
}

.income-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.income-field span {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.income-field input,
.income-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.income-field input:focus,
.income-field select:focus {
  border-color: rgba(148, 179, 0, 0.65);
  box-shadow: 0 0 0 3px rgba(200, 240, 0, 0.18);
}

.income-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  margin: 12px 0 14px;
}

.income-kpi {
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.income-kpi.primary {
  background: var(--dark);
  color: #efffd5;
}

.income-kpi span {
  color: var(--muted);
  font-size: 13px;
}

.income-kpi.primary span,
.income-kpi.primary small {
  color: rgba(239, 255, 213, 0.72);
}

.income-kpi strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.income-kpi small {
  color: var(--muted);
  font-size: 12px;
}

.income-dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
}

.income-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 16px;
}

.income-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.income-panel-head h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.02em;
}

.income-bar-list {
  display: grid;
  gap: 10px;
}

.income-bar-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.9fr) minmax(120px, 2fr) minmax(92px, auto);
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.income-bar-row strong {
  font-weight: 800;
}

.income-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(20, 32, 20, 0.08);
  overflow: hidden;
}

.income-bar-fill {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-deep));
}

.income-bar-list.compact .income-bar-row {
  grid-template-columns: minmax(110px, 1fr) minmax(90px, 1.4fr) minmax(48px, auto);
}

.income-crud-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  flex-wrap: wrap;
}

.income-client-search {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.income-client-search span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}

.income-client-search input,
.income-page-size {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.income-client-search input {
  width: 100%;
  padding: 0 12px 0 38px;
}

.income-page-size {
  padding: 0 12px;
}

.income-client-search input:focus,
.income-page-size:focus {
  border-color: rgba(148, 179, 0, 0.65);
  box-shadow: 0 0 0 3px rgba(200, 240, 0, 0.18);
}

.income-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 14px;
}

.income-page-btn,
.income-page-info {
  min-height: 34px;
  border-radius: 10px;
  font-size: 13px;
}

.income-page-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 700;
}

.income-page-btn:hover {
  border-color: var(--brand-deep);
}

.income-page-btn.active {
  background: var(--brand);
  border-color: var(--brand);
}

.income-page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.income-page-info {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  padding: 0 4px;
}

.payment-proof-modal {
  display: grid;
  gap: 16px;
  text-align: left;
}

.payment-proof-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-proof-summary div,
.payment-proof-section {
  border: 1px solid rgba(232, 245, 225, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.payment-proof-summary span,
.payment-proof-section > span {
  display: block;
  margin-bottom: 6px;
  color: rgba(232, 245, 225, 0.68);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.payment-proof-summary strong {
  display: block;
  color: #f5ffe8;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.payment-proof-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #081407;
}

.payment-proof-img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #ffffff;
}

.payment-proof-empty,
.payment-proof-note {
  color: #f5ffe8;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.payment-proof-note.muted,
.payment-proof-empty {
  color: rgba(232, 245, 225, 0.68);
}

@media (max-width: 980px) {
  .income-toolbar,
  .income-kpi-grid,
  .income-dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .income-toolbar,
  .income-kpi-grid,
  .income-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .income-bar-row,
  .income-bar-list.compact .income-bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .income-crud-toolbar {
    align-items: stretch;
  }

  .income-client-search,
  .income-page-size {
    width: 100%;
    min-width: 0;
  }

  .payment-proof-summary {
    grid-template-columns: 1fr;
  }
}

/* ── Selector tipo de perfil (Oficio / Venta) ── */
.type-toggle-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 12px;
  border: 2px solid var(--line, #e0e0e0);
  background: var(--bg, #fff);
  color: var(--muted, #888);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.type-toggle-btn.active {
  border-color: var(--accent, #a3e635);
  background: var(--accent-light, #f0fde0);
  color: var(--ink, #0f1f0d);
}
.type-toggle-btn:disabled {
  cursor: default;
  opacity: 0.7;
}

/* ── Catálogo de productos ──────────────────────────────────── */
.product-catalog-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  background: var(--surface-2, #f7f9f5);
  border: 1px solid var(--line, rgba(20,32,20,.1));
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  align-items: start;
}
@media (max-width: 540px) {
  .product-catalog-row {
    grid-template-columns: 1fr;
  }
}
.product-catalog-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.product-photos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.product-photo-item {
  position: relative;
  display: inline-block;
}
.product-catalog-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  display: block;
}
.photo-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  border: none;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.product-photo-add-btn {
  cursor: pointer;
  display: block;
}
.product-catalog-noimg {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  border: 2px dashed var(--line);
  background: var(--bg-strong, #e2e7dd);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  gap: 4px;
  transition: background .15s;
}
.product-catalog-noimg:hover {
  background: var(--brand, #c8f000);
  color: var(--dark, #11170f);
}
.product-catalog-noimg span {
  font-size: 10px;
  font-weight: 700;
}
.product-catalog-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prod-discount-hint {
  font-size: 12px;
  font-weight: 700;
}

/* Responsive cleanup: unifica el comportamiento del portal colaborador
   para tablet y movil usando el header/menu movil como unica navegacion. */
@media (max-width: 1080px) {
  .sidebar {
    display: none !important;
  }

  .mobile-header.mh-visible {
    display: flex !important;
  }

  .workspace {
    min-width: 0;
  }

  .workspace-topbar {
    align-items: flex-start;
  }

  .workspace-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .workspace-actions > * {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }

  .mobile-header.mh-visible {
    display: flex !important;
  }

  .workspace-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .workspace-actions {
    width: 100%;
    gap: 8px;
  }

  .workspace-actions .notif-bell-btn {
    margin-right: auto;
  }

  .workspace-actions .ghost-btn {
    flex: 1 1 180px;
  }

  .surface-head,
  .surface-head.compact,
  .collab-accordion-head,
  .profile-head,
  .income-panel-head,
  .analytics-row-head,
  .analytics-row-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .surface-head > :last-child,
  .surface-head.compact > :last-child,
  .collab-accordion-head > :last-child,
  .income-panel-head > :last-child {
    align-self: flex-start;
  }

  .detail-list div {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .detail-list dd {
    text-align: left;
    overflow-wrap: anywhere;
  }

  .view-toggle-group {
    width: 100%;
  }

  .view-toggle-btn {
    flex: 1;
    text-align: center;
  }

  .inline-actions,
  #profileTypeToggle {
    display: grid !important;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .transfer-link-box {
    grid-template-columns: 1fr !important;
  }

  .transfer-copy-btn {
    width: 100%;
    min-width: 0;
  }

  .mnav-actions {
    grid-template-columns: 1fr;
  }

  .service-item {
    flex-direction: column;
    align-items: stretch;
  }
}
