:root {
    --bg: #f6efe7;
    --card: rgba(255, 252, 248, 0.92);
    --text: #2d2030;
    --muted: #6f6377;
    --line: rgba(93, 59, 80, 0.12);
    --primary: #ff7f50;
    --primary-strong: #df5f30;
    --secondary: #9f85ff;
    --danger: #e16363;
    --danger-strong: #9f2d2d;
    --danger-soft: rgba(255, 236, 236, 0.96);
    --success: #27835f;
    --success-soft: rgba(125, 211, 161, 0.2);
    --shadow: 0 24px 60px rgba(89, 53, 78, 0.14);
    --radius: 24px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Gill Sans", "Segoe UI Variable Text", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 172, 136, 0.55), transparent 32%),
        radial-gradient(circle at 80% 18%, rgba(165, 139, 255, 0.42), transparent 26%),
        linear-gradient(180deg, #fff8f0 0%, #f6efe7 52%, #f2e6dc 100%);
}

.login-body { overflow: hidden; }

.aurora, .page-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(18px);
    pointer-events: none;
    opacity: 0.65;
}

.aurora-a, .orb-one {
    width: 22rem;
    height: 22rem;
    top: -4rem;
    left: -3rem;
    background: rgba(255, 157, 121, 0.38);
}

.aurora-b, .orb-two {
    width: 18rem;
    height: 18rem;
    right: -2rem;
    top: 6rem;
    background: rgba(156, 180, 255, 0.28);
}

.login-shell, .page-shell {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 1.5rem;
    align-items: center;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
    background: rgba(255, 248, 240, 0.72);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem min(3vw, 2rem);
}

.brand {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.brand strong, h1, h2 {
    font-family: Georgia, "Palatino Linotype", serif;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #ffbc98);
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.brand small, .muted, .help-text, small { color: var(--muted); }

.field-label-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    margin-bottom: 0.35rem;
}

.field-label-row > label {
    margin: 0;
    font-weight: 700;
}

.info-tip {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    vertical-align: middle;
}

.info-tip__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    cursor: help;
}

.info-tip__trigger:hover,
.info-tip__trigger:focus-visible {
    background: transparent;
    color: #5a43c4;
    outline: none;
    box-shadow: none;
}

.info-tip__tooltip {
    position: absolute;
    z-index: 50;
    left: -0.55rem;
    bottom: calc(100% + 0.55rem);
    width: max-content;
    max-width: min(20rem, calc(100vw - 3rem));
    padding: 0.7rem 0.8rem;
    border-radius: 0.75rem;
    background: #35283a;
    color: white;
    box-shadow: 0 12px 28px rgba(45, 32, 48, 0.22);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.25rem);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.info-tip__tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0.85rem;
    border: 0.35rem solid transparent;
    border-top-color: #35283a;
}

.info-tip:hover .info-tip__tooltip,
.info-tip:focus-within .info-tip__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.info-tip__tooltip ul {
    margin: 0;
    padding-left: 1.1rem;
}

.nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav a {
    position: relative;
    padding: 0.55rem 0.72rem;
    border-radius: 0.8rem;
    transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.62);
}

.nav a.is-active {
    background: rgba(255, 127, 80, 0.13);
    color: #b84820;
    box-shadow: inset 0 0 0 1px rgba(223, 95, 48, 0.18);
    font-weight: 800;
}

.nav a.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.18rem;
    width: 1.2rem;
    height: 2px;
    border-radius: 999px;
    background: var(--primary-strong);
    transform: translateX(-50%);
}

.nav a, .section-heading a, .list-row {
    color: inherit;
    text-decoration: none;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 1.4rem;
}

.form-card {
    padding: 1.75rem;
}

.order-form-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.35rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.order-form-header h1,
.order-form-header p {
    margin: 0;
}

.order-form-header .eyebrow {
    margin-bottom: 0.45rem;
}

.order-form-header h1 + p {
    margin-top: 0.4rem;
    color: var(--muted);
}

.form-disclosure {
    margin-top: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.form-disclosure > summary,
.invoice-line-editor > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.form-disclosure > summary::-webkit-details-marker,
.invoice-line-editor > summary::-webkit-details-marker {
    display: none;
}

.form-disclosure > summary::after,
.invoice-line-editor > summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 1.15rem;
}

.form-disclosure[open] > summary::after,
.invoice-line-editor[open] > summary::after {
    content: "−";
}

.form-disclosure > summary small,
.invoice-line-editor > summary small {
    margin-left: auto;
    font-weight: 500;
    text-align: right;
}

.form-disclosure[open] > summary {
    border-bottom: 1px solid var(--line);
}

.form-disclosure .workflow-banner {
    margin: 0;
    padding: 1rem 1rem 0;
}

.form-disclosure__note {
    margin: 0;
    padding: 0.8rem 1rem 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.invoice-disclosure .invoice-review-panel {
    margin: 0;
    padding: 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.hero-panel, .feature-card { padding: 2rem; }
.hero-copy h1, .feature-card h1, .spotlight-card .metric-xl span { margin: 0; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--primary-strong);
    margin-bottom: 0.6rem;
}

.pill-row, .action-row, .stack, .detail-list, .metric-grid, .dashboard-grid, .hero-grid, .detail-grid {
    display: flex;
    gap: 1rem;
}

.pill-row { flex-wrap: wrap; }

.pill {
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line);
}

.button {
    border: 0;
    border-radius: 999px;
    padding: 0.9rem 1.15rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), #ffaa83);
    color: white;
}

.button-ghost {
    background: rgba(255, 255, 255, 0.62);
    color: var(--text);
    border: 1px solid var(--line);
}

.button-danger {
    background: var(--danger);
    color: white;
}

.button-disabled,
.button:disabled {
    background: rgba(111, 99, 119, 0.12);
    color: var(--muted);
    border: 1px solid var(--line);
    cursor: not-allowed;
    opacity: 0.85;
}

.table-actions {
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.table-actions form {
    margin: 0;
}

.input, textarea, select {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(117, 90, 111, 0.16);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    font: inherit;
}

.input.is-readonly {
    background: rgba(244, 239, 234, 0.9);
    color: var(--muted);
}

textarea { resize: vertical; }
.stack { flex-direction: column; }
.hero-grid, .dashboard-grid, .detail-grid { display: grid; }

.hero-grid {
    grid-template-columns: 1.4fr 0.9fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.detail-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.9fr);
    gap: 1rem;
}

.detail-grid > *,
.detail-grid .card,
.detail-grid .stack {
    min-width: 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 1rem;
}

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

.metric {
    padding: 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
}

.metric span {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
}

.metric-xl { margin-bottom: 1rem; }
.metric-xl span { font-size: 3rem; line-height: 1; }
.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.status-chip {
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(159, 133, 255, 0.15);
    color: #5a43c4;
    font-size: 0.85rem;
}

.status-chip.status-approved {
    background: rgba(125, 211, 161, 0.22);
    color: var(--success);
}

.status-chip.status-rejected {
    background: rgba(225, 99, 99, 0.16);
    color: #b23d3d;
}

.status-chip.status-pending {
    background: rgba(159, 133, 255, 0.15);
    color: #5a43c4;
}

.audit-item-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audit-item-card.is-approved {
    border-color: rgba(39, 131, 95, 0.22);
    background: linear-gradient(180deg, rgba(248, 255, 250, 0.96) 0%, rgba(233, 248, 239, 0.98) 100%);
}

.audit-item-card.is-rejected {
    border-color: rgba(225, 99, 99, 0.18);
    background: linear-gradient(180deg, rgba(255, 251, 251, 0.95) 0%, rgba(255, 241, 241, 0.98) 100%);
}

.approved-panel {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(39, 131, 95, 0.16);
    background: var(--success-soft);
}

.budget-preview-panel.is-over-budget {
    border-color: rgba(225, 99, 99, 0.28);
    background: rgba(255, 233, 233, 0.82);
}

.budget-preview-panel {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(39, 131, 95, 0.16);
    border-left: 4px solid rgba(39, 131, 95, 0.52);
    border-radius: 0.9rem;
    background: rgba(125, 211, 161, 0.1);
}

.budget-preview-panel > p {
    margin: 0;
}

.budget-preview-panel > p + p {
    margin-top: 0.35rem;
}

.budget-preview-metrics {
    margin-top: 0.75rem;
}

.budget-preview-metrics > summary {
    width: fit-content;
    cursor: pointer;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.budget-preview-metrics .metric-grid {
    margin-top: 0.75rem;
}

.invoice-upload {
    display: grid;
    gap: 0.75rem;
}

.invoice-upload__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.invoice-upload__dropzone {
    position: relative;
    min-height: 8.75rem;
    padding: 1.2rem;
    border-radius: 1.25rem;
    border: 1px dashed rgba(223, 95, 48, 0.42);
    background:
        radial-gradient(circle at top right, rgba(255, 170, 131, 0.22), transparent 32%),
        rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    outline: none;
}

.invoice-upload__dropzone:hover,
.invoice-upload__dropzone:focus-visible,
.invoice-upload.is-focused .invoice-upload__dropzone {
    border-color: rgba(223, 95, 48, 0.78);
    box-shadow: 0 0 0 4px rgba(255, 127, 80, 0.12);
    transform: translateY(-1px);
}

.invoice-upload.is-dragover .invoice-upload__dropzone {
    border-color: rgba(39, 131, 95, 0.72);
    background:
        radial-gradient(circle at top right, rgba(125, 211, 161, 0.28), transparent 32%),
        rgba(245, 255, 249, 0.94);
}

.invoice-upload.has-file .invoice-upload__dropzone {
    border-style: solid;
    border-color: rgba(39, 131, 95, 0.55);
    background:
        radial-gradient(circle at top right, rgba(125, 211, 161, 0.18), transparent 32%),
        rgba(255, 255, 255, 0.82);
}

.invoice-upload__prompt {
    display: grid;
    gap: 0.35rem;
    max-width: 28rem;
    pointer-events: none;
}

.invoice-upload__prompt strong {
    font-size: 1.05rem;
}

.invoice-upload__prompt span {
    color: var(--muted);
}

.invoice-upload__status {
    min-height: 1.5rem;
}

.invoice-upload__helper {
    margin-top: -0.2rem;
}

.invoice-upload__camera-trigger[hidden] {
    display: none;
}

.invoice-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.invoice-review-panel {
    margin: 1rem 0;
}

.invoice-summary-grid {
    margin-top: 0.85rem;
}

.invoice-accounting-panel {
    margin: 0;
}

.form-section {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.46);
}

.invoice-accounting-panel__controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 0.9rem;
    margin-bottom: 0.9rem;
}

.invoice-accounting-panel__choice > label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.choice-inline ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.choice-inline li {
    margin: 0;
}

.choice-inline label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.invoice-line-items {
    margin-top: 1rem;
}

.invoice-line-editor {
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.invoice-line-editor > summary {
    padding: 0.75rem 0.85rem;
}

.invoice-line-editor > p,
.invoice-line-editor > .invoice-line-editor__actions,
.invoice-line-editor > .invoice-line-items__table {
    margin-left: 0.85rem;
    margin-right: 0.85rem;
}

.invoice-line-editor > .invoice-line-items__table {
    margin-bottom: 0.85rem;
}

.invoice-line-items p {
    margin: 0 0 0.65rem;
}

.invoice-line-editor__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.65rem;
    margin: 0.75rem 0;
}

.invoice-line-items__table {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.invoice-line-items table {
    width: 100%;
    min-width: 82rem;
    border-collapse: collapse;
}

.invoice-line-items th,
.invoice-line-items td {
    padding: 0.75rem 0.8rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.invoice-line-items th {
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.invoice-line-items td:nth-child(2) {
    min-width: 16rem;
    white-space: normal;
}

.invoice-line-input {
    min-width: 6rem;
    padding: 0.6rem 0.7rem;
}

.invoice-line-input--code {
    min-width: 5rem;
    width: 7rem;
}

.invoice-line-input--description {
    min-width: 15rem;
}

.invoice-line-input--number,
.invoice-line-input--money {
    min-width: 6.5rem;
    width: 7.5rem;
}

.invoice-line-input--unit {
    min-width: 5rem;
    width: 6rem;
}

.invoice-line-remove {
    color: var(--danger);
    white-space: nowrap;
}

.invoice-line-remove:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.form-errors ul {
    margin: 0.5rem 0 0;
}

.invoice-line-items tbody tr:last-child td {
    border-bottom: 0;
}

.invoice-excerpt {
    margin-top: 0.9rem;
}

.invoice-excerpt summary {
    cursor: pointer;
    font-weight: 700;
}

.invoice-excerpt pre {
    margin: 0.8rem 0 0;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    white-space: pre-wrap;
    font-family: "Consolas", "SFMono-Regular", monospace;
}

.modal-card {
    width: min(34rem, calc(100vw - 2rem));
    border: 0;
    padding: 0;
    background: transparent;
}

.modal-card::backdrop {
    background: rgba(45, 32, 48, 0.35);
    backdrop-filter: blur(6px);
}

.list-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.45);
}

.list-row:hover, .is-unread {
    border-color: rgba(255, 127, 80, 0.24);
    background: rgba(255, 255, 255, 0.78);
}

.list-row.tight { padding: 0.8rem 0.9rem; }
.filter-bar { margin-bottom: 1rem; }
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    align-items: end;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.full-span { grid-column: 1 / -1; }

.form-section-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-top: 0.35rem;
}

.form-section-heading + .form-section,
.form-section-heading + [data-total-account-fields] {
    margin-top: -0.25rem;
}

.form-section-heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(159, 133, 255, 0.16);
    color: #5a43c4;
    font-weight: 800;
}

.form-section-heading h2,
.form-section-heading p {
    margin: 0;
}

.form-section-heading h2 {
    font-size: 1.2rem;
}

.form-section-heading p {
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.grid-form > .action-row {
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.checkbox-card {
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.68);
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-option-row {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    width: fit-content;
}

.checkbox-option-row > .info-tip {
    margin-top: 0.15rem;
}

.checkbox-option .checkbox-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    flex: 0 0 auto;
    accent-color: var(--primary);
}

.checkbox-option > span,
.checkbox-option > span > small {
    display: block;
}

.checkbox-option strong { font-weight: 700; }
.workflow-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0 1.3rem;
}

.workflow-banner div {
    padding: 0.85rem 0.95rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
}

.workflow-banner strong,
.workflow-banner span {
    display: block;
}

.workflow-banner strong {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.impersonation-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border-color: rgba(255, 127, 80, 0.22);
    background:
        radial-gradient(circle at top right, rgba(255, 193, 144, 0.26), transparent 34%),
        linear-gradient(180deg, rgba(255, 254, 250, 0.95) 0%, rgba(255, 245, 235, 0.95) 100%);
}

.impersonation-banner h2,
.impersonation-banner p {
    margin: 0;
}

.impersonation-banner p:last-child {
    margin-top: 0.45rem;
    color: var(--muted);
}

.submission-blocker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin: 0 0 1.25rem;
    padding: 1.15rem 1.2rem;
    border: 2px solid rgba(159, 45, 45, 0.38);
    border-left: 6px solid var(--danger-strong);
    border-radius: 1.1rem;
    background:
        radial-gradient(circle at top right, rgba(225, 99, 99, 0.16), transparent 38%),
        var(--danger-soft);
    box-shadow: 0 12px 28px rgba(159, 45, 45, 0.12);
}

.submission-blocker__icon,
.message-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    font-weight: 800;
}

.submission-blocker__icon {
    background: var(--danger-strong);
    color: white;
}

.submission-blocker__eyebrow {
    margin: 0 0 0.25rem;
    color: var(--danger-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.submission-blocker h2,
.submission-blocker p {
    margin-top: 0;
}

.submission-blocker h2 {
    margin-bottom: 0.45rem;
    color: var(--danger-strong);
}

.submission-blocker p:not(.submission-blocker__eyebrow) {
    margin-bottom: 0.35rem;
}

.submission-blocker__help {
    color: var(--muted);
    font-size: 0.92rem;
}

.detail-list {
    flex-direction: column;
    margin-bottom: 1rem;
}

.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
}

.detail-list div > span {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.detail-grid aside .list-row {
    align-items: flex-start;
    flex-wrap: wrap;
}

.detail-grid aside .timeline-item > * {
    overflow-wrap: anywhere;
}

.note, .timeline-item p {
    margin: 0.45rem 0 0;
    color: var(--muted);
}

.table-subtext {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.timeline-item {
    padding-bottom: 0.9rem;
    border-bottom: 1px dashed var(--line);
}

.messages {
    margin-bottom: 1rem;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid var(--line);
    border-left-width: 5px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 24px rgba(89, 53, 78, 0.08);
}

.message-copy {
    min-width: 0;
}

.message-title {
    display: block;
    margin-bottom: 0.2rem;
}

.message-copy p {
    margin: 0;
}

.message-icon {
    width: 1.75rem;
    height: 1.75rem;
    background: rgba(111, 99, 119, 0.12);
    color: var(--muted);
}

.message.success {
    border-color: rgba(39, 131, 95, 0.45);
    background: rgba(238, 251, 244, 0.96);
}

.message.success .message-icon {
    background: var(--success);
    color: white;
}

.message.warning {
    border-color: rgba(177, 109, 19, 0.42);
    background: rgba(255, 247, 229, 0.96);
}

.message.warning .message-icon {
    background: #a86612;
    color: white;
}

.message.error {
    border-color: rgba(159, 45, 45, 0.48);
    background: var(--danger-soft);
    color: #5f2020;
}

.message.error .message-icon {
    background: var(--danger-strong);
    color: white;
}

.message.error .message-title {
    color: var(--danger-strong);
}

@media (max-width: 900px) {
    .login-shell, .hero-grid, .dashboard-grid, .detail-grid, .grid-form {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav, .action-row, .topbar-user { flex-wrap: wrap; }

    .impersonation-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-form-header {
        flex-direction: column;
    }

    .form-disclosure > summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .form-disclosure > summary small {
        order: 3;
        width: 100%;
        margin-left: 0;
        text-align: left;
    }

    .invoice-upload__actions .button {
        flex: 1 1 12rem;
    }
}

/* Financial control redesign */
:root {
    --bg: #f4f5f6;
    --card: #ffffff;
    --text: #0a192d;
    --muted: #687384;
    --line: #e2e5e9;
    --primary: #c58b25;
    --primary-strong: #a66f12;
    --secondary: #0b2948;
    --danger: #b94040;
    --danger-strong: #922f2f;
    --danger-soft: #fff1f1;
    --success: #18815a;
    --success-soft: #eef8f3;
    --shadow: 0 1px 3px rgba(9, 30, 54, 0.08), 0 10px 30px rgba(9, 30, 54, 0.04);
    --radius: 12px;
    --sidebar: 260px;
    --navy: #071a2e;
    --navy-soft: #0c2844;
    --gold: #c58b25;
    --gold-soft: #f7edd9;
}

body {
    color: var(--text);
    background: var(--bg);
    font-family: "Segoe UI Variable Text", "Aptos", "Trebuchet MS", sans-serif;
}

.app-body {
    min-width: 320px;
    overflow-x: hidden;
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    display: flex;
    flex-direction: column;
    color: #f8fafc;
    background:
        radial-gradient(circle at 20% 10%, rgba(40, 82, 124, 0.38), transparent 36%),
        linear-gradient(180deg, #07182b 0%, #0a2139 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 12px 0 36px rgba(6, 21, 38, 0.1);
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 86px;
    padding: 1rem 1.35rem;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-brand__mark {
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #e0b35e;
    border: 1px solid rgba(220, 168, 68, 0.9);
    border-radius: 5px;
    font-family: Georgia, "Palatino Linotype", serif;
    box-shadow: inset 0 0 18px rgba(197, 139, 37, 0.08), 0 0 18px rgba(197, 139, 37, 0.08);
}

.sidebar-brand strong,
.sidebar-brand small {
    display: block;
}

.sidebar-brand strong {
    color: #d7a84d;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: 0.91rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.sidebar-brand small {
    margin-top: 0.15rem;
    color: #e7c983;
    font-size: 0.74rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.32rem;
    padding: 1.5rem 0.75rem;
}

.sidebar-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 47px;
    padding: 0.68rem 0.95rem;
    color: rgba(246, 249, 252, 0.88);
    border-radius: 7px;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.sidebar-nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(2px);
}

.sidebar-nav a.is-active {
    color: white;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    box-shadow: inset -3px 0 0 var(--gold);
}

.sidebar-nav a.is-active .nav-icon {
    color: #e0ad4c;
}

.nav-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-badge {
    min-width: 1.55rem;
    height: 1.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0 0.4rem;
    color: white;
    background: var(--gold);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.sidebar-footer {
    display: grid;
    gap: 1rem;
    margin-top: auto;
    padding: 1.25rem 1.35rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-company small,
.sidebar-company strong {
    display: block;
}

.sidebar-company small {
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.55);
}

.sidebar-company strong {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.82rem;
    line-height: 1.35;
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #7d8995;
    border-radius: 999px;
}

.status-dot.is-online,
.sidebar-status .status-dot:not(.is-online) {
    background: #55c79a;
    box-shadow: 0 0 0 3px rgba(85, 199, 154, 0.12);
}

.sidebar-scrim {
    display: none;
}

.app-stage {
    min-height: 100vh;
    margin-left: var(--sidebar);
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1.75rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.top-nav {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
}

.top-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 0.78rem;
    color: #172134;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.top-nav a::after {
    content: "";
    position: absolute;
    inset: auto 0.78rem 0;
    height: 2px;
    background: transparent;
}

.top-nav a:hover,
.top-nav a.is-active {
    color: var(--primary-strong);
}

.top-nav a.is-active::after {
    background: var(--gold);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-left: auto;
}

.notification-button {
    position: relative;
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    border-right: 1px solid var(--line);
    padding-right: 0.9rem;
}

.notification-button svg,
.mobile-menu-toggle svg,
.period-control svg,
.kpi-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

.notification-button > span {
    position: absolute;
    top: 0.15rem;
    right: 0.45rem;
    min-width: 1.05rem;
    height: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: var(--gold);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
}

.user-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.user-avatar {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    background: var(--gold-soft);
    border: 1px solid #ead6aa;
    border-radius: 999px;
    font-weight: 800;
}

.user-summary__copy strong,
.user-summary__copy small {
    display: block;
}

.user-summary__copy strong {
    font-size: 0.82rem;
}

.user-summary__copy small {
    margin-top: 0.12rem;
    color: var(--muted);
    font-size: 0.7rem;
}

.logout-form {
    margin: 0;
}

.logout-link {
    padding: 0;
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 700;
}

.logout-link:hover {
    color: var(--danger);
}

.mobile-menu-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    align-self: center;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--text);
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.mobile-menu-toggle svg {
    width: 1.3rem;
    height: 1.3rem;
}

.page-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 2rem 1.75rem 2.5rem;
    flex: 1 0 auto;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.75rem;
    color: var(--muted);
    background: white;
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel,
.feature-card,
.card {
    padding: 1.25rem;
}

.brand strong,
h1,
h2,
.dashboard-panel h2,
.kpi-value {
    font-family: Georgia, "Palatino Linotype", serif;
    letter-spacing: -0.025em;
}

h1,
h2,
p {
    color: inherit;
}

h1 {
    font-size: clamp(1.75rem, 2.2vw, 2.45rem);
    line-height: 1.12;
}

h2 {
    font-size: 1.22rem;
}

a {
    color: #a66f12;
}

.eyebrow {
    color: var(--primary-strong);
    font-weight: 800;
    letter-spacing: 0.13em;
}

.section-heading {
    align-items: center;
}

.section-heading h1,
.section-heading h2,
.section-heading p {
    margin-top: 0;
}

.button {
    min-height: 40px;
    padding: 0.68rem 1rem;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 750;
}

.button-primary {
    color: white;
    background: linear-gradient(135deg, #c99431, #ae7415);
    box-shadow: 0 6px 14px rgba(174, 116, 21, 0.16);
}

.button-primary:hover {
    background: #a66f12;
}

.button-ghost {
    color: var(--text);
    background: white;
    border: 1px solid #d8dde2;
}

.button-danger {
    color: white;
    background: var(--danger);
}

.input,
textarea,
select {
    padding: 0.72rem 0.85rem;
    color: var(--text);
    background: white;
    border: 1px solid #d8dde2;
    border-radius: 7px;
}

.input:focus,
textarea:focus,
select:focus {
    outline: 0;
    border-color: #c58b25;
    box-shadow: 0 0 0 3px rgba(197, 139, 37, 0.12);
}

.metric {
    background: #f8f9fa;
    border-color: var(--line);
    border-radius: 8px;
}

.metric span {
    color: var(--navy);
}

.list-row {
    background: #fafbfc;
    border: 1px solid #edf0f2;
    border-radius: 7px;
}

.list-row:hover,
.is-unread {
    background: #fffaf0;
    border-color: #e8cc91;
}

.table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
}

.table th {
    color: #566273;
    background: #f7f8f9;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table th,
.table td {
    padding: 0.82rem 0.75rem;
}

.table tbody tr:hover {
    background: #fffaf1;
}

.status-chip {
    margin: 0;
    padding: 0.36rem 0.68rem;
    color: #6d551b;
    background: #f7edd9;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
}

.status-chip.status-approved {
    color: #176747;
    background: #e8f6ef;
}

.status-chip.status-rejected {
    color: #9b3434;
    background: #fdeaea;
}

.status-chip.status-pending {
    color: #8a6115;
    background: #fbf0d8;
}

.duplicate-warning {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin: 0 0 1.25rem;
    padding: 1.15rem 1.2rem;
    border: 2px solid rgba(197, 139, 37, 0.34);
    border-left: 6px solid #b87712;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff8e8, #fffdf8);
    box-shadow: 0 12px 28px rgba(128, 84, 15, 0.08);
}

.duplicate-warning__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #fff;
    background: #b87712;
    font-weight: 800;
}

.duplicate-warning__eyebrow {
    margin: 0 0 0.2rem;
    color: #8a5a10;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.duplicate-warning h2,
.duplicate-warning p {
    margin-top: 0;
}

.button-warning {
    margin-top: 0.35rem;
    color: #fff;
    background: #9a650e;
    border-color: #9a650e;
}

.duplicate-inline-warning {
    display: block;
    margin-top: 0.25rem;
    color: #9a650e;
    font-weight: 800;
}

.duplicate-target-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.duplicate-target-grid > div {
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.62);
}

.duplicate-target-grid strong,
.duplicate-target-grid span {
    display: block;
    overflow-wrap: anywhere;
}

.duplicate-target-grid span {
    margin-top: 0.3rem;
    color: var(--muted);
}

.duplicate-scope-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.duplicate-scope-tabs a {
    padding: 0.55rem 0.8rem;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 750;
}

.duplicate-scope-tabs a.is-active {
    color: #fff;
    border-color: var(--text);
    background: var(--text);
}

.duplicate-range-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: end;
    margin-bottom: 1rem;
}

.duplicate-range-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.source-chip {
    display: inline-flex;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    color: #495463;
    background: #edf1f5;
    font-size: 0.72rem;
    font-weight: 800;
}

.source-chip.source-qbo {
    color: #176747;
    background: #e4f5ed;
}

.duplicate-results-table td:nth-child(5) {
    min-width: 15rem;
    max-width: 28rem;
}

.compact-empty-state {
    padding: 2rem 1rem;
}

@media (max-width: 800px) {
    .duplicate-target-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .duplicate-warning {
        grid-template-columns: 1fr;
    }

    .duplicate-target-grid {
        grid-template-columns: 1fr;
    }

    .duplicate-range-form > div,
    .duplicate-range-form input,
    .duplicate-range-form .button {
        width: 100%;
    }
}

.approved-panel,
.budget-preview-panel,
.workflow-banner div,
.checkbox-card,
.form-section {
    background: #f8fafb;
    border-color: var(--line);
}

.impersonation-banner {
    border-color: #e7ca8c;
    background: #fff8e9;
}

.message {
    border-radius: 8px;
    box-shadow: none;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 1rem;
}

.dashboard-grid {
    gap: 1rem;
}

/* Overview dashboard */
.dashboard-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-welcome h1,
.dashboard-welcome p {
    margin: 0;
}

.dashboard-welcome .eyebrow {
    margin-bottom: 0.45rem;
}

.dashboard-welcome h1 + p {
    margin-top: 0.4rem;
    color: #4f5b6b;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.period-control {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 0.85rem;
    color: #344052;
    background: white;
    border: 1px solid #d8dde2;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 650;
}

.period-control svg {
    width: 1rem;
    height: 1rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(145px, 1fr)) minmax(245px, 1.28fr);
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.kpi-card {
    min-width: 0;
    min-height: 156px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.1rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.kpi-card__top {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #253144;
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.kpi-icon {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--navy);
    background: #f5f6f7;
    border-radius: 8px;
}

.kpi-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.kpi-value {
    display: block;
    margin: 0.6rem 0 0.35rem;
    color: var(--navy);
    font-size: clamp(1.65rem, 2vw, 2.08rem);
    font-weight: 500;
    white-space: nowrap;
}

.kpi-card > small,
.budget-kpi small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
}

.trend {
    color: var(--success);
    font-weight: 800;
}

.trend::before {
    content: "↑ ";
}

.trend.trend-down {
    color: var(--danger);
}

.trend.trend-down::before {
    content: "↓ ";
}

.kpi-card--budget {
    justify-content: center;
}

.kpi-label {
    display: block;
    margin-bottom: 0.8rem;
    color: #253144;
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.budget-kpi {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.budget-kpi > div:last-child strong {
    display: block;
    margin-bottom: 0.22rem;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: 1.35rem;
    font-weight: 500;
}

.budget-ring {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: conic-gradient(var(--navy) 0 calc(var(--budget-value) * 1%), #e7e9ec 0);
    border-radius: 999px;
}

.budget-ring.is-over {
    background: conic-gradient(var(--danger) 0 100%);
}

.budget-ring.is-over span {
    color: var(--danger-strong);
}

.budget-ring::before {
    content: "";
    grid-area: 1 / 1;
    width: 58px;
    height: 58px;
    background: white;
    border-radius: inherit;
}

.budget-ring span {
    position: relative;
    grid-area: 1 / 1;
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: 1.12rem;
}

.dashboard-chart-grid,
.dashboard-triple-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-chart-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}

.dashboard-triple-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-panel {
    min-width: 0;
    padding: 1.1rem;
}

.dashboard-panel__heading {
    margin-bottom: 0.75rem;
}

.dashboard-panel__heading h2,
.dashboard-panel__heading p {
    margin-bottom: 0;
}

.dashboard-panel__heading .eyebrow {
    margin-bottom: 0.22rem;
}

.dashboard-panel__heading > a {
    color: #596576;
    font-size: 0.73rem;
    font-weight: 700;
    text-decoration: none;
}

.chart-legend {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 0.45rem;
    color: #5c6879;
    font-size: 0.7rem;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.legend-line {
    width: 1.15rem;
    height: 2px;
    display: inline-block;
    background: var(--navy);
}

.legend-line--budget {
    height: 0;
    background: transparent;
    border-top: 2px dashed var(--gold);
}

.trend-chart {
    min-height: 220px;
}

.trend-chart svg {
    width: 100%;
    height: 220px;
    overflow: visible;
}

.chart-grid-line,
.chart-axis {
    stroke: #e8eaed;
    stroke-width: 1;
}

.chart-budget-line {
    stroke: var(--gold);
    stroke-width: 2;
    stroke-dasharray: 7 7;
}

.chart-area {
    fill: url(#none);
    fill: rgba(13, 42, 72, 0.07);
}

.chart-spend-line {
    fill: none;
    stroke: var(--navy);
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.chart-point {
    fill: white;
    stroke: var(--navy);
    stroke-width: 2.5;
}

.chart-label {
    fill: #697586;
    font-family: "Segoe UI Variable Text", sans-serif;
    font-size: 11px;
}

.category-chart {
    min-height: 240px;
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.2fr);
    align-items: center;
    gap: 1.5rem;
}

.donut-chart {
    position: relative;
    width: min(188px, 100%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 0 auto;
    background: conic-gradient(var(--segments));
    border-radius: 999px;
}

.donut-chart::before {
    content: "";
    grid-area: 1 / 1;
    width: 58%;
    aspect-ratio: 1;
    background: white;
    border-radius: inherit;
}

.donut-chart > div {
    position: relative;
    grid-area: 1 / 1;
    text-align: center;
}

.donut-chart strong,
.donut-chart span {
    display: block;
}

.donut-chart strong {
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: 1.1rem;
    font-weight: 500;
}

.donut-chart span {
    margin-top: 0.22rem;
    color: var(--muted);
    font-size: 0.68rem;
}

.category-legend {
    display: grid;
    gap: 0.62rem;
}

.category-legend > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 2.7rem;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.76rem;
}

.category-name {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-wrap: anywhere;
}

.category-name i {
    width: 0.68rem;
    height: 0.68rem;
    flex: 0 0 auto;
    background: var(--category-color);
    border-radius: 999px;
}

.category-legend strong {
    font-family: Georgia, "Palatino Linotype", serif;
    font-weight: 500;
}

.category-legend small {
    color: var(--muted);
    text-align: right;
}

.compact-panel {
    min-height: 225px;
}

.dashboard-list,
.budget-alert-list {
    display: grid;
    gap: 0.5rem;
}

.dashboard-list > a {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.72rem 0.35rem;
    color: var(--text);
    border-bottom: 1px solid #edf0f2;
    text-decoration: none;
}

.dashboard-list > a:hover {
    color: var(--primary-strong);
}

.dashboard-list span,
.dashboard-list span strong,
.dashboard-list span small {
    min-width: 0;
    display: block;
}

.dashboard-list span strong,
.dashboard-list > a > strong {
    font-size: 0.75rem;
}

.dashboard-list span small {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.67rem;
    overflow-wrap: anywhere;
}

.dashboard-list > a > strong {
    white-space: nowrap;
}

.budget-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.72rem;
    background: #fffaf0;
    border: 1px solid #f0dfba;
    border-radius: 7px;
}

.budget-alert--critical {
    background: #fff3f2;
    border-color: #f0ceca;
}

.budget-alert__icon {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #80580c;
    background: #f6cf7d;
    border-radius: 999px;
    font-weight: 900;
}

.budget-alert--critical .budget-alert__icon {
    color: #a23232;
    background: #ffc9c5;
}

.budget-alert strong,
.budget-alert small {
    display: block;
}

.budget-alert strong {
    font-size: 0.74rem;
}

.budget-alert small {
    margin-top: 0.22rem;
    color: var(--muted);
    font-size: 0.66rem;
}

.empty-state {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    color: var(--muted);
    background: #f8fafb;
    border: 1px dashed #d9dee4;
    border-radius: 7px;
    text-align: center;
}

.empty-state span {
    width: 1.55rem;
    height: 1.55rem;
    display: inline-grid;
    place-items: center;
    color: white;
    background: var(--success);
    border-radius: 999px;
}

.empty-state p {
    margin: 0;
    font-size: 0.75rem;
}

/* Login follows the same visual language. */
.login-body {
    min-height: 100vh;
    color: white;
    background:
        radial-gradient(circle at 18% 12%, rgba(54, 100, 145, 0.4), transparent 34%),
        radial-gradient(circle at 84% 80%, rgba(197, 139, 37, 0.13), transparent 30%),
        var(--navy);
    overflow: auto;
}

.login-body .hero-panel h1 {
    color: white;
}

.login-body .hero-copy,
.login-body .hero-panel p {
    color: rgba(255, 255, 255, 0.75);
}

.login-body .pill {
    color: #f2d89e;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.login-body .login-card {
    color: var(--text);
    background: white;
}

@media (max-width: 1320px) {
    .top-nav a {
        padding-inline: 0.48rem;
        font-size: 0.8rem;
    }

    .top-nav a::after {
        inset-inline: 0.48rem;
    }

    .kpi-grid {
        grid-template-columns: repeat(4, minmax(135px, 1fr));
    }

    .kpi-card--budget {
        grid-column: span 2;
    }
}

@media (max-width: 1120px) {
    .top-nav {
        display: none;
    }

    .dashboard-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .dashboard-chart-grid,
    .dashboard-triple-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

    .nav-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-scrim {
        position: fixed;
        z-index: 25;
        inset: 0;
        width: 100%;
        padding: 0;
        background: rgba(4, 16, 28, 0.48);
        border: 0;
    }

    .nav-open .sidebar-scrim {
        display: block;
    }

    .app-stage {
        margin-left: 0;
    }

    .topbar {
        min-height: 66px;
        flex-direction: row;
        align-items: center;
        padding: 0 1rem;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .page-shell {
        padding: 1.25rem 1rem 2rem;
    }

    .app-footer {
        padding-inline: 1rem;
    }

    .hero-grid,
    .dashboard-grid,
    .detail-grid,
    .grid-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .user-summary__copy,
    .logout-link,
    .notification-button {
        display: none;
    }

    .topbar-actions {
        gap: 0;
    }

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

    .kpi-card--budget {
        grid-column: auto;
    }

    .category-chart {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .dashboard-actions .period-control {
        grid-column: 1 / -1;
    }

    .app-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* QuickBooks control centre */
.qbo-hero .feature-card {
    background:
        radial-gradient(circle at 90% 10%, rgba(203, 151, 54, 0.2), transparent 32%),
        linear-gradient(135deg, #0b2139 0%, #102d4d 100%);
    color: #fff;
}

.qbo-hero .feature-card h1,
.qbo-hero .feature-card .eyebrow {
    color: #fff;
}

.qbo-hero .feature-card .pill {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

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

.qbo-readiness-card {
    overflow: hidden;
}

.qbo-readiness-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.qbo-readiness-item {
    align-items: flex-start;
    background: #f7f8fa;
    border: 1px solid #e5e8ec;
    border-radius: 14px;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
    padding: 1rem;
}

.qbo-readiness-item.is-ready {
    background: #f2f9f5;
    border-color: #cce5d7;
}

.qbo-readiness-icon {
    align-items: center;
    background: #e9edf2;
    border-radius: 50%;
    color: #596574;
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 0.78rem;
    font-weight: 700;
    height: 28px;
    justify-content: center;
}

.qbo-readiness-item.is-ready .qbo-readiness-icon {
    background: #d9efe2;
    color: #24724a;
}

.qbo-readiness-item strong,
.qbo-readiness-item p {
    display: block;
    overflow-wrap: anywhere;
}

.qbo-readiness-item p {
    color: #687383;
    font-size: 0.84rem;
    line-height: 1.45;
    margin: 0.25rem 0 0;
}

.qbo-setup-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.qbo-setup-grid > * {
    min-width: 0;
}

.qbo-mapping-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.qbo-mapping-row {
    align-items: center;
    background: #f8f9fb;
    border: 1px solid #e7e9ed;
    border-radius: 12px;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(150px, 0.8fr) minmax(190px, 1.2fr) auto;
    padding: 0.8rem;
}

.qbo-mapping-row > div,
.qbo-mapping-row select {
    min-width: 0;
}

.qbo-mapping-row strong,
.qbo-mapping-row span {
    display: block;
}

.qbo-mapping-row span {
    color: #77808d;
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.qbo-unmapped-details {
    border-top: 1px solid #e6e8eb;
    margin-top: 1rem;
    padding-top: 0.9rem;
}

.qbo-unmapped-details summary {
    color: #6d7580;
    cursor: pointer;
    font-size: 0.85rem;
}

.qbo-settings-form label,
.qbo-payment-form label {
    color: #374151;
    display: grid;
    font-size: 0.82rem;
    font-weight: 650;
    gap: 0.35rem;
}

.qbo-settings-form .field-help {
    color: #77808d;
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0.35rem 0 0;
}

.qbo-setup-warning {
    display: grid;
    gap: 0.7rem;
}

.qbo-secondary-action {
    margin-top: 0.8rem;
}

.qbo-budget-link {
    border-top: 1px solid #e8eaed;
    color: #9a6812;
    display: block;
    font-size: 0.86rem;
    font-weight: 650;
    margin-top: 1rem;
    padding-top: 1rem;
}

.qbo-transaction-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.qbo-transaction-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 370px);
    padding: 1rem;
}

.qbo-transaction-main,
.qbo-transaction-action {
    min-width: 0;
}

.qbo-transaction-action {
    border-left: 1px solid #e8eaed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 1rem;
}

.qbo-transaction-title {
    align-items: flex-start;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
}

.qbo-transaction-title strong,
.qbo-transaction-title span,
.qbo-transaction-meta strong,
.qbo-transaction-meta span {
    display: block;
    overflow-wrap: anywhere;
}

.qbo-transaction-title > div > span,
.qbo-transaction-meta span {
    color: #7a8390;
    font-size: 0.8rem;
    margin-top: 0.18rem;
}

.qbo-transaction-meta {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0.9rem;
}

.qbo-transaction-meta small {
    color: #8a929d;
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.qbo-transaction-message {
    background: #f7f8fa;
    border-radius: 10px;
    color: #586270;
    font-size: 0.84rem;
    line-height: 1.5;
    margin: 0.9rem 0 0;
    overflow-wrap: anywhere;
    padding: 0.7rem 0.8rem;
}

.qbo-transaction-action small {
    color: #7b8490;
    line-height: 1.4;
}

.qbo-vendor-resolution {
    background: #fff9ed;
    border: 1px solid #edc982;
    border-radius: 12px;
    padding: 0.9rem;
}

.qbo-vendor-resolution h3 {
    font-size: 1rem;
    margin: 0.15rem 0 0.35rem;
}

.qbo-vendor-resolution label {
    color: #3d3327;
    font-size: 0.78rem;
    font-weight: 700;
}

.qbo-vendor-resolution .input {
    margin-top: 0.3rem;
    width: 100%;
}

.qbo-vendor-source {
    color: #6d5c43;
    font-size: 0.82rem;
    margin: 0 0 0.8rem;
    overflow-wrap: anywhere;
}

.qbo-vendor-divider {
    align-items: center;
    color: #9a7a43;
    display: flex;
    font-size: 0.72rem;
    gap: 0.6rem;
    margin: 0.8rem 0;
    text-transform: uppercase;
}

.qbo-vendor-divider::before,
.qbo-vendor-divider::after {
    background: #ead8b5;
    content: "";
    flex: 1;
    height: 1px;
}

.qbo-payment-confirm {
    align-items: flex-start;
    display: flex !important;
    font-weight: 500 !important;
    line-height: 1.4;
}

.qbo-payment-confirm input {
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

.qbo-complete-state {
    align-items: center;
    background: #f2f9f5;
    border: 1px solid #cce5d7;
    border-radius: 12px;
    color: #24724a;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    text-align: center;
}

.qbo-complete-state span {
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.reimbursement-dashboard-card {
    align-items: center;
    display: grid;
    gap: 1.4rem;
    grid-template-columns: minmax(300px, 1.25fr) minmax(240px, 1fr) auto;
    margin-bottom: 1.25rem;
}

.reimbursement-dashboard-total {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
}

.reimbursement-dashboard-total h2,
.reimbursement-report-heading h1 {
    margin-bottom: 0.35rem;
}

.reimbursement-dashboard-total p:last-child {
    color: var(--muted);
    margin: 0;
}

.reimbursement-dashboard-amount {
    flex: 0 0 auto;
    text-align: right;
}

.reimbursement-dashboard-amount strong,
.reimbursement-dashboard-amount span {
    display: block;
}

.reimbursement-dashboard-amount strong {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.8rem;
}

.reimbursement-dashboard-amount span,
.reimbursement-dashboard-people small {
    color: var(--muted);
    font-size: 0.78rem;
}

.reimbursement-dashboard-people {
    border-left: 1px solid var(--line);
    display: grid;
    gap: 0.55rem;
    padding-left: 1.3rem;
}

.reimbursement-dashboard-people > div {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.reimbursement-dashboard-people span,
.reimbursement-dashboard-people strong,
.reimbursement-dashboard-people small {
    display: block;
}

.reimbursement-month-form {
    align-items: end;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: minmax(170px, 1fr) auto;
}

.reimbursement-month-form label {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    grid-column: 1 / -1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.reimbursement-metric-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.reimbursement-metric {
    display: grid;
    gap: 0.45rem;
}

.reimbursement-metric > span {
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reimbursement-metric > strong {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 1.65rem;
}

.reimbursement-metric > small {
    color: var(--muted);
    line-height: 1.35;
}

.reimbursement-metric--action {
    background: #fff8e8;
    border-color: #e8cc91;
}

.reimbursement-metric--paid {
    background: #f2f9f5;
    border-color: #cce5d7;
}

.reimbursement-people-card,
.reimbursement-claims-card {
    margin-bottom: 1.25rem;
}

.reimbursement-table td:first-child strong,
.reimbursement-table td:first-child small {
    display: block;
}

.reimbursement-table td:first-child small {
    color: var(--muted);
    margin-top: 0.15rem;
}

.reimbursement-claim-list {
    display: grid;
    gap: 0.9rem;
}

.reimbursement-claim {
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 380px);
    padding: 1rem;
}

.reimbursement-claim-main,
.reimbursement-claim-action {
    min-width: 0;
}

.reimbursement-claim-action {
    border-left: 1px solid var(--line);
    display: grid;
    gap: 0.85rem;
    padding-left: 1rem;
}

.reimbursement-claim-title,
.reimbursement-claim-statuses {
    align-items: flex-start;
    display: flex;
    gap: 0.65rem;
    justify-content: space-between;
}

.reimbursement-claim-title span,
.reimbursement-claim-title strong {
    display: block;
}

.reimbursement-claim-title span,
.reimbursement-claim-meta span {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.reimbursement-claim-title > strong {
    color: var(--navy);
    font-size: 1.15rem;
}

.reimbursement-claim-meta {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0.9rem;
}

.reimbursement-claim-meta small,
.reimbursement-claim-meta strong,
.reimbursement-claim-meta span {
    display: block;
    overflow-wrap: anywhere;
}

.reimbursement-claim-meta small {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.reimbursement-payment-form {
    border-top: 1px solid var(--line);
    padding-top: 0.85rem;
}

.reimbursement-waiting-state {
    background: #fff8e8;
    border: 1px solid #e8cc91;
    border-radius: 10px;
    display: grid;
    gap: 0.3rem;
    padding: 0.85rem;
}

.reimbursement-waiting-state span,
.reimbursement-waiting-state small {
    color: var(--muted);
}

@media (max-width: 1180px) {
    .reimbursement-dashboard-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .reimbursement-dashboard-people {
        border-left: 0;
        border-top: 1px solid var(--line);
        grid-column: 1 / -1;
        padding: 1rem 0 0;
    }

    .reimbursement-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .reimbursement-dashboard-card,
    .reimbursement-claim,
    .reimbursement-metric-grid {
        grid-template-columns: 1fr;
    }

    .reimbursement-dashboard-total {
        align-items: flex-start;
        flex-direction: column;
    }

    .reimbursement-dashboard-amount {
        text-align: left;
    }

    .reimbursement-claim-action {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 1rem 0 0;
    }

    .reimbursement-claim-meta {
        grid-template-columns: 1fr;
    }
}

.status-recorded {
    background: #fff4d9;
    color: #8b5e08;
}

.status-paid {
    background: #e5f5ec;
    color: #26734a;
}

@media (max-width: 1180px) {
    .qbo-readiness-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .qbo-setup-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .qbo-readiness-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qbo-mapping-row,
    .qbo-transaction-card {
        grid-template-columns: 1fr;
    }

    .qbo-transaction-action {
        border-left: 0;
        border-top: 1px solid #e8eaed;
        padding-left: 0;
        padding-top: 1rem;
    }
}

@media (max-width: 560px) {
    .qbo-readiness-grid,
    .qbo-summary-grid,
    .qbo-transaction-meta {
        grid-template-columns: 1fr;
    }

    .qbo-transaction-title {
        align-items: flex-start;
        flex-direction: column;
    }
}
.approval-layer {
    border-left: 4px solid var(--accent, #3b82f6);
}

.approval-layer__grid {
    align-items: end;
}

.approval-layer__wide {
    grid-column: span 2;
}

.approval-layer__delete {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--danger, #b42318);
    font-weight: 700;
}

.workflow-rule-guide .metric span {
    font-size: 1rem;
}

.grid-form > :nth-child(even) .info-tip__tooltip {
    right: -0.55rem;
    left: auto;
}

.grid-form > :nth-child(even) .info-tip__tooltip::after {
    right: 0.85rem;
    left: auto;
}

@media (max-width: 720px) {
    .approval-layer__wide {
        grid-column: auto;
    }

    .info-tip__tooltip,
    .grid-form > :nth-child(even) .info-tip__tooltip {
        right: auto;
        left: -5rem;
        width: min(10rem, calc(100vw - 2rem));
    }

    .info-tip__tooltip::after,
    .grid-form > :nth-child(even) .info-tip__tooltip::after {
        right: auto;
        left: 5.25rem;
    }
}
