:root {
  font-family: "DM Sans", sans-serif;
  color: #202b3c;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #202b3c;
  --muted: #8792a4;
  --line: #e9edf3;
  --blue: #356cf6;
  --navy: #1e2b40;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 360px; min-height: 100vh; background: #f5f7fb; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #b9cbff; outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 4; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 244px; padding: 28px 17px 20px; background: #fff; border-right: 1px solid #edf0f4; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 11px; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: 100%; max-width: 198px; max-height: 46px; height: auto; object-fit: contain; border-radius: 6px; }
.brand-mark { position: relative; display: flex; align-items: end; gap: 3px; width: 32px; height: 32px; padding: 6px; border-radius: 9px; background: #edf3ff; }
.brand-mark span { display: block; width: 5px; border-radius: 3px; background: #396df3; transform: skew(-22deg); }
.brand-mark span:nth-child(1) { height: 12px; opacity: .6; }.brand-mark span:nth-child(2) { height: 18px; }.brand-mark span:nth-child(3) { height: 14px; opacity: .75; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }.brand-copy strong { font-family: Manrope, sans-serif; font-size: 14px; letter-spacing: .065em; }.brand-copy small { color: #94a0b2; font-size: 9px; letter-spacing: .12em; font-weight: 700; }
.workspace-label, .eyebrow { color: #99a3b2; font-size: 10px; letter-spacing: .13em; font-weight: 700; }
.workspace-label { margin: 46px 12px 13px; }
.main-nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; background: transparent; color: #778397; text-align: left; font-size: 13px; font-weight: 600; }
.nav-action-row { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.nav-action-row .nav-link { flex: 0 0 auto; width: 100%; min-width: 0; }
.nav-link svg, .language-control svg, .search-box svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-link.active { background: #eff4ff; color: #3268ec; }
.nav-count { display: grid; place-items: center; min-width: 21px; height: 21px; margin-left: auto; border-radius: 6px; background: #e2ebff; color: #356cf6; font-size: 10px; }
.sidebar-bottom { margin-top: auto; }
.help-card { margin: 0 4px 22px; padding: 16px 14px; border: 1px solid #edf0f5; border-radius: 10px; }
.help-icon { display: grid; place-items: center; width: 25px; height: 25px; margin-bottom: 13px; border-radius: 7px; background: #eff4ff; color: var(--blue); font-size: 13px; font-weight: 700; }
.help-card strong { font-size: 12px; }.help-card p { margin: 6px 0 12px; color: #8792a4; font-size: 10px; line-height: 1.6; }.help-card a { color: #356cf6; font-size: 10px; font-weight: 700; text-decoration: none; }.help-card a span { margin-left: 3px; }
.sidebar-foot { padding: 0 8px; color: #a5adba; font-size: 9px; letter-spacing: .04em; }
.main-area { min-height: 100vh; margin-left: 244px; }
.topbar { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 40px; border-bottom: 1px solid #e9edf3; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #9aa4b3; font-size: 11px; }.crumb-divider { color: #d6dce6; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.language-control { position: relative; display: flex; align-items: center; gap: 7px; color: #6e7a8e; }.language-control svg { width: 16px; height: 16px; }
.language-control select, .profile select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.language-control { padding: 8px 18px 8px 0; font-size: 11px; font-weight: 700; }.select-chevron { position: absolute; right: 0; top: 5px; pointer-events: none; color: #9ba5b4; font-size: 16px; }
.topbar-divider { height: 27px; border-left: 1px solid #e8ecf2; }
.profile { position: relative; display: flex; align-items: center; gap: 9px; padding-right: 17px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eaf0ff; color: #376bea; font-size: 11px; font-weight: 700; }
.profile-copy { display: flex; flex-direction: column; gap: 3px; min-width: 95px; }.profile-copy strong { color: #354156; font-size: 11px; }.profile-copy span { color: #98a2b1; font-size: 9px; }.role-chevron { right: 0; top: 8px; }
.content { max-width: 1500px; margin: 0 auto; padding: 35px 40px 48px; }
.prototype-notice { display: flex; align-items: center; gap: 8px; margin: -13px 0 19px; padding: 9px 12px; border: 1px solid #f1e5c9; border-radius: 7px; background: #fffaf0; color: #9b804f; font-size: 9px; }.prototype-notice > span:first-child { display: grid; place-items: center; width: 15px; height: 15px; flex: 0 0 auto; border-radius: 50%; background: #f5ebd4; font-size: 9px; font-weight: 700; }
.page-section { display: none; }.page-section.active { display: block; }
.welcome-row, .page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
h1, h2, p { margin-top: 0; }
h1 { margin: 8px 0 5px; color: #202b3c; font-family: Manrope, sans-serif; font-size: 25px; line-height: 1.3; letter-spacing: -.045em; }
.welcome-row p, .page-title-row p { margin: 0; color: #8a95a6; font-size: 12px; }
.wave { display: inline-block; margin-left: 3px; color: #e9ae4d; font-family: sans-serif; font-size: 18px; vertical-align: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 39px; padding: 0 15px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 700; transition: .15s ease; }
.button-primary { background: #356cf6; color: #fff; box-shadow: 0 4px 9px #356cf626; }.button-primary:hover { background: #275bdf; transform: translateY(-1px); }.button-secondary { border-color: #e2e7ef; background: #fff; color: #526075; }.plus { font-size: 17px; font-weight: 400; line-height: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-card, .panel { border: 1px solid #e9edf3; border-radius: 10px; background: #fff; box-shadow: 0 2px 5px #263b5b05; }
.stat-card { min-height: 133px; padding: 16px 17px 13px; }.stat-top { display: flex; align-items: center; justify-content: space-between; color: #798598; font-size: 10px; font-weight: 600; }.stat-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }.stat-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-blue { background: #eef3ff; color: #4c78ef; }.icon-amber { background: #fff6e8; color: #e7a33e; }.icon-green { background: #eaf8f1; color: #47ad7c; }.icon-purple { background: #f3efff; color: #8567de; }
.stat-value { margin-top: 9px; color: #263246; font-family: Manrope, sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -.04em; }.stat-value.stat-currency { font-size: 21px; }.stat-caption { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: #9aa4b2; font-size: 9px; }.trend-up { color: #43ae7b; font-size: 13px; }.caption-dot { width: 6px; height: 6px; border-radius: 50%; }.dot-amber { background: #edae4f; }.dot-green { background: #46b182; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .9fr); align-items: start; gap: 16px; }
.panel { overflow: hidden; }.panel-heading { display: flex; align-items: center; justify-content: space-between; min-height: 73px; padding: 14px 18px; }.panel-heading h2 { margin: 0 0 5px; color: #2d394c; font-family: Manrope, sans-serif; font-size: 13px; letter-spacing: -.02em; }.panel-heading p { margin: 0; color: #99a3b1; font-size: 10px; }.text-button, .queue-link { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #376df0; font-size: 10px; font-weight: 700; }.text-button span:last-child, .queue-link span:last-child { font-size: 14px; }
.table-wrap { overflow-x: auto; }.table-wrap table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }.table-wrap th { padding: 11px 16px; border-top: 1px solid #f0f2f6; border-bottom: 1px solid #edf0f4; background: #fafbfd; color: #a0a9b6; font-size: 8px; font-weight: 700; letter-spacing: .075em; }.table-wrap td { padding: 12px 16px; border-bottom: 1px solid #f0f2f6; color: #667287; font-size: 10px; }.table-wrap tbody tr:last-child td { border-bottom: 0; }
.invoice-id { color: #3a4659; font-size: 10px; font-weight: 700; }.invoice-date { margin-top: 4px; color: #a2aab7; font-size: 9px; }.vendor-name { color: #435065; font-weight: 600; }.amount-cell { color: #364257 !important; font-weight: 700; }.type-pill { display: inline-flex; padding: 4px 7px; border-radius: 5px; background: #f1f4f8; color: #718096; font-size: 9px; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; font-size: 9px; font-weight: 600; }.status::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }.status-pending { background: #fff6e7; color: #c28a2c; }.status-approved { background: #eaf7f0; color: #39966a; }.status-rejected { background: #fff0ef; color: #cf615a; }
.queue-total { display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 7px; background: #fff4e4; color: #cb8d30; font-size: 10px; font-weight: 700; }
.queue-item { display: flex; align-items: center; gap: 10px; padding: 12px 17px; border-top: 1px solid #f0f2f6; }.queue-item-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 8px; background: #f1f5ff; color: #6182d9; font-size: 10px; font-weight: 700; }.queue-details { flex: 1; min-width: 0; }.queue-details strong { display: block; overflow: hidden; color: #4b576a; font-size: 10px; text-overflow: ellipsis; }.queue-details span { display: block; margin-top: 4px; color: #9ca5b2; font-size: 9px; }.queue-amount { color: #49566b; font-size: 9px; font-weight: 700; }.queue-link { justify-content: center; width: 100%; padding: 13px; border-top: 1px solid #f0f2f6; }
.notice { display: flex; align-items: center; gap: 8px; margin-top: 17px; padding: 11px 13px; border: 1px solid #e8edf5; border-radius: 7px; background: #fbfcfe; color: #8f9aaa; font-size: 9px; }.notice-icon, .form-note > span:first-child { display: grid; place-items: center; width: 15px; height: 15px; flex: 0 0 auto; border-radius: 50%; background: #eff3fa; color: #8290a5; font-size: 9px; font-weight: 700; }
.page-title-row { align-items: flex-end; margin-bottom: 24px; }.page-title-row h1 { margin-bottom: 5px; }.full-table-panel { min-height: 330px; }
.filter-bar { display: flex; align-items: center; gap: 9px; padding: 14px 16px; border-bottom: 1px solid #edf0f4; }.search-box { display: flex; align-items: center; gap: 8px; width: min(310px, 40%); height: 35px; padding: 0 10px; border: 1px solid #e8ecf2; border-radius: 6px; color: #a0aaba; }.search-box svg { width: 15px; height: 15px; }.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: #48556a; font-size: 10px; }.search-box input::placeholder { color: #aab2be; }
.filter-select, .field select { appearance: none; padding: 0 27px 0 10px; border: 1px solid #e8ecf2; border-radius: 6px; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2395a0b0' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; color: #667287; font-size: 10px; }.filter-select { height: 35px; }.result-count { margin-left: auto; color: #a0a9b6; font-size: 9px; }.invoice-table td { padding-top: 13px; padding-bottom: 13px; }.row-actions { display: flex; justify-content: flex-end; gap: 6px; }.action-button { padding: 6px 9px; border: 1px solid #e7ecf2; border-radius: 5px; background: #fff; color: #68768a; font-size: 9px; font-weight: 600; }.action-button.approve { border-color: #d7eee1; background: #f3fbf6; color: #3c986a; }.action-button.reject { border-color: #f4e0df; color: #c5655d; }.action-button:hover { filter: brightness(.97); }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 55px 20px; text-align: center; }.empty-state > span { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 11px; border-radius: 50%; background: #eef4ff; color: #6081d8; font-size: 20px; }.empty-state strong { color: #465368; font-size: 12px; }.empty-state p { margin: 5px 0 0; color: #9ba5b4; font-size: 10px; }.hidden { display: none !important; }
.approval-role-pill { display: inline-flex; padding: 8px 11px; border: 1px solid #e5ebf5; border-radius: 20px; background: #fff; color: #68768a; font-size: 10px; font-weight: 600; }.approval-intro { display: flex; align-items: center; gap: 11px; padding: 15px 18px; border-bottom: 1px solid #edf0f4; background: #fbfcfe; }.approval-intro-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #eaf7f0; color: #45a576; font-size: 14px; }.approval-intro strong { color: #48556a; font-size: 10px; }.approval-intro p { margin: 4px 0 0; color: #939eae; font-size: 9px; }
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; overflow: auto; padding: 20px; background: #1b263b78; backdrop-filter: blur(3px); }.modal { width: min(100%, 560px); max-height: calc(100vh - 40px); overflow: auto; padding: 25px; border-radius: 12px; background: #fff; box-shadow: 0 20px 65px #15213a3b; }.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 21px; }.modal-header h2 { margin: 7px 0 4px; color: #253247; font-family: Manrope, sans-serif; font-size: 20px; letter-spacing: -.04em; }.modal-header p { margin: 0; color: #8994a4; font-size: 11px; }.icon-button { width: 30px; height: 30px; border: 0; border-radius: 7px; background: #f5f7fa; color: #8792a3; font-size: 22px; line-height: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 13px; }.field { display: flex; flex-direction: column; gap: 7px; color: #59667a; font-size: 10px; font-weight: 600; }.field-full { grid-column: 1 / -1; }.field small { color: #a1aab7; font-size: 9px; font-weight: 400; }.field input, .field select, .field textarea { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid #e5eaf1; border-radius: 6px; background-color: #fff; color: #475469; font-size: 10px; }.field textarea { min-height: 68px; resize: vertical; }.field input::placeholder, .field textarea::placeholder { color: #afb7c2; }.field select { padding-top: 0; padding-bottom: 0; }.form-note { display: flex; align-items: center; gap: 8px; margin-top: 17px; padding: 10px; border-radius: 6px; background: #f6f8fc; color: #8994a4; font-size: 9px; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #edf0f4; }
.toast { position: fixed; z-index: 20; right: 25px; bottom: 24px; max-width: min(380px, calc(100vw - 40px)); padding: 12px 16px; border-radius: 8px; background: #24334a; box-shadow: 0 6px 20px #1e2b4040; color: #fff; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }.toast.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1120px) { .sidebar { width: 215px; }.main-area { margin-left: 215px; }.content { padding-right: 25px; padding-left: 25px; }.topbar { padding: 0 25px; }.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 780px) { .sidebar { position: static; width: 100%; height: auto; padding: 14px 17px; border-right: 0; border-bottom: 1px solid #edf0f4; }.workspace-label, .sidebar-bottom { display: none; }.main-nav { display: flex; gap: 4px; margin-top: 14px; }.nav-link { justify-content: center; width: auto; padding: 9px 11px; font-size: 10px; }.nav-link svg { width: 16px; }.nav-count { min-width: 17px; height: 17px; }.main-area { margin: 0; }.topbar { height: 58px; padding: 0 18px; }.content { padding: 26px 18px 35px; }.dashboard-grid { grid-template-columns: 1fr; }.topbar-actions { gap: 12px; }.profile-copy { display: none; }.profile { padding-right: 13px; }.role-chevron { top: 5px; }.welcome-row, .page-title-row { align-items: flex-start; }.welcome-row { flex-direction: column; }.welcome-row .button { align-self: flex-start; }.stat-grid { gap: 10px; }.stat-card { min-height: 123px; padding: 13px; }.stat-value { font-size: 23px; } }
@media (max-width: 480px) { .nav-link { gap: 6px; padding: 9px 8px; }.nav-link svg { display: none; }.topbar { padding: 0 12px; }.breadcrumbs { gap: 6px; font-size: 9px; }.topbar-actions { gap: 9px; }.content { padding-right: 12px; padding-left: 12px; }.stat-grid { grid-template-columns: 1fr 1fr; }.stat-top { font-size: 9px; }.stat-icon { width: 26px; height: 26px; }.stat-value { font-size: 21px; }.filter-bar { flex-wrap: wrap; }.search-box { width: 100%; }.filter-select { flex: 1; }.result-count { text-align: right; }.form-grid { grid-template-columns: 1fr; }.field-full { grid-column: auto; }.modal { padding: 20px 17px; }.page-title-row { flex-direction: column; }.approval-role-pill { align-self: flex-start; } }

body { background: #f1f3f7; }
body:not(.authenticated) .app-shell { display: none; }
body.authenticated .login-screen { display: none; }
.login-screen { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 24px; background: linear-gradient(115deg, #12448f, #1764bd); }
.login-toolbar { display: flex; justify-content: flex-end; margin: -7px -8px 16px; }
.login-card .login-language-control { position: relative; display: inline-flex; align-items: center; margin: 0; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; color: #53657c; }
.login-language-control svg { position: absolute; left: 10px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; pointer-events: none; }
.login-language-control::after { position: absolute; right: 12px; top: 14px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); content: ""; pointer-events: none; }
.login-language-control select { appearance: none; min-height: 36px; max-width: 100%; padding: 8px 30px 8px 34px; border: 0; border-radius: 8px; background: transparent; color: #30425b; font: inherit; font-size: 11px; cursor: pointer; }
.login-language-control:focus-within { border-color: #5387c6; box-shadow: 0 0 0 3px #dbeafe; }
.login-language-control select:focus-visible { outline: none; }
.login-card { display: flex; flex-direction: column; width: min(100%, 390px); padding: 27px 30px 22px; border-radius: 7px; background: #fff; box-shadow: 0 12px 35px #0b2d5d45; }
.login-logo { display: block; width: min(100%, 320px); height: auto; margin: 0 auto 18px; border-radius: 10px; }
.login-card h1 { margin: 0 0 4px; color: #10437f; font-family: Arial, sans-serif; font-size: 18px; letter-spacing: 0; }
.login-card > p:first-of-type { margin: 0 0 19px; color: #6b7788; font-size: 11px; }
.login-card label { margin: 0 0 5px; color: #253248; font-size: 11px; font-weight: 700; }
.login-card input { height: 35px; margin-bottom: 14px; padding: 0 10px; border: 1px solid #ced8e5; border-radius: 4px; background: #f2f6fc; color: #30425b; font-size: 12px; }
.login-submit { height: 36px; margin-top: 1px; border: 0; border-radius: 4px; background: #12488e; color: #fff; font-size: 12px; font-weight: 700; }
.login-link, .register-prompt button { border: 0; background: transparent; color: #164d91; font-size: 10px; font-weight: 700; }
.login-link { align-self: center; margin: 9px 0 6px; color: #bc5555; }
.login-card .register-prompt { margin: 0; color: #667386; font-size: 10px; text-align: center; }
.register-prompt button { padding: 0; }
.login-demo-note { margin-top: 15px; padding-top: 10px; border-top: 1px solid #eef1f5; color: #8792a3; font-size: 9px; line-height: 1.5; text-align: center; }
.sidebar { position: relative; inset: auto; z-index: 5; display: flex; flex-direction: row; align-items: center; width: 100%; height: 56px; padding: 5px 18px; background: #0b2250; border: 0; border-radius: 0; }
.brand { flex: 0 0 auto; gap: 7px; padding: 0 11px 0 0; color: #fff; }
.brand-logo { width: 100%; max-width: 198px; max-height: 46px; }
.brand-mark { width: 28px; height: 28px; background: #ffffff20; }.brand-mark span { background: #fff; }
.brand-copy strong { font-size: 10px; letter-spacing: .05em; }.brand-copy small { color: #cad9ef; font-size: 7px; }
.workspace-label, .sidebar-bottom { display: none; }
.main-nav { display: flex; flex: 1; align-items: center; justify-content: center; gap: 3px; min-width: 0; }
.nav-link { justify-content: center; width: auto; padding: 8px 9px; border-radius: 5px; color: #e1eaf8; font-size: 9px; white-space: nowrap; }
.nav-link svg { display: none; }.nav-link.active { background: #fff; color: #0b2250; }.nav-count { min-width: 17px; height: 17px; margin-left: 4px; font-size: 8px; }
.main-area { min-height: calc(100vh - 56px); margin: 0; }
.topbar { position: absolute; z-index: 6; top: 0; right: 14px; width: auto; height: 56px; padding: 0; border: 0; background: transparent; }
.breadcrumbs, .topbar-divider, .profile-copy { display: none; }
.topbar-actions { gap: 9px; }.language-control { color: #fff; font-size: 9px; }.select-chevron { color: #d5e3f5; }
.profile { padding-right: 13px; }.avatar { width: 27px; height: 27px; background: #ffffff28; color: #fff; font-size: 9px; }.role-chevron { top: 3px; color: #d5e3f5; }
.profile select { width: 100%; }.topbar-actions .language-control { margin-right: 3px; }
.content { max-width: 1280px; padding: 12px 18px 20px; }
.reference-notice { margin: 0 0 10px; padding: 7px 10px; border: 1px solid #c9e1f4; border-radius: 4px; background: #e8f5fd; color: #3e6785; font-size: 10px; }
.dashboard-heading { margin: 0 0 12px; }.dashboard-heading h1 { margin: 0 0 2px; color: #153c75; font-size: 19px; }.dashboard-heading p { margin: 0; color: #7d8998; font-size: 9px; }
.reference-stat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 9px; }
.reference-stat { position: relative; display: grid; grid-template-columns: 24px 1fr; grid-template-rows: 19px auto; align-items: center; min-height: 55px; padding: 7px 9px; border: 1px solid #d9e0e9; border-top: 2px solid #2860ad; border-radius: 7px; background: #fff; box-shadow: 0 1px 3px #1d3d6810; }
.metric-icon { grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #edf4ff; font-size: 11px; font-weight: 700; }
.metric-icon.blue { color: #2860ad; }.metric-icon.purple { background: #f4edff; color: #8a56c1; }.metric-icon.orange { background: #fff3e7; color: #e18b37; }.metric-icon.green { background: #e9f7ec; color: #4da167; }.metric-icon.red { background: #fff0ef; color: #da6963; }.metric-icon.gray { background: #f0f2f5; color: #7e8896; }
.reference-stat strong { color: #174b91; font-family: Manrope, sans-serif; font-size: 15px; line-height: 1; }.reference-stat:nth-child(3n) strong { color: #905bc4; }.reference-stat:nth-child(4n) strong { color: #d98a33; }
.reference-stat > span:last-child { grid-column: 2; color: #7f8a99; font-size: 8px; line-height: 1.2; }
.reference-total-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.reference-total { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 7px 10px; border: 1px solid #d9e0e9; border-top: 2px solid #ef9e3d; border-radius: 7px; background: #fff; }
.reference-total span { color: #607087; font-size: 8px; }.reference-total strong { overflow: hidden; color: #164b94; font-family: Manrope, sans-serif; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.reference-total small { color: #9aa3b0; font-size: 7px; }.forwarder-total { border-top-color: #3474b9; }.service-total { border-top-color: #bd65a2; }.grand-total { border-top-color: #49a66b; }
.monthly-panel { border-radius: 7px; }.monthly-heading { min-height: 45px; padding: 8px 12px; }.monthly-heading h2 { margin: 0 0 3px; color: #253b59; font-size: 11px; }.monthly-heading p { margin: 0; font-size: 8px; }
.month-picker { display: flex; align-items: center; gap: 6px; color: #79879a; font-size: 8px; }.month-picker select { height: 25px; padding: 0 24px 0 8px; border: 1px solid #e1e6ee; border-radius: 4px; background-color: #fff; color: #58677b; font-size: 8px; }
.monthly-table { min-width: 700px; }.monthly-table th { padding: 7px 9px; background: #f3f6fa; font-size: 8px; }.monthly-table td { padding: 7px 9px; color: #5c6b7f; font-size: 8px; }.monthly-table tbody tr:nth-child(odd) { background: #fbfcfe; }.monthly-table .money-list { white-space: normal; line-height: 1.5; }.monthly-table .month-total { color: #164b94; font-weight: 700; }
body.role-admin1 .monthly-table { min-width: 500px; }
body.role-admin1 .monthly-table tr > :nth-child(n+4) { display: none; }
body.role-admin1 .monthly-table tr > :nth-child(7) { display: table-cell; }
body.role-admin2 .monthly-table, body.role-admin3 .monthly-table { min-width: 500px; }
body.role-admin2 .monthly-table tr > :nth-child(3),
body.role-admin2 .monthly-table tr > :nth-child(5),
body.role-admin2 .monthly-table tr > :nth-child(6),
body.role-admin3 .monthly-table tr > :nth-child(3),
body.role-admin3 .monthly-table tr > :nth-child(4),
body.role-admin3 .monthly-table tr > :nth-child(6) { display: none; }
.currency-footnote { padding: 7px 10px; border-top: 1px solid #edf0f4; color: #8793a3; font-size: 8px; }
.dashboard-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 10px 0 6px; }
.quick-action { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid #dce3ec; border-radius: 20px; background: #fff; color: #52677f; font-size: 8px; font-weight: 600; }.quick-action span:first-child { color: #2860ad; font-weight: 700; }
.dashboard-submit { min-height: 27px; padding: 0 12px; border-radius: 20px; font-size: 8px; }
.logout-button { padding: 6px 8px; border: 1px solid #ffffff4d; border-radius: 4px; background: transparent; color: #fff; font-size: 8px; }
.status-final_pending { background: #eef1ff; color: #6574bb; }
.status-scheduled_payment { background: #eaf2ff; color: #326bb5; }
.status-paid { background: #eaf7f0; color: #248052; }
.status-partial_payment { background: #fff2e9; color: #b45b20; }
.invoice-paid-cell { min-width: 54px; text-align: center; }
.invoice-paid-checkbox { width: 15px; height: 15px; accent-color: #258055; vertical-align: middle; }
.invoice-paid-amount-cell { min-width: 122px; }
.invoice-paid-amount { width: 112px; min-height: 30px; padding: 5px 7px; border: 1px solid #dfe5ee; border-radius: 5px; color: #34445b; font-size: 10px; }
.page-title-row { margin-bottom: 13px; }.page-title-row h1 { font-size: 19px; }.page-title-row p { font-size: 10px; }

/* Finance dashboard refresh */
body { background: #f2f5fa; }
.sidebar { background: #102544; border-right-color: #1b3659; }
.brand-copy strong { color: #fff; }
.brand-copy small { color: #98acc7; }
.brand-mark { background: #203d64; }
.brand-mark span { background: #77a9ff; }
.workspace-label { color: #8197b4; }
.nav-link { color: #b8c7dc; }
.nav-link.active { background: #24436b; color: #fff; }
.nav-count { background: #35577f; color: #fff; }
.help-card { border-color: #294364; background: #183252; }
.help-card strong { color: #e7effb; }
.help-card p { color: #a5b7ce; }
.help-card a { color: #8cb5ff; }
.help-icon { background: #29496f; color: #a9c7ff; }
.sidebar-foot { color: #8096b2; }
.main-area { background: #f2f5fa; }
.content { max-width: 1600px; padding-top: 25px; }
.reference-notice { margin: 0 0 18px; padding: 10px 13px; border-color: #d5e3f5; border-radius: 8px; background: #eaf2fc; color: #527092; font-size: 10px; line-height: 1.5; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 18px; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.backup-actions .button { min-height: 38px; }
.backup-help { color: #62748b; font-size: 11px; line-height: 1.6; margin: 0 0 16px; }
.backup-progress { max-width: min(480px, 90vw); padding: 28px; border: 0; border-radius: 12px; color: #142b4b; box-shadow: 0 12px 50px #142b4b33; }
.backup-progress::backdrop { background: #142b4b66; }
@media (max-width: 600px) { .dashboard-heading:has(.backup-actions) { flex-wrap: wrap; } }
.dashboard-eyebrow { color: #7b8ba2; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.dashboard-heading h1 { margin: 5px 0 4px; color: #142b4b; font-size: 25px; }
.dashboard-heading p { margin: 0; color: #77869a; font-size: 11px; }
.dashboard-submit { flex: 0 0 auto; min-height: 38px; border-radius: 7px; font-size: 10px; }
.currency-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.currency-card { position: relative; min-width: 0; overflow: hidden; padding: 14px 15px 13px; border: 1px solid #e5eaf2; border-top: 3px solid var(--currency-accent); border-radius: 10px; background: #fff; box-shadow: 0 4px 14px #173b6509; }
.currency-card::after { position: absolute; right: -24px; bottom: -39px; width: 96px; height: 96px; border-radius: 50%; background: var(--currency-wash); content: ""; }
.currency-tone-0 { --currency-accent: #376bd8; --currency-wash: #376bd80d; }
.currency-tone-1 { --currency-accent: #42a27c; --currency-wash: #42a27c0d; }
.currency-tone-2 { --currency-accent: #dc8b39; --currency-wash: #dc8b390d; }
.currency-tone-3 { --currency-accent: #765ec5; --currency-wash: #765ec50d; }
.currency-card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.currency-token { display: grid; place-items: center; min-width: 34px; height: 30px; padding: 0 7px; border: 1px solid color-mix(in srgb, var(--currency-accent) 32%, white); border-radius: 20px; background: color-mix(in srgb, var(--currency-accent) 8%, white); color: var(--currency-accent); font-size: 10px; font-weight: 800; }
.currency-card-count { color: #8997a9; font-size: 9px; white-space: nowrap; }
.currency-card-label { display: block; margin-top: 12px; color: #617188; font-size: 10px; font-weight: 700; }
.currency-card-value { position: relative; z-index: 1; display: block; overflow: hidden; margin-top: 4px; color: #162d4c; font-family: Manrope, sans-serif; font-size: clamp(16px, 1.45vw, 22px); font-weight: 800; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.currency-card-note { position: relative; z-index: 1; display: block; margin-top: 5px; color: #94a0af; font-size: 8px; }
.dashboard-insight-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.35fr); gap: 14px; margin-bottom: 14px; }
.dashboard-insight-grid-lower { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-panel { min-width: 0; border-color: #e4e9f1; border-radius: 10px; box-shadow: 0 4px 14px #173b6508; }
.dashboard-panel .panel-heading { min-height: 62px; padding: 12px 15px; }
.dashboard-panel .panel-heading h2 { color: #1d3351; font-size: 12px; }
.dashboard-panel .panel-heading p { max-width: 420px; font-size: 9px; line-height: 1.45; }
.panel-kicker { padding: 5px 8px; border: 1px solid #e8edf4; border-radius: 20px; background: #f8fafd; color: #718199; font-size: 8px; font-weight: 700; white-space: nowrap; }
.currency-mix-content { display: flex; align-items: center; gap: 23px; min-height: 163px; padding: 7px 18px 17px; }
.currency-donut { display: grid; place-items: center; width: 132px; height: 132px; flex: 0 0 132px; border-radius: 50%; }
.currency-donut > div { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 82px; height: 82px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px #18335410; }
.currency-donut strong { color: #203653; font-family: Manrope, sans-serif; font-size: 22px; line-height: 1.1; }
.currency-donut span { margin-top: 3px; color: #8c99aa; font-size: 8px; }
.currency-legend { display: grid; flex: 1; gap: 11px; min-width: 0; }
.currency-legend-row { display: grid; grid-template-columns: 9px 1fr auto 33px; align-items: center; gap: 7px; color: #758399; font-size: 9px; }
.currency-legend-row strong { color: #34465e; font-size: 9px; }
.currency-legend-row b { color: #34465e; font-size: 9px; text-align: right; }
.legend-swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--swatch); }
.vendor-ranking-list { display: grid; padding: 0 15px 8px; }
.vendor-ranking-row { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 7px 0; border-top: 1px solid #f0f2f6; }
.vendor-rank { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; background: #eff4fb; color: #536c8c; font-family: Manrope, sans-serif; font-size: 10px; font-weight: 800; }
.vendor-ranking-main { flex: 1; min-width: 0; }
.vendor-ranking-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vendor-ranking-meta strong { overflow: hidden; color: #30425b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.vendor-ranking-meta span { flex: 0 0 auto; color: #8492a5; font-size: 8px; }
.vendor-ranking-main small { display: block; overflow: hidden; margin-top: 4px; color: #6b7c92; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.vendor-bar { height: 3px; margin-top: 6px; overflow: hidden; border-radius: 5px; background: #edf1f6; }
.vendor-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3b70dd, #73a1f5); }
.dashboard-table { width: 100%; border-collapse: collapse; }
.dashboard-table th { padding: 9px 10px; background: #f4f7fb; color: #76869b; font-size: 8px; font-weight: 700; text-align: left; white-space: nowrap; }
.dashboard-table td { padding: 10px; border-top: 1px solid #f0f2f6; color: #53647b; font-size: 9px; white-space: nowrap; }
.dashboard-table th:first-child, .dashboard-table td:first-child { padding-left: 14px; }
.currency-table-token { color: #2c4260; font-weight: 800; }
.aging-total { color: #1c4c91 !important; font-weight: 800; }
.table-empty { color: #98a3b2 !important; text-align: center; }
.queue-table td { padding-top: 11px; padding-bottom: 11px; }
.queue-invoice-id { color: #3569cd; font-size: 8px; }
.queue-vendor { display: block; max-width: 155px; overflow: hidden; color: #43546d; text-overflow: ellipsis; }
.queue-amount { color: #263b58 !important; font-weight: 700; }
.age-pill { display: inline-flex; padding: 4px 7px; border-radius: 20px; background: #fff5e9; color: #b87828; font-size: 8px; font-weight: 700; }
.dashboard-empty { padding: 20px 12px; color: #98a3b2; font-size: 9px; text-align: center; }
.dashboard-category-totals { margin-top: 3px; }
.admin1-pending-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -5px; }
.admin2-pending-card-grid { grid-template-columns: minmax(0, 1fr); margin-top: -5px; }
.admin3-pending-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -5px; }
.admin3-pending-card-grid > .admin3-service-total { grid-column: 1 / -1; }
.admin3-service-total .reference-currency-breakdown { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 7px; }
.admin3-service-total .reference-currency-breakdown-header { display: none; }
.admin3-service-total .reference-currency-breakdown-row { grid-template-columns: 38px minmax(42px, .7fr) minmax(0, 1.3fr); padding: 5px 7px; border-radius: 5px; background: #f7f9fc; }
.admin1-pending-card-grid > .admin1-vendor-total { grid-column: 1 / -1; }
.admin1-vendor-total .reference-currency-breakdown { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 7px; }
.admin1-vendor-total .reference-currency-breakdown-header { display: none; }
.admin1-vendor-total .reference-currency-breakdown-row { grid-template-columns: 38px minmax(42px, .7fr) minmax(0, 1.3fr); padding: 5px 7px; border-radius: 5px; background: #f7f9fc; }
.dashboard-category-totals .reference-total { padding: 10px 12px; border-radius: 8px; }
.dashboard-category-totals .reference-total span { font-size: 9px; }
.dashboard-category-totals .reference-total strong { overflow-wrap: anywhere; font-size: 13px; line-height: 1.35; white-space: normal; }
.dashboard-category-totals .reference-total small { font-size: 8px; }
.reference-currency-breakdown { display: grid; gap: 2px; margin: 2px 0 3px; }
.reference-currency-breakdown-header, .reference-currency-breakdown-row { display: grid; grid-template-columns: 38px minmax(54px, .75fr) minmax(0, 1.25fr); align-items: center; gap: 5px; min-width: 0; }
.reference-currency-breakdown-header { color: #8793a3; font-size: 7px; }
.reference-currency-breakdown-row > span { color: #40536c; font-size: 8px; font-weight: 700; }
.reference-currency-breakdown-row > strong { overflow: visible; color: #243d5b; font-size: 9px; text-align: right; white-space: nowrap; }
.reference-currency-breakdown-row > small { overflow-wrap: anywhere; color: #365b85; font-size: 8px; line-height: 1.25; text-align: right; }
.dashboard-panel.monthly-panel { margin-top: 14px; }
.dashboard-panel .monthly-heading { min-height: 58px; }
.monthly-table th, .monthly-table td { font-size: 9px; }
.monthly-table th { padding: 9px 10px; }
.monthly-table td { padding: 9px 10px; }
@media (max-width: 1120px) {
  .dashboard-insight-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .dashboard-insight-grid-lower { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .content { padding: 14px 12px 24px; }
  .dashboard-heading { align-items: flex-start; }
  .dashboard-heading h1 { font-size: 21px; }
  .dashboard-insight-grid, .dashboard-insight-grid-lower { grid-template-columns: 1fr; }
  .currency-mix-content { justify-content: center; }
  .currency-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-category-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .dashboard-heading { flex-direction: column; align-items: stretch; gap: 12px; }
  .dashboard-heading .dashboard-submit { align-self: flex-start; }
  .currency-card-grid { gap: 8px; }
  .currency-card { padding: 11px; }
  .currency-card-value { font-size: 15px; }
  .currency-mix-content { flex-direction: column; gap: 15px; padding-bottom: 17px; }
  .currency-legend { width: 100%; }
  .dashboard-panel .panel-heading { padding-right: 11px; padding-left: 11px; }
  .dashboard-table { min-width: 460px; }
  .queue-table { min-width: 560px; }
}

/* Reference-style finance shell and rate/overdue details */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 9; display: flex; flex-direction: column; align-items: stretch; width: 220px; height: 100vh; overflow-y: auto; padding: 22px 13px 17px; border-right: 1px solid #203a5d; background: #0b2250; }
.brand { width: 186px; padding: 0; }
.brand-logo { max-width: 100%; max-height: 62px; }
.workspace-label { display: block; margin: 35px 9px 12px; }
.main-nav { display: grid; flex: 0 0 auto; justify-content: initial; gap: 4px; overflow: visible; margin: 0; }
.nav-link { justify-content: flex-start; width: 100%; padding: 10px 9px; font-size: 10px; }
.nav-link svg { display: block; flex: 0 0 17px; width: 17px; }
.sidebar-bottom { display: block; margin-top: auto; }
.main-area { min-height: 100vh; margin-left: 220px; }
.topbar { position: sticky; inset: 0 0 auto; z-index: 8; display: flex; width: auto; height: 62px; padding: 0 24px; border-bottom: 1px solid #203a5d; background: #0b2250; }
.breadcrumbs { display: flex; color: #e8eef7; font-size: 11px; }
.crumb-divider { color: #7085a1; }
.topbar-actions { gap: 16px; }
.language-control, .profile-copy strong { color: #edf3fc; }
.profile-copy { display: flex; }
.profile-copy span { color: #a6b8d0; }
.topbar-divider { border-color: #ffffff26; }
.profile { padding-right: 16px; }
.avatar { background: #29486e; color: #d8e5fa; }
.select-chevron { color: #bbcadc; }
.logout-button { padding: 7px 10px; border: 1px solid #ffffff4d; border-radius: 6px; background: transparent; color: #fff; font-size: 9px; }
.content { padding-top: 20px; }
.rate-status { display: flex; align-items: center; gap: 9px; min-height: 39px; margin: -3px 0 12px; padding: 8px 11px; border: 1px solid #dce6f3; border-radius: 8px; background: #fff; color: #5f7088; font-size: 9px; }
.rate-status strong { color: #345273; font-size: 9px; }
.rate-source { color: #446486; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.rate-status .rate-method { overflow: hidden; color: #8794a6; text-overflow: ellipsis; white-space: nowrap; }
.rate-status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #38a579; }
.rate-loading .rate-status-dot { background: #d99b35; animation: rate-pulse 1.2s infinite; }
.rate-error { border-color: #f0d8d5; background: #fff9f8; color: #a8645b; }
.rate-error .rate-status-dot { background: #d6695f; }
.rate-refresh { flex: 0 0 auto; margin-left: auto; padding: 5px 8px; border: 1px solid #dce4ee; border-radius: 5px; background: #fff; color: #446486; font-size: 8px; font-weight: 700; }
.rate-refresh:hover { border-color: #9cb4d2; background: #f8faff; }
.currency-card-equivalent { position: relative; z-index: 1; display: block; overflow: hidden; margin-top: 5px; color: #244c82; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.currency-card-note { margin-top: 4px; }
.currency-legend-row { grid-template-columns: 9px 34px minmax(0, 1fr) 34px; }
.currency-legend-row > span:not(.legend-swatch) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mix-warning { grid-column: 1 / -1; margin: 0; color: #a86c31; font-size: 8px; line-height: 1.4; }
.currency-donut > div { width: 91px; height: 91px; padding: 7px; text-align: center; }
.currency-donut strong { overflow: hidden; max-width: 100%; font-size: 17px; text-overflow: ellipsis; }
.currency-donut span { overflow: hidden; max-width: 100%; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.vendor-ranking-row { min-height: 59px; }
.vendor-ranking-main small { color: #526782; }
.due-date-missing { color: #9b7b4c; font-size: 8px; }
.aging-panel .dashboard-table { min-width: 670px; }
.overdue-table { min-width: 680px; }
.overdue-table td { padding-top: 9px; padding-bottom: 9px; }
.overdue-panel .currency-footnote { color: #9a7546; }
.dashboard-category-totals .reference-total small { font-size: 8px; }
@keyframes rate-pulse { 50% { opacity: .35; } }
@media (max-width: 1100px) {
  .sidebar { width: 200px; }
  .main-area { margin-left: 200px; }
  .sidebar .nav-link { font-size: 9px; }
  .content { padding-right: 16px; padding-left: 16px; }
  .topbar { padding-right: 16px; padding-left: 16px; }
}
@media (max-width: 760px) {
  .sidebar { position: relative; inset: auto; flex-direction: row; align-items: center; width: 100%; height: auto; min-height: 52px; padding: 7px 10px; border: 0; }
  .brand { flex: 0 0 auto; width: 150px; padding: 0 7px 0 0; }
  .workspace-label, .sidebar-bottom { display: none; }
  .main-nav { display: flex; flex: 1; flex-direction: row; justify-content: flex-start; gap: 4px; overflow-x: auto; margin: 0; }
  .nav-link { flex: 0 0 auto; justify-content: center; width: auto; padding: 7px 8px; font-size: 8px; }
  .nav-link svg { display: none; }
  .main-area { margin: 0; }
  .topbar { position: relative; inset: auto; height: 45px; padding: 0 12px; border-bottom: 1px solid #294263; }
  .breadcrumbs, .topbar-divider, .profile-copy { display: none; }
  .topbar-actions { gap: 9px; }
  .content { padding: 13px 12px 23px; }
  .dashboard-heading { align-items: flex-start; }
  .dashboard-insight-grid, .dashboard-insight-grid-lower { grid-template-columns: 1fr; }
  .currency-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .rate-status { flex-wrap: wrap; }
  .rate-status .rate-method { flex-basis: 100%; order: 5; white-space: normal; }
  .currency-donut { width: 116px; height: 116px; flex-basis: 116px; }
}
@media (max-width: 1100px) {
  .sidebar { padding-right: 12px; padding-left: 12px; }.main-nav { justify-content: flex-start; overflow-x: auto; }
  .brand { width: 168px; }.topbar { right: 12px; }.reference-stat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { height: auto; min-height: 52px; overflow-y: visible; flex-wrap: wrap; padding: 9px 12px; }.brand { width: min(100%, 340px); padding: 0; }.brand-logo { max-width: 100%; max-height: 64px; }.main-nav { order: 3; flex-basis: 100%; justify-content: flex-start; margin: 5px 0 0; }.nav-link { flex: 0 0 auto; padding: 7px 8px; font-size: 8px; }
  .nav-action-row { flex: 0 0 100%; }
  .topbar { height: 45px; right: 10px; }.content { padding: 12px 10px 18px; }.reference-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.reference-total-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-stat { min-height: 57px; }.dashboard-heading h1 { font-size: 17px; }.reference-notice { font-size: 9px; }.profile { display: none; }.language-control { margin-top: 4px; }
}
.account-nav-group { position: relative; }
.account-nav-toggle { justify-content: space-between; }
.account-nav-chevron { margin-left: auto; font-size: 12px; transition: transform .15s ease; }
.account-nav-toggle[aria-expanded="true"] .account-nav-chevron { transform: rotate(180deg); }
.account-nav-submenu { display: grid; gap: 2px; margin: 3px 0 3px 15px; padding-left: 8px; border-left: 1px solid #ffffff35; }
.nav-sublink { width: 100%; padding: 8px 9px; border: 0; border-radius: 6px; background: transparent; color: #bdcbe0; text-align: left; font-size: 9px; }
.nav-sublink:hover, .nav-sublink.active { background: #ffffff12; color: #fff; }
.account-table { min-width: 820px; }
.password-table { min-width: 700px; }
.password-table input[type="password"] { width: 100%; min-width: 150px; min-height: 31px; padding: 6px 8px; border: 1px solid #dfe5ee; border-radius: 5px; color: #42536c; font-size: 10px; }
.password-table .user-account-email { width: 100%; min-width: 170px; min-height: 31px; padding: 6px 8px; border: 1px solid #dfe5ee; border-radius: 5px; color: #42536c; font-size: 10px; }
.password-row-form { display: none; }
.password-save { color: #347c58; }
.password-demo-note { margin: 0 0 14px; }
.account-status-viewer { background: #edf3ff; color: #426da4; }
.account-page-actions { display: flex; align-items: center; gap: 12px; }
.account-table td { vertical-align: middle; }
.account-top-editor { width: 76px; min-height: 28px; padding: 4px 6px; border: 1px solid #dfe5ee; border-radius: 5px; color: #42536c; font-size: 10px; }
.account-contact { color: #426da4; text-decoration: none; }
.account-contact:hover { text-decoration: underline; }
.account-status { display: inline-flex; padding: 4px 7px; border-radius: 12px; font-size: 8px; font-weight: 700; }
.account-status-active { background: #e8f6ef; color: #34835d; }
.account-status-pending_approval { background: #fff4df; color: #a66e18; }
.account-status-rejected { background: #fff0ef; color: #b64a4a; }
.account-status-deleted { background: #f2f3f5; color: #788292; }
.account-row-deleted td { background: #fafbfc; color: #929baa; }
.account-action { padding: 5px 8px; border: 1px solid #e2e7ef; border-radius: 5px; background: #fff; font-size: 8px; font-weight: 700; }
.account-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.partner-password-form { display: flex; flex-wrap: wrap; gap: 4px; }
.partner-password-form input { width: 150px; min-height: 29px; padding: 5px 7px; border: 1px solid #dfe5ee; border-radius: 5px; font-size: 9px; }
.account-delete { color: #b64a4a; }
.account-restore { color: #347c58; }
.registration-screen { z-index: 31; }
.registration-screen.hidden { display: none; }
.registration-card { max-height: calc(100vh - 32px); overflow-y: auto; }
.registration-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.registration-card form label, .registration-card form input, .registration-card form select, .registration-card form button { min-width: 0; }
.registration-card form label { margin-top: 9px; }
.registration-card form input, .registration-card form select { width: 100%; height: 35px; margin-bottom: 3px; padding: 0 9px; border: 1px solid #ced8e5; border-radius: 4px; background: #f7f9fc; color: #30425b; font-size: 11px; }
.registration-card form input[type="file"] { height: auto; min-height: 35px; padding: 7px; }
.registration-card form button { grid-column: 1 / -1; margin-top: 14px; }
.account-document-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 110px; }
.account-document-links .document-open-link { padding: 5px 7px; white-space: nowrap; }
.registration-back { align-self: flex-start; margin: -8px 0 15px; padding: 0; border: 0; background: transparent; color: #3767a4; font-size: 10px; font-weight: 700; }
.invoice-detail-modal { width: min(100%, 760px); }
body.role-admin1 .dashboard-insight-grid .currency-mix-panel,
body.role-admin3 .dashboard-insight-grid .currency-mix-panel { grid-column: 1 / -1; }
body.role-admin1 .dashboard-insight-grid .vendor-ranking-panel,
body.role-admin3 .dashboard-insight-grid .vendor-ranking-panel { grid-column: 1 / -1; }
body.role-main .dashboard-insight-grid .currency-mix-panel,
body.role-main .dashboard-insight-grid .vendor-ranking-panel { grid-column: 1 / -1; }
body.role-admin1 .main-admin-insight-panel { min-height: 314px; }
body.role-main .currency-mix-content { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 28px; min-height: 190px; padding: 16px 24px 22px; }
body.role-main .currency-donut { width: 160px; height: 160px; flex-basis: 160px; justify-self: center; }
body.role-main .currency-donut > div { width: 112px; height: 112px; }
body.role-main .currency-donut strong { max-width: 100%; font-size: 19px; }
body.role-main .currency-donut span { max-width: 94px; font-size: 9px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; text-align: center; }
body.role-main .currency-legend { grid-template-columns: minmax(0, 1fr); gap: 8px; }
body.role-main .currency-legend-row { grid-template-columns: 10px 42px minmax(0, 1fr) 48px; gap: 8px; min-height: 46px; padding: 9px 11px; border: 1px solid #e8edf4; border-radius: 8px; background: #fbfcfe; font-size: 10px; }
body.role-main .currency-legend-row strong { font-size: 10px; }
body.role-main .currency-legend-row > span:not(.legend-swatch) { overflow: visible; color: #526782; font-size: 10px; line-height: 1.35; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
body.role-main .currency-legend-row b { font-size: 10px; }
body.role-main .vendor-ranking-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 0 18px 16px; }
body.role-main .vendor-ranking-row { min-width: 0; min-height: 76px; padding: 12px; border: 1px solid #e8edf4; border-radius: 8px; background: #fbfcfe; }
body.role-main .vendor-ranking-row:first-child { border-top: 1px solid #e8edf4; }
body.role-main .vendor-ranking-main small { overflow: visible; font-size: 9px; line-height: 1.4; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
body.role-main #dashboard-page > .dashboard-insight-grid:not(.dashboard-insight-grid-lower) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body.role-admin1 #dashboard-page > .dashboard-insight-grid:not(.dashboard-insight-grid-lower) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body.role-admin2 #dashboard-page > .dashboard-insight-grid:not(.dashboard-insight-grid-lower) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body.role-admin3 #dashboard-page > .dashboard-insight-grid:not(.dashboard-insight-grid-lower) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body.role-main #dashboard-page.active { display: flex; flex-direction: column; }
body.role-main #dashboard-page > .dashboard-heading { order: 0; }
body.role-main #dashboard-page > #rate-status { order: 1; }
body.role-main #dashboard-page > #currency-cards { order: 2; }
body.role-main #dashboard-page > #main-admin-totals { order: 3; }
body.role-main #dashboard-page > .dashboard-insight-grid:not(.dashboard-insight-grid-lower) { order: 4; }
body.role-main #dashboard-page > .dashboard-insight-grid-lower { order: 5; }
body.role-main .main-admin-insight-panel { min-height: 314px; }
.weekly-invoice-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; height: 210px; padding: 14px 16px 0; }
.weekly-invoice-column { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; height: 100%; color: #5a6c83; }
.weekly-invoice-column strong { color: #25364d; font-size: 10px; font-weight: 800; }
.weekly-invoice-bar { width: min(100%, 48px); height: var(--bar-height); min-height: 3px; border-radius: 5px 5px 0 0; background: #8cb9c1; }
.weekly-invoice-bar.is-current { background: #147181; }
.weekly-invoice-column > span { min-height: 18px; color: #68798e; font-size: 8px; white-space: nowrap; }
.weekly-invoice-footnote { padding: 8px 15px 14px; color: #758398; font-size: 9px; }
.invoice-status-stack { height: 19px; margin: 6px 16px 12px; overflow: hidden; border-radius: 20px; }
.invoice-status-list { padding: 0 15px 10px; }
.invoice-status-row { display: grid; grid-template-columns: minmax(0, 1fr) 45px 43px; align-items: center; gap: 8px; min-height: 33px; border-bottom: 1px solid #edf0f4; color: #26364c; font-size: 10px; }
.invoice-status-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.invoice-status-name i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 3px; background: var(--status-color); }
.invoice-status-row strong { color: #202f43; font-size: 10px; text-align: right; }
.invoice-status-percent { color: #68798e; font-size: 10px; text-align: right; }
.top-value-panel .panel-heading { align-items: center; }
.dashboard-insight-grid-lower > .vendor-value-wide { grid-column: 1 / -1; }
.top-value-month { flex: 0 0 auto; color: #68798e; font-size: 10px; }
.top-vendors-value-list { display: grid; gap: 3px; padding: 0 18px 15px; }
.top-vendor-value-row { display: grid; gap: 7px; min-width: 0; padding: 8px 0 10px; }
.top-vendor-value-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; color: #253247; }
.top-vendor-value-meta strong { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.top-vendor-value-meta span { flex: 0 0 auto; color: #34445b; font-size: 10px; white-space: nowrap; }
.top-vendor-value-track { height: 8px; overflow: hidden; border-radius: 10px; background: #e8edf1; }
.top-vendor-value-track span { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: #126f7a; }
@media (max-width: 480px) {
  .top-vendors-value-list { padding-right: 12px; padding-left: 12px; }
  .top-vendor-value-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .reference-currency-breakdown-header, .reference-currency-breakdown-row { grid-template-columns: 30px minmax(42px, .7fr) minmax(0, 1.3fr); gap: 3px; }
  .reference-currency-breakdown-row > strong, .reference-currency-breakdown-row > small { font-size: 7px; }
}
@media (max-width: 760px) {
  body.role-main #dashboard-page > .dashboard-insight-grid:not(.dashboard-insight-grid-lower) { grid-template-columns: 1fr; }
  body.role-admin1 #dashboard-page > .dashboard-insight-grid:not(.dashboard-insight-grid-lower) { grid-template-columns: 1fr; }
  body.role-admin2 #dashboard-page > .dashboard-insight-grid:not(.dashboard-insight-grid-lower) { grid-template-columns: 1fr; }
  body.role-admin3 #dashboard-page > .dashboard-insight-grid:not(.dashboard-insight-grid-lower) { grid-template-columns: 1fr; }
  .weekly-invoice-chart { height: 185px; gap: 4px; padding-right: 10px; padding-left: 10px; }
  .invoice-status-row { grid-template-columns: minmax(0, 1fr) 38px 38px; }
}
body.role-admin2 .currency-card-grid { grid-template-columns: minmax(0, 1fr); }
body.role-admin2 .currency-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; min-height: 118px; padding: 16px 22px; }
body.role-admin2 .currency-card-top { grid-column: 1 / -1; }
body.role-admin2 .currency-card-label { grid-column: 1; grid-row: 2; margin-top: 12px; }
body.role-admin2 .currency-card-value { grid-column: 2; grid-row: 2 / 4; margin-top: 10px; font-size: clamp(22px, 2.4vw, 30px); }
body.role-admin2 .currency-card-note { grid-column: 1; grid-row: 3; }
body.role-admin2 .currency-card-equivalent { display: none; }
body.role-admin2 .dashboard-insight-grid .currency-mix-panel,
body.role-admin2 .dashboard-insight-grid .vendor-ranking-panel { grid-column: 1 / -1; }
body.role-admin1 .vendor-ranking-list,
body.role-admin3 .vendor-ranking-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 0 18px 16px; }
body.role-admin2 .vendor-ranking-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 0 18px 16px; }
body.role-admin1 .vendor-ranking-row,
body.role-admin3 .vendor-ranking-row { min-width: 0; min-height: 76px; padding: 12px; border: 1px solid #e8edf4; border-radius: 8px; background: #fbfcfe; }
body.role-admin2 .vendor-ranking-row { min-width: 0; min-height: 76px; padding: 12px; border: 1px solid #e8edf4; border-radius: 8px; background: #fbfcfe; }
body.role-admin1 .vendor-ranking-row:first-child,
body.role-admin3 .vendor-ranking-row:first-child { border-top: 1px solid #e8edf4; }
body.role-admin2 .vendor-ranking-row:first-child { border-top: 1px solid #e8edf4; }
body.role-admin1 .vendor-rank { width: 28px; height: 28px; flex-basis: 28px; }
body.role-admin2 .vendor-rank { width: 28px; height: 28px; flex-basis: 28px; }
body.role-admin1 .vendor-ranking-meta strong,
body.role-admin3 .vendor-ranking-meta strong { font-size: 10px; }
body.role-admin2 .vendor-ranking-meta strong { font-size: 10px; }
body.role-admin1 .vendor-ranking-meta span,
body.role-admin3 .vendor-ranking-meta span { font-size: 9px; }
body.role-admin2 .vendor-ranking-meta span { font-size: 9px; }
body.role-admin1 .vendor-ranking-main small,
body.role-admin3 .vendor-ranking-main small { overflow: visible; font-size: 9px; line-height: 1.4; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
body.role-admin2 .vendor-ranking-main small { overflow: visible; font-size: 9px; line-height: 1.4; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
body.role-admin1 .currency-mix-content,
body.role-admin3 .currency-mix-content { display: grid; grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 28px; min-height: 190px; padding: 16px 24px 22px; }
body.role-admin1 .currency-donut,
body.role-admin3 .currency-donut { width: 152px; height: 152px; flex-basis: 152px; justify-self: center; }
body.role-admin1 .currency-donut > div,
body.role-admin3 .currency-donut > div { width: 104px; height: 104px; }
body.role-admin1 .currency-donut strong { font-size: 19px; }
body.role-admin1 .currency-donut span,
body.role-admin3 .currency-donut span { max-width: 90px; font-size: 8px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
body.role-admin1 .currency-legend,
body.role-admin3 .currency-legend { grid-template-columns: minmax(0, 1fr); gap: 8px; }
body.role-admin1 .currency-legend-row,
body.role-admin3 .currency-legend-row { grid-template-columns: 10px 42px minmax(0, 1fr) 54px; gap: 8px; min-height: 42px; padding: 8px 12px; border: 1px solid #e8edf4; border-radius: 8px; background: #fbfcfe; font-size: 10px; }
body.role-admin1 .currency-legend-row strong,
body.role-admin3 .currency-legend-row strong { font-size: 10px; }
body.role-admin1 .currency-legend-row > span:not(.legend-swatch),
body.role-admin3 .currency-legend-row > span:not(.legend-swatch) { overflow: visible; color: #526782; font-size: 10px; line-height: 1.35; text-overflow: clip; white-space: normal; overflow-wrap: normal; }
body.role-admin1 .currency-legend-row b,
body.role-admin3 .currency-legend-row b { font-size: 10px; }
@media (max-width: 480px) {
  body.role-main .currency-mix-content { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 14px 14px 18px; }
  body.role-main .currency-legend { grid-template-columns: minmax(0, 1fr); width: 100%; }
  body.role-main .vendor-ranking-list { grid-template-columns: minmax(0, 1fr); padding-right: 12px; padding-left: 12px; }
  body.role-main .vendor-ranking-row { padding: 10px; }
  body.role-admin2 .currency-card { min-height: 102px; padding: 13px 15px; column-gap: 10px; }
  body.role-admin2 .currency-card-value { font-size: clamp(19px, 5vw, 25px); }
  body.role-admin2 .vendor-ranking-list { grid-template-columns: minmax(0, 1fr); padding-right: 12px; padding-left: 12px; }
  body.role-admin2 .vendor-ranking-row { padding: 10px; }
  body.role-admin1 .vendor-ranking-list { grid-template-columns: minmax(0, 1fr); padding-right: 12px; padding-left: 12px; }
  body.role-admin1 .vendor-ranking-row { padding: 10px; }
  body.role-admin1 .currency-mix-content { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 14px 14px 18px; }
  body.role-admin1 .currency-legend { grid-template-columns: minmax(0, 1fr); width: 100%; }
  body.role-admin3 .vendor-ranking-list { grid-template-columns: minmax(0, 1fr); padding-right: 12px; padding-left: 12px; }
  body.role-admin3 .vendor-ranking-row { padding: 10px; }
  body.role-admin3 .currency-mix-content { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 14px 14px 18px; }
  body.role-admin3 .currency-legend { grid-template-columns: minmax(0, 1fr); width: 100%; }
}
@media (max-width: 760px) {
  body.role-main .currency-mix-content { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 14px; }
  body.role-main .currency-legend { grid-template-columns: minmax(0, 1fr); width: 100%; }
}
.detail-action { border-color: #dce6f5; background: #f5f8ff; color: #3767a4; }
.invoice-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid #edf0f4; border-radius: 8px; background: #edf0f4; }
.invoice-detail-item { min-width: 0; padding: 11px 13px; background: #fff; }
.invoice-detail-item dt { margin-bottom: 5px; color: #8b96a6; font-size: 9px; }
.invoice-detail-item dd { margin: 0; overflow-wrap: anywhere; color: #35445c; font-size: 11px; font-weight: 700; }
.invoice-detail-item:last-child { background: #f7f9fd; }
.invoice-detail-item:last-child dd { color: #2459a0; font-size: 14px; }
.detail-empty { color: #9aa4b2; font-size: 10px; font-weight: 400; }
.detail-legacy-note { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #f0e3c9; border-radius: 6px; background: #fffaf0; color: #987942; font-size: 10px; }
.invoice-documents { margin-top: 18px; }
.invoice-documents h3 { margin: 0 0 9px; color: #35445c; font-family: Manrope, sans-serif; font-size: 12px; }
.invoice-document-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.invoice-document-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e9edf3; border-radius: 7px; background: #fbfcfe; }
.invoice-document-list li strong, .invoice-document-list li small { display: block; }
.invoice-document-list li strong { color: #56657b; font-size: 9px; }
.invoice-document-list li small { margin-top: 4px; color: #8d98a8; font-size: 9px; overflow-wrap: anywhere; }
.document-open-link { flex: 0 0 auto; padding: 6px 9px; border-radius: 5px; background: #edf3ff; color: #3567b5; font-size: 9px; font-weight: 700; text-decoration: none; }
.detail-file-missing { color: #a35f54; font-size: 9px; }
@media (max-width: 560px) {
  .invoice-details-grid { grid-template-columns: 1fr; }
  .invoice-document-list li { align-items: flex-start; }
}
@media (max-width: 760px) {
  .account-nav-group { flex: 0 0 auto; }
  .account-nav-toggle { gap: 7px; }
  .main-nav { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
  .account-nav-group { display: flex; flex-basis: auto; align-items: center; }
  .account-nav-submenu { position: static; display: flex; flex: 0 0 auto; min-width: 0; gap: 2px; margin: 0 0 0 4px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .nav-sublink { flex: 0 0 auto; width: auto; padding: 7px 8px; white-space: nowrap; }
  .nav-action-row { display: flex; flex: 0 0 auto; flex-direction: row; align-items: center; gap: 4px; }
  .nav-action-row .nav-link { width: auto; }
  .registration-card form { grid-template-columns: 1fr; }
}
@media (min-width: 481px) and (max-width: 760px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; flex-direction: column; align-items: stretch; width: 170px; height: 100vh; min-height: 0; overflow-y: auto; flex-wrap: nowrap; padding: 16px 10px; border-right: 1px solid #203a5d; }
  .brand { width: 100%; padding: 0; }
  .brand-logo { max-height: 52px; }
  .main-nav { display: flex; flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; overflow: visible; margin: 18px 0 0; }
  .nav-link { justify-content: flex-start; width: 100%; padding: 9px 7px; font-size: 9px; }
  .nav-link svg { display: block; }
  .account-nav-group { display: block; flex: 0 0 auto; }
  .account-nav-submenu { display: grid; gap: 2px; margin: 3px 0 3px 15px; padding: 0 0 0 8px; border-left: 1px solid #ffffff35; }
  .nav-sublink { width: 100%; padding: 7px 6px; text-align: left; white-space: normal; }
  .nav-action-row { display: flex; flex: 0 0 auto; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-action-row .nav-link { width: 100%; }
  .main-area { margin-left: 170px; }
  .topbar { right: 10px; }
}

.partner-only { display: none; }
body.role-partner .partner-only { display: block; }
body.role-partner .sidebar,
body.role-partner .breadcrumbs,
body.role-partner .profile,
body.role-partner .topbar-divider,
body.role-partner .reference-notice { display: none; }
body.role-partner .main-area { margin-left: 0; min-height: 100vh; }
body.role-partner .topbar { position: sticky; inset: 0 0 auto; justify-content: space-between; height: auto; min-height: 72px; gap: 20px; padding: 16px 32px; }
body.role-partner .partner-company-name { color: #fff; font-family: Manrope, sans-serif; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
body.role-partner .topbar-actions { flex-shrink: 0; }
body.role-partner .content { max-width: 1200px; padding: 32px 24px; }
body.role-partner .page-section:not(#partner-page) { display: none; }
.partner-heading { gap: 20px; margin-bottom: 24px; }
.partner-heading h1 { color: #253247; font-family: Manrope, sans-serif; font-size: 23px; }
.partner-heading p { color: #718096; font-size: 13px; }
.partner-heading .button { flex-shrink: 0; }
@media (max-width: 600px) {
  body.role-partner .topbar { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
  body.role-partner .partner-company-name { font-size: 17px; }
  body.role-partner .content { padding: 24px 14px; }
  body.role-partner .partner-heading { flex-direction: column; align-items: stretch; }
  .partner-heading h1 { font-size: 20px; }
}
.status-revision_requested { background: #fff2d7; color: #946200; }

.action-button.revision-action, .button.revision-action { border: 1px solid #dca323; background: #fff0c2; color: #704900; font-weight: 700; }
.invoice-detail-actions { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.invoice-table th:last-child, .invoice-table td:last-child { position: sticky; right: 0; background: #fff; box-shadow: -5px 0 8px #1835500c; }
.invoice-table th:last-child { z-index: 2; background: #fafbfd; }
.invoice-table .row-actions { flex-wrap: wrap; max-width: 260px; min-width: 170px; white-space: normal; }
#enable-revision-form .field { margin-bottom: 16px; } #enable-revision-error { color: #b42318; font-size: 12px; line-height: 1.5; }
.rate-status { flex-wrap: wrap; } .rate-publication-note { flex-basis: 100%; font-size: 10px; line-height: 1.5; }

body.invoice-category-page .reference-notice { display: none; }
body.invoice-category-page .page-section:not(#invoices-page) { display: none; }
.standalone-invoice-navigation { margin-bottom: 24px; }
body.invoice-category-page #invoice-workspace-eyebrow { display: none; }
body.account-category-page .reference-notice { display: none; } body.account-category-page .page-section:not([id^="accounts-"]) { display: none; } body.account-category-page [id^="accounts-"] > .page-title-row .eyebrow { display: none; }
body.account-category-page .page-title-row > .result-count, body.account-category-page .page-title-row > .account-page-actions { display: none; }
html { scrollbar-gutter: stable; }
