:root {
  --caricep-ink: #17202a;
  --caricep-muted: #64748b;
  --caricep-line: #dbe3ea;
  --caricep-bg: #f5f7fa;
  --caricep-surface: #ffffff;
  --caricep-primary: #0f766e;
  --caricep-primary-strong: #115e59;
  --caricep-accent: #f59e0b;
  --caricep-danger: #dc2626;
  --caricep-success: #16a34a;
}

html {
  min-height: 100%;
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100%;
  background: var(--caricep-bg);
  color: var(--caricep-ink);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(15, 118, 110, .35);
  box-shadow: 0 0 0 .22rem rgba(15, 118, 110, .14);
}

.card,
.modal-content,
.form-control,
.form-select,
.input-group-text {
  border-radius: 8px;
}

.table {
  --bs-table-color: var(--caricep-ink);
}

.money-mask {
  font-variant-numeric: tabular-nums;
}

.caricep-toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 11000;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.caricep-toast {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--caricep-line);
  border-left: 4px solid var(--caricep-primary);
  border-radius: 8px;
  background: var(--caricep-surface);
  box-shadow: 0 18px 44px rgba(23, 32, 42, .14);
}

.caricep-toast-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--caricep-primary);
}

.caricep-toast-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.caricep-toast-body strong {
  font-size: .9rem;
}

.caricep-toast-body span {
  color: var(--caricep-muted);
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.caricep-toast button {
  border: 0;
  background: transparent;
  color: var(--caricep-muted);
  font-size: 1.35rem;
  line-height: 1;
}

.caricep-toast-success {
  border-left-color: var(--caricep-success);
}

.caricep-toast-success .caricep-toast-icon {
  background: var(--caricep-success);
}

.caricep-toast-warning {
  border-left-color: var(--caricep-accent);
}

.caricep-toast-warning .caricep-toast-icon {
  background: var(--caricep-accent);
}

.ios-install-help {
  position: fixed;
  inset: 0;
  z-index: 10900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .54);
}

.ios-install-help.show {
  display: flex;
}

.ios-install-card {
  width: min(420px, 100%);
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--caricep-line);
  box-shadow: 0 24px 64px rgba(15, 23, 42, .24);
  overflow: hidden;
}

.ios-install-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--caricep-line);
}

.ios-install-card button {
  border: 0;
  background: transparent;
  color: var(--caricep-muted);
  font-size: 1.4rem;
}

.ios-install-card ol {
  margin: 0;
  padding: 20px 22px 22px 42px;
  color: var(--caricep-muted);
}

.ios-install-card li + li {
  margin-top: 10px;
}

@media (max-width: 576px) {
  .caricep-toast-stack {
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
  }
}

.page-hero,
.dashboard-hero,
.list-hero,
.calendar-hero,
.gider-hero,
.message-hero,
.profile-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, .14) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .08), rgba(245, 158, 11, .07)),
    #fff !important;
  box-shadow: 0 18px 44px rgba(23, 32, 42, .07) !important;
}

.page-hero h1,
.page-hero h2,
.page-hero h3,
.dashboard-hero h3,
.list-hero h3,
.calendar-hero h3,
.gider-hero h3,
.message-hero h3,
.profile-hero h3 {
  color: #10201f;
  font-weight: 900 !important;
  letter-spacing: 0;
}

.page-eyebrow {
  color: var(--caricep-primary);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metric-card,
.stat-card,
.focus-card,
.dashboard-chart,
.dashboard-table,
.filter-card,
.profile-card,
.message-card,
.message-side,
.card.border-0.shadow-sm {
  border: 1px solid var(--caricep-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 14px 34px rgba(23, 32, 42, .055) !important;
}

.metric-card .card-body,
.stat-card .card-body {
  display: grid;
  align-content: center;
  min-height: 116px;
}

.metric-card small,
.stat-card small,
.card small.text-uppercase {
  color: var(--caricep-muted) !important;
  font-weight: 900 !important;
  letter-spacing: .04em;
}

.metric-card strong,
.stat-card strong {
  margin-top: 6px;
  color: #10201f;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 900;
  line-height: 1.1;
}

.soft-table thead th,
.table thead th {
  color: var(--caricep-muted);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.table > :not(caption) > * > * {
  padding: .9rem .9rem;
  border-color: #edf2f7;
}

.table-hover tbody tr:hover {
  background: #f8fafc;
}

.action-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-modern,
.empty-box {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 28px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--caricep-muted);
  text-align: center;
}

.empty-modern i,
.empty-box i {
  margin-bottom: 10px;
  color: var(--caricep-primary);
  font-size: 2rem;
}

.empty-modern strong,
.empty-box strong {
  color: #10201f;
}

.form-label,
label.small.fw-bold {
  color: #334155;
  font-weight: 800 !important;
}

.modal-header {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

@media (max-width: 768px) {
  .page-hero,
  .dashboard-hero,
  .list-hero,
  .calendar-hero,
  .gider-hero,
  .message-hero,
  .profile-hero {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .page-hero,
  .dashboard-hero,
  .list-hero,
  .calendar-hero,
  .gider-hero,
  .message-hero,
  .profile-hero {
    padding: 16px !important;
    margin-bottom: 14px !important;
  }

  .page-hero h1,
  .page-hero h2,
  .page-hero h3,
  .dashboard-hero h3,
  .list-hero h3,
  .calendar-hero h3,
  .gider-hero h3,
  .message-hero h3,
  .profile-hero h3 {
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .action-pills,
  .page-hero .d-flex,
  .dashboard-hero .d-flex,
  .list-hero .d-flex,
  .calendar-hero .d-flex,
  .gider-hero .d-flex {
    width: 100%;
  }

  .action-pills .btn,
  .page-hero .btn,
  .dashboard-hero .btn,
  .list-hero .btn,
  .calendar-hero .btn,
  .gider-hero .btn {
    min-height: 44px;
  }

  .form-control,
  .form-select,
  .btn {
    min-height: 46px;
  }

  .btn-sm {
    min-height: 38px;
  }

  .card-body {
    padding: 16px;
  }

  .metric-card .card-body,
  .stat-card .card-body {
    min-height: 106px;
  }

  .table-responsive {
    border: 1px solid var(--caricep-line);
    border-radius: 8px;
    background: #fff;
  }

  .table > :not(caption) > * > * {
    padding: .75rem .7rem;
  }

  .modal-dialog {
    margin: 10px;
  }

  .modal-content {
    max-height: calc(100vh - 20px);
    overflow: auto;
  }

  .empty-modern,
  .empty-box {
    min-height: 170px;
    padding: 20px 16px;
  }
}
