/* All Bookings console, scoped so the rest of the portal is unchanged. */
.aea-content:has([data-aea-books]) > .aea-module {
  display: none !important;
}

.aea-search .aea-kbd {
  margin-left: auto;
  border: 1px solid #e6edf2;
  border-radius: 8px;
  padding: 3px 8px;
  font: 600 11px/1.2 "DM Sans", sans-serif;
  letter-spacing: 0.02em;
  color: #94a3b8;
  background: #fff;
  white-space: nowrap;
}

.aea-books {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e7eef2;
  --teal: #0f766e;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 2px 24px;
}

.aea-books-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aea-books-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: var(--teal);
  flex: none;
}

.aea-books h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.aea-books-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.aea-books-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.aea-kpi {
  border-radius: 16px;
  padding: 14px 14px 12px;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aea-kpi header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
}

.aea-kpi header svg {
  flex: none;
}

.aea-kpi strong {
  font-size: 22px;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
}

.aea-kpi footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.aea-kpi .up { color: #059669; }
.aea-kpi .sub { color: #64748b; font-weight: 500; }

.aea-kpi.mint { background: #ecfdf5; }
.aea-kpi.sky { background: #eff6ff; }
.aea-kpi.violet { background: #f5f3ff; }
.aea-kpi.amber { background: #fff7ed; }
.aea-kpi.rose { background: #fff1f2; }
.aea-kpi.teal { background: #f0fdfa; }

.aea-books-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.aea-chip,
.aea-books-toolbar select,
.aea-books-toolbar input[type="date"] {
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  color: #334155;
  font: 600 13px/1 "DM Sans", sans-serif;
  padding: 0 12px;
}

.aea-books-toolbar select {
  padding-right: 28px;
  max-width: 160px;
}

.aea-date-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #334155;
}

.aea-date-range input {
  border: 0;
  height: 32px;
  padding: 0;
  font: 600 13px/1 "DM Sans", sans-serif;
  color: #334155;
  background: transparent;
  width: 128px;
}

.aea-date-range span { color: #94a3b8; font-size: 12px; }

.aea-books-toolbar .grow { flex: 1; }

.aea-btn-line,
.aea-btn-solid {
  height: 38px;
  border-radius: 12px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 13.5px/1 "DM Sans", sans-serif;
  cursor: pointer;
  text-decoration: none;
}

.aea-btn-line {
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
}

.aea-btn-solid {
  border: 0;
  background: #0f766e;
  color: #fff;
}

.aea-btn-line:hover { background: #f8fafc; }
.aea-btn-solid:hover { background: #115e59; }

.aea-books-card {
  background: #fff;
  border: 1px solid #eef3f6;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.aea-books-scroll { overflow-x: auto; }

.aea-books-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.aea-books-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  padding: 14px 12px;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}

.aea-books-table td {
  padding: 12px;
  border-bottom: 1px solid #f8fafc;
  vertical-align: middle;
  font-size: 13.5px;
}

.aea-books-table tbody tr:hover { background: #fafcfd; }

.aea-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.aea-id i {
  width: 3px;
  height: 28px;
  border-radius: 99px;
  display: block;
}

.aea-when { color: #334155; white-space: nowrap; }
.aea-when small { display: block; color: #94a3b8; font-size: 12px; }

.aea-who, .aea-svc {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aea-avatar, .aea-svc-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex: none;
}

.aea-svc-icon { border-radius: 10px; }

.aea-who b, .aea-svc b { display: block; font-size: 13.5px; }
.aea-who small, .aea-svc small { display: block; color: #94a3b8; font-size: 12px; font-weight: 500; }

.aea-crm-tag {
  display: inline-block;
  font: 600 11.5px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 5px 8px;
  white-space: nowrap;
}

.aea-crm-empty { color: #cbd5e1; }

.aea-books-table { min-width: 1100px; }

.aea-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.aea-pill.green { background: #d1fae5; color: #047857; }
.aea-pill.blue { background: #dbeafe; color: #1d4ed8; }
.aea-pill.amber { background: #ffedd5; color: #c2410c; }
.aea-pill.rose { background: #ffe4e6; color: #be123c; }
.aea-pill.sky { background: #e0f2fe; color: #0369a1; }
.aea-pill.grey { background: #f1f5f9; color: #64748b; }

.aea-modal.aea-book-pop {
  width: min(760px, 100%);
  height: min(760px, calc(100vh - 48px));
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.aea-book-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 0;
}

.aea-book-pop-head h2 { margin: 0; }

.aea-book-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}

.aea-amt { font-weight: 700; white-space: nowrap; }

.aea-actions { display: flex; gap: 6px; }

.aea-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #e8eef2;
  background: #fff;
  color: #475569;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.aea-icon:hover { background: #f8fafc; color: #0f766e; }

.aea-books-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #64748b;
  font-size: 13px;
}

.aea-books-foot .grow { flex: 1; }

.aea-pager { display: flex; align-items: center; gap: 6px; }

.aea-pager button {
  min-width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font: 700 13px/1 "DM Sans", sans-serif;
  cursor: pointer;
}

.aea-pager button[aria-current="page"] {
  background: #0f766e;
  color: #fff;
}

.aea-pager button:disabled { opacity: 0.35; cursor: default; }

.aea-books-foot select {
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: 600 13px "DM Sans", sans-serif;
  color: #334155;
  padding: 0 8px;
}

.aea-empty {
  text-align: center;
  color: #64748b;
  padding: 36px 12px !important;
}

.aea-menu {
  position: fixed;
  z-index: 40;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e8eef2;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  padding: 6px;
}

.aea-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font: 600 13px "DM Sans", sans-serif;
  color: #334155;
  cursor: pointer;
}

.aea-menu button:hover { background: #f1f5f9; }

.aea-shade {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 50;
  display: flex;
  justify-content: flex-end;
}

.aea-shade.center { justify-content: center; align-items: center; padding: 24px; }

.aea-drawer, .aea-modal {
  background: #fff;
  width: min(420px, 100%);
  height: 100%;
  padding: 22px;
  box-shadow: -20px 0 50px rgba(15, 23, 42, 0.12);
  overflow: auto;
}

.aea-modal {
  height: auto;
  width: min(480px, 100%);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.aea-drawer h2, .aea-modal h2 { margin: 0 0 4px; font-size: 20px; }
.aea-drawer > p, .aea-modal > p { margin: 0 0 16px; color: #64748b; font-size: 13.5px; }

.aea-fields { display: grid; gap: 10px; }
.aea-fields label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: #475569; }
.aea-fields input, .aea-fields select {
  height: 40px;
  border: 1px solid #e6edf2;
  border-radius: 10px;
  padding: 0 10px;
  font: 600 14px "DM Sans", sans-serif;
  color: #0f172a;
}

.aea-drawer-actions, .aea-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.aea-kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 14px; }
.aea-kv span { color: #64748b; }
.aea-kv b { font-weight: 650; }

.aea-drawer-detail { width: min(460px, 100%); }

.aea-detail-block { margin-top: 18px; }
.aea-detail-block h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.aea-detail-empty { color: #64748b; font-size: 14px; }

.aea-next { margin-top: 12px; display: grid; gap: 6px; }
.aea-next > span { color: #64748b; font-size: 13px; }
.aea-next p { margin: 0; color: #334155; font-size: 14px; }

.aea-sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aea-sessions li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 2px 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #e7eef2;
  border-radius: 10px;
  font-size: 13.5px;
}
.aea-sessions small { color: #64748b; }
.aea-sess-money { grid-column: 2; color: #0f172a; font-weight: 650; }
.aea-sess-lines { grid-column: 2; color: #334155; }

@media (max-width: 1100px) {
  .aea-books-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .aea-books-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aea-date-range input { width: 112px; }
}

.aea-cal-page { gap: 14px; }
.aea-cal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
.aea-month, .aea-dayboard, .aea-side {
  background: #fff;
  border: 1px solid #eef3f6;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.aea-month-head, .aea-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.aea-month-head span {
  padding: 12px 8px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}
.aea-day {
  min-height: 108px;
  border: 0;
  border-top: 1px solid #f1f5f9;
  border-right: 1px solid #f8fafc;
  background: #fff;
  text-align: left;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  vertical-align: top;
}
.aea-day.is-out { background: #f8fafc; }
.aea-day.is-out .aea-day-num { color: #cbd5e1; }
.aea-day.is-focus { box-shadow: inset 0 0 0 2px #99f6e4; }
.aea-day-num {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.aea-day.is-today .aea-day-num { background: #0f766e; color: #fff; }
.aea-apt {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  padding: 3px 6px;
  min-width: 0;
  cursor: pointer;
}
.aea-apt-text { min-width: 0; display: grid; }
.aea-apt b, .aea-apt small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10.5px;
  font-weight: 700;
}
.aea-apt small { font-weight: 600; opacity: 0.8; }
.aea-apt em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  flex: none;
}
.aea-more { font-size: 11px; font-weight: 700; color: #64748b; padding-left: 4px; }
.aea-week-grid .aea-day { min-height: 280px; }
.aea-seg {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}
.aea-seg button {
  border: 0;
  background: transparent;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  font: 700 13px "DM Sans", sans-serif;
  color: #64748b;
  cursor: pointer;
}
.aea-seg button.is-on { background: #0f766e; color: #fff; }
.aea-month-pick {
  height: 38px;
  border: 1px solid #e7eef2;
  border-radius: 12px;
  padding: 0 10px;
  font: 700 13px "DM Sans", sans-serif;
  color: #0f172a;
  background: #fff;
}
.aea-side { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.aea-side h2 { margin: 0; font-size: 16px; }
.aea-side h3 { margin: 6px 0 0; font-size: 13px; }
.aea-side > p { margin: 0; color: #64748b; font-size: 13px; }
.aea-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aea-mini {
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 2px;
}
.aea-mini strong { font-size: 20px; letter-spacing: -0.03em; }
.aea-mini span { font-size: 11px; font-weight: 700; color: #64748b; }
.aea-mini.mint { background: #ecfdf5; }
.aea-mini.sky { background: #eff6ff; }
.aea-mini.amber { background: #fff7ed; }
.aea-mini.violet { background: #f5f3ff; }
.aea-up-list { display: flex; flex-direction: column; gap: 8px; }
.aea-up {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid #f1f5f9;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  font: inherit;
}
.aea-up-text { display: grid; min-width: 0; flex: 1; }
.aea-up-text b { font-size: 11px; color: #64748b; }
.aea-up-text strong { font-size: 13px; }
.aea-up-text small { font-size: 12px; color: #94a3b8; }
.aea-full { width: 100%; justify-content: center; }
.aea-dayboard { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.aea-dayboard h2 { margin: 0 0 6px; font-size: 18px; }
.aea-day-item {
  display: grid;
  gap: 2px;
  text-align: left;
  border: 1px solid #f1f5f9;
  border-left: 4px solid #0f766e;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
}
.aea-day-item span { font-weight: 700; }
.aea-day-item small { color: #64748b; }

@media (max-width: 1100px) {
  .aea-cal { grid-template-columns: 1fr; }
}
