:root {
  --navy: #071a33;
  --slate: #2f3a46;
  --cyan: #10b9c9;
  --cyan-dark: #0799a8;
  --yellow: #ffd21f;
  --bg: #f3f6f8;
  --card: #ffffff;
  --text: #1f2d3d;
  --muted: #64748b;
  --line: #d9e2ea;
  --danger: #c7362f;
  --success: #16834a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

button {
  border: 0;
  border-radius: 8px;
  background: var(--cyan);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
}

button:hover {
  background: var(--cyan-dark);
}

button.secondary {
  background: var(--yellow);
  color: #111827;
}

button.danger {
  background: var(--danger);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hidden {
  display: none !important;
}

.public-scheduling {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 210, 31, 0.22), transparent 36%),
    radial-gradient(circle at bottom right, rgba(16, 185, 201, 0.18), transparent 32%),
    #f7fafc;
}

.public-booking-card {
  width: min(920px, 100%);
  background: #fff;
  border-top: 6px solid var(--cyan);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(7, 26, 51, 0.12);
}

.public-booking-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.public-booking-brand span,
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--yellow);
  font-weight: 800;
}

.public-booking-brand small {
  display: block;
  color: var(--muted);
}

.public-booking-card h1 {
  margin: 0 0 8px;
  font-size: 34px;
  color: var(--navy);
}

.public-booking-card h2 {
  margin: 22px 0 12px;
  font-size: 20px;
}

.public-booking-form {
  display: grid;
  gap: 18px;
}

.public-service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.public-service-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
  cursor: pointer;
}

.public-service-option input {
  margin-top: 3px;
}

.public-service-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

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

.public-booking-grid .wide {
  grid-column: 1 / -1;
}

.public-booking-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.public-booking-form input,
.public-booking-form select,
.public-booking-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.public-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 44px;
}

.slot-button {
  background: #e8f8fa;
  color: var(--cyan-dark);
  border: 1px solid #b9edf2;
}

.slot-button.active {
  background: var(--cyan);
  color: #fff;
}

.success-card {
  text-align: center;
}

.success-card .brand-mark {
  margin: 0 auto 16px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 210, 31, 0.24), transparent 34%),
    linear-gradient(135deg, #eef5f8, #ffffff);
}

.login-card {
  width: min(460px, 100%);
  padding: 34px;
  border-top: 6px solid var(--cyan);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(7, 26, 51, 0.14);
  text-align: center;
}

.brand-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 1px;
}

.login-card h1 {
  margin: 0;
  font-size: 34px;
}

.login-card p {
  margin: 8px 0 26px;
  color: var(--muted);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  text-align: left;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

.message {
  min-height: 22px;
  color: var(--danger);
  text-align: center;
}

.notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-left: 5px solid var(--cyan);
  border-radius: 8px;
  background: #e8f8fa;
  color: var(--text);
  font-weight: 700;
}

.notice.error {
  border-left-color: var(--danger);
  background: #fff1f0;
  color: var(--danger);
}

.notice.success {
  border-left-color: var(--success);
  background: #eefbf4;
  color: var(--success);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 18px;
  background: var(--slate);
  color: #fff;
}

.brand {
  margin-bottom: 18px;
}

.brand strong {
  display: block;
  color: var(--yellow);
  font-size: 24px;
}

.brand span {
  display: block;
  margin-top: 6px;
  color: #dbe5ee;
}

#nav {
  display: grid;
  gap: 10px;
}

.nav-button {
  width: 100%;
  text-align: left;
}

.content {
  min-width: 0;
  padding: 28px 34px 48px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.topbar h1 {
  margin: 0;
  font-size: 38px;
}

.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.topbar-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.account-pill {
  max-width: 360px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(7, 26, 51, 0.08);
  color: var(--muted);
  text-align: right;
}

.appointment-alert {
  max-width: 420px;
  padding: 12px 14px;
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  background: #fff7cc;
  box-shadow: 0 10px 26px rgba(7, 26, 51, 0.08);
  color: #4d3b00;
  cursor: pointer;
}

.appointment-alert strong,
.appointment-alert span {
  display: block;
}

.appointment-alert span {
  margin-top: 4px;
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.card {
  background: var(--card);
  border-top: 4px solid var(--cyan);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(7, 26, 51, 0.08);
}

.stat strong {
  display: block;
  font-size: 15px;
  color: var(--muted);
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
}

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

.button-row {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.appointment-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
  align-items: start;
}

.appointment-column {
  min-height: 260px;
  background: #eef4f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(7, 26, 51, 0.06);
}

.appointment-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.appointment-column header strong {
  display: block;
  color: var(--text);
  font-size: 17px;
}

.appointment-column header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.appointment-column header em {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-style: normal;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(7, 26, 51, 0.08);
}

.appointment-column.todo {
  border-top: 4px solid var(--yellow);
}

.appointment-column.confirmed {
  border-top: 4px solid var(--cyan);
}

.appointment-column.progress {
  border-top: 4px solid #22c55e;
}

.appointment-column-body {
  display: grid;
  gap: 12px;
}

.appointment-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border-left: 4px solid var(--cyan);
  box-shadow: 0 8px 22px rgba(7, 26, 51, 0.08);
}

.appointment-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.appointment-card-head strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.appointment-card-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.appointment-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff7cc;
  color: #765900;
  font-size: 12px;
  font-weight: 800;
}

.appointment-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
}

.appointment-meta span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.appointment-meta span:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  color: var(--cyan-dark);
  font-weight: 900;
}

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

.appointment-actions button {
  padding: 8px 10px;
  font-size: 12px;
}

.appointment-empty {
  padding: 28px 14px;
  border: 1px dashed #b9c9d6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.appointment-workspace {
  display: grid;
  gap: 16px;
}

.appointment-tab-panel {
  display: none;
}

.appointment-tab-panel.active {
  display: grid;
  gap: 16px;
}

.appointment-info-card h2 {
  margin: 0 0 8px;
}

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

.mini-appointment-line {
  display: grid;
  gap: 4px;
  border-top-color: var(--yellow);
}

.mini-appointment-line span {
  color: var(--muted);
}

.growth-screen {
  display: grid;
  gap: 18px;
}

.growth-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top-color: var(--yellow);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 201, 0.16), transparent 34%),
    #fff;
}

.growth-hero span {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff7cc;
  color: #765900;
  font-weight: 800;
  font-size: 12px;
}

.growth-hero h2 {
  margin: 0;
  font-size: 30px;
}

.growth-hero p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.growth-month {
  min-width: 260px;
}

.growth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
}

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

.growth-card {
  display: grid;
  gap: 12px;
}

.growth-card h3 {
  margin: 0;
  font-size: 20px;
}

.mini-form {
  gap: 10px;
}

.goal-number {
  font-size: 24px;
  font-weight: 900;
}

.goal-number small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.goal-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef4;
}

.goal-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #22c55e);
}

.highlight-person {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
}

.highlight-person strong {
  color: var(--yellow);
  font-size: 22px;
}

.highlight-person span {
  color: #dbeafe;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mini-row:last-child {
  border-bottom: 0;
}

.mini-row strong,
.mini-row span {
  display: block;
}

.mini-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.mini-row em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e8f8fa;
  color: var(--cyan-dark);
  font-style: normal;
  font-weight: 900;
}

.cash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
}

.cash-grid .form-grid {
  grid-template-columns: 1fr;
}

.cash-console {
  display: grid;
  gap: 14px;
}

.cash-toolbar {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) auto auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cash-ledger {
  padding: 0;
  overflow: hidden;
}

.cash-ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--slate);
  color: #fff;
}

.cash-ledger-head span {
  color: var(--yellow);
  font-weight: 800;
}

.compact-table th,
.compact-table td {
  padding: 8px 10px;
  font-size: 14px;
}

.cash-workbench {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.cash-tabs {
  padding: 0;
  overflow: hidden;
}

.tab-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #eef3f7;
}

.tab-strip button {
  border-radius: 0;
  background: transparent;
  color: var(--text);
  padding: 12px 14px;
}

.tab-strip button.active {
  background: var(--cyan);
  color: #fff;
}

.cash-tab-panel {
  display: none;
  padding: 16px;
}

.cash-tab-panel.active {
  display: grid;
}

.cash-tab-panel h3,
.cash-totalizer h3 {
  margin: 0 0 10px;
}

.cash-totalizer {
  display: grid;
  gap: 8px;
}

.cash-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.cash-total-row.final {
  margin-top: 4px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: #e8f8fa;
}

.muted {
  color: var(--muted);
}

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

.reception-screen {
  display: grid;
  gap: 20px;
}

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

.finance-ops {
  display: grid;
  gap: 16px;
}

.finance-tab-panel {
  display: none;
}

.finance-tab-panel.active {
  display: block;
}

.people-management {
  display: grid;
  gap: 16px;
}

.people-tab-panel {
  display: none;
}

.people-tab-panel.active {
  display: grid;
  gap: 16px;
}

.people-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.bi-dashboard {
  display: grid;
  gap: 16px;
}

.bi-filter {
  display: grid;
  grid-template-columns: 150px repeat(4, minmax(150px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.bi-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
}

.bi-kpi {
  min-height: 112px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  border-top: 4px solid var(--cyan);
  box-shadow: 0 12px 28px rgba(7, 26, 51, 0.08);
}

.bi-kpi.primary {
  border-top-color: var(--yellow);
}

.bi-kpi.positive {
  border-top-color: #17a673;
}

.bi-kpi.negative {
  border-top-color: var(--danger);
}

.bi-kpi span,
.bi-kpi small {
  display: block;
  color: var(--muted);
}

.bi-kpi strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 25px;
  line-height: 1.1;
}

.bi-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
}

.bi-panel {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  border-top: 4px solid var(--cyan);
  box-shadow: 0 12px 28px rgba(7, 26, 51, 0.08);
}

.bi-panel h3 {
  margin: 0 0 12px;
}

.wide-panel {
  overflow: hidden;
}

.panel-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

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

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.bar-head span {
  color: var(--muted);
  white-space: nowrap;
}

.bar-track {
  height: 11px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef4;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--yellow));
}

.embedded-table {
  padding: 0;
  box-shadow: none;
  border-top: 0;
}

.report-toolbar {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 26, 51, 0.08);
}

.report-center {
  display: grid;
  gap: 16px;
}

.report-panel {
  display: none;
  gap: 16px;
}

.report-panel.active {
  display: grid;
}

.report-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 8px;
  background: linear-gradient(120deg, var(--slate), #0f5d73);
  color: #fff;
  box-shadow: 0 12px 28px rgba(7, 26, 51, 0.16);
}

.report-hero h2 {
  margin: 0;
}

.report-hero span {
  color: var(--yellow);
  font-weight: 800;
}

.sales-screen {
  display: grid;
  gap: 16px;
}

.sales-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.sale-form {
  align-items: end;
}

.product-sale-picker {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px auto;
  gap: 10px;
  align-items: end;
}

.sale-total {
  padding: 14px;
  border-radius: 8px;
  background: #fff7d1;
  color: var(--slate);
  font-size: 22px;
  font-weight: 900;
}

.sale-summary {
  display: grid;
  gap: 8px;
}

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

.section-title {
  margin: 22px 0 10px;
}

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

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--slate);
  color: #fff;
}

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

.row-actions button {
  padding: 8px 10px;
}

.service-picker {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.selected-services {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.selected-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.selected-service button {
  padding: 6px 9px;
}

.total-line {
  margin-top: 10px;
  font-weight: 800;
  color: var(--cyan-dark);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 26, 51, 0.48);
}

.modal {
  width: min(520px, 100%);
  background: #fff;
  border-top: 5px solid var(--cyan);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(7, 26, 51, 0.25);
}

.modal h2 {
  margin: 0 0 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e8f8fa;
  color: var(--cyan-dark);
  font-weight: 700;
}

.report-footer {
  margin-top: 18px;
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .no-print,
  .row-actions {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .content {
    padding: 0;
  }

  .card {
    box-shadow: none;
    break-inside: avoid;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .stats,
  .form-grid,
  .public-booking-grid,
  .cash-grid,
  .cash-toolbar,
  .cash-workbench,
  .reception-grid,
  .bi-filter,
  .bi-kpi-grid,
  .bi-layout,
  .report-toolbar,
  .sales-grid,
  .product-sale-picker,
  .people-filter,
  .appointment-board,
  .growth-grid,
  .growth-grid.two {
    grid-template-columns: 1fr;
  }

  .growth-hero {
    display: grid;
  }

  .report-hero {
    display: grid;
  }

  .topbar {
    display: grid;
  }

  .topbar-side {
    justify-items: stretch;
  }

  .account-pill {
    text-align: left;
  }
}
