:root {
    --ikeo-navy: #10233f;
    --ikeo-deep: #0c1b31;
    --ikeo-teal: #13a88a;
    --ikeo-mint: #e7f8f3;
    --ikeo-blue: #3e7dd6;
    --ikeo-orange: #e49238;
    --ikeo-violet: #7864c8;
    --ikeo-ink: #182538;
    --ikeo-muted: #758196;
    --ikeo-line: #e8edf3;
    --ikeo-bg: #f4f7fb;
    --ikeo-shadow: 0 12px 34px rgba(16, 35, 63, .055)
}

body {
    font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ikeo-ink);
    background: var(--ikeo-bg)
}

.bg-sidebar {
    background: linear-gradient(180deg, #10233f 0%, #0c1b31 100%) !important
}

.app-sidebar {
    width: 260px;
    /* El menú crece con cada módulo: el sidebar es una columna y solo el menú
       se desplaza, de modo que la barra inferior deja de superponerse. */
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Red de seguridad: si el alto del sidebar no fuera fijo, se desplaza entero
       en lugar de recortar la barra inferior. */
    overflow-y: auto
}

.app-sidebar > .sidebar-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .22) transparent
}

.app-sidebar > .sidebar-wrapper::-webkit-scrollbar {
    width: 6px
}

.app-sidebar > .sidebar-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .2);
    border-radius: 3px
}

.sidebar-brand {
    height: 68px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff !important;
    text-decoration: none;
    padding: 0 21px;
    width: 100%
}

.brand-mark {
    width: 43px;
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #fff;
    font-weight: 800;
    font-size: 25px;
    background: linear-gradient(135deg, #19c7a1, #078c89);
    box-shadow: 0 7px 17px rgba(19, 168, 138, .24)
}

.brand-mark-small {
    width: 35px;
    height: 35px;
    border-radius: 12px;
    font-size: 21px
}

.brand-text {
    font-weight: 650;
    letter-spacing: .025em;
    font-size: 14px
}

.brand-text strong {
    font-weight: 850
}

.sidebar-menu .nav-header {
    font-size: 10px;
    letter-spacing: .15em;
    color: #8798b2;
    padding: 20px 19px 7px
}

.sidebar-menu .nav-link {
    margin: 3px 11px;
    border-radius: 10px;
    color: #c2cede;
    padding: 11px 13px;
    font-size: 13px
}

.sidebar-menu .nav-link:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff
}

.sidebar-menu .nav-link.active {
    background: rgba(19, 168, 138, .18);
    color: #fff;
    box-shadow: inset 3px 0 0 #20d2ae
}

.sidebar-menu .nav-icon {
    font-size: 17px;
    margin-right: 9px
}

.sidebar-menu .nav-link.disabled {
    opacity: .45
}

.sidebar-bottom {
    position: static;
    flex: 0 0 auto;
    margin-top: auto;
    padding: 14px 20px;
    color: #a8b5c7;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 11px;
    background: transparent
}

.sidebar-status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #27c99d;
    margin-right: 6px
}

.sidebar-version {
    float: right;
    color: #71829c
}

.navbar-context {
    font-size: 13px;
    font-weight: 650;
    color: #45556c
}

.user-greeting {
    font-size: 12px;
    color: var(--ikeo-muted)
}

.app-main {
    background: var(--ikeo-bg)
}

.app-content-header {
    padding: 23px 0 18px
}

.page-title {
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -.03em;
    color: var(--ikeo-navy);
    margin: 0
}

.page-subtitle {
    font-size: 12px;
    color: var(--ikeo-muted);
    margin-top: 4px
}

.breadcrumb {
    font-size: 11px
}

.breadcrumb a {
    color: #718098;
    text-decoration: none
}

.breadcrumb-item.active {
    color: #3a4d67
}

.app-footer {
    border-top: 1px solid var(--ikeo-line);
    background: transparent;
    color: #718096;
    font-size: 11px;
    padding: 14px 22px;
    display: flex;
    justify-content: space-between
}

.app-footer strong {
    color: #52627a;
    font-weight: 650
}

.welcome-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px 27px;
    border-radius: 17px;
    background: linear-gradient(112deg, #10233f 0%, #18375b 62%, #157968 135%);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(16, 35, 63, .12)
}

.welcome-panel:after {
    content: "";
    position: absolute;
    right: 17%;
    top: -140px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 35px rgba(255, 255, 255, .025), 0 0 0 75px rgba(255, 255, 255, .018);
    pointer-events: none
}

.welcome-panel>div {
    position: relative;
    z-index: 1
}

.welcome-kicker,
.section-eyebrow {
    font-size: 9px;
    letter-spacing: .16em;
    font-weight: 800;
    color: #21cba5
}

.welcome-panel h2 {
    font-size: 23px;
    font-weight: 720;
    margin: 7px 0 4px;
    letter-spacing: -.035em
}

.welcome-panel h2 span {
    font-size: 19px
}

.welcome-panel p {
    font-size: 12px;
    color: #bdcbda;
    margin: 0;
    max-width: 580px
}

.welcome-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    white-space: nowrap
}

.welcome-date {
    font-size: 11px;
    color: #d6e0eb
}

.currency-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    padding: 7px 11px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 650
}

.metric-card {
    background: #fff;
    border: 1px solid #edf1f6;
    border-radius: 14px;
    padding: 17px 18px 16px;
    min-height: 130px;
    box-shadow: 0 6px 20px rgba(16, 35, 63, .035);
    position: relative;
    overflow: hidden
}

.metric-card:after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -42px;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: var(--metric-pale);
    opacity: .8
}

.metric-navy {
    --metric: #25466d;
    --metric-pale: #edf3f9
}

.metric-green {
    --metric: #118974;
    --metric-pale: #e4f6f1
}

.metric-blue {
    --metric: #3979c8;
    --metric-pale: #eaf2fc
}

.metric-orange {
    --metric: #d17b24;
    --metric-pale: #fff4e8
}

.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #738096;
    font-size: 11px;
    font-weight: 600
}

.metric-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--metric-pale);
    color: var(--metric);
    font-size: 16px
}

.metric-value {
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1;
    margin-top: 14px;
    color: #172a43;
    position: relative;
    z-index: 1
}

.metric-hint {
    font-size: 10px;
    color: #8b97a8;
    margin-top: 8px;
    position: relative;
    z-index: 1
}

.surface-card {
    background: #fff;
    border: 1px solid #e9eef4;
    border-radius: 15px;
    padding: 20px 21px;
    box-shadow: var(--ikeo-shadow)
}

.surface-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 19px
}

.surface-heading h3 {
    font-size: 15px;
    font-weight: 720;
    color: #21334d;
    margin: 4px 0 0;
    letter-spacing: -.02em
}

.heading-icon {
    width: 35px;
    height: 35px;
    border-radius: 11px;
    background: #edf4fb;
    color: #4978b4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px
}

.heading-icon-violet {
    background: #f1effb;
    color: #7963c5
}

.heading-icon-green {
    background: #e5f7f2;
    color: #138d76
}

.empty-chart {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 8px 26px;
    min-height: 135px
}

.empty-chart-icon,
.empty-state-icon {
    width: 47px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #eff5fb;
    color: #6290c7;
    font-size: 20px;
    flex-shrink: 0
}

.empty-chart strong {
    font-size: 12px;
    color: #334760
}

.empty-chart p {
    font-size: 11px;
    color: #8793a4;
    margin: 5px 0 0
}

.revenue-list {
    min-height: 135px;
    padding: 1px 3px 10px
}

.surface-card .dashboard-chart-toolbar { display:flex !important; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:5px 0 12px; }
.surface-card .chart-metric-tabs { display:inline-flex; gap:3px; padding:4px; border:1px solid #e8eef4; border-radius:11px; background:#f5f8fb; }
.surface-card .chart-metric-tab { appearance:none; border:0 !important; border-radius:8px !important; padding:8px 12px !important; background:transparent !important; color:#61738a !important; font:inherit; font-size:11px; font-weight:600; line-height:1.2; cursor:pointer; transition:background .18s ease,color .18s ease,box-shadow .18s ease; }
.surface-card .chart-metric-tab:hover { color:#087e6b !important; background:#eaf6f3 !important; }
.surface-card .chart-metric-tab.active { color:#087e6b !important; background:#fff !important; font-weight:700; box-shadow:0 1px 4px #19365418; }
.surface-card .chart-filters { display:flex !important; flex-direction:row !important; align-items:center; justify-content:flex-end; gap:7px; flex-wrap:wrap; margin:0; }
.surface-card .chart-filters .form-select { width:auto; min-width:128px; height:36px; border-color:#e1e9f1; border-radius:9px; background-color:#fff; color:#344b66; font-size:11px; box-shadow:none; }
.surface-card .chart-filters .form-select:focus,.surface-card .chart-custom-dates .form-control:focus { border-color:#54c6aa; box-shadow:0 0 0 3px #15a98a18; }
.surface-card .chart-filters .btn { height:36px; padding:0 14px; border:0; border-radius:9px; background:#10a88a; color:#fff; font-size:11px; font-weight:700; box-shadow:0 3px 8px #10a88a25; }
.surface-card .chart-filters .btn:hover { background:#0b9277; color:#fff; }
.surface-card .chart-custom-dates { display:flex; gap:6px; }
.surface-card .chart-custom-dates .form-control { width:135px; height:36px; border-color:#e1e9f1; border-radius:9px; font-size:11px; box-shadow:none; }
.surface-card .chart-summary { display:flex; align-items:end; justify-content:space-between; gap:12px; margin:4px 0 2px; }
.surface-card .chart-summary div { display:flex; flex-direction:column; gap:2px; }
.surface-card .chart-summary strong { color:#1a3657; font-size:19px; }
.surface-card .chart-summary span { color:#8290a2; font-size:10px; }
.surface-card .chart-summary .chart-range { text-align:right; }
.surface-card .dashboard-bar-chart { width:100%; height:190px; }
.surface-card .bar-chart-svg { width:100%; height:100%; overflow:visible; }
.surface-card .bar-chart-grid { stroke:#edf1f5; stroke-width:1; }
.surface-card .bar-chart-axis { fill:#8492a4; font-size:10px; }
.surface-card .bar-chart-bar { fill:#2dbf92 !important; stroke:none !important; transition:fill .15s ease; }
.surface-card .bar-chart-bar:hover { fill:#159d79 !important; }
.surface-card .bar-chart-empty { fill:#8793a4; font-size:14px; }
.activity-table .table-sort-button { display:inline-flex !important; align-items:center; gap:5px; appearance:none; border:0 !important; border-radius:5px; padding:4px 3px !important; background:transparent !important; color:#6f8198 !important; font:inherit; font-size:9px; font-weight:700; line-height:1.2; letter-spacing:.045em; cursor:pointer; box-shadow:none !important; }
.activity-table .table-sort-button i { color:#9aa6b5; font-size:10px; }
.activity-table .table-sort-button:hover,.activity-table .table-sort-button:focus-visible { color:#138e78 !important; background:#eff8f5 !important; outline:none; }

@media (max-width: 767.98px) {
  .surface-card .chart-filters { justify-content:flex-start; width:100%; }
  .surface-card .chart-filters .form-select { flex:1 1 100px; }
  .surface-card .chart-custom-dates { width:100%; }
  .surface-card .chart-custom-dates .form-control { flex:1; min-width:0; }
  .surface-card .dashboard-bar-chart { height:170px; }
}

.revenue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 2px;
    border-bottom: 1px solid #f0f3f7;
    font-size: 12px
}

.revenue-row strong {
    font-size: 13px;
    color: #263c57
}

.revenue-currency {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #596a80
}

.currency-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #19ad8e
}

.revenue-row:nth-child(2) .currency-dot {
    background: #5788d6
}

.revenue-row:nth-child(3) .currency-dot {
    background: #e3a044
}

.rate-note {
    font-size: 9px;
    color: #909cac;
    margin: 12px 0 0
}

.revenue-footer {
    border-top: 1px solid #edf1f5;
    padding-top: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #7d8a9b;
    font-size: 10px
}

.revenue-footer a {
    color: #138e78;
    font-weight: 650;
    text-decoration: none
}

.revenue-footer a:hover {
    text-decoration: underline
}

.quote-total {
    display: flex;
    align-items: baseline;
    gap: 9px;
    padding: 4px 0 14px;
    border-bottom: 1px solid #edf1f5
}

.quote-total strong {
    font-size: 27px;
    color: #202f48;
    letter-spacing: -.04em
}

.quote-total span {
    font-size: 10px;
    color: #8491a3
}

.quote-status-list {
    padding-top: 8px
}

.quote-status {
    display: flex;
    justify-content: space-between;
    padding: 7px 1px;
    font-size: 11px
}

.quote-status-label {
    color: #68788e
}

.quote-status strong {
    font-size: 11px;
    color: #34465f
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 8px;
    background: #a6b1c0
}

.status-approved {
    background: #1aaa88
}

.status-rejected {
    background: #dc6a68
}

.status-sent {
    background: #5b8cd1
}

.status-viewed {
    background: #8a76ce
}

.status-expired {
    background: #e59a43
}

.status-converted {
    background: #71889f
}

.client-total {
    font-size: 11px;
    color: #6f7e92;
    background: #f5f7fa;
    padding: 7px 11px;
    border-radius: 20px
}

.empty-state {
    text-align: center;
    padding: 29px 14px 33px
}

.empty-state-icon {
    margin: 0 auto 13px;
    width: 51px;
    height: 51px;
    background: #eef5fb;
    font-size: 21px
}

.empty-state h4 {
    font-size: 13px;
    font-weight: 700;
    color: #354963;
    margin-bottom: 5px
}

.empty-state p {
    font-size: 11px;
    color: #8592a3;
    margin: 0 auto 13px;
    max-width: 370px
}

.dashboard-footnote {
    font-size: 10px;
    color: #8a96a7;
    padding: 2px 3px 14px
}

.activity-table {
    font-size: 11px
}

.activity-table thead th {
    font-size: 8px;
    letter-spacing: .1em;
    color: #8e9aac;
    font-weight: 750;
    border-bottom-color: #edf1f5;
    padding: 10px 9px;
    white-space: nowrap
}

.activity-table tbody td {
    padding: 12px 9px;
    border-bottom-color: #f0f3f6;
    color: #617087;
    white-space: nowrap
}

.activity-table tbody tr:last-child td {
    border-bottom: 0
}

.activity-table td strong {
    font-size: 11px;
    color: #30435e
}

.client-avatar {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: #e7f7f2;
    color: #118c75;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 750;
    margin-right: 8px
}

.doc-number {
    font-weight: 700;
    color: #30435e !important
}

.state-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 650
}

.state-draft { background:#f2f4f7; color:#6f7f92; }
.state-sent,.state-viewed { background:#eaf2ff; color:#3e6fa9; }
.state-approved { background:#e4f6f0; color:#078e76; }
.state-rejected,.state-expired,.state-cancelled { background:#fff0ed; color:#bb5a50; }
.state-converted { background:#f1edff; color:#7055a8; }

.state-paid {
    background: #e6f7f1;
    color: #16836d
}

.state-pending {
    background: #edf4fc;
    color: #4879b9
}

.state-overdue {
    background: #fff0ed;
    color: #c45948
}

.state-partial {
    background: #fff6e9;
    color: #bd7b24
}

.form-label {
    font-size: 11px;
    font-weight: 650;
    color: #3c4e65;
    margin-bottom: 7px
}

.form-control,
.form-select {
    border-color: #dfe6ee;
    border-radius: 9px;
    font-size: 12px;
    color: #253850;
    min-height: 43px
}

.form-control:focus,
.form-select:focus {
    border-color: #36b99c;
    box-shadow: 0 0 0 .2rem rgba(19, 168, 138, .12)
}

.form-control-lg,
.form-select-lg {
    min-height: 49px;
    font-size: 15px
}

.input-group-text {
    border-color: #dfe6ee;
    background: #f6f8fa;
    color: #68788e;
    border-radius: 9px 0 0 9px;
    font-size: 13px
}

.input-group-lg>.form-control {
    border-radius: 0 9px 9px 0
}

.form-hint,
.form-text {
    font-size: 10px;
    color: #8995a5;
    margin-top: 6px
}

.btn-ikeo {
    background: var(--ikeo-teal);
    border-color: var(--ikeo-teal);
    color: #fff;
    border-radius: 9px;
    font-weight: 650;
    font-size: 12px;
    padding: 10px 16px;
    box-shadow: 0 5px 12px rgba(19, 168, 138, .15)
}

.btn-ikeo:hover,
.btn-ikeo:focus {
    background: #0c927a;
    border-color: #0c927a;
    color: #fff
}

.btn-outline-ikeo {
    border: 1px solid #c4e9df;
    color: #148c75;
    background: #f8fdfa;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 650;
    padding: 10px 13px
}

.btn-outline-ikeo:hover {
    background: #e9f8f3;
    border-color: #8bd3bf;
    color: #087963
}

.payment-form-card {
    padding: 24px
}

.section-description {
    font-size: 11px;
    color: #8290a3;
    margin: 6px 0 0
}

.rate-panel {
    border: 1px solid #dcefe9;
    background: linear-gradient(135deg, #f5fcf9, #f7fbff);
    padding: 17px;
    border-radius: 12px;
    margin: 1px 0 2px
}

.rate-panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 13px
}

.rate-pair {
    font-size: 12px;
    font-weight: 700;
    color: #29445f;
    margin-top: 5px
}

.rate-badge {
    border: 1px solid #d3e6e1;
    color: #638176;
    border-radius: 20px;
    font-size: 9px;
    padding: 5px 8px;
    white-space: nowrap
}

.rate-source-label {
    display: block;
    font-size: 9px;
    color: #74849a;
    padding: 10px 0
}

.rate-help {
    font-size: 9px;
    color: #77899a;
    margin-top: 11px
}

.conversion-result {
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #dfebe8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #74849a
}

.conversion-result strong {
    font-size: 14px;
    color: #118a73
}

.payment-side-note {
    padding: 22px;
    border-radius: 15px;
    background: #eaf3f9;
    border: 1px solid #e0ebf3;
    position: sticky;
    top: 85px
}

.side-note-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fff;
    color: #4284bd;
    margin-bottom: 17px
}

.payment-side-note .section-eyebrow {
    color: #4b87b7
}

.payment-side-note h4 {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 720;
    color: #263f5b;
    margin: 7px 0 8px;
    letter-spacing: -.02em
}

.payment-side-note p,
.payment-side-note li {
    font-size: 11px;
    line-height: 1.65;
    color: #697f96
}

.payment-side-note ul {
    padding-left: 17px;
    margin: 14px 0
}

.side-note-divider {
    height: 1px;
    background: #d4e2ec;
    margin: 17px 0 12px
}

.side-note-foot {
    font-size: 9px;
    color: #6e879b
}

.payment-empty {
    padding: 40px 15px
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 23px;
    padding-top: 18px;
    border-top: 1px solid #edf1f5
}

.secure-note {
    font-size: 10px;
    color: #8190a1
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    background: radial-gradient(ellipse at 80% 12%, rgba(30, 191, 156, .12), transparent 30%), radial-gradient(ellipse at 12% 90%, rgba(71, 126, 197, .12), transparent 28%), #f3f6fa
}

.auth-shell {
    width: min(100%, 450px)
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 19px;
    color: #172e4b;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: .06em
}

.auth-brand strong {
    font-weight: 850
}

.auth-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 19px;
    padding: 30px;
    box-shadow: 0 22px 60px rgba(16, 35, 63, .10)
}

.auth-eyebrow {
    font-size: 9px;
    letter-spacing: .15em;
    font-weight: 800;
    color: #13a88a
}

.auth-title {
    font-size: 24px;
    font-weight: 760;
    letter-spacing: -.04em;
    color: #172c48;
    margin: 7px 0 5px
}

.auth-copy {
    font-size: 11px;
    line-height: 1.6;
    color: #7e8b9e;
    margin-bottom: 22px
}

.auth-footnote {
    text-align: center;
    font-size: 10px;
    color: #99a4b2;
    margin: 16px 0
}

.auth-card .alert {
    font-size: 11px;
    border-radius: 9px
}

.auth-card .form-control-lg {
    font-size: 13px
}

.auth-card .btn-lg {
    font-size: 12px;
    padding: 12px
}

.auth-card .form-control {
    min-height: 43px
}

@media(max-width:767.98px) {
    .app-content-header {
        padding: 17px 0 12px
    }

    .app-content-header .breadcrumb {
        display: none
    }

    .page-title {
        font-size: 19px
    }

    .welcome-panel {
        padding: 19px;
        border-radius: 13px;
        align-items: flex-start;
        flex-direction: column;
        gap: 16px
    }

    .welcome-panel h2 {
        font-size: 20px
    }

    .welcome-action {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap
    }

    .welcome-date {
        padding: 7px 0
    }

    .surface-card {
        padding: 16px;
        border-radius: 13px
    }

    .surface-heading h3 {
        font-size: 14px
    }

    .metric-card {
        padding: 14px;
        min-height: 115px
    }

    .metric-value {
        font-size: 26px
    }

    .metric-hint {
        font-size: 9px
    }

    .empty-chart {
        padding: 13px 1px 21px
    }

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

    .payment-form-card {
        padding: 18px
    }

    .rate-panel {
        padding: 13px
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column
    }

    .form-actions .btn {
        width: 100%
    }

    .secure-note {
        text-align: center
    }

    .payment-side-note {
        position: static
    }

    .app-footer {
        padding: 12px 16px
    }

    .auth-card {
        padding: 23px
    }

    .activity-table {
        min-width: 720px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important
    }
}

.items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 6px 0 12px
}

.items-header h4 {
    font-size: 13px;
    font-weight: 700;
    color: #31465f;
    margin: 4px 0 0
}

.item-entry-table {
    min-width: 520px;
    border: 1px solid #edf1f5;
    border-radius: 10px;
    overflow: hidden
}

.item-entry-table thead th {
    font-size: 8px;
    letter-spacing: .08em;
    color: #8b97a8;
    border-bottom: 1px solid #edf1f5;
    padding: 9px 8px;
    white-space: nowrap
}

.item-entry-table tbody td {
    padding: 8px 6px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f3f6
}

.item-entry-table tbody tr:last-child td {
    border-bottom: 0
}

.item-entry-table .form-control,
.item-entry-table .form-select {
    font-size: 11px;
    min-width: 75px;
    min-height: 38px;
    padding: 7px
}

.item-entry-table .item-description {
    min-width: 175px
}

.item-entry-table .item-tax-rate {
    min-width: 62px
}

.remove-item {
    width: 31px;
    height: 31px;
    border: 1px solid #edf1f5;
    color: #9a6871;
    border-radius: 8px
}

.remove-item:hover {
    background: #fff1f1;
    color: #b64c5d
}

.payment-method-picker {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 11px
}

.payment-method-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fff;
    padding: 10px 11px;
    border: 1px solid #edf1f5;
    border-radius: 9px;
    cursor: pointer
}

.payment-method-option input {
    margin-top: 3px;
    accent-color: #13a88a
}

.payment-method-option strong {
    display: block;
    font-size: 10px;
    color: #405570
}

.payment-method-option small {
    display: block;
    color: #8491a3;
    font-size: 9px;
    white-space: pre-line;
    margin-top: 3px
}

.empty-method-note {
    font-size: 10px;
    color: #8a95a5;
    margin-top: 13px
}

.totals-box {
    padding: 17px;
    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 12px
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 11px;
    color: #728097;
    border-bottom: 1px solid #e9eef3
}

.total-row strong {
    font-size: 12px;
    color: #334760
}

.discount-row {
    align-items: center
}

.discount-controls {
    display: flex;
    gap: 7px;
    width: min(65%, 260px)
}

.discount-controls .form-select {
    min-width: 120px
}

.discount-controls .form-control {
    max-width: 110px
}

.total-grand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 8px;
    color: #1c3452;
    font-size: 13px;
    font-weight: 700
}

.total-grand strong {
    font-size: 20px;
    letter-spacing: -.025em;
    color: #118a73
}

.total-disclaimer {
    font-size: 9px;
    color: #8996a7;
    margin: 8px 0 0;
    line-height: 1.5
}

.document-page {
    background: #edf1f6;
    min-height: 100vh;
    padding: 22px 15px 45px
}

.document-toolbar {
    max-width: 900px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.document-paper {
    max-width: 900px;
    margin: 0 auto;
    padding: 45px 53px 35px;
    background: #fff;
    min-height: 850px;
    box-shadow: 0 15px 45px rgba(24, 41, 62, .1);
    border-radius: 4px;
    color: #26364b
}

.document-header {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding-bottom: 27px;
    border-bottom: 2px solid #153353
}

/* The issuer block yields space so the document number always stays on one line. */
.document-header>div:first-child {
    min-width: 0;
    flex: 1 1 auto
}

.document-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    font-size: 15px;
    color: #193654
}

.document-issuer-lines {
    font-size: 9px;
    line-height: 1.7;
    color: #758296;
    margin: 12px 0 0 45px
}

.document-number-block {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    max-width: 58%
}

.document-number-block span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    color: #148c75
}

.document-number-block strong {
    font-size: 22px;
    letter-spacing: -.035em;
    color: #17334f;
    margin: 5px 0;
    white-space: nowrap
}

.document-number-block small {
    font-size: 9px;
    color: #76859a;
    line-height: 1.6
}

.document-parties {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 25px 0 24px
}

.document-parties h2 {
    font-size: 15px;
    color: #203a57;
    font-weight: 700;
    margin: 7px 0
}

.document-parties p {
    font-size: 10px;
    color: #748196;
    margin: 3px 0
}

.document-status {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px
}

.document-status strong {
    font-size: 12px;
    color: #168871
}

.document-status small {
    font-size: 10px;
    color: #78869a
}

.document-items {
    margin: 0 0 23px
}

.document-items thead th {
    font-size: 8px;
    letter-spacing: .08em;
    color: #78879b;
    background: #f5f8fb;
    border-bottom: 1px solid #e7edf3;
    padding: 11px 9px
}

.document-items tbody td {
    font-size: 10px;
    color: #455970;
    border-bottom: 1px solid #eef1f5;
    padding: 12px 9px
}

.document-items tbody td:not(:nth-child(2)) {
    white-space: nowrap
}

.document-item-tax {
    display: block;
    color: #8c98a6;
    font-size: 8px;
    margin-top: 3px
}

.document-summary {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 35px
}

.document-notes {
    font-size: 10px;
    line-height: 1.65;
    color: #687b91
}

.document-notes p {
    white-space: pre-line;
    margin: 8px 0 18px
}

.document-payment {
    padding: 8px 0;
    border-bottom: 1px solid #eef2f6
}

.document-payment strong {
    font-size: 10px;
    color: #304862
}

.document-payment p {
    margin: 3px 0 0
}

.document-totals>div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #eef2f6;
    font-size: 10px;
    color: #748196
}

.document-totals strong {
    font-size: 10px;
    color: #3a506a;
    white-space: nowrap
}

.document-totals .document-grand {
    padding: 13px 0;
    color: #193753;
    font-weight: 750;
    border-bottom: 1px solid #dfe7ee
}

.document-totals .document-grand strong {
    font-size: 15px;
    color: #138d76
}

.document-totals .document-balance {
    border: 0;
    color: #173753;
    font-weight: 750
}

.document-totals .document-balance strong {
    font-size: 13px;
    color: #173753
}

.document-footer {
    margin-top: 31px;
    padding-top: 16px;
    border-top: 1px solid #e7edf3;
    text-align: center
}

.document-footer p {
    font-size: 10px;
    color: #61758d;
    margin: 0 0 5px
}

.document-footer small {
    font-size: 8px;
    color: #98a2ae
}

.doc-number a {
    color: inherit;
    text-decoration: none
}

.doc-number a:hover {
    color: #138d76
}

@media(max-width:767.98px) {
    .document-page {
        padding: 12px 8px 25px
    }

    .document-toolbar {
        align-items: stretch;
        flex-direction: column
    }

    .document-toolbar>div {
        display: grid !important;
        grid-template-columns: 1fr 1fr
    }

    .document-toolbar .btn {
        font-size: 10px;
        padding: 9px 7px
    }

    .document-paper {
        padding: 25px 18px;
        min-height: unset
    }

    .document-header {
        gap: 12px;
        padding-bottom: 18px
    }

    .document-number-block strong {
        font-size: 17px
    }

    .document-issuer-lines {
        margin-left: 0
    }

    .document-parties {
        padding: 19px 0;
        gap: 10px
    }

    .document-summary {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .document-totals {
        max-width: 100%
    }
}

@media print {
    body.document-page {
        padding: 0;
        background: #fff
    }

    .no-print {
        display: none !important
    }

    .document-paper {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 20mm 16mm;
        box-shadow: none;
        border-radius: 0;
        min-height: auto
    }

    .document-items {
        break-inside: auto
    }

    .document-items tr {
        break-inside: avoid
    }

    .document-footer {
        break-inside: avoid
    }

    .table-responsive {
        overflow: visible !important
    }
}

/* Company identity and configuration */
.brand-logo {
    display: block;
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 2px;
    overflow: hidden
}

.brand-logo-small {
    width: 35px;
    height: 35px;
    max-width: 35px;
    max-height: 35px;
    border-radius: 10px;
    padding: 2px
}

.brand-link .brand-logo {
    flex: 0 0 auto
}

.auth-brand .brand-logo {
    border-radius: 50%;
    padding: 0
}

/* Monograma de la marca: es ancho, así que no se recorta en círculo como un logo cuadrado. */
.auth-brand .brand-logo-mark {
    border-radius: 12px;
    padding: 2px
}

.company-settings-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px;
    background: linear-gradient(115deg, #10233f, #153d57 70%, #14656c);
    color: #fff;
    border: 0
}

.company-settings-intro .section-eyebrow {
    color: #4ce0be
}

.company-settings-intro h2 {
    margin: 7px 0;
    font-size: 21px;
    letter-spacing: -.035em;
    font-weight: 760
}

.company-settings-intro p {
    max-width: 700px;
    margin: 0;
    color: #c8d7e6;
    font-size: 12px;
    line-height: 1.6
}

.settings-intro-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
    border-radius: 16px;
    font-size: 25px;
    color: #73e4cb;
    flex: 0 0 auto
}

.settings-section-card {
    padding: 24px
}

.settings-section-card .surface-heading h3 {
    margin: 4px 0 5px
}

.settings-section-card .form-label {
    font-size: 12px;
    color: #344a63;
    font-weight: 650
}

.settings-section-card .form-control,
.settings-section-card .form-select,
.settings-section-card .input-group-text {
    font-size: 12px;
    min-height: 43px;
    border-color: #e1e7ee
}

.settings-section-card .form-hint {
    font-size: 10px;
    color: #8793a3;
    margin-top: 6px;
    line-height: 1.45
}

.vat-config-card {
    padding: 17px;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 13px
}

.vat-config-card .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0
}

.vat-config-card .form-check-input {
    width: 2.3em;
    height: 1.2em;
    margin: 2px 0 0;
    flex: 0 0 auto
}

.vat-config-card .form-check-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #334a62
}

.vat-config-card .form-check-label span {
    font-size: 10px;
    color: #8390a1;
    font-weight: 400
}

.vat-rate-field {
    max-width: 260px;
    padding: 17px 0 0 42px;
    transition: opacity .2s
}

.vat-rate-field.is-disabled {
    opacity: .45
}

.company-logo-preview {
    height: 185px;
    max-width: 100%;
    min-width: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 15px;
    border: 1px dashed #d7e0e9;
    border-radius: 14px;
    background: #f8fafc
}

.company-logo-preview img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 155px;
    object-fit: contain
}

.company-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #9aa6b4;
    font-size: 11px
}

.company-logo-placeholder i {
    font-size: 30px;
    color: #b5c0cc
}

.logo-settings-card input[type=file] {
    font-size: 11px
}

.settings-note-card {
    display: flex;
    gap: 12px;
    padding: 17px;
    border: 1px solid #dceeea;
    background: #f2faf8;
    border-radius: 13px;
    color: #2f665c
}

.settings-note-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #dff4ed;
    color: #129778;
    flex: 0 0 auto
}

.settings-note-card strong {
    display: block;
    font-size: 11px
}

.settings-note-card p {
    margin: 5px 0 0;
    color: #6d8b83;
    font-size: 10px;
    line-height: 1.55
}

.settings-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 20px;
    background: #fff;
    border: 1px solid #e7edf3;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 35, 63, .04)
}

.settings-save-bar>span {
    font-size: 10px;
    color: #7d8b9e
}

.settings-save-bar .btn {
    font-size: 12px
}

@media(max-width:575.98px) {
    .company-settings-intro {
        padding: 20px
    }

    .company-settings-intro h2 {
        font-size: 18px
    }

    .settings-intro-icon {
        width: 44px;
        height: 44px;
        font-size: 20px
    }

    .settings-section-card {
        padding: 18px
    }

    .settings-save-bar {
        align-items: stretch;
        flex-direction: column
    }

    .settings-save-bar .btn {
        width: 100%
    }
}

.document-brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff
}

/* Monograma de respaldo cuando la empresa todavía no cargó su logo. */
.document-brand-mark {
    width: auto;
    height: 40px;
    max-width: 96px;
    object-fit: contain
}

@media print {
    .document-brand-mark {
        height: 29px
    }
}

.users-settings-page {
    padding: 24px
}

.role-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px
}

.role-guide-card {
    padding: 15px;
    border: 1px solid #e8edf3;
    background: #f8fafc;
    border-radius: 12px
}

.role-guide-card strong {
    font-size: 11px;
    color: #24425e
}

.role-guide-card p {
    font-size: 10px;
    line-height: 1.55;
    color: #8290a1;
    margin: 7px 0 0
}

.role-create-card,
.role-members-card {
    height: 100%;
    padding: 20px;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: #fff
}

.role-create-card h4,
.role-members-card h4 {
    font-size: 14px;
    margin: 5px 0
}

.role-create-card>p {
    font-size: 10px;
    line-height: 1.55;
    color: #8290a1
}

.role-create-card .form-label {
    font-size: 11px;
    font-weight: 650;
    color: #344a63
}

.role-create-card .form-control,
.role-create-card .form-select {
    font-size: 12px;
    min-height: 41px
}

.role-create-card .form-hint {
    font-size: 10px;
    color: #8793a3
}

.users-table th {
    font-size: 9px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8793a3
}

.users-table td {
    font-size: 11px;
    color: #42556e
}

.users-table td strong,
.users-table td small {
    display: block
}

.users-table td small {
    font-size: 9px;
    color: #8491a3;
    margin-top: 3px
}

.status-pill {
    display: inline-flex;
    border-radius: 99px;
    padding: 4px 9px;
    font-size: 9px;
    font-weight: 700
}

.status-active {
    color: #0e876e;
    background: #e4f7f0
}

.status-inactive {
    color: #9a5c66;
    background: #fff0f1
}

@media(max-width:991.98px) {
    .role-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:575.98px) {
    .users-settings-page {
        padding: 16px
    }

    .role-guide-grid {
        grid-template-columns: 1fr
    }
}

.user-edit-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(16, 35, 63, .25)
}

.user-edit-modal .modal-header {
    padding: 22px 24px 16px;
    border-bottom: 1px solid #edf0f4
}

.user-edit-modal .modal-title {
    margin-top: 5px;
    font-size: 18px;
    font-weight: 700;
    color: #17314e
}

.user-edit-modal .modal-body {
    padding: 20px 24px
}

.user-edit-modal .modal-body .form-label {
    font-size: 12px;
    font-weight: 650;
    color: #344a63
}

.user-edit-modal .modal-body .form-control,
.user-edit-modal .modal-body .form-select {
    min-height: 43px;
    font-size: 13px
}

.user-edit-modal .modal-footer {
    padding: 14px 24px 20px;
    border-top: 1px solid #edf0f4
}

@media(max-width:575.98px) {
    .user-edit-modal .modal-dialog {
        margin: 12px
    }

    .user-edit-modal .modal-header,
    .user-edit-modal .modal-body,
    .user-edit-modal .modal-footer {
        padding-left: 18px;
        padding-right: 18px
    }
}

.role-permissions-table {
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #fff;
    padding: 4px 12px
}

.role-permissions-table th {
    font-size: 10px;
    color: #50637a
}

.role-permissions-table thead th {
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8793a3
}

.role-permissions-table td {
    font-size: 10px;
    color: #64758a
}

/* Compact, branded print layout for receivable documents. */
.document-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    text-align: left
}

.document-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #193654;
    font-size: 10px;
    white-space: nowrap
}

.document-footer-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 50%
}

.document-footer-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 14px;
    color: #61758d;
    font-size: 9px
}

.document-footer-contact a {
    color: inherit;
    text-decoration: none
}

.document-footer-contact a:hover {
    text-decoration: underline
}

.document-footer-legal {
    text-align: right
}

.document-footer-legal p {
    font-size: 9px;
    margin-bottom: 3px
}

.document-payment-history {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid #e5edf4;
    border-radius: 12px;
    background: #fbfcfe
}

.document-side-panel {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto
}

.payment-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px
}

.payment-history-heading h2 {
    margin: 4px 0 0;
    font-size: 16px;
    color: #193753
}

.payment-history-heading>span {
    color: #748196;
    font-size: 12px
}

.document-payment-history table {
    font-size: 12px
}

.document-payment-history thead th {
    color: #748196;
    font-size: 9px;
    letter-spacing: .05em;
    white-space: nowrap
}

.payment-evidence-link {
    display: block;
    max-width: 220px;
    overflow-wrap: anywhere;
    font-size: 11px
}

@media(max-width:767.98px) {
    .document-payment-history {
        padding: 13px 10px
    }

    .document-payment-history table {
        min-width: 760px;
        font-size: 10px
    }
}

@media(max-width:767.98px) {
    .document-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 8px;
        text-align: center
    }

    .document-footer-legal {
        text-align: center
    }
}

@page {
    size: A4;
    margin: 11mm 12mm
}

@media print {
    body.document-page {
        padding: 0 !important;
        margin: 0 !important;
        min-height: 0 !important;
        background: #fff !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact
    }

    .document-paper {
        width: 100%;
        max-width: none;
        min-height: 270mm;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        box-shadow: none;
        border-radius: 0
    }

    .document-header {
        gap: 16px;
        padding-bottom: 13px;
        border-bottom-width: 1px;
        break-inside: avoid
    }

    .document-brand {
        gap: 7px;
        font-size: 13px
    }

    .document-brand-logo {
        width: 42px;
        height: 42px
    }

    .document-issuer-lines {
        margin: 5px 0 0 49px;
        font-size: 8.5px;
        line-height: 1.45
    }

    .document-number-block strong {
        font-size: 18px;
        margin: 3px 0
    }

    .document-number-block small {
        font-size: 8px;
        line-height: 1.35
    }

    .document-parties {
        gap: 16px;
        padding: 16px 0 14px;
        break-inside: avoid
    }

    .document-parties h2 {
        font-size: 12px;
        margin: 4px 0
    }

    .document-parties p {
        font-size: 8px;
        margin: 2px 0
    }

    .document-status strong {
        font-size: 10px
    }

    .document-status small {
        font-size: 8px
    }

    .document-items {
        width: 100%;
        margin-bottom: 16px
    }

    .document-items thead th {
        padding: 7px 8px;
        font-size: 7.5px
    }

    .document-items tbody td {
        padding: 8px;
        font-size: 8.5px
    }

    .document-summary {
        grid-template-columns: minmax(0, 1fr) minmax(215px, 38%);
        gap: 20px;
        break-inside: avoid
    }

    .document-notes {
        font-size: 8.5px;
        line-height: 1.45
    }

    .document-notes p {
        margin: 4px 0 8px
    }

    .document-payment {
        padding: 5px 0;
        break-inside: avoid
    }

    .document-payment strong {
        font-size: 8px
    }

    .document-payment p {
        margin-top: 2px
    }

    .document-totals>div {
        padding: 6px 0;
        font-size: 8.5px
    }

    .document-totals strong {
        font-size: 8.5px
    }

    .document-totals .document-grand {
        padding: 7px 0
    }

    .document-totals .document-grand strong {
        font-size: 12px
    }

    .document-totals .document-balance strong {
        font-size: 10px
    }

    .document-footer {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
        margin-top: auto;
        padding-top: 10px;
        break-inside: avoid
    }

    .document-footer-brand {
        font-size: 8px
    }

    .document-footer-brand img {
        width: 27px;
        height: 27px
    }

    .document-footer-contact {
        gap: 3px 9px;
        font-size: 7.5px
    }

    .document-footer-legal p {
        font-size: 7.5px
    }

    .document-footer small {
        font-size: 6.5px
    }

    .document-items tr {
        break-inside: avoid
    }

    .table-responsive {
        overflow: visible !important
    }
}
