/* =========================================================
   Rogers Crew Admin — custom styles (Bootstrap 5 + custom design)
   Colours, fonts, spacing taken 1:1 from the original design
   ========================================================= */
:root {
  --radius: 8px;
  --background: oklch(0.982 0.002 220);
  --foreground: oklch(0.27 0.018 230);
  --card: oklch(1 0 0);
  --primary: oklch(0.49 0.092 218);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.965 0.004 220);
  --muted: oklch(0.967 0.003 220);
  --muted-foreground: oklch(0.56 0.013 230);
  --accent: oklch(0.947 0.023 211);
  --destructive: oklch(0.59 0.17 24);
  --border: oklch(0.925 0.007 220);
  --success: oklch(0.52 0.13 157);
  --success-soft: oklch(0.952 0.033 157);
  --warning: oklch(0.62 0.13 67);
  --warning-soft: oklch(0.964 0.04 78);
  --info: oklch(0.55 0.15 253);
  --info-soft: oklch(0.95 0.027 247);
  --danger-soft: oklch(0.962 0.025 25);
  --overlay: oklch(0.2 0.018 230 / 45%);
  --chart-grid: oklch(0.94 0.003 220);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --bs-backdrop-bg: oklch(0.2 0.018 230);
  --bs-backdrop-opacity: .45;
}

/* ---------- base / reset (matches original preflight) ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: var(--border);
  letter-spacing: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  background: transparent;
  padding: 0;
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

input,
textarea {
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: none;
  outline: none;
}

table {
  border-collapse: collapse;
}

.ic {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.text-muted-c {
  color: var(--muted-foreground);
}

.t-primary {
  color: var(--primary);
}

.t-success {
  color: var(--success);
}

.t-warning {
  color: var(--warning);
}

.t-info {
  color: var(--info);
}

.t-danger {
  color: var(--destructive);
}

.fw-6 {
  font-weight: 600;
}

.fw-5 {
  font-weight: 500;
}

.hidden {
  display: none !important;
}

/* ---------- buttons ---------- */
.btn-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  height: 36px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color .15s, color .15s;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

.btn-a svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.btn-a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--primary);
}

.btn-a:disabled {
  pointer-events: none;
  opacity: .5;
  cursor: not-allowed;
}

.btn-a.primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow);
}

.btn-a.primary:hover {
  background: color-mix(in oklab, var(--primary) 90%, transparent);
}

.btn-a.outline {
  border: 1px solid var(--border);
  background: var(--background);
  box-shadow: var(--shadow-sm);
}

.btn-a.outline:hover,
.btn-a.ghost:hover {
  background: var(--accent);
  color: var(--primary);
}

.btn-a.link {
  color: var(--primary);
  height: auto;
  padding: 0;
  font-size: 11px;
}

.btn-a.link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-a.sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.btn-a.icon {
  height: 36px;
  width: 36px;
  padding: 0;
}

.btn-a.icon-sm {
  height: 28px;
  width: 28px;
  padding: 0;
}

.btn-a.tab {
  height: 44px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted-foreground);
}

.btn-a.tab:hover {
  color: var(--foreground);
}

.btn-a.tab.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.btn-a.tab .count {
  margin-left: 4px;
  border-radius: 4px;
  background: var(--secondary);
  padding: 2px 6px;
  font-size: 10px;
  color: var(--muted-foreground);
}

.btn-a.w-full {
  width: 100%;
}

.btn-a.between {
  justify-content: space-between;
}

/* ---------- sidebar ---------- */
.admin-sidebar {
  width: 228px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 29px 18px 18px;
  overflow-y: auto;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 750;
  line-height: 1.5;
}

.brand-mark {
  background: var(--primary);
  color: var(--primary-foreground);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.workspace {
  margin: 30px 0 29px;
  padding: 12px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.workspace .ws-icon {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--secondary);
}

.workspace .ws-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.workspace .ws-sub {
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted-foreground);
  line-height: 15px;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted-foreground);
  margin: 0 12px 11px;
  letter-spacing: 1.6px !important;
}

.nav-label.mt-9 {
  margin-top: 36px;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  height: 43px;
  padding: 0 13px;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  color: var(--muted-foreground);
  transition: background-color .15s, color .15s;
}

.sidebar-nav a:hover {
  background: var(--accent);
  color: var(--foreground);
}

.sidebar-nav a svg {
  width: 18px;
  height: 18px;
}

.sidebar-nav a.active {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
}

.nav-badge {
  margin-left: auto;
  border-radius: 4px;
  background: var(--primary);
  padding: 2px 6px;
  font-size: 9px;
  line-height: 16px;
  color: var(--primary-foreground);
}

.help-wrap {
  margin-top: auto;
  padding-top: 48px;
}

.help-box {
  border-radius: 6px;
  background: var(--secondary);
  padding: 16px;
}

.help-box .help-ic {
  margin-bottom: 12px;
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--card);
  color: var(--primary);
}

.help-box .h {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.help-box .s {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.help-box .btn-a {
  margin-top: 12px;
}

.sys-status {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-size: 10px;
  color: var(--muted-foreground);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.d-success {
  background: var(--success);
}

.dot.d-warning {
  background: var(--warning);
}

.dot.d-primary {
  background: var(--primary);
}

.dot.d-info {
  background: var(--info);
}

.dot.d-current {
  background: currentColor;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--overlay);
  display: none;
}

.sidebar-overlay.show {
  display: block;
}

/* ---------- main / topbar ---------- */
.admin-main {
  margin-left: 228px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 77px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 34px;
  flex-shrink: 0;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-foreground);
  width: 340px;
  margin: 0;
}

.top-search input {
  background: transparent;
  width: 100%;
  border: 0;
  font-size: 12px;
}

.shortcut {
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
  padding: 2px 6px;
  white-space: nowrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-date {
  font-size: 11px;
  color: var(--muted-foreground);
}

.bell {
  position: relative;
}

.bell .bell-dot {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--destructive);
}

.v-divider {
  height: 28px;
  border-left: 1px solid var(--border);
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-name .n {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.profile-name .r {
  display: block;
  font-size: 10px;
  color: var(--muted-foreground);
  line-height: 15px;
}

.mobile-menu {
  display: none !important;
}

.page-content {
  max-width: 1600px;
  width: 100%;
  margin: auto;
  padding: 30px 34px 32px;
  flex: 1 0 auto;
}

.page-enter {
  animation: page-enter .25s ease-out;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-footer {
  margin: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 16px 8px;
  font-size: 10px;
  color: var(--muted-foreground);
}

.app-footer .sep {
  margin: 0 8px;
}

/* ---------- page heading ---------- */
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 27px;
}

.page-heading h1 {
  font-size: 27px;
  font-weight: 650;
  margin-bottom: 5px;
  line-height: 1.5;
}

.page-heading p {
  font-size: 12px;
  color: var(--muted-foreground);
}

.page-heading .eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-foreground);
  line-height: 15px;
}

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

.heading-actions .btn-a {
  height: 36px;
  font-size: 12px;
}

.meta-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-foreground);
}

/* ---------- selects (native, styled like the original trigger) ---------- */
.select-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-box>.ic {
  position: absolute;
  left: 12px;
  pointer-events: none;
  width: 14px;
  height: 14px;
}

.sel {
  appearance: none;
  -webkit-appearance: none;
  height: 36px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--background);
  padding: 0 34px 0 12px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.select-box>.ic+.sel {
  padding-left: 34px;
}

.sel:focus {
  border-color: var(--primary);
}

.sel.w-36 {
  width: 144px;
}

.sel.w-28 {
  width: 112px;
  height: 32px;
  font-size: 11px;
}

.sel.w-44 {
  width: 176px;
}

.form-field .sel {
  height: 40px;
  font-size: 14px;
  background-color: var(--card);
}

/* ---------- stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.stats-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 19px 19px 17px;
}

.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted-foreground);
  font-size: 12px;
}

.stat-icon {
  width: 33px;
  height: 33px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}

.tone-primary {
  color: var(--primary);
  background: var(--accent);
}

.tone-warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.tone-success {
  color: var(--success);
  background: var(--success-soft);
}

.tone-info {
  color: var(--info);
  background: var(--info-soft);
}

.stat-number {
  font-size: 29px;
  font-weight: 650;
  margin: 7px 0 10px;
  line-height: 1.2;
}

.stats-grid.three .stat-number {
  margin-bottom: 0;
}

.stat-number .cur {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.stats-grid.three .stat-number .cur {
  margin-left: 0;
  font-weight: 400;
}

.stat-bottom {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.stat-bottom .trend {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--success);
}

.stat-bottom .trend svg {
  width: 12px;
  height: 12px;
}

/* ---------- panels / charts ---------- */
.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 20px 21px 0;
}

.panel-header h2,
.section-heading h2 {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.panel-header p {
  color: var(--muted-foreground);
  font-size: 11px;
  margin-top: 5px;
}

.panel-header .small-note {
  font-size: 10px;
  color: var(--muted-foreground);
}

.revenue-total {
  font-size: 24px;
  font-weight: 650;
  margin: 17px 21px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  line-height: 1.5;
}

.chart-box {
  height: 178px;
  margin: 9px 8px 8px;
}

.chart-box svg {
  width: 100%;
  height: 100%;
}

.chart-ticks {
  fill: var(--muted-foreground);
  font-size: 10px;
}

.chart-grid {
  stroke: var(--chart-grid);
}

.chart-line {
  stroke: var(--primary);
}

.service-share {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 15px 15px;
  gap: 24px;
}

.donut {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0% 68%, var(--info) 68% 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transform: rotate(-90deg);
}

.donut-inner {
  width: 111px;
  height: 111px;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: rotate(90deg);
}

.donut-inner strong {
  font-size: 26px;
  line-height: 1.5;
}

.donut-inner span {
  font-size: 10px;
  color: var(--muted-foreground);
  margin-top: 4px;
}

.service-legend {
  font-size: 11px;
  display: grid;
  gap: 18px;
}

.service-legend .lg {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-legend strong {
  display: block;
  font-size: 18px;
  margin: 5px 0 0 15px;
  line-height: 1.5;
}

.service-legend strong small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted-foreground);
}

.panel-foot {
  margin: 0 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 10px;
  color: var(--muted-foreground);
}

.panel-foot b {
  font-weight: 500;
  color: var(--primary);
}

.panel-foot b svg {
  display: inline-block;
  width: 12px;
  height: 12px;
  vertical-align: middle;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 27px 0 15px;
}

.section-heading p {
  color: var(--muted-foreground);
  font-size: 11px;
  margin-top: 4px;
}

.section-heading .badge-c {
  margin-left: 4px;
  border-radius: 4px;
  background: var(--accent);
  padding: 2px 6px;
  font-size: 10px;
  color: var(--primary);
  font-weight: 400;
}

.section-heading .acts {
  display: flex;
  gap: 8px;
}

.section-heading .acts .btn-a {
  font-size: 12px;
}

.section-heading .acts .btn-a.ghost {
  color: var(--primary);
}

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
}

.booking-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 11px;
}

.booking-table th {
  background: var(--muted);
  color: var(--muted-foreground);
  font-weight: 500;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.booking-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.booking-table tbody tr:last-child td {
  border-bottom: none;
}

.booking-table tbody tr:hover {
  background: var(--background);
}

.cell-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sub {
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted-foreground);
  line-height: 15px;
}

.cur-s {
  font-size: 9px;
  font-weight: 400;
  color: var(--muted-foreground);
}

.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 10px;
}

.booking-table tr:nth-child(3n+2) .avatar {
  background: var(--info-soft);
  color: var(--info);
}

.booking-table tr:nth-child(3n+3) .avatar {
  background: var(--warning-soft);
  color: var(--warning);
}

.avatar.lg {
  width: 48px;
  height: 48px;
  font-size: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 7px;
  line-height: 15px;
}

.status svg {
  width: 12px;
  height: 12px;
}

.status-Pending {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-Confirmed {
  background: var(--info-soft);
  color: var(--info);
}

.status-Completed {
  background: var(--success-soft);
  color: var(--success);
}

.status-Cancelled {
  background: var(--danger-soft);
  color: var(--destructive);
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 17px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted-foreground);
}

.table-footer .pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.empty-state {
  padding: 55px 20px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 14px;
}

.empty-state svg {
  margin: 0 auto 12px;
  width: 26px;
  height: 26px;
}

/* ---------- bottom grid ---------- */
.bottom-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 20px;
  margin-top: 23px;
}

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

.service-mini {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 20px;
}

.service-mini img {
  width: 62px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.service-mini h3 {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.service-mini p {
  font-size: 10px;
  color: var(--muted-foreground);
  margin-top: 5px;
}

.service-mini .from {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}

.bottom-grid .panel-header {
  padding-bottom: 0;
}

.bottom-grid .panel-header .btn-a {
  color: var(--primary);
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 20px;
  font-size: 11px;
}

.activity-item p {
  color: var(--muted-foreground);
  font-size: 10px;
  margin-top: 4px;
}

.activity-item .ai-ic {
  display: flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.activity-item .ai-ic svg {
  width: 13px;
  height: 13px;
}

.activity-item strong {
  font-weight: 600;
}

/* ---------- filters / forms ---------- */
.tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 0;
}

.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.filter-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 11px;
  height: 36px;
  background: var(--card);
  width: 288px;
}

.search-field.w-80 {
  width: 320px;
}

.search-field input {
  width: 100%;
  background: transparent;
  border: 0;
  font-size: 12px;
}

.search-field svg {
  color: var(--muted-foreground);
  width: 16px;
  height: 16px;
}

.date-input {
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0 8px;
  font-size: 12px;
}

.form-field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  margin: 0;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
}

.form-field input[readonly] {
  cursor: default;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stack-4 {
  display: grid;
  gap: 16px;
}

.form-note {
  border-radius: 6px;
  background: var(--accent);
  padding: 12px;
  font-size: 12px;
  color: var(--primary);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ---------- services ---------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card img {
  height: 225px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.service-card-body {
  padding: 22px;
}

.service-card-body h2 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}

.service-card-body p {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 10px;
}

.sc-top {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc-cat {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
}

.sc-foot {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.sc-price {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.sc-price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-foreground);
}

.service-card .btn-a.outline {
  margin-top: 20px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin: 0;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.switch .track {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--border);
  transition: background-color .15s;
}

.switch .track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--background);
  box-shadow: 0 1px 3px rgb(0 0 0 / .2);
  transition: transform .15s;
}

.switch input:checked+.track {
  background: var(--primary);
}

.switch input:checked+.track::after {
  transform: translateX(20px);
}

.switch input:focus-visible+.track {
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--primary);
}

/* ---------- settings ---------- */
.settings-section {
  max-width: 740px;
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}

.settings-section h2 {
  font-size: 16px;
  margin-bottom: 7px;
  font-weight: 600;
  line-height: 1.5;
}

.settings-section>p {
  color: var(--muted-foreground);
  font-size: 12px;
  margin-bottom: 22px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.toggle-row .t {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.toggle-row .d {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted-foreground);
}

.admin-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-card .n {
  font-weight: 600;
}

.admin-card .r {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted-foreground);
}

/* ---------- modals (Bootstrap modal, skinned like the original dialog) ---------- */
.modal-dialog {
  max-width: 512px;
}

.modal-content {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: grid;
  gap: 16px;
  color: var(--foreground);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em !important;
}

.modal-desc {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-top: 6px;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 16px;
  height: 16px;
  opacity: .7;
  border-radius: 2px;
  transition: opacity .15s;
  color: inherit;
  display: flex;
}

.modal-close:hover {
  opacity: 1;
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-header-c {
  text-align: left;
}

.info-box {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  font-size: 14px;
}

.info-box .row-i {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box .row-i svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

.info-box .row-i+.row-i {
  margin-top: 12px;
}

.info-box .pay {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  color: var(--muted-foreground);
}

.hist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 12px 0;
  font-size: 12px;
}

.hist-row p {
  margin: 0;
}

.hist-row .m {
  font-weight: 500;
}

.hist-row .s {
  margin-top: 4px;
  color: var(--muted-foreground);
}

.line-i {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.line-i svg {
  width: 15px;
  height: 15px;
}

.faq h3 {
  font-weight: 600;
}

.faq p {
  margin-top: 8px;
  color: var(--muted-foreground);
}

.faq>div+div {
  margin-top: 24px;
}

.faq .ok {
  display: flex;
  gap: 8px;
  color: var(--success);
  align-items: center;
  margin-top: 24px;
}

/* ---------- toast (sonner-style) ---------- */
.toast-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  display: grid;
  gap: 8px;
}

.app-toast {
  width: 356px;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0f172a;
  border: 1px solid #ededed;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgb(0 0 0 / .1);
}

.app-toast svg {
  width: 16px;
  height: 16px;
}

.app-toast .t-success {
  color: #16a34a;
}

.app-toast .t-error {
  color: #dc2626;
}

/* ---------- responsive ---------- */
@media (min-width: 1450px) {
  .chart-box {
    height: 200px;
  }

  .service-share {
    padding-top: 28px;
  }
}

@media (max-width: 1150px) {
  .admin-sidebar {
    width: 205px;
  }

  .admin-main {
    margin-left: 205px;
  }

  .page-content {
    padding: 25px 24px;
  }

  .topbar {
    padding: 0 24px;
  }

  .stats-grid {
    gap: 12px;
  }

  .stat {
    padding: 15px;
  }

  .stat-bottom {
    font-size: 9px;
  }

  .service-share {
    gap: 13px;
  }

  .donut {
    width: 125px;
    height: 125px;
  }

  .donut-inner {
    width: 95px;
    height: 95px;
  }
}

@media (max-width: 900px) {
  .admin-sidebar {
    width: 190px;
  }

  .admin-main {
    margin-left: 190px;
  }

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

  .chart-layout,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .service-share {
    justify-content: flex-start;
    gap: 40px;
    padding: 22px;
  }

  .desktop-date {
    display: none;
  }

  .page-heading {
    align-items: flex-start;
  }

  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform .2s;
    width: 228px;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .mobile-menu {
    display: inline-flex !important;
  }

  .topbar {
    height: 64px;
    padding: 0 16px;
    gap: 8px;
  }

  .top-search {
    width: auto;
    flex: 1;
  }

  .shortcut,
  .profile-name {
    display: none;
  }

  .page-content {
    padding: 22px 16px;
  }

  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 23px;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .heading-actions {
    justify-content: flex-start;
  }

  .stat-number {
    font-size: 25px;
  }

  .stat-bottom {
    white-space: normal;
    flex-wrap: wrap;
  }

  .stat-top {
    font-size: 11px;
  }

  .stats-grid {
    gap: 12px;
  }

  .stats-grid.three {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-wrap: wrap;
  }

  .search-field,
  .search-field.w-80 {
    width: 100%;
  }

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

  .section-heading {
    gap: 8px;
    flex-wrap: wrap;
  }

  .table-footer {
    gap: 10px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .app-footer {
    flex-direction: column;
    margin: 0 8px;
  }

  .toast-wrap {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 420px) {
  .sel.w-44 {
    width: 100%;
  }

  .filter-right {
    width: 100%;
  }

  .select-box {
    width: 100%;
  }

  .sel.w-36 {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Rogers Crew brand logo ---------- */
.brand { gap: 12px; font-size: inherit; font-weight: inherit; line-height: 1; min-width: 0; }
.brand-logo { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; background: #fff; border: 1px solid #e4e8ed; border-radius: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / .06); overflow: hidden; }
.brand-logo img { width: 38px; height: auto; max-width: none; }
.brand-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.brand-name { font-size: 20px; line-height: 1.1; font-weight: 400; color: #131c35; letter-spacing: -0.03em !important; white-space: nowrap; }
.brand-name b { font-weight: 700; }
.brand-tag { font-size: 9px; line-height: 1; font-weight: 600; color: #cd9b45; letter-spacing: 0.2em !important; white-space: nowrap; }
@media (max-width: 1150px) { .brand { gap: 9px; } .brand-logo { width: 40px; height: 40px; border-radius: 10px; } .brand-logo img { width: 33px; } .brand-name { font-size: 17px; } .brand-tag { font-size: 7.5px; letter-spacing: 0.16em !important; } }


/* ---------- add / edit forms ---------- */
.form-field input[type="file"] { padding: 7px 12px; font-size: 12px; cursor: pointer; }
.form-field input[type="file"]::file-selector-button { margin-right: 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--background); padding: 4px 10px; font-size: 12px; cursor: pointer; }
.form-field input[type="file"]::file-selector-button:hover { background: var(--accent); color: var(--primary); }
.form-field textarea { resize: vertical; }
.img-preview { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.service-card .no-img { height: 225px; display: grid; place-items: center; background: var(--accent); color: var(--primary); border-radius: 8px 8px 0 0; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.hist-empty { border-top: 1px solid var(--border); padding: 12px 0; font-size: 12px; color: var(--muted-foreground); }
.form-field input:invalid:not(:placeholder-shown):not(:focus) { border-color: var(--destructive); }
