:root {
    --bg: #eaf1f7;
    --surface: #ffffff;
    --surface-soft: #f5f9fc;
    --text: #0f2740;
    --muted: #486581;
    --primary: #0f6fb8;
    --primary-strong: #0b578f;
    --danger: #a81f2d;
    --ok: #1f7a3f;
    --ring: #0f5bcf;
    --line: #d1dde8;
    --shadow: 0 22px 56px rgba(12, 31, 49, 0.15);
    --content-top-gap: 0.9rem;
    --section-gap: 1.9rem;
    --section-gap-mobile: 1.35rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    line-height: 1.5;
    position: relative;
}

.backdrop {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at top left, rgba(216, 232, 246, 0.72), rgba(216, 232, 246, 0) 60%),
        linear-gradient(135deg, rgba(234, 241, 247, 0.92), rgba(234, 241, 247, 0.98) 56%),
        url("../img/bckgrnd/back_6.png") no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.site-header {
    position: relative;
    z-index: 120;
    margin-top: 0.75rem;
    padding: 0.72rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.1rem;
    border: 1px solid rgba(192, 212, 229, 0.92);
    border-radius: 1.1rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 255, 0.94));
    box-shadow: 0 14px 38px rgba(16, 42, 67, 0.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.shell {
    width: min(1100px, calc(100vw - 2rem));
    margin: 0 auto;
}

.site-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.26rem 0.3rem;
    border: 1px solid rgba(173, 199, 221, 0.8);
    border-radius: 0.88rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 254, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: visible;
    margin-left: 0.3rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    flex: 0 0 auto;
    min-width: max-content;
}

.brand:focus,
.brand:focus-visible,
.brand:active {
    outline: none;
    box-shadow: none;
}

.brand-logo {
    width: 58px;
    height: auto;
    display: block;
    border: 0;
}

.brand-name {
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
}

a {
    color: var(--primary);
}

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

.print-only {
    display: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 780;
    font-size: 0.95rem;
    white-space: nowrap;
    border: 1px solid transparent;
    padding: 0.46rem 0.58rem;
    color: #113351;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    outline: none;
}

.site-nav .user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 240px;
    padding: 0.44rem 0.56rem;
    border-radius: 0.5rem;
    border: 1px solid #c2d9ec;
    background: #f3f9ff;
    color: #245070;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.site-nav .user-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav .user-menu summary.user-chip {
    list-style: none;
}

.site-nav .user-menu summary.user-chip::-webkit-details-marker {
    display: none;
}

.site-nav .user-menu .nav-submenu {
    left: auto;
    right: 0;
    min-width: 170px;
}

.site-nav .nav-group {
    position: relative;
    margin: 0;
}

.site-nav .nav-group[open] {
    z-index: 130;
}

.site-nav .nav-group summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 780;
    font-size: 0.95rem;
    white-space: nowrap;
    border: 1px solid transparent;
    padding: 0.46rem 0.58rem;
    color: #113351;
    list-style: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    outline: none;
}

.site-nav .nav-group summary::-webkit-details-marker {
    display: none;
}

.site-nav .nav-group[open] summary,
.site-nav .nav-group summary:hover {
    background: rgba(231, 241, 250, 0.75);
    border-color: transparent;
    color: #0d4773;
}

.site-nav .nav-group.is-active summary {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #0a4b7e;
}

.site-nav .nav-group .nav-group-caret {
    font-size: 0.82rem;
    color: #3d6d95;
    transition: transform 0.18s ease;
}

.site-nav .nav-group[open] .nav-group-caret {
    transform: rotate(180deg);
}

.site-nav .nav-submenu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 210px;
    display: grid;
    gap: 0.28rem;
    padding: 0.38rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(164, 196, 220, 0.9);
    background: linear-gradient(160deg, #ffffff, #eef7fd);
    box-shadow: 0 15px 32px rgba(16, 42, 67, 0.18);
    z-index: 140;
}

.site-nav .nav-submenu a {
    padding: 0.5rem 0.62rem;
    transform: none;
}

.site-nav a:hover {
    background: rgba(231, 241, 250, 0.75);
    border-color: transparent;
    color: #0d4773;
}

.site-nav a:focus,
.site-nav .nav-group summary:focus {
    outline: none;
}

.site-nav a:focus-visible,
.site-nav .nav-group summary:focus-visible {
    border-color: rgba(74, 138, 193, 0.55);
}

.site-nav a.is-active:focus-visible,
.site-nav .nav-group.is-active summary:focus-visible {
    border-color: transparent;
}

.site-nav a.is-active {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #0a4b7e;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.28rem;
}

.site-nav a.is-active:hover,
.site-nav .nav-group.is-active summary:hover {
    background: rgba(231, 241, 250, 0.65);
    border-color: transparent;
}

.site-nav a.is-active i {
    color: #0b5b98;
}

.site-nav a i {
    color: #2d638d;
    font-size: 0.93rem;
}

.site-nav .button-link {
    background: linear-gradient(145deg, #1577c4, #0f66a8);
    color: #fff;
    border-color: rgba(11, 79, 129, 0.55);
}

.site-nav .button-link i {
    color: #fff;
}

.with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.46rem;
}

.button-link,
.primary,
button {
    background: linear-gradient(145deg, #1779c6, #0f6fb8);
    color: #fff;
    border: 0;
    border-radius: 0.65rem;
    padding: 0.72rem 1.02rem;
    text-decoration: none;
    cursor: pointer;
    font-weight: 650;
}

.button-link:hover,
.primary:hover,
button:hover {
    background: linear-gradient(145deg, #0f6fb8, #0b578f);
}

.container {
    padding-top: var(--content-top-gap);
    padding-bottom: 2rem;
}

.site-footer {
    margin: 0.25rem auto 1.5rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    border: 1px solid rgba(192, 212, 229, 0.85);
    border-radius: 0.9rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(244, 250, 255, 0.9));
}

.site-footer p {
    margin: 0;
    color: #3f607b;
    font-size: 0.9rem;
    font-weight: 650;
}

.site-footer nav {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.site-footer a {
    text-decoration: none;
    color: #0d5d98;
    font-weight: 700;
    font-size: 0.9rem;
}

.site-footer a:hover {
    text-decoration: underline;
}

.landing-stack {
    display: grid;
    gap: var(--section-gap);
    margin-top: 0;
}

.landing-stack > section {
    margin: 0;
}

.hero {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.96));
    border-radius: 1.15rem;
    padding: 2.3rem;
    box-shadow: var(--shadow);
}

.hero h1 {
    margin: 0;
    max-width: 18ch;
    line-height: 1.15;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.hero p {
    max-width: 64ch;
    color: var(--muted);
}

.landing-simple-copy {
    font-size: 1.05rem;
    font-weight: 600;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 0.9rem;
    padding: 0.24rem 0.56rem;
    border-radius: 999px;
    background: #d9ecfb;
    color: #0b4d80;
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.secondary {
    background: #fff;
    color: var(--primary-strong);
    border: 1px solid #a8cbe8;
    border-radius: 0.6rem;
    padding: 0.64rem 0.95rem;
    text-decoration: none;
    font-weight: 650;
}

.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 1.15rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
}

.hero-highlights li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #d7e7f4;
    border-radius: 0.6rem;
    padding: 0.62rem 0.75rem;
    color: #183b56;
    font-weight: 600;
}

.hero-highlights li i {
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e8f2fd;
    color: #0d5c98;
    border: 1px solid #c6ddf2;
    font-size: 0.88rem;
    flex: 0 0 auto;
}

.hero-highlights li span {
    flex: 1 1 auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.1rem;
    margin-top: 1.35rem;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.95rem;
    margin: 0;
}

.landing-step-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #cfe0ee;
    border-radius: 0.95rem;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(16, 42, 67, 0.08);
}

.landing-step-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.08rem;
}

.landing-step-card p {
    margin: 0;
    color: #35526a;
}

.landing-step-number {
    margin: 0 0 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0d5084;
    background: #e2f0fc;
    border: 1px solid #c4dbef;
}

.landing-bottom-cta {
    margin: 0;
    border: 1px solid #c4d9eb;
    border-radius: 1rem;
    padding: 1.25rem;
    background: linear-gradient(150deg, rgba(239, 248, 255, 0.95), rgba(255, 255, 255, 0.95));
    box-shadow: 0 12px 28px rgba(16, 42, 67, 0.09);
}

.landing-bottom-cta h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}

.landing-bottom-cta p {
    margin: 0;
    color: #35526a;
}

.landing-security {
    margin-top: 1.35rem;
    border: 1px solid #c4d9eb;
    border-radius: 1rem;
    padding: 1.2rem;
    background: linear-gradient(160deg, rgba(244, 250, 255, 0.96), rgba(255, 255, 255, 0.96));
    box-shadow: 0 12px 28px rgba(16, 42, 67, 0.09);
}

.landing-security h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}

.landing-security > p {
    margin: 0;
    color: #35526a;
}

.landing-security-grid {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.landing-security-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d3e2ee;
    border-radius: 0.9rem;
    padding: 0.95rem;
}

.landing-security-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
}

.landing-security-item p {
    margin: 0;
    color: #3d5a72;
}

.about-story-intro {
    font-size: 1.02rem;
    font-weight: 600;
}

.about-story-layout {
    margin-top: 0.95rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0.9rem;
}

.about-story-card,
.about-location-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d3e2ee;
    border-radius: 0.9rem;
    padding: 1rem;
}

.about-story-card h3,
.about-location-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.06rem;
    color: #18344c;
}

.about-story-card > p {
    margin: 0;
    color: #3d5a72;
}

.about-story-points {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.about-story-points li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #d8e7f3;
    border-radius: 0.65rem;
    background: #f8fbfe;
    padding: 0.52rem 0.62rem;
    color: #274860;
    font-weight: 600;
}

.about-story-points li i {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e4f1fc;
    color: #0d5c98;
    border: 1px solid #c6ddf2;
    font-size: 0.82rem;
    flex: 0 0 auto;
}

.about-address {
    margin: 0;
    color: #3d5a72;
    line-height: 1.6;
}

.about-location-tags {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.about-location-tags span {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.58rem;
    border-radius: 999px;
    background: #e8f2fd;
    color: #0c4f82;
    border: 1px solid #c6ddf2;
    font-size: 0.82rem;
    font-weight: 700;
}

.feature-icon {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    background: linear-gradient(145deg, #eef7ff, #ddeefe);
    color: #0f5d97;
    border: 1px solid #c6ddf1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-bottom: 0.65rem;
}

.feature-icon i {
    font-size: 1rem;
}

.features article,
.auth-card,
.dashboard {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 12px 28px rgba(16, 42, 67, 0.09);
}

.dashboard-layout {
    display: grid;
    gap: 1rem;
}

.error-page {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

.error-code {
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.03em;
    color: #0f6fb8;
}

.error-page h1 {
    margin: 0.4rem 0 0.45rem;
}

.error-page p {
    margin: 0;
    color: var(--muted);
}

.error-actions {
    justify-content: center;
    margin-top: 1rem;
}

.maintenance-page {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

.maintenance-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0 0 0.7rem;
    padding: 0.26rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #b9d5ed;
    background: #eaf4fd;
    color: #0e558b;
    font-size: 0.88rem;
    font-weight: 700;
}

.maintenance-page h1 {
    margin: 0.2rem 0 0.5rem;
}

.maintenance-page p {
    margin: 0;
    color: var(--muted);
}

.maintenance-actions {
    justify-content: center;
    margin-top: 1rem;
}

.kpis {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.kpi-grid {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.kpi-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.8rem 0.9rem;
}

.kpi-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.kpi-value {
    margin: 0.2rem 0 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.kpi-card.money-card .kpi-value {
    font-size: 1.4rem;
    font-variant-numeric: tabular-nums;
}

.financial-summary {
    margin-top: 1rem;
    border: 1px solid #d2deea;
    border-radius: 0.85rem;
    background: #f8fbfe;
    padding: 0.8rem 0.9rem;
}

.financial-summary h2 {
    margin: 0 0 0.55rem;
    font-size: 1.02rem;
    color: #1d3c57;
}

.financial-summary-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.financial-item {
    border: 1px solid #c8d7e7;
    border-radius: 0.7rem;
    background: #ffffff;
    padding: 0.65rem 0.7rem;
}

.financial-label {
    margin: 0;
    color: #4b6a82;
    font-size: 0.88rem;
}

.financial-value {
    margin: 0.2rem 0 0;
    color: #1d3c57;
    font-size: 1.22rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.btw-report-page {
    max-width: 1120px;
}

.btw-report-filters {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 0.7rem;
    align-items: end;
}

.btw-filter-actions {
    display: flex;
    align-items: end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.btw-period-card {
    margin-top: 0.75rem;
    border: 1px solid #d2deea;
    border-radius: 0.75rem;
    background: #f8fbfe;
    padding: 0.7rem 0.85rem;
    display: grid;
    gap: 0.2rem;
}

.btw-period-card p {
    margin: 0;
    color: #365672;
}

.btw-report-table-wrap {
    margin-top: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #ffffff;
}

.btw-totals-grid {
    margin-top: 0.85rem;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.btw-total-card {
    border: 1px solid #c8d7e7;
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 0.7rem 0.8rem;
}

.btw-total-card .kpi-value {
    font-size: 1.32rem;
    font-variant-numeric: tabular-nums;
}

.btw-total-card.payable {
    border-color: #9fc1de;
    background: #eef6fd;
}

.btw-disclaimer {
    margin-top: 0.85rem;
}

.sales-report-page {
    max-width: 1120px;
}

.sales-kpi-grid {
    margin-top: 0.85rem;
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.sales-report-grid {
    margin-top: 0.85rem;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.sales-report-card {
    padding: 0.95rem 1rem;
}

.sales-report-card h2 {
    margin: 0 0 0.55rem;
}

.sales-status-list {
    display: grid;
    gap: 0.45rem;
}

.sales-status-list p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid #d6e1eb;
    border-radius: 0.6rem;
    background: #fbfdff;
}

@media (max-width: 860px) {
    .btw-report-filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer nav {
        flex-wrap: wrap;
    }
}

@media print {
    .site-header,
    .alerts,
    .btw-report-filters,
    .quick-actions,
    .recent-invoices,
    .btw-disclaimer {
        display: none !important;
    }

    .container,
    .shell,
    .dashboard,
    .sales-report-card,
    .btw-total-card,
    .financial-item,
    .kpi-card {
        box-shadow: none !important;
    }

    .dashboard,
    .sales-report-card,
    .btw-total-card,
    .financial-item,
    .kpi-card,
    .btw-period-card,
    .btw-report-table-wrap {
        border-color: #9aa8b6 !important;
    }

    .btw-report-page,
    .sales-report-page {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    table {
        min-width: 0;
        font-size: 0.9rem;
    }

    .btw-totals-grid,
    .sales-kpi-grid,
    .sales-report-grid {
        break-inside: avoid;
    }
}

.trend-grid {
    margin-top: 0.7rem;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.trend-item {
    border: 1px solid #c8d7e7;
    border-radius: 0.7rem;
    padding: 0.6rem 0.7rem;
    background: #ffffff;
}

.trend-label {
    margin: 0;
    color: #4b6a82;
    font-size: 0.86rem;
}

.trend-value {
    margin: 0.22rem 0 0;
    font-size: 1.02rem;
    font-weight: 720;
    font-variant-numeric: tabular-nums;
}

.trend-value span {
    color: #4b6a82;
    font-size: 0.9rem;
    font-weight: 600;
}

.trend-item.trend-up {
    border-color: #aad7b6;
    background: #f2fbf5;
}

.trend-item.trend-up .trend-value {
    color: #1e6a3b;
}

.trend-item.trend-down {
    border-color: #e7b7be;
    background: #fff3f4;
}

.trend-item.trend-down .trend-value {
    color: #9c2a37;
}

.trend-item.trend-flat {
    border-color: #cad7e3;
    background: #f8fbfe;
}

.trend-item.trend-flat .trend-value {
    color: #365672;
}

.quick-actions h2,
.recent-invoices h2 {
    margin-top: 0;
}

.rotation-summary-card {
    margin-top: 1rem;
}

.rotation-summary-value {
    font-size: 1.05rem;
}

.quick-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.start-here-actions {
    margin-top: 0.35rem;
}

.table-wrap {
    overflow-x: auto;
}

.customers-table-section .table-wrap {
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: #ffffff;
}

.customers-table {
    min-width: 780px;
}

.customers-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.customers-table tbody tr:hover {
    background: #f3f8fc;
}

.customers-table td {
    vertical-align: top;
}

.customers-table .cell-primary {
    margin: 0;
    font-weight: 650;
    line-height: 1.3;
}

.customers-table .cell-secondary {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.35;
}

.count-badge {
    display: inline-flex;
    min-width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e8f3ff;
    color: #0d5c98;
    border: 1px solid #afd2f3;
    font-weight: 700;
}

.articles-table-section .table-wrap {
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: #ffffff;
}

.articles-table {
    min-width: 680px;
}

.articles-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.articles-table tbody tr:hover {
    background: #f3f8fc;
}

.articles-table td {
    vertical-align: top;
}

.price-chip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0.24rem 0.58rem;
    border-radius: 999px;
    border: 1px solid #b9d5ec;
    background: #edf6ff;
    color: #114f81;
    font-weight: 700;
    font-size: 0.88rem;
}

.table-actions {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
}

.link-button {
    background: transparent;
    color: var(--primary);
    border: 0;
    padding: 0;
    border-radius: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

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

.table-actions a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    font-weight: 600;
}

.table-actions .link-button,
.table-actions .secondary,
.table-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.table-actions .icon-only {
    width: 2rem;
    height: 2rem;
    justify-content: center;
    border-radius: 0.45rem;
    border: 1px solid transparent;
    padding: 0;
}

.table-actions a.icon-only,
.table-actions button.icon-only {
    color: var(--primary);
}

.table-actions .icon-only:hover {
    background: #edf5fc;
    border-color: #c8dced;
}

.table-actions .icon-only.danger-link:hover {
    background: #ffecee;
    border-color: #f1b8bf;
}

.table-actions .status-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.table-actions .status-inline-form select {
    height: 2rem;
    min-width: 7.2rem;
    padding: 0.18rem 0.42rem;
    border-radius: 0.45rem;
    border: 1px solid #c8dced;
    background: #fff;
    color: #18344c;
    font-size: 0.82rem;
}

.admin-users-table {
    min-width: 980px;
}

.admin-users-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.38rem;
}

.admin-users-actions .secondary,
.admin-users-actions button {
    white-space: nowrap;
}

.admin-users-actions .icon-only {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.55rem;
    border: 1px solid #b7d3ea;
    background: #f3f9ff;
    color: #0d5c98;
}

.admin-users-actions .icon-only:hover {
    background: #e8f3ff;
    border-color: #9fc6e6;
}

.admin-users-actions .disabled {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    cursor: not-allowed;
    opacity: 0.68;
}

.admin-users-page .title-row {
    align-items: flex-start;
}

.admin-users-page .title-actions {
    gap: 0.75rem;
}

.admin-users-page .admin-users-toolbar {
    row-gap: 0.55rem;
}

.admin-users-page .admin-users-toolbar input[type="search"] {
    width: min(320px, 30vw);
    min-width: 260px;
}

.admin-users-page .admin-users-toolbar .secondary {
    min-height: 2.45rem;
}

.admin-users-page .kpi-grid {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.admin-users-page .kpi-card {
    padding: 0.72rem 0.82rem;
}

.admin-users-page .kpi-value {
    font-size: 2rem;
}

.admin-users-page .admin-users-table td[data-label="Acties"] {
    min-width: 150px;
}

.admin-users-page .admin-users-table th,
.admin-users-page .admin-users-table td {
    padding-top: 0.48rem;
    padding-bottom: 0.48rem;
    vertical-align: middle;
}

.admin-users-page .admin-users-table input[type="email"] {
    padding-top: 0.52rem;
    padding-bottom: 0.52rem;
}

.admin-users-page .admin-users-table .vat-checkbox-field {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    line-height: 1.1;
}

.admin-users-page .admin-users-table .vat-checkbox-field input[type="checkbox"] {
    transform: translateY(-0.5px);
}

@media (max-width: 1100px) {
    .admin-users-page .kpi-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 860px) {
    .admin-users-page .kpi-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

.webstats-page .kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.webstats-presets {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.webstats-presets .secondary {
    min-height: 2.2rem;
    padding: 0.46rem 0.72rem;
}

.webstats-presets .secondary.is-active {
    background: linear-gradient(145deg, #1779c6, #0f6fb8);
    color: #ffffff;
    border-color: #0f6fb8;
    box-shadow: 0 8px 18px rgba(15, 96, 159, 0.25);
}

.webstats-presets .secondary.is-active:hover {
    background: linear-gradient(145deg, #0f6fb8, #0b578f);
    border-color: #0b578f;
}

.webstats-split {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.webstats-panel {
    min-height: 100%;
}

.webstats-panel h2 {
    margin: 0 0 0.7rem;
}

.webstats-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.webstats-row {
    display: grid;
    gap: 0.28rem;
}

.webstats-list-head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.3rem;
}

.webstats-list-head span {
    color: #4a6780;
    font-size: 0.9rem;
}

.webstats-progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.5rem;
    border-radius: 999px;
    border: 0;
    background: #e4edf6;
    overflow: hidden;
}

.webstats-progress::-webkit-progress-bar {
    background: #e4edf6;
    border-radius: 999px;
}

.webstats-progress::-webkit-progress-value {
    background: linear-gradient(90deg, #1b89d3, #0f6fb8);
    border-radius: 999px;
}

.webstats-progress::-moz-progress-bar {
    background: linear-gradient(90deg, #1b89d3, #0f6fb8);
    border-radius: 999px;
}

.webstats-total-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.webstats-total-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 0.65rem;
    border: 1px solid #d8e6f3;
    border-radius: 0.6rem;
    background: #f8fbfe;
}

.webstats-total-list li span {
    color: #35526a;
}

.webstats-total-list li strong {
    color: #18344c;
    font-variant-numeric: tabular-nums;
}

.detail-status-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.detail-status-form {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.detail-status-form select {
    height: 2rem;
    min-width: 7.2rem;
    padding: 0.18rem 0.42rem;
    border-radius: 0.45rem;
    border: 1px solid #c8dced;
    background: #fff;
    color: #18344c;
    font-size: 0.82rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
}

th,
td {
    text-align: left;
    padding: 0.65rem 0.45rem;
    border-bottom: 1px solid var(--line);
}

.money {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

th.money,
td.money {
    text-align: right;
}

th {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    background: #f2f7fb;
}

th .sort-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

th .sort-link:hover {
    text-decoration: underline;
}

.list-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.list-pagination .pagination-meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.list-pagination .disabled {
    opacity: 0.55;
    pointer-events: none;
}

.status-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.status-badge.draft {
    background: #eaf1f7;
    color: #31506b;
    border-color: #bdd1e2;
}

.status-badge.concept {
    background: #eaf1f7;
    color: #31506b;
    border-color: #bdd1e2;
}

.status-badge.nieuw {
    background: #eaf1f7;
    color: #31506b;
    border-color: #bdd1e2;
}

.status-badge.sent {
    background: #e8f3ff;
    color: #0d5c98;
    border-color: #afd2f3;
}

.status-badge.original {
    background: #e8f3ff;
    color: #0d5c98;
    border-color: #afd2f3;
}

.status-badge.origineel {
    background: #e8f3ff;
    color: #0d5c98;
    border-color: #afd2f3;
}

.status-badge.verstuurd {
    background: #e8f3ff;
    color: #0d5c98;
    border-color: #afd2f3;
}

.status-badge.paid {
    background: #e2f5e9;
    color: #1b6b38;
    border-color: #98d6ac;
}

.status-badge.betaald {
    background: #e2f5e9;
    color: #1b6b38;
    border-color: #98d6ac;
}

.status-badge.onbetaald {
    background: #eef4ff;
    color: #294d8f;
    border-color: #b9c9ee;
}

.status-badge.terug-betaald {
    background: #f4f0ff;
    color: #4f3a8d;
    border-color: #cfc1ee;
}

.status-badge.afgeschreven {
    background: #f2f2f4;
    color: #4b5563;
    border-color: #d1d5db;
}

.status-badge.te-laat {
    background: #fff6e8;
    color: #8a4c00;
    border-color: #f1cd9f;
}

.status-badge.pending {
    background: #fff6e8;
    color: #8a4c00;
    border-color: #f1cd9f;
}

.status-badge.failed {
    background: #fde9ee;
    color: #9a2649;
    border-color: #f0b8c6;
}

.status-badge.credit-nota {
    background: #fff0f3;
    color: #9a2649;
    border-color: #f0b8c6;
}

.invoice-form-card {
    max-width: 1100px;
}

.invoice-form-card h1 {
    margin-bottom: 0.2rem;
}

.invoice-form-intro {
    margin: 0 0 0.6rem;
    color: var(--muted);
}

.customer-form-card {
    max-width: 760px;
}

.settings-card {
    max-width: 760px;
    margin-inline: auto;
}

.settings-intro {
    margin: 0 0 0.65rem;
    color: var(--muted);
}

.settings-form {
    display: grid;
    gap: 0.9rem;
}

.settings-group {
    border: 1px solid #d2deea;
    border-radius: 0.75rem;
    background: #f8fbfe;
    padding: 0.78rem;
}

.settings-group h2 {
    margin: 0 0 0.55rem;
    font-size: 1.02rem;
    color: #1a3a56;
}

.settings-grid {
    display: grid;
    gap: 0.65rem 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.settings-grid.one-col {
    grid-template-columns: 1fr;
}

.settings-field {
    display: grid;
    gap: 0.28rem;
}

.settings-field.full-row {
    grid-column: 1 / -1;
}

.settings-field label {
    margin: 0;
    font-size: 0.9rem;
    color: #32546f;
    font-weight: 650;
}

.settings-logo-preview {
    display: grid;
    gap: 0.45rem;
    justify-items: start;
}

.settings-logo-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr);
}

.settings-logo-box {
    width: 100%;
    max-width: 260px;
    min-height: 130px;
    background: #d9e3ef;
    border: 1px solid #c8d7e7;
    border-radius: 0.5rem;
    display: grid;
    place-items: center;
    padding: 0.75rem;
}

.settings-logo-image {
    width: 100%;
    max-width: 170px;
    max-height: 90px;
    object-fit: contain;
}

.customer-form {
    grid-template-columns: 1fr;
}

.hint {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.active-line-indicator {
    margin: 0;
    font-size: 0.86rem;
    color: #244b6a;
    font-weight: 650;
}

.invoice-detail-card {
    max-width: 860px;
}

.invoice-detail-compact {
    max-width: 980px;
}

.invoice-detail-compact .invoice-form-intro {
    margin-top: 0.1rem;
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
}

.invoice-detail-compact .entry-top-grid {
    gap: 0.7rem;
}

.invoice-detail-compact .entry-panel {
    gap: 0.45rem;
    padding: 0.68rem;
}

.invoice-detail-compact .entry-logo-box {
    width: 120px;
    height: 98px;
}

.invoice-detail-compact .entry-logo {
    width: 64px;
}

.invoice-detail-compact .entry-fields-stack {
    gap: 0.32rem;
}

.checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-right: 1rem;
    font-weight: 600;
}

.checkbox-field input[type="checkbox"] {
    width: auto;
    min-width: 1rem;
    margin: 0;
    padding: 0;
    border-radius: 0.2rem;
    flex: 0 0 auto;
}

.vat-admin-form {
    margin-bottom: 1rem;
}

.vat-checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.vat-checkbox-field input[type="checkbox"] {
    width: auto;
    min-width: 1rem;
    margin: 0;
    padding: 0;
    border-radius: 0.2rem;
    flex: 0 0 auto;
}

.vat-schemes-table td .vat-checkbox-field {
    margin: 0;
}

.vat-schemes-table td input[type="text"],
.vat-schemes-table td input[type="number"] {
    margin: 0;
}

.smtp-security-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    align-items: center;
}

.smtp-security-options .hint {
    width: 100%;
    margin-top: 0.15rem;
}

.invoice-detail-compact .entry-static-field {
    padding: 0.5rem 0.6rem;
    min-height: 36px;
    font-size: 0.92rem;
}

.invoice-detail-compact .entry-meta {
    padding: 0.62rem 0.75rem;
}

.invoice-detail-compact .entry-meta h2 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
}

.invoice-detail-compact .entry-meta-grid {
    grid-template-columns: 165px 1fr;
    gap: 0.24rem 0.6rem;
}

.invoice-detail-compact .entry-line-items {
    margin-top: 0.75rem;
}

.invoice-detail-compact .entry-line-header span,
.invoice-detail-compact .entry-line-row > * {
    padding: 0.36rem;
}

.invoice-detail-compact .entry-line-cell {
    min-height: 36px;
}

.invoice-detail-compact .entry-totals {
    margin-top: 0.75rem;
}

.invoice-detail-compact .totals-grid p,
.invoice-detail-compact .totals-grid output {
    padding: 0.42rem 0.5rem;
}

.invoice-headline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 0;
}

.meta-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.meta-value {
    margin: 0.15rem 0 0;
    font-size: 1.02rem;
    font-weight: 650;
}

.invoice-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin: 0.6rem 0 1rem;
}

.invoice-total-box {
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: var(--surface-soft);
    padding: 0.9rem 1rem;
    width: min(320px, 100%);
    margin-bottom: 1rem;
}

.invoice-total-box p {
    margin: 0;
}

.grand-total {
    margin-top: 0.3rem;
    font-size: 1.35rem;
    font-weight: 800;
}

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

.danger-button:hover {
    background: #8f1a25;
}

.invoice-form {
    grid-template-columns: 1fr;
    column-gap: 1rem;
    row-gap: 1rem;
}

.invoice-form label {
    margin-top: 0.2rem;
}

.invoice-form-readonly fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.invoice-detail-readonly .invoice-form-readonly :disabled {
    opacity: 1;
    color: var(--text);
    cursor: default;
}

.invoice-detail-readonly .invoice-form-readonly input:disabled,
.invoice-detail-readonly .invoice-form-readonly select:disabled,
.invoice-detail-readonly .invoice-form-readonly textarea:disabled {
    background: #f8fbfe;
    border-color: #c8d7e7;
}

.invoice-detail-readonly .invoice-form-readonly .entry-line-row input:disabled,
.invoice-detail-readonly .invoice-form-readonly .entry-line-row select:disabled {
    background: #ffffff;
}

.invoice-detail-utilities {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.55rem;
}

.invoice-detail-actions {
    display: grid;
    gap: 0.55rem;
    align-items: start;
}

.invoice-detail-email-row {
    display: block;
    border: 1px solid #d5e1ec;
    border-radius: 0.8rem;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9fd 100%);
    padding: 0.5rem;
}

.invoice-email-form {
    display: grid;
    grid-template-columns: minmax(14rem, 1fr) auto;
    align-items: center;
    gap: 0.4rem;
    max-width: 34rem;
}

.invoice-email-form input {
    min-width: 0;
    width: 100%;
    border: 1px solid #c9d8e7;
    background: #ffffff;
    line-height: 1.2;
}

.invoice-detail-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    border: 1px solid #d5e1ec;
    border-radius: 0.8rem;
    background: #fbfdff;
    padding: 0.5rem;
}

.invoice-detail-button-row .inline-form {
    display: inline-flex;
}

.invoice-detail-button-row .secondary,
.invoice-detail-button-row button,
.invoice-email-form button {
    min-width: 8.2rem;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.92rem;
    line-height: 1.1;
}

.invoice-detail-actions .with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.invoice-detail-actions .with-icon i {
    font-size: 0.88rem;
    line-height: 1;
}

.invoice-detail-actions .with-icon span {
    line-height: 1.1;
}

.invoice-detail-status-line,
.invoice-detail-credit,
.invoice-detail-note {
    margin: 0;
}

.invoice-detail-status-line {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #2a4a65;
    font-weight: 620;
    font-size: 0.93rem;
}

.invoice-detail-credit,
.invoice-detail-note {
    color: #48657d;
    font-size: 0.9rem;
    line-height: 1.35;
}

.invoice-detail-danger {
    margin: 0;
}

@media (max-width: 640px) {
    .invoice-email-form {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .invoice-detail-button-row {
        display: grid;
        grid-template-columns: 1fr;
        padding: 0.45rem;
    }

    .invoice-detail-button-row .secondary,
    .invoice-detail-button-row .inline-form,
    .invoice-detail-button-row .inline-form button,
    .invoice-email-form button {
        min-width: 0;
        width: 100%;
    }

    .invoice-detail-status-line {
        flex-wrap: wrap;
    }
}

.entry-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.entry-panel {
    display: grid;
    gap: 0.6rem;
    padding: 0.9rem;
    border: 1px solid #d2deea;
    border-radius: 0.75rem;
    background: #f8fbfe;
}

.entry-panel-header {
    display: grid;
    gap: 0.1rem;
}

.entry-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 760;
    color: #18344c;
}

.entry-panel-subtitle {
    margin: 0;
    font-size: 0.84rem;
    color: #4d6b84;
}

.customer-lock-status {
    margin: -0.1rem 0 0.2rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid #b7cfe2;
    border-radius: 0.45rem;
    background: #eef6fd;
    color: #204664;
    font-size: 0.78rem;
    font-weight: 700;
}

#customer_entry_panel.is-locked {
    border-color: #9dbbd3;
    background: #f4f9fe;
}

#customer_entry_panel.is-locked .entry-fields-stack input[readonly],
#customer_entry_panel.is-locked .entry-fields-stack select:disabled {
    background: #e8f1f9;
    border-color: #b8ccdc;
    color: #274963;
}

.entry-logo-box {
    width: 140px;
    height: 120px;
    background: #d9e3ef;
    border: 1px solid #c8d7e7;
    border-radius: 0.3rem;
    display: grid;
    place-items: center;
}

.entry-logo {
    width: 74px;
    height: auto;
}

.entry-fields-stack {
    display: grid;
    gap: 0.4rem;
}

.entry-fields-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.entry-fields-stack label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

#existing_customer_lookup {
    border-style: dashed;
    border-color: #7fa8c7;
    background: #f8fbff;
}

.lookup-match-wrap {
    position: relative;
}

.lookup-match-wrap #existing_customer_lookup {
    padding-right: 2.3rem;
}

#existing_customer_lookup.is-matched {
    border-color: #4c9d63;
    background: #f2fbf4;
}

.lookup-match-icon {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    transform: translateY(-50%);
    background: #4c9d63;
    pointer-events: none;
}

.lookup-match-icon::after {
    content: "";
    position: absolute;
    left: 0.32rem;
    top: 0.18rem;
    width: 0.34rem;
    height: 0.6rem;
    border: solid #ffffff;
    border-width: 0 0.14rem 0.14rem 0;
    transform: rotate(45deg);
}

.entry-fields-stack input[readonly] {
    background: #f3f6fa;
}

.entry-static-field {
    margin: 0;
    padding: 0.68rem;
    border: 1px solid #9db6ca;
    border-radius: 0.5rem;
    background: #f3f6fa;
    color: var(--text);
    min-height: 42px;
    display: flex;
    align-items: center;
}

.entry-fields-stack.compact {
    grid-template-columns: 1fr 1fr;
}

.entry-meta {
    margin-top: 0;
    border: 1px solid #d2deea;
    border-radius: 0.75rem;
    background: #f8fbfe;
    padding: 0.75rem 0.85rem;
}

.entry-section-head {
    margin: 0 0 0.3rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3e617f;
}

.entry-meta h2 {
    margin: 0 0 0.5rem;
    font-size: 1.7rem;
    letter-spacing: 0.03em;
}

.entry-meta-grid {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 0.35rem 0.8rem;
    align-items: center;
}

.entry-line-items {
    margin-top: 1rem;
    border: 1px solid #a9bdd0;
    border-radius: 0.7rem;
    overflow: hidden;
    background: #fff;
}

.entry-line-header,
.entry-line-row {
    display: grid;
    grid-template-columns: 2.1fr 1fr 0.7fr 0.8fr 1fr 1fr 0.8fr;
}

.entry-line-header.entry-line-header-editable,
.entry-line-row.entry-line-row-editable {
    grid-template-columns: 64px minmax(250px, 2fr) minmax(140px, 1fr) minmax(86px, 0.68fr) minmax(96px, 0.78fr) minmax(120px, 0.95fr) minmax(140px, 1fr) 120px;
}

.entry-line-header.entry-line-header-editable span {
    white-space: nowrap;
}

.entry-line-header.entry-line-header-editable span:nth-child(7),
.entry-line-row.entry-line-row-editable > :nth-child(7) {
    text-align: right;
}

.entry-line-header.entry-line-header-editable span:nth-child(5),
.entry-line-row.entry-line-row-editable > :nth-child(5) {
    text-align: right;
}

.entry-line-header.entry-line-header-editable span:nth-child(4),
.entry-line-row.entry-line-row-editable > :nth-child(4) {
    text-align: right;
}

.entry-line-header {
    background: #ecf3fa;
    font-size: 0.82rem;
    font-weight: 700;
}

.entry-line-header span,
.entry-line-row > * {
    border-right: 1px solid #b8c8d8;
    padding: 0.45rem;
}

.entry-line-header span:last-child,
.entry-line-row > *:last-child {
    border-right: 0;
}

.entry-line-row {
    border-top: 1px solid #b8c8d8;
}

.entry-line-row.is-active {
    background: #edf6ff;
    box-shadow: inset 0 0 0 2px #6ea6d8;
}

#invoice-lines .entry-line-row:nth-child(even) {
    background: #fbfdff;
}

.entry-billing-grid {
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: start;
}

.entry-billing-grid .entry-line-items,
.entry-billing-grid .entry-totals {
    margin-top: 0;
}

.entry-billing-grid .entry-totals {
    position: static;
}

.entry-line-row-readonly {
    grid-template-columns: 2.1fr 1fr 0.7fr 0.8fr 1fr 1fr 0.8fr;
}

.entry-line-cell {
    margin: 0;
    padding: 0.45rem;
    border-right: 1px solid #3f4c59;
    display: grid;
    align-items: center;
    min-height: 42px;
}

.entry-line-cell:last-child {
    border-right: 0;
}

.entry-line-cell-amount {
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.entry-line-row input,
.entry-line-row select {
    border: 0;
    border-radius: 0;
    background: #fff;
    min-height: 42px;
}

.entry-line-field {
    display: grid;
    align-items: center;
}

.entry-line-field > input,
.entry-line-field > select,
.entry-line-field > output,
.entry-line-field > button {
    width: 100%;
}

.entry-line-row .article-lookup {
    background: #f8fbff;
    border-style: dashed;
    border-color: #7fa8c7;
}

.entry-line-row input[name="unit_price[]"] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.entry-line-row input[name="quantity[]"] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.line-number {
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #385772;
    background: #f0f5fb;
}

.entry-line-controls {
    padding: 0.75rem;
    border-top: 1px solid #b8c8d8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    background: #f5f9fd;
}

.line-remove {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0.5rem 0.6rem;
    background: #f2f6fa;
    border: 1px solid #a8bccf;
    color: #23415a;
    border-radius: 0.4rem;
}

.line-amount {
    display: grid;
    align-items: center;
    justify-content: end;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.entry-totals {
    margin-top: 1rem;
    border: 1px solid #a9bdd0;
    border-radius: 0.7rem;
    overflow: hidden;
}

.totals-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.totals-grid p,
.totals-grid output {
    margin: 0;
    padding: 0.5rem 0.6rem;
    border-right: 1px solid #b8c8d8;
    border-bottom: 1px solid #b8c8d8;
}

.totals-grid .totals-label {
    text-align: left;
}

.totals-grid .totals-value {
    border-right: 0;
    text-align: right;
}

.totals-grid .payable,
.totals-grid .grand {
    font-weight: 800;
    background: #edf4fb;
}

.vat-split-inline {
    display: contents;
}

.vat-inline-label,
.vat-inline-value {
    margin: 0;
    padding: 0.5rem 0.6rem;
    border-right: 1px solid #b8c8d8;
    border-bottom: 1px solid #b8c8d8;
}

.vat-inline-value {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.invoice-bottom-grid {
    margin-top: 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.8rem;
}

.invoice-bottom-card {
    border: 1px solid #d2deea;
    border-radius: 0.7rem;
    padding: 0.75rem;
    background: #f8fbfe;
}

.invoice-bottom-card label {
    margin-top: 0;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 45, 0.58);
    display: none;
    place-items: center;
    z-index: 50;
    padding: 1rem;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-card {
    width: min(560px, 100%);
    background: #ffffff;
    border-radius: 0.9rem;
    border: 1px solid #c4d6e7;
    box-shadow: 0 30px 60px rgba(16, 38, 59, 0.35);
    padding: 1rem;
    display: grid;
    gap: 0.65rem;
}

.modal-card h3 {
    margin: 0;
    color: #18344c;
}

.modal-copy {
    margin: 0;
    color: #47657e;
    font-size: 0.95rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0.45rem 0.7rem;
    align-items: center;
}

.modal-grid label {
    margin: 0;
    font-weight: 600;
    color: #2d4d67;
}

.modal-error {
    margin: 0;
    color: #a11d2a;
    font-size: 0.9rem;
    font-weight: 650;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

.vat-inline-value {
    border-right: 0;
    text-align: right;
}

textarea {
    width: 100%;
    padding: 0.68rem;
    border: 1px solid #9db6ca;
    border-radius: 0.5rem;
    background: #ffffff;
    color: var(--text);
}

textarea:focus {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.invoice-form .hero-actions {
    grid-column: 1 / -1;
}

select {
    width: 100%;
    padding: 0.68rem;
    border: 1px solid #9db6ca;
    border-radius: 0.5rem;
    background: #ffffff;
    color: var(--text);
}

select:focus {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.floating-tools {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.help-fab,
.feedback-fab {
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #8db4cf;
    background: #f4f9fc;
    color: #214a69;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(14, 60, 95, 0.22);
}

.help-fab:hover,
.feedback-fab:hover {
    background: #e9f4fb;
    color: #173955;
}

.feedback-fab {
    border-color: #9fb8cc;
    background: #f7fbff;
}

.help-fab i,
.feedback-fab i {
    font-size: 0.95rem;
}

.help-center-flow {
    margin: 0;
    padding-left: 1.1rem;
}

.help-center-flow li {
    margin-bottom: 0.35rem;
}

.title-row h1 {
    margin: 0;
}

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

.list-search-form {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin: 0;
}

.list-search-form input[type="search"] {
    width: min(320px, 62vw);
    min-width: 220px;
    margin: 0;
}

.list-search-form .per-page-select {
    width: auto;
    min-width: 132px;
    padding: 0.5rem 0.55rem;
    margin: 0;
}

.list-search-form .secondary {
    margin: 0;
}

.features h2 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.92fr) minmax(320px, 1fr);
    gap: 1rem;
    align-items: start;
}

.auth-intro {
    background: rgba(20, 121, 201, 0.94);
    color: #eff8ff;
    border-radius: 1rem;
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.auth-intro h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.auth-intro p {
    margin: 0;
}

.demo-login-callout {
    margin-top: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 0.85rem;
    background: rgba(8, 56, 90, 0.42);
    padding: 0.85rem 0.9rem;
}

.demo-login-callout h2 {
    margin: 0 0 0.4rem;
    font-size: 1.08rem;
    color: #ffffff;
}

.demo-login-callout p {
    margin: 0 0 0.45rem;
    color: #eef7ff;
}

.demo-login-callout p:last-child {
    margin-bottom: 0;
}

.auth-card h2 {
    margin-top: 0;
    margin-bottom: 0.9rem;
}

.captcha-wrap {
    margin: 0.45rem 0 0.2rem;
}

.native-captcha-wrap {
    display: grid;
    gap: 0.42rem;
    justify-items: start;
}

.beta-terms-consent {
    margin: 0.2rem 0 0.25rem;
    padding: 0.7rem;
    border: 1px solid #c9dced;
    border-radius: 0.7rem;
    background: #f6fbff;
    display: grid;
    gap: 0.5rem;
}

.beta-terms-consent .checkbox-field {
    margin-top: 0.05rem;
}

.beta-terms-modal {
    width: min(760px, 100%);
}

.beta-terms-scroll {
    max-height: min(58vh, 420px);
    overflow-y: auto;
    border: 1px solid #c9dced;
    border-radius: 0.65rem;
    padding: 0.8rem;
    background: #f8fbff;
}

.beta-terms-scroll h4 {
    margin: 0.3rem 0 0.3rem;
    color: #1d3f5a;
}

.beta-terms-scroll p {
    margin: 0 0 0.55rem;
    color: #33536b;
}

.native-captcha-image {
    width: min(100%, 220px);
    height: auto;
    border: 1px solid #aecae1;
    border-radius: 0.55rem;
    background: #f8fbff;
}

.captcha-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.captcha-actions .secondary {
    margin: 0;
}

form {
    display: grid;
    gap: 0.55rem;
}

input {
    width: 100%;
    padding: 0.68rem;
    border: 1px solid #9db6ca;
    border-radius: 0.5rem;
    background: #ffffff;
    color: var(--text);
}

input:hover {
    border-color: #7ba0bc;
}

input:focus,
button:focus,
a:focus {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.alerts {
    margin-bottom: 1rem;
}

.alert {
    padding: 0.8rem;
    border-radius: 0.55rem;
    margin-bottom: 0.5rem;
}

.alert.error {
    background: #f9d9dd;
    color: var(--danger);
}

.alert.success {
    background: #dff5e6;
    color: var(--ok);
}

.danger-zone {
    border: 1px solid #e9bec4;
    background: linear-gradient(145deg, #fff7f8, #fff3f5);
}

.danger-button {
    background: linear-gradient(145deg, #b93647, #9f2031);
    border-color: rgba(119, 17, 31, 0.5);
}

.danger-button:hover {
    background: linear-gradient(145deg, #a72839, #8a1828);
}

@media (max-width: 860px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        padding-top: 0.68rem;
    }

    .shell {
        width: min(1100px, calc(100vw - 1.2rem));
    }

    .site-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
        padding: 0.58rem 0.68rem;
        border-radius: 0.9rem;
    }

    .site-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.34rem;
        overflow-x: visible;
        padding: 0.3rem;
    }

    .site-nav > a,
    .site-nav .button-link,
    .site-nav .user-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav .nav-group {
        width: 100%;
    }

    .site-nav .nav-group summary {
        width: 100%;
        justify-content: space-between;
    }

    .site-nav .nav-submenu {
        position: static;
        margin-top: 0.28rem;
        min-width: 0;
        box-shadow: none;
        border-radius: 0.62rem;
        padding: 0.3rem;
    }

    .site-nav .nav-submenu a {
        width: 100%;
    }

    .hero {
        padding: 1.4rem;
    }

    .landing-stack {
        gap: var(--section-gap-mobile);
        margin-top: 0;
    }

    .hero-actions > * {
        width: 100%;
        justify-content: center;
    }

    .about-story-layout {
        grid-template-columns: 1fr;
    }

    .dashboard,
    .auth-card,
    .features article {
        padding: 1rem;
    }

    .auth-intro {
        padding: 1rem;
    }

    .invoice-form {
        grid-template-columns: 1fr;
    }

    .entry-top-grid {
        grid-template-columns: 1fr;
    }

    .entry-fields-stack.compact {
        grid-template-columns: 1fr;
    }

    .entry-fields-inline {
        grid-template-columns: 1fr;
    }

    .entry-billing-grid {
        grid-template-columns: 1fr;
    }

    .entry-billing-grid .entry-totals {
        position: static;
    }

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

    .entry-line-header,
    .entry-line-row {
        grid-template-columns: 1fr;
    }

    .entry-line-header {
        display: none;
    }

    .entry-line-row > * {
        border-right: 0;
        border-bottom: 1px solid #b8c8d8;
    }

    .entry-line-cell {
        border-right: 0;
    }

    .entry-line-row > *:last-child {
        border-bottom: 0;
    }

    .entry-line-row.entry-line-row-editable {
        border-top: 1px solid #b8c8d8;
    }

    .entry-line-row.entry-line-row-editable > * {
        display: grid;
        grid-template-columns: minmax(90px, 130px) 1fr;
        align-items: center;
        gap: 0.5rem;
    }

    .entry-line-row.entry-line-row-editable > *::before {
        content: attr(data-label);
        color: #48657d;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .entry-line-row.entry-line-row-editable .entry-line-field > input,
    .entry-line-row.entry-line-row-editable .entry-line-field > select,
    .entry-line-row.entry-line-row-editable .entry-line-field > output,
    .entry-line-row.entry-line-row-editable .entry-line-field > button {
        width: 100%;
        min-width: 0;
    }

    .entry-line-row-readonly > * {
        display: grid;
        grid-template-columns: minmax(90px, 130px) 1fr;
        align-items: center;
        gap: 0.5rem;
    }

    .entry-line-row-readonly > *::before {
        color: #48657d;
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .entry-line-row-readonly > :nth-child(1)::before { content: "Omschrijving"; }
    .entry-line-row-readonly > :nth-child(2)::before { content: "Leverdatum"; }
    .entry-line-row-readonly > :nth-child(3)::before { content: "Aantal"; }
    .entry-line-row-readonly > :nth-child(4)::before { content: "Tarief"; }
    .entry-line-row-readonly > :nth-child(5)::before { content: "BTW"; }
    .entry-line-row-readonly > :nth-child(6)::before { content: "Bedrag"; }
    .entry-line-row-readonly > :nth-child(7)::before { content: "Positie"; }

    .title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .title-actions {
        width: 100%;
        justify-content: stretch;
        display: grid;
        gap: 0.45rem;
    }

    .title-actions > * {
        width: 100%;
    }

    .title-actions .with-icon,
    .title-actions .primary,
    .title-actions .secondary,
    .title-actions button {
        justify-content: center;
    }

    .list-search-form {
        width: 100%;
        justify-content: stretch;
    }

    .list-search-form input[type="search"] {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    .list-search-form .per-page-select {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    .list-search-form .secondary,
    .list-search-form button {
        width: 100%;
        justify-content: center;
    }

    table {
        min-width: 560px;
    }

    th,
    td {
        padding: 0.54rem 0.4rem;
    }

    .table-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 0.4rem;
    }

    .table-actions .status-inline-form {
        width: 100%;
    }

    .table-actions .status-inline-form select {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mobile-card-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 0.55rem;
    }

    .mobile-card-table thead {
        display: none;
    }

    .mobile-card-table tbody,
    .mobile-card-table tr,
    .mobile-card-table td {
        display: block;
        width: 100%;
    }

    .mobile-card-table tr {
        border: 1px solid #c8d7e7;
        border-radius: 0.7rem;
        background: #fff;
        padding: 0.45rem 0.55rem;
        box-shadow: 0 6px 16px rgba(16, 42, 67, 0.06);
    }

    .mobile-card-table td {
        border: 0;
        border-bottom: 1px solid #e1e9f1;
        padding: 0.44rem 0;
        text-align: left;
    }

    .mobile-card-table td:last-child {
        border-bottom: 0;
    }

    .mobile-card-table td::before {
        content: attr(data-label);
        display: block;
        color: #48657d;
        font-size: 0.77rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        margin-bottom: 0.14rem;
    }

    .mobile-card-table td.money {
        text-align: left;
    }

    .vat-schemes-table td .vat-checkbox-field {
        justify-content: flex-start;
    }

    .invoice-email-form {
        width: 100%;
    }

    .invoice-email-form input[type="email"] {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .invoice-detail-actions {
        gap: 0.55rem;
    }

    .invoice-email-form {
        width: 100%;
        max-width: none;
        grid-template-columns: 1fr;
    }

    .invoice-detail-button-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .invoice-detail-button-row .secondary,
    .invoice-detail-button-row .inline-form,
    .invoice-detail-button-row .inline-form button,
    .invoice-email-form button {
        min-width: 0;
        width: 100%;
    }

    .articles-table {
        min-width: 560px;
    }

    .invoice-bottom-grid {
        grid-template-columns: 1fr;
    }

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

    .invoice-headline {
        flex-direction: column;
    }

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

    .settings-logo-grid {
        grid-template-columns: 1fr;
    }

    .settings-field.full-row {
        grid-column: auto;
    }

    .list-pagination {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .list-pagination .secondary {
        min-width: 45%;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .shell {
        width: min(1100px, calc(100vw - 0.8rem));
    }

    .brand-logo {
        width: 48px;
    }

    .brand-name {
        font-size: 0.96rem;
    }

    .site-nav a,
    .site-nav .nav-group summary {
        font-size: 0.9rem;
        padding: 0.5rem 0.62rem;
    }

    .hero {
        padding: 1.05rem;
    }

    .dashboard,
    .auth-card,
    .features article {
        padding: 0.88rem;
        border-radius: 0.88rem;
    }

    .kpi-value {
        font-size: 1.45rem;
    }

    .financial-value {
        font-size: 1.05rem;
    }

    .list-pagination .secondary {
        min-width: 0;
        width: 100%;
    }
}

@media print {
    @page {
        size: A4;
        margin: 8mm;
    }

    .backdrop,
    .site-header,
    .alerts {
        display: none !important;
    }

    .print-hide {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    body {
        background: #fff;
        color: #3f3f3f;
        font-size: 10pt;
        line-height: 1.32;
        font-family: "Manrope", "Segoe UI", sans-serif;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .container.shell {
        width: 100%;
        margin: 0;
        padding: 0;
        max-width: none;
    }

    .dashboard,
    .invoice-detail-card,
    .invoice-form-card {
        box-shadow: none;
        border: 0;
        padding: 0;
        background: #fff;
    }

    .invoice-form-card > *:not(.invoice-print-sheet) {
        display: none !important;
    }

    .invoice-print-sheet {
        display: block;
        width: 100%;
        max-width: 190mm;
        margin: 0 auto;
        padding: 0 2mm;
        color: #4a4a4a;
        position: relative;
    }

    .invoice-print-demo-badge {
        margin: 0 0 3mm;
        display: inline-block;
        padding: 1.1mm 3.8mm;
        border: 0.45mm solid #9c2a37;
        border-radius: 1mm;
        color: #9c2a37;
        font-size: 10pt;
        font-weight: 800;
        letter-spacing: 0.9mm;
        text-transform: uppercase;
    }

    .invoice-print-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        margin: 1mm 0 4.5mm;
    }

    .invoice-print-header h1 {
        margin: 0;
        font-size: 18.5mm;
        font-weight: 800;
        letter-spacing: 0.2px;
        color: #0aa7b7;
        text-transform: none;
    }

    .invoice-print-logo-wrap {
        width: 25mm;
        height: 25mm;
        border-radius: 50%;
        background: #f4b223;
        display: grid;
        place-items: center;
        overflow: hidden;
    }

    .invoice-print-logo {
        width: 15.5mm;
        height: auto;
        object-fit: contain;
    }

    .invoice-print-divider {
        border-top: 0.8mm solid #0aa7b7;
        margin: 4.5mm 0;
    }

    .invoice-print-meta-grid {
        display: grid;
        grid-template-columns: 1fr 66mm;
        gap: 9mm;
        align-items: start;
        margin-bottom: 6mm;
    }

    .invoice-print-address-block h3,
    .invoice-print-info h3,
    .invoice-print-footer h4 {
        margin: 0 0 1.2mm;
        font-size: 10.2pt;
        font-weight: 800;
        color: #222;
    }

    .invoice-print-address-block p,
    .invoice-print-info p,
    .invoice-print-factbox p,
    .invoice-print-footer p {
        margin: 0;
        font-size: 9.2pt;
        line-height: 1.34;
    }

    .invoice-print-address-block.customer {
        margin-bottom: 6.5mm;
    }

    .invoice-print-factbox {
        background: #efefef;
        padding: 2.6mm 3.4mm;
    }

    .invoice-print-factbox p {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 2.4mm;
        margin-bottom: 0.9mm;
    }

    .invoice-print-factbox p span {
        color: #555;
    }

    .invoice-print-factbox p strong {
        color: #3d3d3d;
        font-weight: 600;
    }

    .invoice-print-factbox p.due strong {
        font-weight: 800;
        letter-spacing: 0.2px;
    }

    .invoice-print-info {
        margin-bottom: 5.2mm;
    }

    .invoice-print-info p {
        color: #6d6d6d;
    }

    .invoice-print-lines {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1mm;
        table-layout: fixed;
    }

    .invoice-print-lines col:nth-child(1) {
        width: 26%;
    }

    .invoice-print-lines col:nth-child(2) {
        width: 10%;
    }

    .invoice-print-lines col:nth-child(3) {
        width: 11%;
    }

    .invoice-print-lines col:nth-child(4) {
        width: 14%;
    }

    .invoice-print-lines col:nth-child(5) {
        width: 9%;
    }

    .invoice-print-lines col:nth-child(6) {
        width: 13%;
    }

    .invoice-print-lines col:nth-child(7) {
        width: 17%;
    }

    .invoice-print-lines th,
    .invoice-print-lines td {
        border-bottom: 0.24mm solid #d4d4d4;
        padding: 2mm 1.1mm;
        font-size: 9pt;
        text-align: left;
        background: #fff;
        color: #5a5a5a;
    }

    .invoice-print-lines th {
        font-weight: 800;
        color: #333;
    }

    .invoice-print-lines td:nth-child(n + 2),
    .invoice-print-lines th:nth-child(n + 2) {
        text-align: right;
    }

    .invoice-print-lines td:first-child,
    .invoice-print-lines th:first-child {
        text-align: left;
    }

    .invoice-print-totals {
        width: 70mm;
        margin: 3.6mm 0 0 auto;
    }

    .invoice-print-totals p {
        margin: 0;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 2.5mm;
        padding: 1.2mm 0;
        font-size: 10.2pt;
        font-weight: 700;
        color: #111;
    }

    .invoice-print-totals p.grand {
        color: #03a6bb;
        font-weight: 800;
    }

    .invoice-print-footer {
        margin-top: 16mm;
        border-top: 0.24mm solid #969696;
        padding-top: 3.6mm;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 7.2mm;
    }

    .invoice-print-footer h4 {
        margin-bottom: 1mm;
        font-size: 9.2pt;
        font-weight: 800;
    }

    .invoice-print-footer p {
        font-size: 8.5pt;
        line-height: 1.34;
    }

    .invoice-print-bottom-bar {
        margin-top: 3.6mm;
        height: 5.2mm;
        background: #0aa7b7;
    }

    .entry-top-grid,
    .entry-meta,
    .entry-line-items,
    .entry-totals,
    .invoice-bottom-grid,
    .entry-panel,
    .entry-form-intro {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .floating-tools {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .help-fab,
    .feedback-fab {
        justify-content: center;
    }
}
