:root {
  --brand-dark: #3a2415;
  --brand-dark-elevated: #4c3018;
  --brand-accent: #e08a2c;
  --brand-accent-hover: #c9761e;
  --brand-cream: #faf3e8;
  --brand-text-light: #f3e6d8;
}

body {
  background-color: var(--brand-cream);
}

a {
  color: var(--brand-accent-hover);
}

a:hover {
  color: var(--brand-accent);
}

.btn-primary {
  --bs-btn-bg: var(--brand-accent);
  --bs-btn-border-color: var(--brand-accent);
  --bs-btn-hover-bg: var(--brand-accent-hover);
  --bs-btn-hover-border-color: var(--brand-accent-hover);
  --bs-btn-active-bg: var(--brand-accent-hover);
  --bs-btn-active-border-color: var(--brand-accent-hover);
  --bs-btn-disabled-bg: var(--brand-accent);
  --bs-btn-disabled-border-color: var(--brand-accent);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--brand-accent);
}

html {
  position: relative;
  min-height: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* Shared keyboard and motion accessibility safeguards. */
:focus-visible {
  outline: 3px solid #0d6efd !important;
  outline-offset: 3px;
}

.enterprise-skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 10000;
  padding: .75rem 1rem;
  color: #fff;
  background: #111827;
  border-radius: .5rem;
}

.enterprise-skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Shared UX conventions for manager workflows. */
.area-manager .nav-link.active { background: rgba(224, 138, 44, .16); color: #fff; font-weight: 700; }
.area-manager .has-active-page > .nav-main-item { box-shadow: inset 4px 0 0 var(--brand-accent); }
.nav-flyout-grid--manager { grid-template-columns: repeat(4, minmax(10rem, 1fr)); }
.ux-recent-menu { min-width: 18rem; }
.ux-onboarding { border-left: 4px solid var(--brand-accent); }
.ux-setup-item { display: flex; gap: .65rem; align-items: center; min-height: 44px; padding: .7rem .85rem; border: 1px solid var(--bs-border-color); border-radius: .55rem; color: var(--bs-body-color); text-decoration: none; }
.ux-setup-item:hover { border-color: var(--brand-accent); background: #fff8ee; }
.ux-setup-item.is-complete { color: var(--bs-success-text-emphasis); background: var(--bs-success-bg-subtle); }
.ux-progressive { border: 1px solid var(--bs-border-color); border-radius: .65rem; padding: .85rem 1rem; background: var(--bs-body-bg); }
.ux-progressive > summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.table-responsive,
.list-group,
[role="listbox"],
.dt-scroll-body {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(74, 46, 29, .45) rgba(154, 106, 36, .10);
  scrollbar-width: auto;
}

.table-responsive::-webkit-scrollbar,
.list-group::-webkit-scrollbar,
[role="listbox"]::-webkit-scrollbar,
.dt-scroll-body::-webkit-scrollbar {
  width: 12px;
}

.table-responsive::-webkit-scrollbar-track,
.list-group::-webkit-scrollbar-track,
[role="listbox"]::-webkit-scrollbar-track,
.dt-scroll-body::-webkit-scrollbar-track {
  background: rgba(154, 106, 36, .10);
}

.table-responsive::-webkit-scrollbar-thumb,
.list-group::-webkit-scrollbar-thumb,
[role="listbox"]::-webkit-scrollbar-thumb,
.dt-scroll-body::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(74, 46, 29, .45);
  background-clip: padding-box;
}
.table-responsive thead th { position: sticky; top: 0; z-index: 1; background: var(--bs-body-bg); white-space: nowrap; }
.badge { font-weight: 650; letter-spacing: .01em; }
.form-text { max-width: 65ch; }
button[disabled] { cursor: wait; }

@media (max-width: 767.98px) {
  .nav-flyout-grid--manager { grid-template-columns: 1fr; }
  .area-manager .bs-page-header { align-items: stretch; }
  .area-manager .bs-page-header .btn { flex: 1 1 45%; min-height: 44px; }
  .table-responsive { border: 1px solid var(--bs-border-color); border-radius: .5rem; }
  .table-responsive td, .table-responsive th { min-width: 8rem; }
  .table-responsive td:first-child, .table-responsive th:first-child { position: sticky; left: 0; z-index: 2; background: var(--bs-body-bg); }
}
