:root {
  --brand: #254c3b;
  --brand-dark: #19382c;
  --canvas: #f5f7f5;
  --ink: #20302a;
}

body { background: var(--canvas); color: var(--ink); min-height: 100vh; }
.brand-nav { background: var(--brand-dark); }
.navbar-brand { letter-spacing: .01em; }
.brand-logo { background: white; border-radius: .35rem; height: 2.4rem; max-width: 7rem; object-fit: contain; padding: .2rem; }
.brand-sub { display: block; font-size: .68rem; font-weight: 400; opacity: .78; letter-spacing: .04em; }
.navbar .nav-link { color: rgba(255,255,255,.78); }
.navbar .nav-link:hover { color: white; }
.navbar .nav-link.active, .navbar .nav-link:focus-visible { color: var(--brand-accent); }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); }
.eyebrow { color: #638171; font-size: .72rem; font-weight: 700; letter-spacing: .13em; }
.metric-card, .card { background: white; border: 1px solid #e3e9e5; border-radius: .7rem; box-shadow: 0 2px 9px rgba(30, 55, 42, .035); }
.metric-card { height: 100%; padding: 1.15rem 1.25rem; }
.metric-label { color: #718078; font-size: .85rem; }
.metric-value { font-size: 2rem; font-weight: 700; margin-top: .35rem; }
.metric-value.money { font-size: 1.55rem; }
.card-header { background: white; border-bottom-color: #e8ede9; padding: 1rem 1.15rem; }
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table thead th { background: #f7f9f7; color: #68776f; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status { border-radius: 999px; display: inline-block; font-size: .75rem; font-weight: 650; padding: .32rem .65rem; white-space: nowrap; }
.status-draft { background: #edf0ef; color: #59645f; }
.status-prepared { background: #e4efff; color: #315d9a; }
.status-recommended { background: #e8e4ff; color: #5946a0; }
.status-approved { background: #fff1d7; color: #906315; }
.status-authorized { background: #dff3e7; color: #24653c; }
.status-rejected { background: #fbe4e4; color: #9c3333; }
.detail-list dt { color: #6b7971; font-weight: 500; }
.detail-list dd { margin-bottom: 1rem; overflow-wrap: anywhere; }
.approval-step { border-bottom: 1px solid #edf0ee; display: flex; flex-direction: column; gap: .12rem; padding: .7rem 0; }
.approval-step:first-child { padding-top: 0; }
.approval-step span { color: #718078; font-size: .82rem; }
.filter-card .card-body { padding: 1rem; }
footer { color: #849088 !important; }

.reports-heading { align-items: flex-end; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem; }
.report-period { background: white; border: 1px solid #e3e9e5; border-radius: .75rem; display: flex; flex-direction: column; gap: .2rem; min-width: 175px; padding: .8rem 1rem; }
.report-period-label, .report-stat-label { color: #718078; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.report-period strong { color: var(--brand-dark); font-size: 1.05rem; }
.report-stat { background: white; border: 1px solid #e3e9e5; border-radius: .8rem; box-shadow: 0 3px 12px rgba(30, 55, 42, .04); display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.35rem; }
.report-stat-primary { background: linear-gradient(135deg, #254c3b, #347052); border-color: transparent; }
.report-stat-primary .report-stat-label, .report-stat-primary .report-stat-note { color: rgba(255,255,255,.77); }
.report-stat-primary .report-stat-value { color: white; }
.report-stat-value { color: var(--brand-dark); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.25; }
.report-stat-note { color: #87938c; font-size: .82rem; }
.report-panel { overflow: hidden; }
.report-panel-heading { align-items: center; display: flex; justify-content: space-between; gap: 1rem; min-height: 82px; padding: 1rem 1.25rem; }
.report-panel-count, .budget-legend { background: #f1f5f2; border-radius: 999px; color: #66766d; font-size: .75rem; font-weight: 650; padding: .35rem .7rem; white-space: nowrap; }
.budget-legend { align-items: center; display: inline-flex; gap: .4rem; }
.budget-legend span, .category-mark { background: #4a8062; border-radius: 50%; display: inline-block; height: .55rem; width: .55rem; }
.report-table thead th { background: #f8faf8; border-bottom-color: #edf0ed; font-size: .68rem; padding-bottom: .75rem; padding-top: .75rem; }
.report-table > :not(caption) > * > * { padding: .95rem 1rem; }
.report-table tbody tr:last-child > * { border-bottom: 0; }
.category-mark { height: .5rem; margin-right: .55rem; vertical-align: .04rem; width: .5rem; }
.voucher-count { background: #f1f5f2; border-radius: .45rem; color: #52665a; display: inline-block; font-size: .8rem; font-weight: 650; min-width: 2rem; padding: .25rem .45rem; }
.report-amount { color: #294d3a !important; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.report-table-footer { align-items: center; background: #f7f9f7; border-top: 1px solid #e8ede9; color: #637168; display: flex; font-size: .82rem; justify-content: space-between; padding: .9rem 1.25rem; }
.report-table-footer strong { color: var(--brand-dark); font-size: 1rem; }
.budget-list { padding: .4rem 1.25rem; }
.budget-item { border-bottom: 1px solid #edf0ee; padding: 1rem 0; }
.budget-item:last-child { border-bottom: 0; }
.budget-item-heading { align-items: center; display: flex; justify-content: space-between; gap: .75rem; margin-bottom: .65rem; }
.budget-category { color: #293b31; font-size: .9rem; font-weight: 700; margin: 0 0 .18rem; }
.budget-used, .budget-no-limit { color: #839087; font-size: .77rem; }
.budget-remaining, .budget-unlimited { background: #eaf4ed; border-radius: 999px; color: #36704a; font-size: .72rem; font-weight: 700; padding: .3rem .55rem; white-space: nowrap; }
.budget-remaining-warning { background: #fff3df; color: #946419; }
.budget-progress { appearance: none; background: #edf1ee; border: 0; border-radius: 999px; display: block; height: .48rem; overflow: hidden; width: 100%; }
.budget-progress::-webkit-progress-bar { background: #edf1ee; border-radius: 999px; }
.budget-progress::-webkit-progress-value { background: #4a8062; border-radius: 999px; }
.budget-progress::-moz-progress-bar { background: #4a8062; border-radius: 999px; }
.budget-progress-warning::-webkit-progress-value { background: #d29a37; }
.budget-progress-warning::-moz-progress-bar { background: #d29a37; }
.budget-scale { color: #98a29c; display: flex; font-size: .68rem; justify-content: space-between; margin-top: .35rem; }
.budget-no-limit { margin-top: .15rem; }
.report-empty { align-items: center; color: #87938c; display: flex; flex-direction: column; gap: .4rem; min-height: 190px; justify-content: center; padding: 1.25rem; text-align: center; }
.report-empty strong { color: #45574c; font-size: .92rem; }
.report-empty-icon { align-items: center; background: #edf4ef; border-radius: 50%; color: #467457; display: inline-flex; font-size: 1.15rem; height: 2.5rem; justify-content: center; margin-bottom: .25rem; width: 2.5rem; }
.report-empty > span:last-child { font-size: .8rem; max-width: 270px; }

@media (max-width: 575.98px) {
  .report-panel-heading { align-items: flex-start; }
  .report-table > :not(caption) > * > * { padding-left: .7rem; padding-right: .7rem; }
  .report-stat { padding: 1rem 1.1rem; }
}

.settings-heading { align-items: flex-end; display: flex; justify-content: space-between; }
.settings-card { overflow: hidden; }
.settings-card .card-header { padding: 1.1rem 1.35rem; }
.settings-card .form-label { color: #35463c; font-size: .88rem; font-weight: 650; }
.settings-card .form-text { color: #839087; font-size: .78rem; }
.current-logo { align-items: center; background: #f7f9f7; border: 1px solid #e8ede9; border-radius: .6rem; color: #758279; display: flex; gap: .8rem; padding: .7rem; }
.current-logo img { background: white; border: 1px solid #e8ede9; border-radius: .4rem; height: 3.5rem; object-fit: contain; padding: .3rem; width: 7rem; }
.color-setting { border-bottom: 1px solid #edf0ee; padding: .7rem 0; }
.color-setting:last-of-type { border-bottom: 0; }
.color-setting .form-control-color { border-radius: .45rem; height: 2.5rem; padding: .2rem; width: 3rem; }
.color-value { color: #748178; font-family: ui-monospace, monospace; font-size: .78rem; }
.management-heading { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.management-card { overflow: hidden; }
.management-form .form-label { color: #35463c; font-size: .88rem; font-weight: 650; }
.management-form .form-text { color: #839087; font-size: .78rem; }
.role-badge { background: #eaf3ed; border-radius: 999px; color: #356548; display: inline-block; font-size: .75rem; font-weight: 700; padding: .3rem .6rem; }
.permission-checklist { background: #f8faf8; border: 1px solid #e6ebe7; border-radius: .55rem; max-height: 260px; overflow-y: auto; padding: .85rem 1rem; }
.permission-checklist-tall { max-height: 440px; }
.permission-checkbox-list { list-style: none; margin: 0; padding: 0; }
.permission-checkbox-list li { border-bottom: 1px solid #edf0ed; padding: .35rem 0; }
.permission-checkbox-list li:last-child { border-bottom: 0; }
.permission-checkbox-list label { color: #42534a; font-size: .82rem; overflow-wrap: anywhere; }
.permission-checkbox-list input { margin-right: .4rem; }
.access-summary { position: sticky; top: 1rem; }
.access-summary-step { display: flex; gap: .75rem; padding: .8rem 0; }
.access-summary-step + .access-summary-step { border-top: 1px solid #edf0ee; }
.access-summary-step > span { align-items: center; background: #edf4ef; border-radius: 50%; color: #467457; display: inline-flex; flex: 0 0 2rem; font-size: .7rem; font-weight: 750; height: 2rem; justify-content: center; }
.access-summary-step strong { color: #34463b; font-size: .84rem; }
.access-summary-step p { color: #819087; font-size: .76rem; margin: .2rem 0 0; }
.management-actions { display: flex; justify-content: flex-end; gap: .65rem; }
.brand-preview { --preview-primary: var(--brand); --preview-secondary: var(--brand-dark); --preview-accent: var(--brand-accent); background: white; border: 1px solid #e3e9e5; border-radius: .8rem; box-shadow: 0 3px 12px rgba(30, 55, 42, .04); padding: 1.15rem; }
.preview-caption { color: #87938c; display: block; font-size: .65rem; font-weight: 700; letter-spacing: .12em; margin-bottom: .9rem; }
.preview-header { align-items: center; background: var(--preview-secondary); border-radius: .55rem; color: white; display: flex; gap: .65rem; min-height: 4.1rem; padding: .75rem; }
.preview-header > div { min-width: 0; }
.preview-header strong, .preview-header small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-header strong { font-size: .83rem; }
.preview-header small { color: rgba(255,255,255,.72); font-size: .7rem; margin-top: .15rem; }
.preview-logo { align-items: center; background: white; border-radius: .35rem; color: var(--preview-primary); display: inline-flex; flex: 0 0 2rem; font-weight: 800; height: 2rem; justify-content: center; }
.preview-document { border: 1px solid #e6ebe7; border-radius: .5rem; display: flex; flex-direction: column; gap: .45rem; margin-top: .85rem; padding: .8rem; }
.preview-document span { color: #839087; font-size: .65rem; letter-spacing: .1em; }
.preview-document strong { color: var(--preview-primary); font-size: .88rem; }
.preview-currency { color: #46564c; font-size: .78rem; font-variant-numeric: tabular-nums; }
.preview-document i { background: var(--preview-accent); border-radius: 2px; display: block; height: 3px; margin-top: .2rem; width: 35%; }
.brand-preview .btn-primary { --bs-btn-bg: var(--preview-primary); --bs-btn-border-color: var(--preview-primary); --bs-btn-hover-bg: var(--preview-secondary); --bs-btn-hover-border-color: var(--preview-secondary); }
.settings-actions { display: flex; justify-content: flex-end; gap: .65rem; }
.voucher-paper { --print-primary: var(--brand); --print-secondary: var(--brand-dark); --print-accent: var(--brand-accent); background: white; border: 1px solid #e1e7e2; border-radius: .35rem; box-shadow: 0 8px 26px rgba(30, 55, 42, .08); margin: 0 auto; max-width: 980px; padding: 2.5rem; }
.voucher-paper-header { align-items: center; border-bottom: 3px solid var(--print-accent); display: flex; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.1rem; }
.voucher-paper-logo { max-height: 76px; max-width: 140px; object-fit: contain; }
.voucher-paper-company { flex: 1; }
.voucher-paper-company h1 { color: var(--print-primary); font-size: 1.25rem; font-weight: 750; margin: 0 0 .25rem; }
.voucher-paper-company p { color: #64736a; font-size: .85rem; margin: 0 0 .6rem; }
.voucher-paper-company h2 { color: var(--print-secondary); font-size: .95rem; letter-spacing: .13em; margin: 0; }
.voucher-paper-status { align-items: flex-end; display: flex; flex-direction: column; gap: .35rem; }
.voucher-paper-status > span:first-child { color: #819087; font-size: .62rem; font-weight: 700; letter-spacing: .1em; }
.voucher-paper-status > strong { color: var(--print-primary); font-size: 1rem; }
.voucher-paper-table { border-collapse: collapse; width: 100%; }
.voucher-paper-table th, .voucher-paper-table td { border: 1px solid #dfe6e1; padding: .8rem .9rem; text-align: left; vertical-align: middle; }
.voucher-paper-table th { background: #f3f6f3; color: var(--print-secondary); font-size: .78rem; font-weight: 700; width: 17%; }
.voucher-paper-table td { color: #27382f; font-size: .9rem; overflow-wrap: anywhere; width: 33%; }
.voucher-paper-table .voucher-paper-amount { color: var(--print-primary); font-size: 1.1rem; font-weight: 750; }
.voucher-approval-grid { display: grid; gap: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.5rem; }
.voucher-signature-cell { border: 1px solid #dfe6e1; display: flex; flex-direction: column; min-height: 96px; padding: .65rem .8rem; }
.voucher-signature-cell > span { color: var(--print-secondary); font-size: .72rem; font-weight: 700; }
.voucher-signature-cell > strong { color: #35463c; font-size: .78rem; margin-top: .45rem; }
.voucher-signature-cell > i { border-bottom: 1px solid #9ba89f; flex: 1; margin: .5rem .3rem .25rem; min-height: 20px; }
.voucher-signature-cell img { align-self: flex-start; height: 42px; margin-top: .35rem; max-width: 130px; object-fit: contain; }
.voucher-receipt-note { color: #6f7e75; font-size: .75rem; margin-top: .8rem; }
.voucher-paper-footer { border-top: 1px solid #e3e9e5; color: #66766d; font-size: .75rem; margin-top: 1.25rem; padding-top: .8rem; text-align: center; }
.voucher-paper-compact { padding: 1.5rem; }
.voucher-paper-compact .voucher-paper-table th, .voucher-paper-compact .voucher-paper-table td { padding: .48rem .6rem; }
.voucher-paper-compact .voucher-signature-cell { min-height: 76px; padding: .5rem .6rem; }
@media print {
  @page { margin: 12mm; }
  @page voucher-landscape { size: A4 landscape; margin: 10mm; }
  @page voucher-portrait { size: A4 portrait; margin: 12mm; }
  body { background: white !important; color: #1c2821 !important; }
  body > nav, body > footer, body > main > .messages, .print-toolbar, body > main > div:first-child:not(.voucher-paper) { display: none !important; }
  body > main.container { margin: 0 !important; max-width: none !important; padding: 0 !important; }
  .voucher-paper { border: 0; border-radius: 0; box-shadow: none; margin: 0; max-width: none; padding: 0; }
  .voucher-paper-paper_form { max-width: none; page: voucher-landscape; }
  .voucher-paper-portrait, .voucher-paper-compact { font-size: 90%; page: voucher-portrait; }
  a { color: inherit; text-decoration: none; }
  .status { border: 1px solid #aeb9b1; }
}
@media (max-width: 767.98px) {
  .voucher-paper { padding: 1.1rem; }
  .voucher-paper-header { align-items: flex-start; flex-wrap: wrap; }
  .voucher-paper-status { align-items: flex-start; }
  .voucher-paper-table th, .voucher-paper-table td { padding: .55rem .5rem; }
  .voucher-paper-table th { width: 22%; }
  .voucher-approval-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Product shell refinements */
:root {
  --canvas: #f4f6f5;
  --ink: #17231d;
  --muted: #718078;
  --line: #e2e8e4;
  --surface: #ffffff;
  --shadow: 0 12px 32px rgba(24, 45, 34, .06);
}
body { background: radial-gradient(circle at 85% -10%, rgba(76, 130, 99, .08), transparent 34rem), var(--canvas); font-size: .92rem; }
.shell-container { max-width: 1440px; }
.brand-nav { background: linear-gradient(110deg, var(--brand-dark), var(--brand)); box-shadow: 0 4px 18px rgba(20, 45, 33, .18); padding: .8rem 1rem; }
.navbar-brand { font-size: 1.02rem; line-height: 1.1; }
.navbar .nav-link { border-radius: .55rem; font-size: .82rem; padding: .55rem .7rem !important; transition: background .2s ease, color .2s ease, transform .2s ease; }
.navbar .nav-link:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
.nav-icon { display: inline-block; font-size: 1rem; margin-right: .38rem; opacity: .8; vertical-align: -.05rem; }
.btn-nav-quiet { border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.85); }
.btn-nav-quiet:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); color: white; }
.user-menu { align-items: center; display: flex; gap: .55rem; }
.user-avatar { align-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); border-radius: 50%; color: white; display: inline-flex; font-size: .72rem; font-weight: 750; height: 1.9rem; justify-content: center; width: 1.9rem; }
h1, h2, h3, h4, h5 { color: #17261e; letter-spacing: -.025em; }
h1.h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 750; }
.card, .metric-card, .report-stat, .brand-preview { border-color: var(--line); box-shadow: var(--shadow); }
.card { border-radius: .9rem; overflow: hidden; }
.card-header { padding: 1.15rem 1.35rem; }
.card-body { padding: 1.35rem; }
.metric-card { border-radius: .9rem; padding: 1.3rem 1.4rem; position: relative; overflow: hidden; }
.metric-card::after { background: var(--brand-accent); border-radius: 50%; content: ""; height: 5rem; opacity: .12; position: absolute; right: -1.7rem; top: -1.7rem; width: 5rem; }
.metric-value { color: var(--brand-dark); font-size: 2.15rem; letter-spacing: -.045em; }
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { border-bottom-color: #edf1ee; padding: .9rem 1rem; }
.table-hover > tbody > tr { transition: background .18s ease; }
.table-hover > tbody > tr:hover { --bs-table-hover-bg: #f5f8f5; }
.table a, a { color: var(--brand); }
.table a:hover, a:hover { color: var(--brand-dark); }
.form-control, .form-select { background-color: #fbfcfb; border-color: #d7e0da; border-radius: .55rem; color: var(--ink); min-height: 2.65rem; padding: .62rem .78rem; }
.form-control:focus, .form-select:focus { background: white; border-color: var(--brand); box-shadow: 0 0 0 .22rem rgba(37,76,59,.12); }
.form-label { color: #34463b; font-size: .82rem; font-weight: 700; margin-bottom: .42rem; }
.form-check-input { border-color: #c5d0c8; }
.btn { border-radius: .55rem; font-weight: 650; padding: .62rem 1rem; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { box-shadow: 0 5px 12px rgba(37,76,59,.16); }
.btn-primary:hover { box-shadow: 0 7px 16px rgba(37,76,59,.22); }
.filter-card { background: rgba(255,255,255,.7); }
.management-heading, .reports-heading, .settings-heading { margin-top: .2rem; }
.alert { border: 0; border-radius: .7rem; box-shadow: 0 3px 12px rgba(30,55,42,.04); }
.login-layout { align-items: center; display: grid; gap: clamp(2rem, 8vw, 8rem); grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); margin: clamp(2rem, 10vh, 7rem) auto; max-width: 980px; min-height: 58vh; }
.login-intro { max-width: 480px; }
.login-mark { align-items: center; background: var(--brand); border-radius: .8rem; box-shadow: 0 10px 24px rgba(37,76,59,.18); color: white; display: inline-flex; font-size: 1.4rem; font-weight: 800; height: 3.2rem; justify-content: center; margin-bottom: 2rem; width: 3.2rem; }
.login-intro h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); font-weight: 800; line-height: .98; margin-bottom: 1.25rem; }
.login-intro > p:last-child { color: #6d7c73; font-size: 1.08rem; line-height: 1.7; max-width: 390px; }
.login-card { border: 0; }
.login-panel { width: 100%; }
@media (max-width: 991.98px) { .navbar-nav { padding-top: .6rem; } .user-menu { margin-top: .8rem; } .login-layout { gap: 2rem; } }
@media (max-width: 767.98px) { .login-layout { display: block; margin-top: 2rem; min-height: 0; } .login-intro { margin-bottom: 2.5rem; } .login-intro h1 { font-size: 2.7rem; } .table { min-width: 680px; } .table-responsive { border-radius: .7rem; } .management-actions, .settings-actions { justify-content: stretch; } .management-actions .btn, .settings-actions .btn { flex: 1; } }

/* Navigation */
.brand-nav { border-bottom: 1px solid rgba(255,255,255,.1); padding: .65rem 1rem; position: relative; z-index: 20; }
.navbar-brand { border-radius: .7rem; margin-right: 1.8rem; padding: .28rem .7rem .28rem .2rem; transition: background .2s ease; }
.navbar-brand:hover { background: rgba(255,255,255,.08); color: white; }
.brand-logo { border-radius: .55rem; height: 2.55rem; max-width: 7.5rem; }
.brand-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.brand-company { color: #fff; display: block; font-size: .94rem; font-weight: 750; letter-spacing: .015em; line-height: 1.2; max-width: 24rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-sub { align-items: center; color: var(--brand-accent); display: flex; font-size: .61rem; font-weight: 650; gap: .48rem; letter-spacing: .16em; margin-top: .32rem; text-transform: uppercase; }
.brand-sub::before { background: var(--brand-accent); content: ""; display: inline-block; height: 1px; opacity: .8; width: 1.35rem; }
.main-nav { align-items: center; gap: .22rem; }
.main-nav .nav-link { align-items: center; color: rgba(255,255,255,.68); display: inline-flex; gap: .38rem; min-height: 2.45rem; position: relative; white-space: nowrap; }
.main-nav .nav-link::after { background: var(--brand-accent); bottom: .1rem; content: ""; height: 2px; left: .7rem; position: absolute; right: .7rem; transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.main-nav .nav-link:hover, .main-nav .nav-link:focus-visible { background: rgba(255,255,255,.1); color: white; }
.main-nav .nav-link:hover::after, .main-nav .nav-link:focus-visible::after { transform: scaleX(1); }
.main-nav .nav-link.active { background: rgba(255,255,255,.13); color: white; }
.main-nav .nav-link.active::after { transform: scaleX(1); }
.nav-icon { align-items: center; color: var(--brand-accent); display: inline-flex; font-size: .98rem; height: 1.1rem; justify-content: center; line-height: 1; margin-right: 0; opacity: .9; width: 1.1rem; }
.user-menu { margin-left: 1rem; }
.user-menu-toggle { align-items: center; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: white; display: inline-flex; gap: .55rem; padding: .28rem .7rem .28rem .32rem; }
.user-menu-toggle::after { margin-left: .1rem; opacity: .65; }
.user-menu-toggle:hover, .user-menu-toggle:focus-visible, .user-menu-toggle[aria-expanded="true"] { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: white; }
.user-name { font-size: .8rem; max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu .user-avatar { background: var(--brand-accent); border: 0; color: var(--brand-dark); height: 1.85rem; width: 1.85rem; }
.user-menu .dropdown-menu { background: #fff; border: 1px solid rgba(25,56,44,.12); border-radius: .75rem; box-shadow: 0 16px 38px rgba(15,35,25,.16); margin-top: .65rem; min-width: 14rem; padding: .45rem; }
.account-heading { align-items: center; display: flex; gap: .65rem; padding: .55rem .65rem .7rem; }
.account-heading .user-avatar { flex: 0 0 auto; }
.account-heading strong, .account-heading small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-heading strong { color: #23362a; font-size: .82rem; }
.account-heading small { color: #829087; font-size: .7rem; margin-top: .12rem; }
.dropdown-item { border-radius: .45rem; color: #405248; font-size: .82rem; padding: .58rem .65rem; }
.dropdown-item:hover, .dropdown-item:focus { background: #eef5f0; color: var(--brand-dark); }
.dropdown-item form { margin: 0; }
.dropdown-icon { color: var(--brand); display: inline-block; font-size: .95rem; margin-right: .55rem; text-align: center; width: 1rem; }
.navbar-toggler { border-color: rgba(255,255,255,.25); border-radius: .55rem; padding: .45rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255,255,255,.15); }
@media (max-width: 991.98px) {
  .brand-nav { padding: .65rem .75rem; }
  .navbar-brand { margin-right: 0; }
  .navbar-collapse { background: rgba(10,31,22,.2); border-top: 1px solid rgba(255,255,255,.1); margin: .7rem -.75rem -.65rem; padding: .7rem .75rem .85rem; }
  .main-nav { align-items: stretch; gap: .15rem; }
  .main-nav .nav-link { padding: .7rem .8rem !important; }
  .user-menu { justify-content: flex-start; margin: .85rem 0 0; }
  .user-menu-toggle { width: 100%; }
  .user-menu .dropdown-menu { width: 100%; }
}
@media (max-width: 767.98px) { .brand-company { font-size: .84rem; max-width: 18rem; } .brand-sub { font-size: .55rem; letter-spacing: .12em; } }
@media (max-width: 420px) { .user-name { max-width: 8rem; } .brand-company { max-width: 12.5rem; } .brand-sub { display: none; } }
