:root {
    color-scheme: light;
    --ink: #172d3d;
    --muted: #65798a;
    --line: #e2e9ed;
    --paper: #fff;
    --canvas: #f3f6f8;
    --navy: #163b54;
    --navy-deep: #102e43;
    --sidebar-width: 258px;
    --teal: #087f78;
    --teal-bright: #1a9c8e;
    --orange: #a96c1b;
    --red: #a83d43;
    --green: #20734f;
    --shadow: 0 8px 24px rgb(20 44 62 / 5%);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font: 14px/1.55 Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgb(26 156 142 / 45%);
    outline-offset: 2px;
}

.shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 5;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 20px 14px 14px;
    background:
        radial-gradient(ellipse at 0 0, rgb(34 133 132 / 19%), transparent 42%),
        linear-gradient(165deg, #102e43, #153c54 72%, #174958);
    color: #eaf2f5;
    box-shadow: 8px 0 28px rgb(10 35 50 / 8%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-height: 62px;
    margin-bottom: 22px;
    padding: 3px 9px 15px;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    color: #fff;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-copy {
    min-width: 0;
    flex: 1;
}

.brand-copy strong,
.brand-copy small {
    display: block;
}

.brand-copy strong {
    font-size: 19px;
    letter-spacing: .2px;
}

.brand-copy small {
    margin-top: 2px;
    color: #b0c4ce;
    font-size: 11px;
}

.brand-status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #54cfb1;
    box-shadow: 0 0 0 4px rgb(84 207 177 / 12%);
}

.sidebar-nav {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 1px 14px;
    scrollbar-color: rgb(255 255 255 / 18%) transparent;
    scrollbar-width: thin;
}

.sidebar-group {
    display: grid;
    gap: 4px;
}

.sidebar-label {
    margin: 0 10px 4px;
    color: #7f9eac;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.15px;
    text-transform: uppercase;
}

.sidebar nav a {
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #c2d2da;
    font-size: 13px;
    font-weight: 580;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.sidebar nav a span:not(.nav-icon) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    border-color: rgb(255 255 255 / 8%);
    background: rgb(255 255 255 / 7%);
    color: #fff;
}

.sidebar nav a:hover {
    transform: translateX(2px);
}

.sidebar nav a.active {
    border-color: rgb(82 206 186 / 20%);
    background: linear-gradient(100deg, rgb(37 172 151 / 24%), rgb(255 255 255 / 5%));
    box-shadow: inset 3px 0 #48c8b5, 0 5px 13px rgb(5 26 36 / 12%);
    color: #fff;
}

.sidebar nav a.active .nav-icon {
    color: #75dfce;
}

.sidebar-note {
    margin-top: auto;
    padding: 16px 10px 0;
    border-top: 1px solid rgb(255 255 255 / 12%);
    color: #91aab6;
    font-size: 12px;
}

.sidebar-user {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin-top: 0;
    padding: 11px 9px;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 13px;
    background: rgb(3 22 33 / 19%);
    color: #c6d5dc;
    font-size: 12px;
}

.sidebar-user form {
    margin: 0;
}

.user-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50%;
    background: rgb(255 255 255 / 9%);
    color: #c2eee4;
}

.user-avatar svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.user-details {
    min-width: 0;
}

.user-details strong,
.user-details small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-details strong {
    color: #fff;
    font-size: 12px;
    font-weight: 650;
}

.user-details small {
    margin-top: 2px;
    color: #9db4bf;
    font-size: 10px;
}

.role-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #54cfb1;
    vertical-align: 1px;
}

.sidebar-user button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #a7c1cb;
    font: inherit;
    cursor: pointer;
}

.sidebar-user button:hover {
    background: rgb(255 255 255 / 10%);
    color: #fff;
}

.sidebar-user button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.main {
    min-width: 0;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    z-index: 4;
    top: 0;
    display: flex;
    height: 66px;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 94%);
    color: var(--ink);
    font-weight: 650;
    backdrop-filter: blur(12px);
}

.topbar-date {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
}

.mobile-menu-toggle:hover {
    border-color: #b9d1d1;
    background: #f5faf9;
}

.mobile-menu-toggle svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.mobile-menu-toggle svg path {
    transform-origin: center;
    transition: transform .18s ease, opacity .18s ease;
}

.mobile-menu-toggle.is-open svg path:first-child {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.is-open svg path:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open svg path:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.sidebar-backdrop {
    display: none;
}

.mobile-nav-open {
    overflow: hidden;
}

.page {
    width: min(100%, 1500px);
    margin: 0 auto;
    padding: 34px 38px 64px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 0 0 26px;
}

.page-heading h1 {
    margin: 2px 0 4px;
    font-size: clamp(24px, 2.4vw, 31px);
    letter-spacing: -.8px;
    line-height: 1.2;
}

.page-heading p {
    margin: 0;
}

.dashboard-hero {
    position: relative;
    min-height: 148px;
    overflow: hidden;
    padding: 25px 28px;
    border: 1px solid #dce9e8;
    border-radius: 16px;
    background:
        radial-gradient(circle at 80% 10%, rgb(255 255 255 / 75%), transparent 29%),
        linear-gradient(115deg, #fff 12%, #f0f8f6 100%);
}

.dashboard-hero::after {
    position: absolute;
    top: -58px;
    right: 100px;
    width: 170px;
    height: 170px;
    border: 1px solid rgb(8 127 120 / 9%);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgb(8 127 120 / 3%), 0 0 0 46px rgb(8 127 120 / 2%);
    content: "";
    pointer-events: none;
}

.dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.dashboard-hero h1 {
    font-size: clamp(25px, 2.5vw, 32px);
}

.dashboard-hero .eyebrow {
    color: var(--teal);
}

.dashboard-hero > .button {
    box-shadow: 0 5px 13px rgb(22 59 84 / 15%);
}

.eyebrow {
    margin: 0 0 6px;
    color: #748998;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.45px;
}

.muted {
    color: var(--muted);
}

.button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1px solid #d7e1e6;
    border-radius: 9px;
    background: #fff;
    color: #314c5f;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.button:hover {
    transform: translateY(-1px);
    border-color: #a9bdc7;
    background: #f9fbfc;
    box-shadow: 0 4px 10px rgb(20 44 62 / 6%);
}

.button.primary {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.button.primary:hover {
    border-color: #205c69;
    background: #205c69;
}

.button.danger {
    border-color: #ebcdce;
    background: #fff;
    color: var(--red);
}

.button.danger:hover {
    border-color: #dfabab;
    background: #fff8f8;
}

.button.small {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.table-actions form {
    margin: 0;
}

.permission-fields {
    min-width: 0;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.panel.user-form-panel {
    max-width: 900px;
    padding: 24px;
}

.user-form {
    gap: 16px;
}

.user-form-section {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e3eaed;
    border-radius: 13px;
    background: linear-gradient(135deg, #fff, #fbfdfd);
}

.user-form-section .form-section-heading {
    align-items: center;
    margin-bottom: 16px;
}

.user-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.user-form-fields > label {
    min-width: 0;
}

.user-field-help {
    min-height: 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}

.permission-fields legend {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 7px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

.permission-fields > .muted {
    margin: 2px 0 16px;
    font-size: 12px;
    line-height: 1.5;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.permission-grid label {
    display: flex;
    min-height: 48px;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e4ebee;
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 550;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease;
}

.permission-grid label:has(input:checked) {
    border-color: #a6d5cb;
    background: #f1faf7;
}

.permission-grid label:focus-within {
    border-color: #60a89f;
    box-shadow: 0 0 0 3px rgb(26 156 142 / 10%);
}

.permission-grid input {
    width: 16px;
    height: 16px;
    min-height: 0;
    flex: 0 0 auto;
    margin: 1px 0 0;
    accent-color: var(--teal);
}

@media (max-width: 700px) {
    .permission-grid,
    .user-form-fields {
        grid-template-columns: 1fr;
    }

    .panel.user-form-panel {
        padding: 15px;
    }

    .user-form-section {
        padding: 16px;
    }
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 20px;
}

.metric-card,
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.metric-card {
    position: relative;
    display: flex;
    min-height: 159px;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    padding: 20px 21px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgb(20 44 62 / 9%);
}

.metric-card::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: #b9d0d4;
    content: "";
}

.metric-card.accent::after {
    background: var(--teal-bright);
}

.metric-card.warning::after {
    background: #d8a34e;
}

.metric-icon {
    position: absolute;
    top: 17px;
    right: 18px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    background: #eef5f5;
    color: #527c7b;
}

.metric-card.accent .metric-icon {
    background: #e3f4ef;
    color: var(--teal);
}

.metric-card.warning .metric-icon {
    background: #fff3df;
    color: var(--orange);
}

.metric-icon svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.metric-card > span:not(.metric-icon) {
    max-width: calc(100% - 45px);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.metric-card strong {
    font-size: clamp(24px, 2.6vw, 31px);
    letter-spacing: -.7px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.metric-card small {
    margin-top: auto;
    color: #81919c;
    font-size: 11px;
}

.dashboard-panel {
    padding: 22px 24px;
}

.dashboard-panel .section-title {
    margin-bottom: 20px;
}

.panel {
    margin-bottom: 19px;
    padding: 22px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title h2,
.panel h2 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -.2px;
}

.section-title > a {
    color: var(--teal);
    font-weight: 650;
    text-decoration: none;
}

.section-title > a:hover {
    text-decoration: underline;
}

.section-title .eyebrow {
    margin-bottom: 3px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.status-card {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--ink);
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.status-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #6d97ae;
}

.status-en_cours .status-dot {
    background: #c58a2f;
}

.status-traite .status-dot {
    background: #35895e;
}

.status-archive .status-dot {
    background: #89939a;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgb(20 44 62 / 8%);
}

.status-card span {
    font-size: 13px;
    font-weight: 600;
}

.status-card strong {
    font-size: 22px;
}

.status-nouveau {
    border-color: #e1ebf2;
    background: #f2f7fb;
}

.status-en_cours {
    border-color: #f2e7d2;
    background: #fff8ec;
}

.status-traite {
    border-color: #dcece2;
    background: #eff8f2;
}

.status-archive {
    border-color: #e5e7e9;
    background: #f5f6f7;
}

.badge,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 20px;
    padding: 5px 10px;
    background: #eef2f4;
    color: #526878;
    font-size: 11px;
    font-weight: 700;
}

.pill-nouveau {
    background: #eaf2fa;
    color: #396a95;
}

.pill-en_cours {
    background: #fff1d8;
    color: #9b6813;
}

.pill-traite {
    background: #e4f4eb;
    color: #267750;
}

.pill-archive {
    background: #ececef;
    color: #69717a;
}

.success-badge {
    background: #e4f4eb;
    color: var(--green);
}

.table-wrap {
    max-width: 100%;
    overflow: auto;
    border-radius: 9px;
    scrollbar-color: #bccbd2 transparent;
    scrollbar-width: thin;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: #f5f8f9;
    color: #657988;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .65px;
    text-transform: uppercase;
    white-space: nowrap;
}

td,
th {
    padding: 12px 13px;
    border-bottom: 1px solid #edf1f3;
    vertical-align: middle;
}

td {
    font-size: 13px;
}

tbody tr {
    transition: background-color .15s ease;
}

tbody tr:hover {
    background: #fafcfc;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.table-link {
    color: #08766f;
    font-weight: 700;
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

.amount {
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
    font-weight: 650;
}

.empty {
    padding: 30px 20px;
    color: #7c8d98;
    text-align: center;
}

.filters {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.filters label,
.report-filter label,
.action-form label,
.form-grid label,
.upload-form label {
    display: grid;
    gap: 6px;
    color: #4e6575;
    font-size: 12px;
    font-weight: 650;
}

.filters input,
.filters select,
.report-filter input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.action-form input,
.action-form select,
.upload-form input,
.auth-form input {
    min-height: 42px;
    border: 1px solid #d6e0e5;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    padding: 10px 12px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.filters input:focus,
.filters select:focus,
.report-filter input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.action-form input:focus,
.action-form select:focus,
.upload-form input:focus,
.auth-form input:focus {
    border-color: #60a89f;
    outline: 0;
    box-shadow: 0 0 0 3px rgb(26 156 142 / 12%);
}

.filters label:first-child {
    flex: 1;
}

.filters label:first-child input {
    min-width: 220px;
}

.table-panel {
    overflow: hidden;
    padding: 0;
}

.table-panel .table-wrap {
    padding: 0 2px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 17px;
}

.pagination a {
    display: grid;
    min-width: 36px;
    min-height: 36px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #526476;
    text-decoration: none;
}

.pagination a:hover {
    background: #f4f8f9;
}

.pagination a.current {
    border-color: var(--navy);
    background: var(--navy);
    color: white;
}

.form-panel {
    max-width: 1040px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid label {
    font-size: 13px;
}

.form-section {
    min-width: 0;
    padding: 22px;
    border: 1px solid #e3eaed;
    border-radius: 13px;
    background: #fff;
}

.form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.form-step {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #cce5df;
    border-radius: 10px;
    background: #eef8f5;
    color: #087f78;
    font-size: 12px;
    font-weight: 750;
}

.form-section-heading h2 {
    margin: 0;
    font-size: 16px;
    letter-spacing: -.2px;
}

.form-section-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.form-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px 18px;
}

.form-section-grid > label {
    min-width: 0;
}

.form-section-note {
    margin: 0;
    align-self: center;
}

.company-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
}

.company-search-field {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.company-search-field > label,
.observations-field {
    color: #4e6575;
    font-size: 13px;
    font-weight: 650;
}

.company-picker > .button {
    min-height: 43px;
    margin-bottom: 25px;
}

.company-search-field .hint {
    margin: 0;
}

.observations-field {
    display: grid;
    gap: 7px;
}

.form-grid .form-actions {
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    font-size: 14px;
}

.user-form .permission-grid input {
    width: 16px;
    height: 16px;
    min-height: 0;
}

.user-form .permission-grid label {
    display: flex;
    align-items: flex-start;
}

.form-grid textarea {
    min-height: 110px;
    resize: vertical;
}

.full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 9px;
}

.validation-errors {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #f0d2d1;
    border-radius: 10px;
    background: #fff5f4;
    color: #963b3c;
}

.validation-errors ul {
    margin: 7px 0 0;
    padding-left: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px 27px;
}

.detail-grid > div {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.detail-grid span {
    color: #738693;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.detail-grid strong {
    overflow-wrap: anywhere;
    font-size: 14px;
}

.detail-wide {
    grid-column: 1 / -1;
}

.delete-form {
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    text-align: right;
}

.heading-actions {
    display: flex;
    gap: 8px;
}

.action-form {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.action-details {
    flex: 1;
}

.action-form input {
    width: 100%;
}

.timeline {
    margin: 5px 0 2px 7px;
    padding-left: 21px;
    border-left: 2px solid #dbe7ec;
}

.timeline-item {
    position: relative;
    padding: 0 0 21px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 4px;
    left: -28px;
    width: 11px;
    height: 11px;
    border: 2px solid white;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 1px var(--teal);
}

.timeline-item strong {
    font-size: 14px;
}

.timeline-item time {
    margin-left: 12px;
    color: #7b8c97;
    font-size: 12px;
}

.timeline-item p {
    margin: 5px 0 0;
    color: #526878;
}

.report-filter {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.report-sheet {
    max-width: 1440px;
    margin: 18px auto 0;
    padding: 30px;
    border: 1px solid #e1e8ec;
    border-radius: 16px;
    background: white;
    box-shadow: 0 12px 32px rgb(20 44 62 / 6%);
}

.report-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "brand meta"
        "title title"
        "recipient recipient";
    align-items: center;
    gap: 18px 24px;
    padding: 5px 0 23px;
    border-bottom: 1px solid #e5ebee;
}

.report-brand {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    justify-self: start;
    color: var(--navy);
    text-align: left;
}

.report-brand-logo {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.report-brand strong,
.report-brand small {
    display: block;
}

.report-brand strong {
    font-size: 14px;
    letter-spacing: .7px;
}

.report-brand small {
    margin-top: 1px;
    color: #718593;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .9px;
}

.report-overline {
    margin: 0 0 4px;
    color: var(--teal);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.report-title {
    grid-area: title;
    text-align: center;
}

.report-heading h2 {
    margin: 0;
    color: var(--navy-deep);
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -.8px;
    line-height: 1.2;
}

.report-recipient {
    grid-area: recipient;
    margin: -9px 0 0;
    color: #647887;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.report-recipient strong {
    color: #354e5e;
}

.report-meta {
    grid-area: meta;
    display: flex;
    justify-content: end;
    gap: 10px;
}

.report-meta > div {
    display: flex;
    min-width: 155px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 12px;
    border: 1px solid #e2ecea;
    border-radius: 9px;
    background: #f6faf9;
    text-align: left;
}

.report-meta span {
    color: #6c7f8b;
    font-size: 10px;
    font-weight: 650;
}

.report-meta strong {
    color: #173b51;
    font-size: 12px;
    white-space: nowrap;
}

.report-table-wrap {
    overflow-x: auto;
    margin-top: 22px;
}

.report-date {
    color: #617282;
    font-weight: 600;
    text-align: right;
}

.report-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.report-table .col-number { width: 4%; }
.report-table .col-nature { width: 8%; }
.report-table .col-documents { width: 15%; }
.report-table .col-date { width: 10%; }
.report-table .col-amount { width: 12%; }
.report-table .col-company { width: 18%; }
.report-table .col-notes { width: 23%; }

.monthly-report-table {
    min-width: 1050px;
}

.monthly-report-table .monthly-col-date { width: 10%; }
.monthly-report-table .monthly-col-nature { width: 8%; }
.monthly-report-table .monthly-col-documents { width: 16%; }
.monthly-report-table .monthly-col-company { width: 20%; }
.monthly-report-table .monthly-col-amount { width: 12%; }
.monthly-report-table .monthly-col-notes { width: 24%; }

.report-table thead th {
    padding: 11px 9px;
    border-top: 1px solid #21495c;
    border-bottom: 1px solid #21495c;
    background: #163b54;
    color: #fff;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .35px;
    line-height: 1.35;
    text-align: left;
    vertical-align: middle;
}

.report-table thead th:first-child {
    border-radius: 8px 0 0;
}

.report-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.report-table td,
.report-table th {
    overflow-wrap: anywhere;
    vertical-align: top;
}

.report-table tbody td {
    padding: 11px 9px;
    border-bottom: 1px solid #e8edef;
    color: #344e5e;
    font-size: 11px;
    line-height: 1.45;
}

.report-table tbody tr:nth-child(even) {
    background: #f7f9fa;
}

.report-table tbody tr:hover {
    background: #edf6f4;
}

.report-table .report-row-number {
    color: #82919a;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.report-nature {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid #d7e8e4;
    border-radius: 20px;
    background: #eef7f5;
    color: #176c66;
    font-size: 9px;
    font-weight: 750;
}

.report-document {
    color: #183c52 !important;
    font-weight: 650;
}

.report-company {
    color: #233f50 !important;
    font-weight: 650;
}

.report-notes {
    color: #687c89 !important;
}

.report-table .amount {
    color: #153b52;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.report-table tfoot th {
    padding: 12px 9px;
    border-bottom: 2px solid #b8d7d1;
    background: #edf6f4;
    color: #174d50;
    font-size: 11px;
    font-weight: 800;
    text-align: left;
}

.report-table tfoot th:first-child {
    border-radius: 0 0 0 8px;
}

.report-table tfoot th:last-child {
    border-radius: 0 0 8px;
}

.report-table tfoot th span {
    margin-left: 8px;
    color: #6b8286;
    font-size: 9px;
    font-weight: 600;
}

.report-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid #e5ebee;
    color: #82919a;
    font-size: 10px;
}

.report-table tfoot th,
.subtotal th,
.subtotal td {
    background: #edf6f4;
}

.subtotal th,
.subtotal td {
    font-size: 12px;
}

.import-panel {
    max-width: 900px;
}

.import-panel > p {
    color: #5e7081;
}

.upload-form {
    display: flex;
    align-items: end;
    gap: 15px;
    margin: 22px 0;
}

.upload-form label {
    flex: 1;
}

.upload-form input {
    width: 100%;
}

.hint {
    color: #7d8c97;
    font-size: 12px;
}

.success-box {
    padding: 16px;
    border-radius: 9px;
    background: #eef8f3;
    color: #267750;
}

.flash {
    margin-bottom: 18px;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .25s ease, transform .25s ease;
}

.flash.is-dismissing {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.flash.success {
    border-color: #d9ede1;
    background: #edf8f1;
    color: #267750;
}

.flash.error {
    border-color: #efd1cf;
    background: #fff3f1;
    color: #963b3c;
}

.auth-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at 12% 12%, rgb(34 151 139 / 12%), transparent 35%),
        radial-gradient(ellipse at 88% 90%, rgb(22 59 84 / 10%), transparent 35%),
        #f1f5f6;
}

.auth-login-page {
    padding: clamp(18px, 4vw, 48px);
}

.auth-layout {
    display: grid;
    width: min(100%, 1020px);
    min-height: 610px;
    grid-template-columns: 1fr .92fr;
    overflow: hidden;
    border: 1px solid rgb(226 233 237 / 85%);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 26px 75px rgb(21 46 63 / 12%);
}

.auth-aside {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 34px clamp(30px, 5vw, 58px);
    background:
        radial-gradient(ellipse at 90% 85%, rgb(41 182 159 / 19%), transparent 38%),
        linear-gradient(145deg, #12364e, #17485a 65%, #126d68);
    color: #fff;
}

.auth-aside::before {
    position: absolute;
    right: -135px;
    bottom: -190px;
    width: 440px;
    height: 440px;
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: 50%;
    box-shadow: 0 0 0 35px rgb(255 255 255 / 3%), 0 0 0 75px rgb(255 255 255 / 2%);
    content: "";
    pointer-events: none;
}

.auth-aside .auth-brand {
    position: relative;
    z-index: 1;
    padding: 0;
    color: #fff;
}

.auth-aside .auth-brand small {
    color: #b8cbd1;
}

.auth-aside-content {
    position: relative;
    z-index: 1;
    margin: auto 0;
    padding: 46px 0 20px;
}

.auth-aside-content .eyebrow {
    color: #8fdbcb;
}

.auth-aside-content h2 {
    max-width: 370px;
    margin: 0 0 13px;
    font-size: clamp(30px, 3.5vw, 42px);
    letter-spacing: -1.2px;
    line-height: 1.13;
}

.auth-aside-content > p:not(.eyebrow) {
    max-width: 370px;
    margin: 0;
    color: #c1d2d9;
    font-size: 14px;
    line-height: 1.7;
}

.auth-illustration {
    position: relative;
    height: 185px;
    margin-top: 25px;
}

.illustration-orbit {
    position: absolute;
    top: 15px;
    left: 50%;
    width: 185px;
    height: 150px;
    border: 1px solid rgb(178 231 219 / 18%);
    border-radius: 50%;
    transform: translateX(-50%) rotate(-16deg);
}

.illustration-orbit-two {
    width: 235px;
    height: 133px;
    transform: translateX(-50%) rotate(22deg);
}

.illustration-card {
    position: absolute;
    top: 26px;
    left: 50%;
    display: flex;
    width: 228px;
    height: 122px;
    flex-direction: column;
    padding: 16px;
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 13px;
    background: rgb(255 255 255 / 11%);
    box-shadow: 0 13px 35px rgb(3 26 37 / 17%);
    transform: translateX(-50%) rotate(-7deg);
    backdrop-filter: blur(8px);
}

.illustration-card-back {
    top: 15px;
    margin-left: 24px;
    background: rgb(141 219 203 / 16%);
    transform: translateX(-50%) rotate(9deg);
}

.illustration-card-back > span {
    width: 42px;
    height: 7px;
    margin-bottom: 18px;
    border-radius: 5px;
    background: rgb(255 255 255 / 65%);
}

.illustration-card-back > i {
    width: 75%;
    height: 5px;
    margin-top: 7px;
    border-radius: 5px;
    background: rgb(255 255 255 / 29%);
}

.illustration-heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.illustration-heading i:first-child {
    width: 64px;
    height: 7px;
    border-radius: 5px;
    background: rgb(255 255 255 / 75%);
}

.illustration-heading i:last-child {
    width: 23px;
    height: 7px;
    border-radius: 5px;
    background: #72d5bb;
}

.illustration-chart {
    display: flex;
    height: 53px;
    align-items: end;
    gap: 9px;
    padding: 0 6px;
}

.illustration-chart i {
    flex: 1;
    border-radius: 4px 4px 1px 1px;
    background: linear-gradient(180deg, #72d5bb, rgb(114 213 187 / 30%));
}

.illustration-chart i:nth-child(1) { height: 38%; }
.illustration-chart i:nth-child(2) { height: 57%; }
.illustration-chart i:nth-child(3) { height: 45%; }
.illustration-chart i:nth-child(4) { height: 76%; }
.illustration-chart i:nth-child(5) { height: 60%; }
.illustration-chart i:nth-child(6) { height: 90%; }
.illustration-chart i:nth-child(7) { height: 73%; }

.auth-aside-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #c3d6dc;
    font-size: 12px;
}

.auth-aside-note span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #79d6b7;
    box-shadow: 0 0 0 4px rgb(121 214 183 / 13%);
}

.auth-card {
    width: min(100%, 470px);
    padding: 34px;
    border: 1px solid rgb(226 233 237 / 90%);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 60px rgb(21 46 63 / 10%);
}

.auth-login-card {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 64px);
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(ellipse at 100% 0%, rgb(26 156 142 / 5%), transparent 43%),
        #fff;
    box-shadow: none;
}

.auth-brand {
    padding: 0 0 27px;
    color: var(--ink);
}

.auth-brand small {
    color: var(--muted);
}

.auth-card h1 {
    margin: 3px 0 5px;
    font-size: 30px;
    letter-spacing: -.7px;
}

.auth-login-card > .muted {
    margin: 0;
}

.auth-login-card .auth-form {
    gap: 17px;
    margin-top: 30px;
    padding: 22px;
    border: 1px solid #e1eeeb;
    border-radius: 15px;
    background: #f4f9f8;
}

.auth-login-card .auth-form label {
    gap: 8px;
    color: #405968;
    font-size: 13px;
}

.auth-login-card .auth-form input {
    min-height: 49px;
    border-radius: 10px;
    background: #fff;
}

.auth-login-card .auth-form input:focus {
    border-color: #24988b;
    background: #fff;
    box-shadow: 0 0 0 4px rgb(26 156 142 / 13%);
}

.auth-form {
    display: grid;
    gap: 15px;
    margin-top: 28px;
}

.auth-form label {
    display: grid;
    gap: 6px;
    color: #4e6575;
    font-size: 12px;
    font-weight: 650;
}

.auth-form input {
    width: 100%;
    min-height: 45px;
    font-size: 14px;
}

.auth-form .button {
    width: 100%;
    min-height: 47px;
    margin-top: 7px;
    font-size: 14px;
}

.auth-logout-form {
    margin-top: 12px;
}

.auth-logout-form .button {
    width: 100%;
}

.auth-login-card .auth-form .button.primary {
    min-height: 50px;
    border-color: transparent;
    background: #087f78;
    box-shadow: 0 8px 18px rgb(8 127 120 / 18%);
}

.auth-login-card .auth-form .button.primary:hover {
    border-color: transparent;
    background: #066d67;
    box-shadow: 0 10px 22px rgb(8 127 120 / 24%);
}

.auth-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 27px 0 0;
    color: #81919c;
    font-size: 11px;
}

.auth-security svg {
    width: 15px;
    height: 15px;
    stroke: #718b91;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.print-page {
    background: #fff;
}

.print-content {
    padding: 18px;
}

.print-actions {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: #f3f6f8;
}

.print-content .report-sheet {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.print-content .report-heading {
    gap: 12px 20px;
    padding-bottom: 12px;
}

.print-content .report-heading h2 {
    font-size: 23px;
}

.print-content .report-recipient {
    margin-top: -7px;
}

.print-content .report-table-wrap {
    overflow: visible;
    margin-top: 15px;
}

.print-content .report-table {
    min-width: 0;
}

.print-content .report-table td,
.print-content .report-table th {
    padding: 6px 5px;
    font-size: 9px;
}

@media (max-width: 1050px) {
    :root {
        --sidebar-width: 224px;
    }

    .sidebar {
        width: var(--sidebar-width);
    }

    .topbar {
        padding: 0 26px;
    }

    .page {
        padding: 29px 26px 54px;
    }

    .status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric-card.accent {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    :root {
        --sidebar-width: 0px;
    }

    .main {
        margin-left: 0;
    }

    .topbar {
        position: sticky;
        z-index: 4;
        top: 0;
        height: 48px;
        justify-content: flex-start;
        gap: 11px;
        padding: 0 13px;
        font-size: 13px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .topbar-title {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-date {
        margin-left: auto;
        font-size: 12px;
    }

    .has-mobile-nav .sidebar {
        position: fixed;
        z-index: 7;
        inset: 0 auto 0 0;
        width: min(300px, calc(100vw - 52px));
        height: 100vh;
        height: 100dvh;
        padding: 20px 14px 14px;
        transform: translateX(-105%);
        visibility: hidden;
        box-shadow: 8px 0 28px rgb(10 35 50 / 18%);
        transition: transform .22s ease, visibility .22s ease;
        will-change: transform;
    }

    .has-mobile-nav .sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .has-mobile-nav .sidebar-nav {
        display: flex;
        min-height: 0;
        flex: 1;
        flex-direction: column;
        gap: 16px;
        overflow-y: auto;
        padding: 0 1px 14px;
    }

    .has-mobile-nav .sidebar-group {
        display: grid;
        gap: 4px;
    }

    .has-mobile-nav .sidebar-label {
        display: block;
    }

    .has-mobile-nav .sidebar nav a {
        min-height: 43px;
        gap: 11px;
        padding: 9px 11px;
        font-size: 13px;
        white-space: nowrap;
    }

    .has-mobile-nav .sidebar nav a span {
        overflow-wrap: normal;
        line-height: inherit;
    }

    .has-mobile-nav .sidebar-user {
        grid-template-columns: 36px minmax(0, 1fr) 34px;
        gap: 10px;
        padding: 11px 9px;
    }

    .has-mobile-nav .user-avatar {
        width: 36px;
        height: 36px;
    }

    .has-mobile-nav .sidebar-backdrop:not([hidden]) {
        position: fixed;
        z-index: 6;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgb(8 25 37 / 48%);
        cursor: default;
        animation: sidebar-backdrop-in .18s ease both;
    }

    @keyframes sidebar-backdrop-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .page {
        padding: 25px 18px 42px;
    }

    .metric-grid {
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .metric-card.accent {
        grid-column: auto;
    }

    .metric-card {
        min-height: 126px;
        padding: 18px;
    }

    .panel {
        padding: 18px;
    }

    .table-panel {
        padding: 0;
    }

    .filters {
        align-items: stretch;
    }

    .filters label,
    .filters label:first-child {
        width: 100%;
        flex: auto;
    }

    .filters input,
    .filters select,
    .filters label:first-child input {
        width: 100%;
        min-width: 0;
    }

    .report-sheet {
        padding: 18px;
    }

    .auth-login-page {
        padding: 24px;
    }

    .auth-layout {
        width: min(100%, 540px);
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .auth-aside {
        padding: 24px 30px 20px;
    }

    .auth-aside-content {
        margin: 24px 0 0;
        padding: 0;
    }

    .auth-aside-content h2 {
        max-width: 440px;
        font-size: 30px;
    }

    .auth-aside-content > p:not(.eyebrow) {
        max-width: 460px;
    }

    .auth-illustration,
    .auth-aside-note {
        display: none;
    }

    .auth-login-card {
        padding: 32px 30px;
    }
}

@media (max-width: 540px) {
    .page {
        padding: 21px 13px 34px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 20px;
    }

    .dashboard-hero {
        min-height: 0;
        padding: 21px 18px;
    }

    .dashboard-hero::after {
        right: -48px;
    }

    .page-heading h1 {
        font-size: 24px;
    }

    .page-heading > .button,
    .page-heading .heading-actions {
        width: 100%;
    }

    .heading-actions .button {
        flex: 1;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 114px;
    }

    .dashboard-panel {
        padding: 16px 14px;
    }

    .status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .status-card {
        min-height: 58px;
        padding: 11px;
    }

    .status-card span {
        font-size: 12px;
    }

    .status-card strong {
        font-size: 19px;
    }

    .panel {
        padding: 15px;
        border-radius: 12px;
    }

    .table-panel {
        padding: 0;
    }

    td,
    th {
        padding: 10px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-grid .full {
        grid-column: auto;
    }

    .form-section {
        padding: 16px;
    }

    .form-section-heading {
        gap: 10px;
        margin-bottom: 16px;
    }

    .form-section-grid,
    .company-picker {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .form-section-note {
        grid-column: auto;
    }

    .company-picker > .button {
        width: 100%;
        margin-bottom: 0;
    }

    .form-grid .form-actions {
        flex-direction: column-reverse;
    }

    .form-grid .form-actions .button {
        width: 100%;
    }

    .form-actions {
        flex-wrap: wrap;
    }

    .form-actions .button {
        flex: 1 1 auto;
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .detail-wide {
        grid-column: 1 / -1;
    }

    .action-form {
        align-items: stretch;
        flex-direction: column;
    }

    .action-form label,
    .action-form .button {
        width: 100%;
    }

    .timeline-item time {
        display: block;
        margin: 3px 0 0;
    }

    .report-filter {
        align-items: stretch;
    }

    .report-filter label,
    .report-filter .button {
        width: 100%;
    }

    .report-sheet {
        padding: 14px;
    }

    .report-sheet h2 {
        font-size: 14px;
    }

    .upload-form {
        align-items: stretch;
        flex-direction: column;
    }

    .upload-form .button {
        width: 100%;
    }

    .section-title {
        align-items: flex-start;
    }

    .auth-page {
        padding: 14px;
    }

    .auth-login-page {
        padding: 14px;
    }

    .auth-layout {
        border-radius: 17px;
    }

    .auth-aside {
        padding: 20px 21px 18px;
    }

    .auth-aside .brand-logo {
        width: 38px;
        height: 38px;
    }

    .auth-aside-content {
        margin-top: 20px;
    }

    .auth-aside-content h2 {
        margin-bottom: 7px;
        font-size: 25px;
        letter-spacing: -.6px;
    }

    .auth-aside-content > p:not(.eyebrow) {
        font-size: 13px;
        line-height: 1.55;
    }

    .auth-login-card {
        padding: 27px 21px 24px;
    }

    .auth-login-card h1 {
        font-size: 27px;
    }

    .auth-login-card .auth-form {
        gap: 13px;
        margin-top: 23px;
        padding: 16px;
    }

    .auth-security {
        margin-top: 21px;
    }

    .auth-card {
        padding: 25px 21px;
        border-radius: 15px;
    }

    .print-content {
        padding: 6px;
    }

    .print-content .report-heading h2 {
        font-size: 23px;
    }
}

@media (max-width: 700px) {
    .report-heading {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "title"
            "meta"
            "recipient";
        justify-items: center;
        gap: 14px;
    }

    .report-brand,
    .report-meta {
        justify-self: center;
    }

    .report-meta {
        flex-wrap: wrap;
        justify-content: center;
    }

    .report-recipient {
        margin-top: -4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .print-actions {
        display: none;
    }

    .print-content {
        padding: 0;
    }

    .report-sheet {
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .report-heading {
        break-inside: avoid;
        padding-bottom: 12px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-brand-logo,
    .report-meta > div,
    .report-nature,
    .report-table thead th,
    .report-table tbody tr:nth-child(even),
    .report-table tfoot th {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-heading h2 {
        font-size: 22px;
    }

    .report-recipient {
        margin: 6px 0 10px;
        font-size: 10px;
    }

    .report-meta > div {
        min-width: 140px;
        padding: 6px 9px;
    }

    .report-table-wrap {
        overflow: visible;
        margin-top: 12px;
    }

    .report-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        border-collapse: collapse;
    }

    .monthly-report-table {
        min-width: 0;
    }

    .report-table thead {
        display: table-header-group;
    }

    .report-table tfoot {
        display: table-row-group;
    }

    .report-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-table td,
    .report-table th {
        overflow-wrap: anywhere;
        padding: 5px 4px !important;
        font-size: 8px !important;
        line-height: 1.3;
    }

    .report-table thead th {
        font-size: 7.5px !important;
    }

    .report-table tbody td {
        border-bottom: 1px solid #dce4e8;
    }

    .report-table .amount {
        white-space: normal;
    }

    .report-nature {
        padding: 2px 4px;
        font-size: 7px;
    }

    .report-footer {
        break-inside: avoid;
        margin-top: 12px;
        font-size: 8px;
    }

    body {
        background: #fff;
    }

    @page {
        size: landscape;
        margin: 8mm;
    }
}
