
:root {
  --color-default: #364d59;
  --color-primary: #002642;
  --color-primary-hover: #00A699;
  --color-secondary: #00A699;
  --color-neutral: #ffffff;
  
  /* Responsive Typography System */
  --font-size-base: clamp(12px, 0.85vw, 14px);
  --font-size-sm: clamp(10px, 0.75vw, 12px);
  --font-size-lg: clamp(14px, 0.95vw, 16px);
  --font-size-xl: clamp(15px, 1.05vw, 18px);
  --font-size-2xl: clamp(16px, 1.25vw, 20px);
}

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

body {
  box-sizing: border-box;
  margin: 0;
  font-size: var(--font-size-base);
  line-height: 1.6;
}

/* Responsive Typography */
h1, .h1 { font-size: clamp(1.25rem, 1.75vw, 1.75rem); line-height: 1.2; }
h2, .h2 { font-size: clamp(1.125rem, 1.5vw, 1.5rem); line-height: 1.3; }
h3, .h3 { font-size: clamp(1rem, 1.35vw, 1.35rem); line-height: 1.3; }
h4, .h4 { font-size: clamp(0.9375rem, 1.2vw, 1.2rem); line-height: 1.4; }
h5, .h5 { font-size: clamp(0.875rem, 1.05vw, 1.05rem); line-height: 1.4; }
h6, .h6 { font-size: clamp(0.8125rem, 0.95vw, 0.95rem); line-height: 1.5; }

p { font-size: var(--font-size-base); line-height: 1.6; }

/* Form Elements */
.form-label, label {
  font-size: clamp(0.75rem, 0.85vw, 0.875rem);
}

.form-control, .form-select, input, textarea, select {
  font-size: clamp(0.75rem, 0.85vw, 0.875rem) !important;
  line-height: 1.5;
}

/* Buttons */
.btn {
  font-size: clamp(0.75rem, 0.85vw, 0.875rem) !important;
  padding: clamp(0.3rem, 0.45vw, 0.45rem) clamp(0.6rem, 0.85vw, 0.85rem);
}

.btn-sm {
  font-size: clamp(0.6875rem, 0.75vw, 0.75rem) !important;
}

.btn-lg {
  font-size: clamp(0.875rem, 0.95vw, 0.95rem) !important;
}

/* Tables */
table {
  font-size: clamp(0.6875rem, 0.8vw, 0.8125rem);
}

table th, table td {
  font-size: clamp(0.6875rem, 0.8vw, 0.8125rem);
  padding: clamp(0.4rem, 0.6vw, 0.6rem);
}

table thead th {
  font-size: clamp(0.75rem, 0.85vw, 0.85rem);
}

/* Cards */
.card-title {
  font-size: clamp(0.875rem, 1.05vw, 1.05rem);
}

.card-text, .card-body {
  font-size: var(--font-size-base);
}

.card-header {
  font-size: clamp(0.8125rem, 0.95vw, 0.95rem);
}

/* Text Utilities */
.text-sm, .small, small {
  font-size: clamp(0.6875rem, 0.75vw, 0.75rem) !important;
}

.text-lg {
  font-size: clamp(0.875rem, 0.95vw, 0.95rem) !important;
}

.text-muted {
  font-size: var(--font-size-base);
}

/* Strong/Bold Text */
strong, b, .fw-bold {
  font-size: inherit;
}

/* Navigation & Links */
nav a, .nav-link {
  font-size: clamp(0.75rem, 0.85vw, 0.875rem);
}

/* Alerts */
.alert {
  font-size: var(--font-size-base);
}

/* Badges */
.badge {
  font-size: clamp(0.6875rem, 0.75vw, 0.75rem);
}

/* Modal */
.modal-title {
  font-size: clamp(0.875rem, 1.05vw, 1.05rem);
}

.modal-body {
  font-size: var(--font-size-base);
}

/* List Items */
li {
  font-size: var(--font-size-base);
  line-height: 1.6;
}

/* Breadcrumbs */
.breadcrumb-item {
  font-size: clamp(0.75rem, 0.8vw, 0.8125rem);
}

/* Custom Checkbox and Radio */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {

  input[type=checkbox],
  input[type=radio] {
    --active: #00A699;
    --active-inner: #fff;
    --focus: 2px #00A6994d;
    --border: #BBC1E1;
    --border-hover: #00A699;
    --background: #fff;
    --disabled: #F6F8FF;
    --disabled-inner: #E1E6F9;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 21px;
    outline: none;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--bc, var(--border));
    background: var(--b, var(--background));
    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
    margin-right: 0.25rem;
  }

  input[type=checkbox]:after,
  input[type=radio]:after {
    content: "";
    display: block;
    left: 0;
    top: 0;
    position: absolute;
    transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
  }

  input[type=checkbox]:checked,
  input[type=radio]:checked {
    --b: var(--active);
    --bc: var(--active);
    --d-o: .3s;
    --d-t: .6s;
    --d-t-e: cubic-bezier(.2, .85, .32, 1.2);
  }

  input[type=checkbox]:disabled,
  input[type=radio]:disabled {
    --b: var(--disabled);
    cursor: not-allowed;
    opacity: 0.9;
  }

  input[type=checkbox]:disabled:checked,
  input[type=radio]:disabled:checked {
    --b: var(--disabled-inner);
    --bc: var(--border);
  }

  input[type=checkbox]:disabled+label,
  input[type=radio]:disabled+label {
    cursor: not-allowed;
  }

  input[type=checkbox]:hover:not(:checked):not(:disabled),
  input[type=radio]:hover:not(:checked):not(:disabled) {
    --bc: var(--border-hover);
  }

  input[type=checkbox]:focus,
  input[type=radio]:focus {
    box-shadow: 0 0 0 var(--focus);
  }

  input[type=checkbox]:not(.switch),
  input[type=radio]:not(.switch) {
    width: 21px;
  }

  input[type=checkbox]:not(.switch):after,
  input[type=radio]:not(.switch):after {
    opacity: var(--o, 0);
  }

  input[type=checkbox]:not(.switch):checked,
  input[type=radio]:not(.switch):checked {
    --o: 1;
  }

  input[type=checkbox]+label,
  input[type=radio]+label {
    font-size: 14px;
    line-height: 21px;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    margin-left: 4px;
  }

  input[type=checkbox]:not(.switch) {
    border-radius: 4px;
  }

  input[type=checkbox]:not(.switch):after {
    width: 5px;
    height: 9px;
    border: 2px solid var(--active-inner);
    border-top: 0;
    border-left: 0;
    left: 7px;
    top: 4px;
    transform: rotate(var(--r, 20deg));
  }

  input[type=checkbox]:not(.switch):checked {
    --r: 43deg;
  }

  input[type=checkbox].switch {
    width: 38px;
    border-radius: 11px;
  }

  input[type=checkbox].switch:after {
    left: 2px;
    top: 2px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: var(--ab, var(--border));
    transform: translateX(var(--x, 0));
  }

  input[type=checkbox].switch:checked {
    --ab: var(--active-inner);
    --x: 17px;
  }

  input[type=checkbox].switch:disabled:not(:checked):after {
    opacity: 0.6;
  }

  input[type=radio] {
    border-radius: 50%;
  }

  input[type=radio]:after {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--active-inner);
    opacity: 0;
    transform: scale(var(--s, 0.7));
  }

  input[type=radio]:checked {
    --s: .5;
  }
}

/* End Custom Checkbox and Radio */


.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}


.accordion-button:not(.collapsed) {
  color: var(--color-primary);
  background-color: var(--color-neutral);
  box-shadow: inset 0 calc(-1* var(--bs-accordion-border-width)) 0 var(--color-neutral);
}


blockquote {
  border-left: 3px solid #e88700;
  color: #1a1a1a;
  font-family: Georgia, Times, "Times New Roman", serif;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8rem;
  margin: 1.1rem 4rem;
  padding: 1em 2rem;
  position: relative;
  transition: 0.2s border ease-in-out;
  z-index: 0;
}

blockquote:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  height: 2rem;
  background-color: #fff;
  width: 5px;
  margin-top: -1rem;
}
blockquote:after {
  font: var(--fa-font-solid);
  content: "\f10e";
  position: absolute;
  top: 50%;
  left: -0.5rem;
  color: #e88700;
  font-family: "Font Awesome 6 Free";
  line-height: 1rem;
  text-align: center;
  text-indent: -2px;
  width: 1rem;
  margin-top: -0.5rem;
  transition: 0.2s all ease-in-out, 0.4s transform ease-in-out;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}


/* Responsive Breakpoint Adjustments */
@media (max-width: 1200px) {
  /* Typography is handled by clamp() functions above */
}

@media (max-width: 980px) {
  blockquote {
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    margin: 1.1em -2rem;
  }
}

@media (max-width: 767px) {
  blockquote {
    border-top: 2px solid #e88700;
    border-bottom: 2px solid #e88700;
    border-left: none;
    margin: 1.5em 0;
    padding: 1.5em 1rem;
  }
  blockquote:before {
    left: 50%;
    top: 0;
    height: 4px;
    margin-top: -3px;
    margin-left: -1rem;
    width: 2rem;
  }
  blockquote:after {
    font-size: 0.75rem;
    left: 50%;
    top: 0;
    margin-top: -0.5rem;
    margin-left: -0.5rem;
  }
  blockquote cite {
    text-align: right;
  }
}


.icon-container {
  width: 1.25rem;
  display: inline-block;
}


.page-link {
  color: var(--color-secondary);
  background-color: #ffffff;
}

.active>.page-link, .page-link.active {
  z-index: 3;
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}


.event-card {
  padding: 1rem 0;
}

.event-card .event-date {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: #bad8d6;
}

.event-card .event-date .day {
  font-size: 1.25rem;
  font-weight: 600;
}

.event-card .event-date .date {
  font-size: 1.75rem;
  font-weight: 900;
}

.event-card .event-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1.5rem;
}

.event-card .event-content .event-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.event-card .event-content .event-desc {
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  /* Number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.event-card .event-content .calendar-date {
  color: var(--color-secondary-text);
}

/* ==========================================================================
   Authenticated shell foundation (templates/base.html)
   Consistent vertical rhythm between the page title/breadcrumb header and
   each page's own content, applied uniformly across every base.html page.
   ========================================================================== */
.page-header {
  margin-bottom: 1.5rem;
}
.page-header h3 {
  margin-bottom: 0;
}
.page-header nav[aria-label="breadcrumb"] {
  margin-top: 0.25rem;
}
.page-header .breadcrumb {
  margin-bottom: 0;
}
/* Empty breadcrumb nav (most pages don't override {% block breadcrumbs %})
   takes up no space instead of an invisible-but-present gap. */
.page-header nav[aria-label="breadcrumb"]:empty {
  margin-top: 0;
}

/* Eyebrow + bold-title variant used by pages that skip the base h3/breadcrumb
   blocks (page_title/breadcrumbs left empty) in favor of this richer header. */
.page-header-custom .crumb {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: #0C7A62; margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.page-header-custom .crumb::before {
  content: ""; width: 14px; height: 2px; border-radius: 1px; background: #0C7A62; display: inline-block;
}
.page-header-custom h1 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px 0; color: #101827;
}
.page-header-custom p {
  font-size: 14px; color: #8991A0; margin: 0;
}

/* ==========================================================================
   KPI stat card — extracted from dashboard/home.html's inline styles so it
   is a genuinely shared component instead of a page-specific copy. Values
   are unchanged from the dashboard; dashboard/home.html itself keeps its
   own copy for now (out of scope to edit here) but every other page can
   consume this shared version. Adds a 4th "navy" accent variant.
   ========================================================================== */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 9px;
}
.kpi-row.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.kpi-row .card.kpi {
  position: relative;
  padding: 18px 20px 18px 24px;
  border: 1px solid #E3E8E7;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(10, 37, 64, .05), 0 1px 1px rgba(10, 37, 64, .04);
  transition: box-shadow .18s ease, transform .18s ease;
}
.kpi-row .card.kpi:hover {
  box-shadow: 0 10px 28px -14px rgba(10, 37, 64, .22);
  transform: translateY(-1px);
}
.kpi-row .card.kpi::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--kpi-accent, #CBD5D3);
}
.kpi-row .card.kpi.k-green { --kpi-accent: #1C9A6C; }
.kpi-row .card.kpi.k-blue { --kpi-accent: #2E7DB8; }
.kpi-row .card.kpi.k-amber { --kpi-accent: #C98A1D; }
.kpi-row .card.kpi.k-navy { --kpi-accent: var(--nav-ink, #0A2540); }
.kpi-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.kpi-chip {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.kpi-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.kpi-tag.t-green { background: #E7F5EE; color: #1C9A6C; }
.kpi-tag.t-blue { background: #E9F2FA; color: #2E7DB8; }
.kpi-tag.t-amber { background: #FBF1DF; color: #8a5f10; }
.kpi-tag.t-navy { background: #E8ECF2; color: var(--nav-ink, #0A2540); }
.kpi-value {
  font-size: 27px; font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: #101B2D; line-height: 1.1;
}
.kpi-value span { font-size: 15px; color: #8B9AA8; font-weight: 600; }
.kpi-label { font-size: 12.5px; font-weight: 600; color: #5B6B7C; margin-top: 5px; }
.kpi-sub { font-size: 11px; color: #8B9AA8; margin-top: 7px; line-height: 1.45; }
@media (max-width: 900px) { .kpi-row { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Card-elevated — opt-in modifier for Bootstrap's .card. Deliberately NOT
   redefining bare .card (used everywhere app-wide); add this class
   alongside .card only where the softer shadow / larger radius is wanted.
   ========================================================================== */
.card.card-elevated {
  border: 1px solid #E3E8E7;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 39, .04), 0 12px 28px -18px rgba(16, 24, 39, .10);
  overflow: hidden;
}

/* ==========================================================================
   Brand button — additive modifiers meant to be used alongside Bootstrap's
   own .btn base class (e.g. class="btn btn-brand"), NOT as a replacement
   for .btn-primary/.btn-outline-*, which are already used app-wide with
   the older navy palette (static/dashboard/css/style.css). Introducing a
   bare, same-named class would silently change every .btn-primary button
   in the app; these deliberately use different names.
   ========================================================================== */
.btn-brand {
  background: var(--nav-teal, #0EA99B);
  border-color: var(--nav-teal, #0EA99B);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(14, 169, 155, .55);
}
.btn-brand:hover, .btn-brand:focus {
  background: var(--nav-teal-deep, #0B8377);
  border-color: var(--nav-teal-deep, #0B8377);
  color: #fff;
}
.btn-brand-outline {
  background: #fff;
  border: 1.5px solid #E6E9EE;
  color: #4B5566;
  font-weight: 600;
}
.btn-brand-outline:hover, .btn-brand-outline:focus {
  border-color: var(--nav-ink, #0A2540);
  color: #101827;
}

/* ==========================================================================
   Toolbar — search + tabs + filter/primary actions row above a table.
   Reusable across any future list page (Branch, Department, Designation).
   ========================================================================== */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid #E3E8E7;
}
.toolbar-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.search-wrap { position: relative; }
.search-wrap svg, .search-wrap i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #8991A0; pointer-events: none;
}
.search-wrap input {
  width: 230px;
  padding: 9.5px 12px 9.5px 34px;
  font-size: 13.5px;
  border: 1.5px solid #E6E9EE;
  border-radius: 9px;
  outline: none;
  background: #F5F7FA;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.search-wrap input:focus {
  border-color: var(--nav-teal, #0EA99B);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 169, 155, .14);
}

.tabs {
  display: inline-flex; background: #EEF0F3; border-radius: 9px; padding: 3px; gap: 2px;
}
.tabs a, .tabs button {
  border: none; background: transparent; padding: 7px 13px;
  font-size: 12.5px; font-weight: 600; color: #4B5566;
  border-radius: 7px; cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .15s ease, color .15s ease;
}
.tabs a.active, .tabs button.active {
  background: #fff; color: #101827; box-shadow: 0 1px 2px rgba(16, 24, 39, .08);
}
.tabs a .count, .tabs button .count { color: #8991A0; font-weight: 500; }
.tabs a.active .count, .tabs button.active .count { color: #0C7A62; }

/* ==========================================================================
   Active filter chips
   ========================================================================== */
.chip-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 0 20px 16px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #DCF4EC; color: #0C7A62;
  font-size: 12px; font-weight: 600;
  padding: 5px 6px 5px 11px; border-radius: 999px;
}
.chip a, .chip button {
  width: 16px; height: 16px; border-radius: 50%;
  border: none; background: rgba(12, 122, 98, .14); color: #0C7A62;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 11px; line-height: 1; text-decoration: none;
}
.chip-clear {
  font-size: 12px; font-weight: 600; color: #8991A0;
  background: none; border: none; cursor: pointer; text-decoration: underline;
}

/* ==========================================================================
   Status pill — additive modifier classes, layered on top of Bootstrap's
   own .badge so existing .badge.bg-* usage elsewhere is untouched.
   ========================================================================== */
.badge.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.status-pill-teal { background: #DCF4EC; color: #0C7A62; }
.status-pill-blue { background: #E3ECFE; color: #2952B0; }
.status-pill-amber { background: #FBEEDA; color: #9A6417; }
.status-pill-gray { background: #EEF0F3; color: #4B5566; }
.status-pill-navy { background: #E8ECF2; color: var(--nav-ink, #0A2540); }
.status-pill-solid-teal { background: var(--nav-teal, #0EA99B); color: #fff; }
.status-pill .status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ==========================================================================
   Avatar-initial — small colored initials circle for user-style table rows.
   ========================================================================== */
.avatar-initial {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.avatar-initial.lg { width: 54px; height: 54px; border-radius: 14px; font-size: 19px; }

/* ==========================================================================
   Table-modern — visual modifier for Bootstrap's .table, scoped so it never
   touches the default .table look used by other modules.
   ========================================================================== */
.table-modern thead tr { background: #F7F9FB; }
.table-modern th {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #8991A0; white-space: nowrap; border-bottom: 1px solid #E3E8E7;
}
.table-modern td { font-size: 13.5px; color: #4B5566; vertical-align: middle; }
.table-modern tbody tr { transition: background .12s ease; }
.table-modern tbody tr:hover { background: #FAFCFC; }
.table-modern .user-cell { display: flex; align-items: center; gap: 11px; }
.table-modern .user-cell .uname { font-weight: 700; color: #101827; font-size: 13.5px; display: flex; align-items: center; gap: 7px; }
.table-modern .user-cell .uemail { font-size: 12px; color: #8991A0; margin-top: 1px; }
.table-modern .dropdown-menu { font-size: 13px; }
.table-modern .dropdown-item.text-danger:hover,
.table-modern .dropdown-item.text-danger:focus { background: #FBE4E4; }

/* Pagination — scoped to the shared table-footer wrapper so bare Bootstrap
   .pagination usage elsewhere (other modules) is unaffected. */
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-size: 12.5px; color: #8991A0; }
.table-footer .pagination { margin: 0; }
.table-footer .page-link { border-radius: 7px !important; margin-left: 4px; border-color: #E6E9EE; color: #4B5566; font-size: 12.5px; }
.table-footer .page-item.active .page-link { background: var(--nav-ink, #0A2540); border-color: var(--nav-ink, #0A2540); }

/* ==========================================================================
   Drawer — slide-over detail panel. Reusable across future modules.
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; background: rgba(10, 20, 36, .42);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 1040;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw;
  background: #fff; box-shadow: -16px 0 40px rgba(16, 24, 39, .14);
  transform: translateX(100%); transition: transform .25s cubic-bezier(.4,0,.2,1);
  z-index: 1050; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  background: linear-gradient(160deg, var(--nav-ink-2, #0F2E4C), var(--nav-ink, #0A2540));
  padding: 26px 24px 22px; color: #fff; position: relative; flex-shrink: 0;
}
.drawer-close {
  position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.drawer-head h3 { font-size: 19px; font-weight: 800; margin: 20px 0 4px 0; display: flex; align-items: center; gap: 8px; color: #fff;  }
.drawer-head .demail { font-size: 13px; color: rgba(255,255,255,.6); }
.drawer-body { padding: 22px 24px; overflow-y: auto; flex: 1; }
.drawer-section { margin-bottom: 24px; }
.drawer-section h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #8991A0; margin: 0 0 12px 0;
}
.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drawer-field .k { font-size: 11.5px; color: #8991A0; margin-bottom: 4px; }
.drawer-field .v { font-size: 13.5px; font-weight: 700; color: #101827; }
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-list span {
  background: #EEF0F3; color: #4B5566; font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 7px;
}
.activity-item { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid #E6E9EE; font-size: 13px; }
.activity-item:first-child { border-top: none; }
.activity-item .adot { width: 7px; height: 7px; border-radius: 50%; background: var(--nav-teal, #0EA99B); margin-top: 5px; flex-shrink: 0; }
.activity-item .atext { color: #4B5566; }
.activity-item .atime { font-size: 11.5px; color: #8991A0; margin-top: 2px; }
.drawer-footer { padding: 16px 24px; border-top: 1px solid #E6E9EE; display: flex; gap: 10px; flex-shrink: 0; }
.drawer-footer .btn { flex: 1; justify-content: center; }

@media (max-width: 720px) {
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-left, .toolbar-right { justify-content: space-between; }
  .search-wrap input { width: 100%; }
}

/* ==========================================================================
   Global step navigation (Previous/Next) - use the {% step_nav %} inclusion
   tag (greenai_brsr/templatetags/templatehelpers.py) rather than hand-rolling
   Previous/Next buttons per page, so every BRSR form page shares one look.
   ========================================================================== */
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.step-nav-btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px;
  border-radius: 10px; padding: 10px 20px; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, transform .15s ease, filter .15s ease;
}
.step-nav-btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.step-nav-prev { background: #fff; border: 1px solid #D7DEDC; color: var(--nav-ink, #0A2540); }
.step-nav-prev:hover { background: #F5F8F7; color: var(--nav-ink, #0A2540); }
.step-nav-next {
  background: var(--nav-teal, #0EA99B); border: 1px solid transparent; color: #fff;
  box-shadow: 0 1px 2px rgba(10, 37, 64, .15); margin-left: auto;
}
.step-nav-next:hover { background: var(--nav-teal-deep, #0B8377); color: #fff; transform: translateY(-1px); }
.step-nav-btn:focus-visible { outline: 2px solid var(--nav-teal, #0EA99B); outline-offset: 2px; }

@media (max-width: 640px) {
  .step-nav { flex-direction: column-reverse; align-items: stretch; }
  .step-nav-btn { justify-content: center; }
  .step-nav-next { margin-left: 0; }
}

.page-content {
  min-width: 0;
}
