/* BUCCS banking UI. Self-contained. Does not extend Color Admin. */
:root {
    --bk-navy: #0c2340;
    --bk-navy-2: #16365c;
    --bk-blue: #1d4e89;
    --bk-blue-soft: #e8f0f8;
    --bk-ink: #142033;
    --bk-muted: #5c6c7d;
    --bk-faint: #8b9aab;
    --bk-line: #d7e0ea;
    --bk-line-strong: #c5d0dc;
    --bk-table-border: rgba(128, 128, 128, 0.7);
    --bk-canvas: #e7eef5;
    --bk-surface: #ffffff;
    --bk-sunken: #f5f8fb;
    --bk-success: #1f7a4d;
    --bk-success-bg: #e8f6ee;
    --bk-warning: #9a6700;
    --bk-warning-bg: #fff6e0;
    --bk-danger: #a3262e;
    --bk-danger-bg: #fdecee;
    --bk-info: #1d4e89;
    --bk-info-bg: #e8f0f8;
    --bk-focus: rgba(29, 78, 137, 0.18);
    --bk-shadow: 0 1px 2px rgba(12, 35, 64, 0.04), 0 10px 28px rgba(12, 35, 64, 0.05);
    --bk-shadow-pop: 0 16px 40px rgba(12, 35, 64, 0.16);
    --bk-radius: 6px;
    --bk-top: 64px;
    --bk-font: "Inter", "Segoe UI", sans-serif;
}
html[data-theme="teal"] {
    --bk-navy: #039c81;
    --bk-navy-2: #027a65;
    --bk-blue: #028970;
    --bk-blue-soft: #e6f7f3;
    --bk-canvas: #e8f4f1;
    --bk-sunken: #f2faf8;
    --bk-line: #cfe6e0;
    --bk-line-strong: #b5d6ce;
    --bk-info: #028970;
    --bk-info-bg: #e6f7f3;
    --bk-focus: rgba(3, 156, 129, 0.2);
    --bk-shadow: 0 1px 2px rgba(3, 156, 129, 0.05), 0 10px 28px rgba(3, 156, 129, 0.08);
    --bk-shadow-pop: 0 16px 40px rgba(3, 156, 129, 0.16);
}
html[data-theme="orange"] {
    --bk-navy: #f26838;
    --bk-navy-2: #d45528;
    --bk-blue: #e05a2c;
    --bk-blue-soft: #fff1eb;
    --bk-canvas: #f7efe9;
    --bk-sunken: #fbf6f2;
    --bk-line: #ead8cf;
    --bk-line-strong: #dcc4b7;
    --bk-info: #e05a2c;
    --bk-info-bg: #fff1eb;
    --bk-focus: rgba(242, 104, 56, 0.2);
    --bk-shadow: 0 1px 2px rgba(242, 104, 56, 0.05), 0 10px 28px rgba(242, 104, 56, 0.08);
    --bk-shadow-pop: 0 16px 40px rgba(242, 104, 56, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
}
html, body { margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
body.bk-body {
    min-height: 100vh;
    background: var(--bk-canvas);
    color: var(--bk-ink);
    font-family: var(--bk-font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--bk-blue); text-decoration: none; }
a:hover { color: var(--bk-navy); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--bk-navy); }

.bk-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.bk-stage {
    flex: 1 0 auto;
    padding: 88px 28px 40px;
}
.bk-footer {
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid var(--bk-line);
    background: var(--bk-surface);
    color: var(--bk-muted);
    font-size: 12px;
}
.bk-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 28px 16px;
}
.bk-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.bk-footer-mark {
    width: 8px;
    height: 28px;
    border-radius: 2px;
    background: var(--bk-navy);
    flex-shrink: 0;
}
.bk-footer-brand strong {
    display: block;
    color: var(--bk-navy);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.bk-footer-brand span {
    display: block;
    color: var(--bk-faint);
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.01em;
}
.bk-footer-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    color: var(--bk-faint);
    text-align: right;
}
.bk-footer-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--bk-line-strong);
    flex-shrink: 0;
}

/* Top bar */
.bk-top {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2000;
    height: var(--bk-top);
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 0 16px 0 0;
    background: var(--bk-surface);
    border-bottom: 1px solid var(--bk-line);
    box-shadow: 0 1px 0 rgba(12, 35, 64, 0.04);
    overflow: visible;
}
.bk-top::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--bk-navy);
}
.bk-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 0 18px;
    background: var(--bk-navy);
    color: #fff;
    min-width: 196px;
}
.bk-brand:hover { color: #fff; }
.bk-brand-mark {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #fff;
}
.bk-auth-side .bk-brand-mark {
    width: 76px;
    height: 76px;
    padding: 6px;
    margin-bottom: 18px;
}
.bk-auth-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    max-width: 380px;
    margin: auto 0;
    text-align: center;
}
.bk-auth-logo-wrap {
    --bk-wave: 255, 255, 255;
    position: relative;
    width: min(280px, 72vw);
    height: min(280px, 72vw);
    display: grid;
    place-items: center;
    cursor: default;
    transition: --bk-wave .35s ease;
}
.bk-auth-wave {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 2px solid rgba(var(--bk-wave), 0.55);
    box-shadow: 0 0 0 0 rgba(var(--bk-wave), 0.28);
    pointer-events: none;
    animation: bk-auth-wave 6.5s ease-out infinite;
}
.bk-auth-wave:nth-child(1) { animation-delay: 0s; }
.bk-auth-wave:nth-child(2) { animation-delay: 2.15s; }
.bk-auth-wave:nth-child(3) { animation-delay: 4.3s; }
.bk-auth-logo {
    position: relative;
    z-index: 1;
    width: min(210px, 58vw);
    height: min(210px, 58vw);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 0 10px rgba(var(--bk-wave), 0.12),
        0 18px 40px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    animation: bk-auth-logo-glow 5.5s ease-in-out infinite;
}
.bk-auth-logo img {
    width: 86%;
    height: 86%;
    object-fit: contain;
    display: block;
}
@keyframes bk-auth-wave {
    0% {
        transform: scale(0.92);
        opacity: 0.7;
        border-color: rgba(var(--bk-wave), 0.7);
        box-shadow: 0 0 0 0 rgba(var(--bk-wave), 0.35);
    }
    70% {
        opacity: 0.2;
        border-color: rgba(var(--bk-wave), 0.25);
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
        border-color: rgba(var(--bk-wave), 0);
        box-shadow: 0 0 0 28px rgba(var(--bk-wave), 0);
    }
}
@keyframes bk-auth-logo-glow {
    0%, 100% {
        box-shadow:
            0 0 0 10px rgba(var(--bk-wave), 0.1),
            0 18px 40px rgba(0, 0, 0, 0.22);
    }
    50% {
        box-shadow:
            0 0 0 16px rgba(var(--bk-wave), 0.22),
            0 0 36px rgba(var(--bk-wave), 0.3),
            0 18px 40px rgba(0, 0, 0, 0.22);
    }
}
@media (prefers-reduced-motion: reduce) {
    .bk-auth-wave,
    .bk-auth-logo {
        animation: none !important;
    }
}
.bk-auth-box {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}
.bk-auth-box-title { padding: 16px 20px; }
.bk-auth-box-lede { padding: 12px 18px; }
.bk-auth-box h1 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.25;
    max-width: none;
}
.bk-auth-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.5;
    max-width: none;
}
.bk-brand strong { display: block; font-size: 14px; letter-spacing: 0.08em; }
.bk-brand small { display: block; font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: 0.02em; }
.bk-menu-btn {
    display: none;
    width: 36px; height: 36px;
    margin-left: 8px;
    border: 1px solid var(--bk-line);
    background: #fff;
    border-radius: 4px;
    color: var(--bk-navy);
}
.bk-nav { display: flex; align-items: stretch; gap: 2px; min-width: 0; flex: 1; overflow: visible; position: relative; z-index: 3; }
.bk-nav-ico { width: 16px; height: 16px; flex: none; }
.bk-nav-link, .bk-drop > button {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}
.bk-nav-link::after, .bk-drop > button::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -13px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--bk-blue);
    transform: scaleX(0);
    transition: transform .2s ease;
}
.bk-nav-link:hover, .bk-drop:hover > button, .bk-drop:focus-within > button, .bk-drop.is-open > button {
    background: var(--bk-blue-soft);
    color: var(--bk-navy);
}
.bk-nav-link:hover::after, .bk-drop:hover > button::after, .bk-drop.is-open > button::after { transform: scaleX(.5); }
.bk-nav-link.is-current, .bk-drop.is-current > button { color: var(--bk-navy); background: #eef3f9; }
.bk-nav-link.is-current::after, .bk-drop.is-current > button::after { transform: scaleX(1); }
.bk-drop:hover .bk-caret, .bk-drop.is-open .bk-caret { transform: rotate(180deg); opacity: 1; }
.bk-user > button::after { display: none; }
.bk-drop { position: relative; z-index: 4; display: flex; align-items: center; overflow: visible; }
.bk-drop:hover, .bk-drop.is-open, .bk-drop:focus-within { z-index: 30; }
.bk-caret {
    width: 14px;
    height: 14px;
    opacity: .55;
    transition: transform .34s cubic-bezier(.16, 1, .3, 1), opacity .2s ease;
}
@keyframes bk-drop-in {
    0% {
        opacity: 0;
        transform: translateY(-12px) scale(.94);
        box-shadow: 0 2px 8px rgba(12, 35, 64, 0.04);
    }
    60% {
        opacity: 1;
        transform: translateY(2px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        box-shadow: var(--bk-shadow-pop);
    }
}
@keyframes bk-drop-item-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.bk-pop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 40;
    min-width: 240px;
    margin-top: 8px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: 10px;
    box-shadow: var(--bk-shadow-pop);
    transform-origin: top left;
    will-change: transform, opacity;
}
.bk-user .bk-pop { transform-origin: top right; }
.bk-pop::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}
.bk-drop.is-open > .bk-pop,
.bk-drop:hover > .bk-pop,
.bk-drop:focus-within > .bk-pop {
    display: block;
    animation: bk-drop-in .34s cubic-bezier(.16, 1, .3, 1) both;
}
.bk-drop.is-open > .bk-pop > *,
.bk-drop:hover > .bk-pop > *,
.bk-drop:focus-within > .bk-pop > * {
    animation: bk-drop-item-in .3s cubic-bezier(.16, 1, .3, 1) both;
}
.bk-drop.is-open > .bk-pop > *:nth-child(1),
.bk-drop:hover > .bk-pop > *:nth-child(1),
.bk-drop:focus-within > .bk-pop > *:nth-child(1) { animation-delay: .03s; }
.bk-drop.is-open > .bk-pop > *:nth-child(2),
.bk-drop:hover > .bk-pop > *:nth-child(2),
.bk-drop:focus-within > .bk-pop > *:nth-child(2) { animation-delay: .06s; }
.bk-drop.is-open > .bk-pop > *:nth-child(3),
.bk-drop:hover > .bk-pop > *:nth-child(3),
.bk-drop:focus-within > .bk-pop > *:nth-child(3) { animation-delay: .09s; }
.bk-drop.is-open > .bk-pop > *:nth-child(4),
.bk-drop:hover > .bk-pop > *:nth-child(4),
.bk-drop:focus-within > .bk-pop > *:nth-child(4) { animation-delay: .12s; }
.bk-drop.is-open > .bk-pop > *:nth-child(5),
.bk-drop:hover > .bk-pop > *:nth-child(5),
.bk-drop:focus-within > .bk-pop > *:nth-child(5) { animation-delay: .15s; }
.bk-drop.is-open > .bk-pop > *:nth-child(6),
.bk-drop:hover > .bk-pop > *:nth-child(6),
.bk-drop:focus-within > .bk-pop > *:nth-child(6) { animation-delay: .18s; }
.bk-drop.is-open > .bk-pop > *:nth-child(7),
.bk-drop:hover > .bk-pop > *:nth-child(7),
.bk-drop:focus-within > .bk-pop > *:nth-child(7) { animation-delay: .21s; }
.bk-drop.is-open > .bk-pop > *:nth-child(8),
.bk-drop:hover > .bk-pop > *:nth-child(8),
.bk-drop:focus-within > .bk-pop > *:nth-child(8) { animation-delay: .24s; }
.bk-drop.is-open > .bk-pop > *:nth-child(n+9),
.bk-drop:hover > .bk-pop > *:nth-child(n+9),
.bk-drop:focus-within > .bk-pop > *:nth-child(n+9) { animation-delay: .27s; }
.bk-pop a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--bk-ink);
    font-size: 13px;
    font-weight: 550;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, padding-left .18s ease;
}
.bk-pop a:hover, .bk-pop a:focus-visible {
    background: var(--bk-blue-soft);
    color: var(--bk-navy);
    outline: 0;
    transform: translateX(2px);
}
.bk-pop a:hover::before, .bk-pop a:focus-visible::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--bk-blue);
    animation: bk-drop-bar .22s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes bk-drop-bar {
    from { transform: scaleY(0); opacity: 0; }
    to { transform: scaleY(1); opacity: 1; }
}
.bk-pop a[href="#"] { color: var(--bk-faint); }
.bk-pop-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 10px 12px 6px;
    border-top: 1px solid #eef2f6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--bk-navy);
}
.bk-pop-label::before {
    content: "";
    width: 4px;
    height: 12px;
    border-radius: 2px;
    background: var(--bk-blue);
}
.bk-pop > .bk-pop-label:first-child { margin-top: 0; border-top: 0; }
.bk-pop-label + a, .bk-pop-label ~ a { padding-left: 24px; }
.bk-user .bk-pop-label::before { display: none; }
.bk-user .bk-pop-label ~ a { padding-left: 12px; }
.bk-pop-scroll { max-height: 70vh; overflow: auto; }
.bk-end { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; z-index: 4; }
.bk-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--bk-ink);
    cursor: pointer;
}
.bk-refresh-btn:hover {
    border-color: var(--bk-line);
    background: var(--bk-sunken);
}
.bk-refresh-btn:active svg {
    transform: rotate(-45deg);
}
.bk-refresh-btn svg {
    display: block;
    transition: transform .15s ease;
}
.bk-user > button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 8px 0 4px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    color: var(--bk-ink);
    font-weight: 600;
    font-size: 13px;
}
.bk-user > button:hover, .bk-user.is-open > button { border-color: var(--bk-line); background: var(--bk-sunken); }
.bk-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--bk-navy); color: #fff;
    font-size: 12px; font-weight: 700;
}
.bk-user .bk-pop { right: 0; left: auto; min-width: 220px; }
.bk-theme-block {
    margin-top: 6px;
    padding: 0 0 8px;
    border-top: 1px solid #eef2f6;
}
.bk-theme-block .bk-pop-label {
    margin-top: 0;
    border-top: 0;
    padding-top: 10px;
}
.bk-theme-picks {
    display: grid;
    gap: 6px;
    padding: 0 10px 4px;
}
.bk-theme-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--bk-ink);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.bk-theme-pick:hover { background: var(--bk-sunken); }
.bk-theme-pick.is-active {
    border-color: var(--bk-line-strong);
    background: var(--bk-blue-soft);
    color: var(--bk-navy);
}
.bk-theme-swatch {
    width: 16px;
    height: 16px;
    flex: none;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(12, 35, 64, 0.18);
}

/* Page */
.bk-page, #content.content, .container-fluid { max-width: 1800px; margin: 0 auto; }
.bk-pagehead, .page-title-box {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}
.bk-kicker, .breadcrumb {
    margin: 0 0 4px;
    padding: 0;
    list-style: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bk-faint);
    background: transparent;
}
.bk-pagehead h1, h1.page-header, h4.page-title {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.2;
    color: var(--bk-navy);
}
.breadcrumb-item { display: inline; }
.breadcrumb-item + .breadcrumb-item::before { content: " / "; color: var(--bk-faint); }

.bk-card, .panel, .card {
    background: var(--bk-surface);
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow);
    margin-bottom: 16px;
}
.panel-inverse { background: var(--bk-surface); }
.bk-card-bar, .panel-heading, .card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 14px 18px;
    background: #fff;
    color: var(--bk-navy);
    border-bottom: 1px solid var(--bk-line);
    border-radius: var(--bk-radius) var(--bk-radius) 0 0;
    font-weight: 600;
}
.bk-card-bar > .page-header,
.panel-heading > .page-header,
.card-header > .page-header {
    margin: 0 auto 0 0;
    font-size: 22px;
    line-height: 1.2;
}
.bk-card-bar > .btn,
.panel-heading > .btn,
.card-header > .btn { height: 36px; padding: 0 14px; margin-left: auto; }
.bk-card-bar .btn a,
.panel-heading .btn a { color: inherit !important; text-decoration: none; }
.panel-heading-btn { display: none !important; }
.bk-card-body, .panel-body, .card-body { padding: 16px; background: #fff; }
.panel-title, .header-title { font-size: 14px; font-weight: 600; color: var(--bk-navy); }
.bk-card, .panel, .bk-card-bar, .panel-heading { overflow: visible; }
.bk-card-body, .panel-body,
.bk-card-body[style*="overflow"],
.panel-body[style*="overflow"] { overflow: visible !important; }

/* Filters — each field is col-md-3 (25%), not full width */
.bk-filters, .panel-body > .row[style*="background"], .bk-card-body > .row[style*="background"] {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 16px;
    margin: 0 0 20px !important;
    padding: 16px 18px !important;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f6fa 100%) !important;
    border: 1px solid var(--bk-line);
    border-radius: 10px;
}
.bk-card > form > .bk-filters { margin: 18px 18px 0 !important; }
.bk-filters > [class*="col-"],
.panel-body > .row[style*="background"] > [class*="col-"],
.bk-card-body > .row[style*="background"] > [class*="col-"] {
    flex: 0 0 calc(25% - 12px);
    width: calc(25% - 12px) !important;
    max-width: calc(25% - 12px);
    min-width: 0;
    padding: 0 !important;
}
.bk-filters > [class*="col-"]:has(> .btn),
.bk-filters > [class*="col-"]:has(> button),
.panel-body > .row[style*="background"] > [class*="col-"]:has(> button),
.bk-card-body > .row[style*="background"] > [class*="col-"]:has(> button) {
    display: flex;
    flex: 0 0 auto;
    width: auto !important;
    max-width: none;
    gap: 8px;
}
.bk-filters label { margin-bottom: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-filters .form-group { margin: 0; }
.bk-filters .input-daterange { gap: 6px; }
.bk-filters .input-daterange .form-control { padding-left: 32px; background-position: 10px 50%; }
.bk-filters .input-daterange .input-group-addon { padding: 0 6px; }
.bk-filters .btn, .panel-body > .row[style*="background"] .btn { height: 40px; margin: 0 !important; min-width: 112px; }
@media (max-width: 1100px) {
    .bk-filters > [class*="col-"],
    .panel-body > .row[style*="background"] > [class*="col-"],
    .bk-card-body > .row[style*="background"] > [class*="col-"] {
        flex-basis: calc(50% - 8px);
        width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px);
    }
}
@media (max-width: 640px) {
    .bk-filters > [class*="col-"],
    .panel-body > .row[style*="background"] > [class*="col-"],
    .bk-card-body > .row[style*="background"] > [class*="col-"] {
        flex-basis: 100%;
        width: 100% !important;
        max-width: 100%;
    }
}
.bk-filters > [class*="col-"]:has(> .btn),
.bk-filters > [class*="col-"]:has(> button),
.panel-body > .row[style*="background"] > [class*="col-"]:has(> button),
.bk-card-body > .row[style*="background"] > [class*="col-"]:has(> button),
.filters .row > [class*="col-"]:has(.btn) {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
}
.bk-filters .btn-yellow::before {
    content: "";
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bk-filters .btn-yellow:has(.fa-search)::before { display: none; }
.bk-report-filters {
    margin: 18px 18px 0;
    padding: 16px 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f6fa 100%);
    border: 1px solid var(--bk-line);
    border-radius: 10px;
}
.bk-report-filters form { margin: 0; }
.bk-report-filters .bk-filters {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0;
    border-radius: 0;
}
.bk-filter-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--bk-line-strong);
}
.bk-filter-actions > [class*="col-"] { flex: 0 0 auto; width: auto !important; max-width: none; padding: 0 !important; }
.bk-filter-actions .btn { height: 38px; margin: 0 !important; min-width: 112px; }
.bk-result-head {
    margin: 0 0 10px;
    color: var(--bk-faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.bk-chips > [class*="col-"] { width: auto; padding: 0; }
.badge.st { height: 30px; padding: 0 12px; border-color: var(--bk-line); background: #fff; color: #334155; font-weight: 500; letter-spacing: 0; }
.badge.st::before { display: none; }
.badge.st b { color: var(--bk-navy); font-weight: 700; }
.filters {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px;
    background: var(--bk-sunken);
    border: 1px solid var(--bk-line);
    border-radius: 8px;
}
.bk-card > .filters { width: auto; margin: 18px 18px 0; }
.filters form, .filters .row { width: 100%; }
.filters .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    margin: 0;
}
.filters .row > [class*="col-"] {
    flex: 0 0 calc(25% - 12px);
    width: calc(25% - 12px) !important;
    max-width: calc(25% - 12px);
    padding: 0 !important;
}
.filters .row > [class*="col-"]:has(.btn) {
    flex: 0 0 auto;
    max-width: none;
}
.filters .form-group, .filters .mb-3 { margin: 0; }
.filters label { margin-bottom: 8px; }
.filters input.form-control {
    height: 42px;
    padding: 10px 14px 10px 40px;
    border-radius: 8px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235c6c7d' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px 50%;
}
.filters .btn {
    height: 42px;
    margin-top: 0 !important;
    padding: 0 18px;
    border-radius: 8px;
}
.filters .btn-danger {
    background: var(--bk-navy);
    border-color: var(--bk-navy);
}
.filters .btn-danger:hover { background: var(--bk-navy-2); }

/* Grid */
.row { display: flex; flex-wrap: wrap; margin-right: -8px; margin-left: -8px; }
.row > [class*="col-"] { position: relative; width: 100%; max-width: 100%; padding-right: 8px; padding-left: 8px; }
.row > .col-1 { width: 8.333%; max-width: 8.333%; }
.row > .col-2 { width: 16.666%; max-width: 16.666%; }
.row > .col-3 { width: 25%; max-width: 25%; }
.row > .col-4 { width: 33.333%; max-width: 33.333%; }
.row > .col-5 { width: 41.666%; max-width: 41.666%; }
.row > .col-6 { width: 50%; max-width: 50%; }
.row > .col-7 { width: 58.333%; max-width: 58.333%; }
.row > .col-8 { width: 66.666%; max-width: 66.666%; }
.row > .col-9 { width: 75%; max-width: 75%; }
.row > .col-10 { width: 83.333%; max-width: 83.333%; }
.row > .col-11 { width: 91.666%; max-width: 91.666%; }
.row > .col-12, .row > .col-xl-12 { width: 100%; max-width: 100%; }
@media (min-width: 576px) {
    .row > .col-sm-6 { width: 50%; max-width: 50%; }
    .row > .col-sm-4 { width: 33.333%; max-width: 33.333%; }
    .row > .col-sm-3 { width: 25%; max-width: 25%; }
}
@media (min-width: 768px) {
    .row > .col-md-1 { width: 8.333%; max-width: 8.333%; }
    .row > .col-md-2 { width: 16.666%; max-width: 16.666%; }
    .row > .col-md-3 { width: 25%; max-width: 25%; }
    .row > .col-md-4 { width: 33.333%; max-width: 33.333%; }
    .row > .col-md-5 { width: 41.666%; max-width: 41.666%; }
    .row > .col-md-6 { width: 50%; max-width: 50%; }
    .row > .col-md-7 { width: 58.333%; max-width: 58.333%; }
    .row > .col-md-8 { width: 66.666%; max-width: 66.666%; }
    .row > .col-md-9 { width: 75%; max-width: 75%; }
    .row > .col-md-10 { width: 83.333%; max-width: 83.333%; }
    .row > .col-md-12 { width: 100%; max-width: 100%; }
}
@media (min-width: 992px) {
    .row > .col-lg-3 { width: 25%; max-width: 25%; }
    .row > .col-lg-4 { width: 33.333%; max-width: 33.333%; }
    .row > .col-lg-5 { width: 41.666%; max-width: 41.666%; }
    .row > .col-lg-6 { width: 50%; max-width: 50%; }
    .row > .col-lg-8 { width: 66.666%; max-width: 66.666%; }
}
@media (min-width: 1200px) {
    .row > .col-xl-3 { width: 25%; max-width: 25%; }
    .row > .col-xl-4 { width: 33.333%; max-width: 33.333%; }
    .row > .col-xl-5 { width: 41.666%; max-width: 41.666%; }
    .row > .col-xl-6 { width: 50%; max-width: 50%; }
    .row > .col-xl-7 { width: 58.333%; max-width: 58.333%; }
    .row > .col-xl-8 { width: 66.666%; max-width: 66.666%; }
    .row > .col-xl-12 { width: 100%; max-width: 100%; }
}

/* Type helpers */
.text-muted, .text-grey-darker { color: var(--bk-muted) !important; }
.text-danger, .text-pink { color: var(--bk-danger) !important; }
.text-success { color: var(--bk-success) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.float-right, .pull-right { margin-left: auto; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }
.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.m-r-5 { margin-right: 5px; }
.m-b-5, .m-b-10, .m-b-15 { margin-bottom: 8px; }
.m-t-10 { margin-top: 10px; }
.p-0 { padding: 0; }
.font-weight-bold, b, strong { font-weight: 650; }
.list-unstyled { margin: 0; padding: 0; list-style: none; }
.hidden, [hidden] { display: none !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #fff;
    color: var(--bk-navy);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 1px 2px rgba(12, 35, 64, 0.06);
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
    vertical-align: middle;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(12, 35, 64, 0.12); text-decoration: none; }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(12, 35, 64, 0.08); }
.btn:focus { outline: 0; }
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--bk-focus), 0 1px 2px rgba(12, 35, 64, 0.08); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.os-is-loading { color: transparent !important; pointer-events: none; }
.btn.os-is-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bk-spin .7s linear infinite;
}
.btn-white.os-is-loading::after, .btn-default.os-is-loading::after { border-color: rgba(12, 35, 64, .2); border-top-color: var(--bk-navy); }
@keyframes bk-spin { to { transform: rotate(360deg); } }
.btn i, .btn .fa { font-size: 13px; line-height: 1; }
.btn i.mdi, i.mdi { display: none; }
input.btn { -webkit-appearance: none; appearance: none; }

.btn-primary, .btn-success, .btn-yellow, .btn-green, .btn-inverse {
    background: var(--bk-navy);
    border-color: var(--bk-navy);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(12, 35, 64, 0.24);
}
.btn-primary:hover, .btn-success:hover, .btn-yellow:hover, .btn-green:hover, .btn-inverse:hover,
.btn-primary:focus, .btn-success:focus, .btn-yellow:focus, .btn-green:focus, .btn-inverse:focus {
    background: var(--bk-navy-2);
    border-color: var(--bk-navy-2);
    color: #fff;
}
.btn-danger {
    background: var(--bk-danger);
    border-color: var(--bk-danger);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(163, 38, 46, 0.24);
}
.btn-danger:hover, .btn-danger:focus { background: #8c1e25; border-color: #8c1e25; color: #fff; }
.btn-warning { background: var(--bk-warning); border-color: var(--bk-warning); color: #fff; }
.btn-warning:hover { background: #835800; color: #fff; }
.btn-white, .btn-default, .btn-secondary, .btn-outline {
    background: #fff;
    border-color: var(--bk-line-strong);
    color: var(--bk-navy);
}
.btn-info {
    background: var(--bk-success);
    border-color: var(--bk-success);
    color: #fff;
}
.btn-info:hover, .btn-info:focus {
    background: #17663f;
    border-color: #17663f;
    color: #fff;
}
.btn-signin {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    background: var(--bk-blue);
    border-color: var(--bk-blue);
    color: #fff;
}
.btn-signin:hover, .btn-signin:focus {
    background: var(--bk-navy);
    border-color: var(--bk-navy);
    color: #fff;
}
.btn-white:hover, .btn-default:hover, .btn-secondary:hover, .btn-outline:hover {
    background: var(--bk-sunken);
    border-color: #aebccb;
    color: var(--bk-navy);
}
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--bk-navy); }
.btn-ghost:hover { background: var(--bk-blue-soft); box-shadow: none; }
.btn-link { background: transparent; border-color: transparent; box-shadow: none; color: var(--bk-blue); height: auto; padding: 0; }
.btn-link:hover { transform: none; box-shadow: none; text-decoration: underline; }
.btn-sm, .btn-xs { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 7px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-icon, .btn-circle { width: 36px; padding: 0; }
.btn-group { display: inline-flex; vertical-align: middle; }
.btn-group > .btn { border-radius: 0; transform: none !important; }
.btn-group > .btn:first-child { border-radius: 8px 0 0 8px; }
.btn-group > .btn:last-child { border-radius: 0 8px 8px 0; }
.btn-group > .btn + .btn { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.btn-group > .dropdown-toggle { width: 34px; padding: 0; }
.btn-group > .dropdown-toggle::after { margin-left: 0; }
.btn a, .btn-white a { color: inherit; text-decoration: none; }

/* Compact submit buttons inside the workspace */
.bk-stage .btn-block,
.bk-stage .add-category-btn {
    display: inline-flex;
    width: auto;
    min-width: 148px;
    max-width: 100%;
}
.bk-stage .action-button {
    display: flex;
    width: auto !important;
    max-width: none !important;
    min-width: 160px;
    margin: 20px auto 0 !important;
}
.bk-stage .btn[style*="width:100%"],
.bk-stage .btn[style*="width: 100%"] { width: auto !important; min-width: 112px; }
.bk-stage .btn[style*="height: 100%"] { height: 38px !important; }
.bk-stage .btn[style*="width:90px"] { width: auto !important; }
.modal-footer .btn, .bk-card-body .btn + .btn { margin-left: 8px; }

/* Forms */
.form-group { margin-bottom: 18px; }
label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #334155;
}
label .text-danger { margin-left: 2px; }
.form-control, select.form-control, textarea.form-control {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background-color: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    color: var(--bk-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(12, 35, 64, 0.04);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.form-control::placeholder { color: #94a3b8; font-weight: 400; opacity: 1; }
.form-control:hover { border-color: #aebccb; }
.form-control:focus {
    outline: 0;
    border-color: var(--bk-blue);
    box-shadow: 0 0 0 3px var(--bk-focus);
}
select.form-control {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235c6c7d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #fff !important;
    cursor: pointer;
}
select.form-control[multiple] { height: auto; padding: 8px 12px; background-image: none; }
textarea.form-control { height: auto; min-height: 104px; padding: 10px 12px; resize: vertical; }
.form-control:disabled { background-color: #f1f4f8 !important; color: #8b9aab; cursor: not-allowed; box-shadow: none; }
.form-control[readonly] { background-color: var(--bk-sunken); color: #475569; }
.has-error .form-control, .is-invalid, .form-control.parsley-error, .form-control.input-error {
    border-color: var(--bk-danger) !important;
    box-shadow: 0 0 0 3px rgba(163, 38, 46, 0.1);
}
.form-control.parsley-success { border-color: #8cc5a6; }
.help-block, .invalid-feedback, .parsley-errors-list {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: var(--bk-danger);
    font-size: 12px;
    font-weight: 500;
}
.bk-field-error {
    min-height: 0;
}
.bk-field-error .parsley-errors-list {
    margin-top: 7px;
}
.bk-field-error .parsley-errors-list.filled {
    margin-top: 7px;
}
.bk-field-error .parsley-errors-list li {
    line-height: 1.35;
}
.bk-captcha:has(.form-control.parsley-error) {
    border-color: var(--bk-danger);
    box-shadow: 0 0 0 3px rgba(163, 38, 46, 0.1);
}
.bk-password:has(.form-control.parsley-error) .form-control {
    border-color: var(--bk-danger) !important;
    box-shadow: 0 0 0 3px rgba(163, 38, 46, 0.1);
}
.form-text, small.text-muted { display: block; margin-top: 6px; font-size: 12px; }
.input-group { display: flex; align-items: center; gap: 8px; width: 100%; }
.input-group .form-control { flex: 1; min-width: 0; }
.input-group-addon, .input-group-text {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--bk-sunken);
    color: var(--bk-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.input-daterange .form-control,
#monthpicker, .from_date, .to_date, .datepicker-input, input[id*="date"].form-control {
    padding-left: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%235c6c7d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px 50%;
}
input[type="checkbox"], input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    width: 17px;
    height: 17px;
    min-width: 17px !important;
    margin: 0;
    border: 1.5px solid #aebccb;
    border-radius: 5px;
    background: #fff center / 11px no-repeat;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: var(--bk-blue); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--bk-focus); }
input[type="checkbox"]:checked {
    background-color: var(--bk-navy);
    border-color: var(--bk-navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
input[type="radio"]:checked { border-color: var(--bk-navy); box-shadow: inset 0 0 0 4px #fff; background: var(--bk-navy); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: .5; cursor: not-allowed; }
.custom-switch input[type="checkbox"], input[type="checkbox"].switch {
    width: 34px; min-width: 34px !important; height: 20px;
    border-radius: 999px;
    background: #cfd8e3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='7' fill='%23fff'/%3E%3C/svg%3E") left center / 20px no-repeat;
    border: 0;
}
.custom-switch input[type="checkbox"]:checked, input[type="checkbox"].switch:checked { background-color: var(--bk-navy); background-position: right center; }
input[type="file"].form-control, input[type="file"] { height: auto; padding: 5px; font-size: 13px; color: var(--bk-muted); }
input[type="file"]::file-selector-button {
    margin-right: 10px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--bk-line-strong);
    border-radius: 6px;
    background: var(--bk-sunken);
    color: var(--bk-navy);
    font: 600 12px var(--bk-font);
    cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--bk-blue-soft); }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
.form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bk-form-narrow { max-width: 760px; }
.bk-form-lede { margin: 0 0 18px; color: var(--bk-muted); font-size: 13px; }
.bk-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.bk-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid var(--bk-line);
}
.bk-card-body form .add-category-btn { margin-top: 6px; }
.form-control-lg { height: 44px; font-size: 14px; }
.form-control-light { background: #fff; }

/* Tables */
.bk-table-scroll {
    width: 100%;
    margin: 4px 0 0;
    overflow-x: auto;
    overflow-y: visible;
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: 10px;
}
.table {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 13px;
    color: var(--bk-ink);
    font-variant-numeric: tabular-nums;
}
.table th {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 44px;
    padding: 0 16px;
    background: var(--bk-navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center !important;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.16);
    white-space: nowrap;
}
.table th.os-title-col {
    width: 20%;
    max-width: 20%;
    white-space: nowrap !important;
}
.table td.os-title-col {
    width: 20%;
    max-width: 20%;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    height: auto;
    min-height: 56px;
    line-height: 1.35;
}
.table thead th {
    white-space: nowrap !important;
}
.table th:first-child { border-top-left-radius: 10px; }
.table th:last-child { border-top-right-radius: 10px; }
.table td {
    height: 56px;
    padding: 10px 16px;
    border: 1px solid var(--bk-table-border);
    vertical-align: middle;
    white-space: nowrap;
    text-align: center !important;
    color: #1e293b;
    transition: background-color .14s ease;
}
.table td:first-child { color: var(--bk-muted); font-weight: 600; }
.table tbody tr:hover td { background: #f4f8fd; }
.table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--bk-blue); }
.table-striped tbody tr:nth-child(even) td { background: #fbfcfe; }
.table-striped tbody tr:nth-child(even):hover td { background: #f4f8fd; }
.table-bordered, .table-bordered td, .table-bordered th { border: 1px solid var(--bk-table-border); }
.table thead th { background: var(--bk-navy); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.table td .btn { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 7px; }
.table td .btn-signin { width: 32px; min-width: 32px; padding: 0; }
.table td .btn + .btn { margin-left: 6px; }
.table td .btn-group > .dropdown-toggle { width: 30px; padding: 0; }
.table td .btn-group > .btn:first-child { border-radius: 7px 0 0 7px; }
.table td .btn-group > .btn:last-child { border-radius: 0 7px 7px 0; }
.table td .btn-group { margin: 0 !important; }
.table input.form-control, .table select.form-control { min-width: 120px; height: 36px; }
.table .input-daterange input { min-width: 88px !important; }
.table tr.os-empty td, .table td[colspan] { height: auto; }
.table tr.os-empty:hover td, .table tbody tr:has(.bk-empty):hover td { background: #fff; box-shadow: none; }
.table thead tr[style] { background: none !important; color: inherit !important; }
.table tbody tr[style*="background"] td,
.table tbody tr:has(td.total) td {
    background: var(--bk-navy) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700;
    box-shadow: none !important;
}
.table tbody tr:has(td.total) td .fa { color: rgba(255, 255, 255, .8); }
.table td .fa-inr { margin-right: 2px; color: var(--bk-faint); font-size: 12px; }
#invoice table { width: 100%; font-size: 13px; }
#invoice th { background: var(--bk-navy); color: #fff; }

/* Status */
.label, .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--bk-sunken);
    color: var(--bk-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.label::before, .badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.label-green, .badge-success, .label-success { background: var(--bk-success-bg); border-color: #c6e7d4; color: var(--bk-success); }
.label-red, .badge-danger, .label-danger { background: var(--bk-danger-bg); border-color: #f5cdd1; color: var(--bk-danger); }
.label-warning, .label-yellow, .badge-warning { background: var(--bk-warning-bg); border-color: #f1dfb0; color: var(--bk-warning); }
.label-info, .label-primary, .badge-info, .badge-primary { background: var(--bk-info-bg); border-color: #cbdcf0; color: var(--bk-info); }
.label-default, .label-secondary, .badge-secondary { background: #f1f4f8; border-color: var(--bk-line); color: #475569; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px 0 4px; padding: 0; list-style: none; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid var(--bk-line); border-radius: 8px;
    background: #fff; color: #334155; font-size: 13px; font-weight: 600;
    box-shadow: 0 1px 2px rgba(12, 35, 64, 0.04);
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.page-link:hover { background: var(--bk-blue-soft); border-color: #bfd1e6; color: var(--bk-navy); text-decoration: none; }
.page-item.active .page-link { background: var(--bk-navy); border-color: var(--bk-navy); color: #fff; }
.page-item.disabled .page-link { color: #b6c2cf; background: #fafbfc; box-shadow: none; cursor: not-allowed; }

/* Alerts / toasts */
.alert {
    position: relative;
    padding: 12px 14px 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--bk-line);
    border-left-width: 4px;
    background: var(--bk-sunken);
    color: var(--bk-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}
.alert-success, .alert-green { background: var(--bk-success-bg); border-color: #b7e0c8; border-left-color: var(--bk-success); color: #15583a; }
.alert-danger, .alert-pink, .alert-red { background: var(--bk-danger-bg); border-color: #f3c5c9; border-left-color: var(--bk-danger); color: #7d1c23; }
.alert-warning { background: var(--bk-warning-bg); border-color: #f0ddaa; border-left-color: var(--bk-warning); color: #6f4b00; }
.alert-info { background: var(--bk-info-bg); border-color: #c9daf0; border-left-color: var(--bk-info); color: #163d6b; }
.os-toast, .alert-float {
    position: fixed;
    top: 80px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 2500;
    width: min(480px, calc(100vw - 32px));
    padding-right: 40px;
    text-align: center;
    background-color: #fff;
    color: var(--bk-ink);
    box-shadow: var(--bk-shadow-pop);
    animation: bk-toast-in .22s ease-out;
}
.os-toast.alert-success { border-left-color: var(--bk-success); }
.os-toast.alert-danger { border-left-color: var(--bk-danger); }
@keyframes bk-toast-in { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.alert .close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    opacity: .6;
    cursor: pointer;
}
.alert .close:hover { opacity: 1; background: rgba(12, 35, 64, .06); }

/* Dropdown / modal */
.dropdown, .btn-group { position: relative; z-index: 2; }
.btn-group.show, .dropdown.show { z-index: 30; }
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 80;
    min-width: 180px;
    margin-top: 4px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: 8px;
    box-shadow: var(--bk-shadow-pop);
}
.dropdown-divider { height: 1px; margin: 4px 0; background: var(--bk-line); border: 0; }
.select2-container--open { z-index: 2600 !important; }
.datepicker, .datepicker-dropdown { z-index: 2600 !important; }
.dropdown-menu.show { display: block; }
.dropdown-menu-right { right: 0; left: auto; }
.dropdown-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 550;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.dropdown-item:hover, .dropdown-item:focus {
    background: var(--bk-blue-soft);
    color: var(--bk-navy);
    text-decoration: none;
    transform: translateX(2px);
}
.dropdown-item.text-danger:hover { background: var(--bk-danger-bg); color: var(--bk-danger) !important; }
.dropdown-toggle::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; vertical-align: middle; }
.dropdown-menu.show {
    transform-origin: top right;
    animation: bk-drop-in .3s cubic-bezier(.16, 1, .3, 1) both;
}
.dropdown-menu.show > .dropdown-item,
.dropdown-menu.show > form > .dropdown-item,
.dropdown-menu.show > .dropdown-divider {
    animation: bk-drop-item-in .28s cubic-bezier(.16, 1, .3, 1) both;
}
.dropdown-menu.show > *:nth-child(1) { animation-delay: .03s; }
.dropdown-menu.show > *:nth-child(2) { animation-delay: .06s; }
.dropdown-menu.show > *:nth-child(3) { animation-delay: .09s; }
.dropdown-menu.show > *:nth-child(4) { animation-delay: .12s; }
.dropdown-menu.show > *:nth-child(5) { animation-delay: .15s; }
.dropdown-menu.show > *:nth-child(n+6) { animation-delay: .18s; }

.modal { position: fixed; inset: 0; z-index: 2400 !important; display: none; overflow: auto; }
.modal.show { display: block; }
.modal-dialog { width: calc(100% - 32px); max-width: 560px; margin: 56px auto; }
.modal.fade .modal-dialog { transform: translateY(12px); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.modal.show .modal-dialog { transform: none; opacity: 1; }
.modal-sm { max-width: 400px; }
.modal-lg { max-width: 860px; }
.modal-xl, .modal-dialog[style*="max-width:100%"] { max-width: min(1240px, calc(100% - 32px)) !important; }
.modal-content {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(12, 35, 64, 0.22);
}
.modal-header, .modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px; }
.modal-header, .modal-header[style] { background: #fff !important; color: var(--bk-navy) !important; border-bottom: 1px solid var(--bk-line); }
.modal-header .modal-title, .modal-header h4 { color: var(--bk-navy) !important; }
.modal-footer { background: #fafbfd; border-top: 1px solid var(--bk-line); justify-content: flex-end; }
.modal-body { padding: 20px; }
.modal-title { font-size: 16px; font-weight: 650; }
.modal-backdrop { position: fixed; inset: 0; z-index: 2300 !important; background: rgba(12, 35, 64, 0.42); backdrop-filter: blur(2px); }
.modal-backdrop.fade { opacity: 0; transition: opacity .2s ease; }
.modal-backdrop.show { opacity: 1; }
.modal .close, .modal-header .close {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin: 0 0 0 auto;
    padding: 0;
    border-radius: 8px;
    color: var(--bk-faint);
    opacity: 1;
    text-shadow: none;
}
.modal .close:hover { background: var(--bk-sunken); color: var(--bk-navy); }
.close { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--bk-muted); }
body.modal-open { overflow: hidden; }

/* Select2 */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    min-height: 40px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(12, 35, 64, 0.04);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.select2-container--default .select2-selection--single { height: 40px; }
.select2-container--default .select2-selection--single:hover { border-color: #aebccb; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--bk-blue);
    box-shadow: 0 0 0 3px var(--bk-focus);
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 38px; padding-left: 12px; padding-right: 34px; color: var(--bk-ink); font-size: 13px; font-weight: 500; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #94a3b8; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; right: 8px; }
.select2-dropdown { overflow: hidden; border: 1px solid var(--bk-line) !important; border-radius: 8px !important; box-shadow: var(--bk-shadow-pop); }
.select2-search--dropdown { padding: 8px; }
.select2-container--default .select2-search--dropdown .select2-search__field { height: 36px; padding: 0 10px; border: 1px solid #cfd8e3; border-radius: 6px; }
.select2-results__option { padding: 8px 12px; font-size: 13px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--bk-blue-soft); color: var(--bk-navy); }
.select2-container--default .select2-results__option[aria-selected=true] { background: var(--bk-navy); color: #fff; }
.select2-container--default .select2-selection--multiple .select2-selection__choice { margin-top: 6px; border: 1px solid #cbdcf0; border-radius: 999px; background: var(--bk-info-bg); color: var(--bk-navy); font-size: 12px; }

/* Datepicker */
.datepicker.dropdown-menu { padding: 10px; border-radius: 10px; }
.datepicker { font-family: var(--bk-font); font-size: 13px; border-color: var(--bk-line); }
.datepicker table tr td, .datepicker table tr th { width: 34px; height: 32px; border-radius: 6px; text-align: center !important; }
.datepicker table tr td.day:hover, .datepicker table tr td span:hover, .datepicker .datepicker-switch:hover, .datepicker .prev:hover, .datepicker .next:hover { background: var(--bk-blue-soft) !important; }
.datepicker table tr td.today { background: #fff6e0 !important; color: var(--bk-warning) !important; }
.datepicker table tr td.active, .datepicker table tr td.active:hover, .datepicker table tr td span.active { background: var(--bk-navy) !important; color: #fff !important; text-shadow: none; }
.datepicker table tr td.range { background: var(--bk-blue-soft) !important; border-radius: 0; }

/* Empty / skeleton */
.bk-empty { padding: 44px 12px; text-align: center; color: var(--bk-muted); white-space: normal; }
.bk-empty::before {
    content: "";
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: var(--bk-blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%231d4e89' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M9 14h6M9 17h4'/%3E%3C/svg%3E") center no-repeat;
}
.bk-empty strong { display: block; margin-bottom: 4px; color: var(--bk-navy); font-size: 14px; }
.bk-empty span { font-size: 13px; }
.bk-skel {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e8eef4 25%, #f7fafc 37%, #e8eef4 63%);
    background-size: 400% 100%;
    animation: bk-shimmer 1.1s ease infinite;
}
@keyframes bk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.bk-boot {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    place-items: center;
    background: rgba(231, 238, 245, 0.94);
    backdrop-filter: blur(8px);
    transition: opacity .22s ease, visibility .22s ease;
}
.bk-boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.bk-boot-mark {
    position: relative;
    width: 132px;
    height: 132px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(12, 35, 64, 0.14);
    animation: bk-boot-pop .45s cubic-bezier(.2, .8, .2, 1);
}
.bk-boot-mark::after {
    content: "";
    position: absolute;
    inset: -34px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(12, 35, 64, 0.10), transparent 68%);
    animation: bk-boot-glow 2.4s ease-in-out infinite;
}
.bk-boot-orbit {
    position: absolute;
    inset: -20px;
    pointer-events: none;
}
.bk-orbit-track,
.bk-orbit-a,
.bk-orbit-b,
.bk-orbit-bead {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}
.bk-orbit-track {
    border: 1.5px solid rgba(12, 35, 64, 0.08);
}
.bk-orbit-a,
.bk-orbit-b {
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 2px));
}
.bk-orbit-a {
    background: conic-gradient(from 0deg, transparent 0deg, transparent 168deg, rgba(12, 35, 64, 0.06) 220deg, rgba(12, 35, 64, 0.28) 280deg, rgba(12, 35, 64, 0.72) 330deg, #0c2340 360deg);
    animation: bk-boot-spin 2.4s linear infinite;
}
.bk-orbit-b {
    inset: 10px;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 210deg, rgba(31, 122, 77, 0.08) 268deg, rgba(31, 122, 77, 0.55) 330deg, #1f7a4d 360deg);
    animation: bk-boot-spin-rev 3.6s linear infinite;
}
.bk-orbit-bead {
    animation: bk-boot-spin 2.4s linear infinite;
}
.bk-orbit-bead i {
    position: absolute;
    top: -3px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: #0c2340;
    box-shadow: 0 0 0 3px #fff, 0 0 12px rgba(12, 35, 64, 0.45);
}
.bk-sheet { width: 78px; height: 78px; overflow: visible; }
.bk-sheet path {
    fill: none;
    stroke: var(--bk-navy);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bk-sheet-edge { stroke-dasharray: 210; stroke-dashoffset: 210; animation: bk-draw .5s ease forwards; }
.bk-sheet-fold { stroke-dasharray: 36; stroke-dashoffset: 36; animation: bk-draw .24s ease .32s forwards; }
.bk-sheet-line { stroke-dasharray: 28; stroke-dashoffset: 28; animation: bk-draw .2s ease forwards; }
.bk-sheet-line:nth-of-type(3) { animation-delay: .48s; }
.bk-sheet-line:nth-of-type(4) { animation-delay: .6s; }
.bk-sheet-line:nth-of-type(5) { animation-delay: .72s; }
.bk-sheet-check {
    stroke: var(--bk-success);
    stroke-width: 2.6;
    stroke-dasharray: 28;
    stroke-dashoffset: 28;
    animation: bk-draw .28s ease .88s forwards, bk-check-pop .28s ease .88s;
}
.bk-boot-name {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 28px;
    text-align: center;
    animation: bk-boot-rise .45s ease .2s both;
}
.bk-boot-name strong {
    display: block;
    color: var(--bk-navy);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.16em;
}
.bk-boot-name span {
    display: block;
    margin-top: 6px;
    color: var(--bk-muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.08em;
}
@keyframes bk-draw { to { stroke-dashoffset: 0; } }
@keyframes bk-boot-pop { from { opacity: 0; transform: scale(.84) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bk-boot-spin { to { transform: rotate(360deg); } }
@keyframes bk-boot-spin-rev { to { transform: rotate(-360deg); } }
@keyframes bk-boot-glow {
    0%, 100% { opacity: .4; transform: scale(.94); }
    50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .bk-orbit-a, .bk-orbit-b, .bk-orbit-bead, .bk-boot-mark::after { animation: none; }
}
@keyframes bk-check-pop { from { transform: scale(.6); } to { transform: scale(1); } }
@keyframes bk-boot-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* SweetAlert */
.swal2-container.swal2-backdrop-show, .swal2-container.swal2-noanimation {
    background: rgba(12, 35, 64, 0.48) !important;
    backdrop-filter: blur(8px);
}
.swal2-popup {
    width: 400px !important;
    max-width: calc(100vw - 32px);
    padding: 26px 24px 22px !important;
    border: 1px solid var(--bk-line) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 24px 60px rgba(12, 35, 64, 0.22) !important;
    font-family: var(--bk-font) !important;
}
.swal2-container.swal2-backdrop-show { animation: bk-swal-backdrop .36s ease both !important; }
.swal2-popup.bk-swal-in, .swal2-popup.swal2-show { animation: bk-swal-in .46s cubic-bezier(.16, 1, .3, 1) both !important; }
.swal2-popup.bk-swal-out, .swal2-popup.swal2-hide { animation: bk-swal-out .18s ease-in forwards !important; }
.swal2-popup .swal2-icon, .bk-swal-icon-in, .swal2-icon.swal2-icon-show {
    animation: bk-swal-icon .52s cubic-bezier(.16, 1, .3, 1) both, bk-swal-glow .85s ease .4s 1 !important;
}
.swal2-title { animation: bk-swal-rise .4s ease .14s both !important; }
.swal2-html-container, .swal2-content { animation: bk-swal-rise .4s ease .2s both !important; }
.swal2-actions { animation: bk-swal-rise .4s ease .26s both !important; }
@keyframes bk-swal-backdrop { from { background-color: rgba(12, 35, 64, 0); } to { background-color: rgba(12, 35, 64, 0.48); } }
@keyframes bk-swal-in { 0% { opacity: 0; transform: translateY(22px) scale(.9); } 100% { opacity: 1; transform: none; } }
@keyframes bk-swal-out { to { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes bk-swal-icon { 0% { opacity: 0; transform: scale(.35) rotate(-8deg); } 65% { transform: scale(1.08) rotate(1deg); } 100% { opacity: 1; transform: none; } }
@keyframes bk-swal-glow { 0% { box-shadow: 0 0 0 0 rgba(12, 35, 64, 0.16); } 100% { box-shadow: 0 0 0 16px rgba(12, 35, 64, 0); } }
@keyframes bk-swal-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .swal2-popup.bk-swal-in, .swal2-popup.swal2-show, .swal2-popup.bk-swal-out, .swal2-popup.swal2-hide,
    .swal2-popup .swal2-icon, .bk-swal-icon-in, .swal2-icon.swal2-icon-show, .swal2-title, .swal2-html-container, .swal2-content, .swal2-actions { animation: none !important; }
}
.swal2-header { padding: 0 !important; }
.swal2-icon { position: relative; font-size: 10px !important; margin: 2px auto 16px !important; border-width: 3px !important; }
.swal2-icon.swal2-warning { border-color: #f1d49a !important; color: var(--bk-warning) !important; }
.swal2-icon.swal2-error { border-color: #f1b9be !important; }
.swal2-icon.swal2-error [class^="swal2-x-mark-line"] { background-color: var(--bk-danger) !important; }
.swal2-icon.swal2-success { border-color: #a9d8bd !important; }
.swal2-icon.swal2-success [class^="swal2-success-line"] { background-color: var(--bk-success) !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(31, 122, 77, .25) !important; }
.swal2-icon.swal2-info, .swal2-icon.swal2-question { border-color: #bcd2ec !important; color: var(--bk-info) !important; }
.swal2-title {
    margin: 0 0 6px !important;
    padding: 0 !important;
    color: var(--bk-navy) !important;
    font-size: 18px !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em;
    line-height: 1.35 !important;
}
.swal2-content, .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--bk-muted) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
}
.swal2-actions { width: 100%; margin: 22px 0 0 !important; gap: 8px; flex-wrap: nowrap !important; }
.swal2-actions .btn, .swal2-styled {
    flex: 1 1 0;
    min-width: 0;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}
.swal2-styled.swal2-confirm { background: var(--bk-navy) !important; border: 1px solid var(--bk-navy) !important; color: #fff !important; }
.swal2-popup.os-swal-delete .swal2-confirm,
.swal2-popup.os-swal-delete .swal2-styled.swal2-confirm {
    background: var(--bk-danger) !important;
    border-color: var(--bk-danger) !important;
    color: #fff !important;
}
.swal2-styled.swal2-cancel { background: #fff !important; border: 1px solid var(--bk-line-strong) !important; color: var(--bk-navy) !important; }
.swal2-styled.swal2-deny { background: var(--bk-danger) !important; color: #fff !important; }
.swal2-actions .btn, .swal2-styled { transition: transform .16s ease, box-shadow .16s ease, filter .16s ease !important; }
.swal2-actions .btn:hover, .swal2-styled:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(12, 35, 64, 0.12); }
.swal2-styled:focus { box-shadow: 0 0 0 3px var(--bk-focus) !important; }
.swal2-close { top: 10px !important; right: 10px !important; width: 32px !important; height: 32px !important; border-radius: 8px; font-size: 24px !important; color: var(--bk-faint) !important; }
.swal2-close:hover { background: var(--bk-sunken) !important; color: var(--bk-navy) !important; }
.swal2-input, .swal2-textarea, .swal2-select {
    height: 40px !important;
    margin: 14px 0 0 !important;
    border: 1px solid #cfd8e3 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 13px !important;
}
.swal2-textarea { height: 96px !important; }
.swal2-input:focus, .swal2-textarea:focus { border-color: var(--bk-blue) !important; box-shadow: 0 0 0 3px var(--bk-focus) !important; }
.swal2-validation-message { margin: 12px 0 0 !important; border-radius: 8px; background: var(--bk-danger-bg) !important; color: var(--bk-danger) !important; font-size: 12px !important; }

/* Auth */
.bk-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 42%) 1fr;
    background: var(--bk-canvas);
    font-family: var(--bk-font);
    color: var(--bk-ink);
}
.bk-auth-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 28px;
    background: var(--bk-navy);
    color: #fff;
}
.bk-auth-side > small {
    align-self: flex-start;
    margin-top: 24px;
    opacity: 0.72;
}
.bk-auth-side h1 { color: #fff; font-size: 32px; line-height: 1.2; max-width: 360px; }
.bk-auth-side p { color: rgba(255,255,255,.78); max-width: 360px; }
.bk-auth-main { display: grid; place-items: center; padding: 36px 20px; }
.bk-auth-card {
    width: min(440px, 100%);
    padding: 32px 28px 28px;
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: 14px;
    box-shadow: var(--bk-shadow);
}
.bk-auth-card h2 { font-size: 24px; margin-bottom: 6px; letter-spacing: -0.02em; }
.bk-auth-card .lede { margin: 0 0 24px; color: var(--bk-muted); font-size: 14px; line-height: 1.45; }
.bk-auth-card .form-group { margin-bottom: 18px; }
.bk-auth-card .form-group:last-of-type { margin-bottom: 22px; }
.bk-auth-card label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 650;
    color: var(--bk-ink);
}
.bk-auth-card .form-control {
    height: 48px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 10px;
}
.bk-auth-card .btn-block {
    height: 48px;
    margin-top: 2px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 650;
}
.bk-password { position: relative; }
.bk-password .form-control { padding-right: 72px; }
.bk-password button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--bk-blue);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}
.bk-password button:hover {
    background: var(--bk-blue-soft);
    color: var(--bk-navy);
}
.bk-captcha {
    display: grid;
    grid-template-columns: minmax(112px, 138px) minmax(0, 1fr) 48px;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(12, 35, 64, 0.04);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.bk-captcha:hover { border-color: #aebccb; }
.bk-captcha:focus-within {
    border-color: var(--bk-blue);
    box-shadow: 0 0 0 3px var(--bk-focus);
}
.bk-captcha .captcha {
    display: grid;
    place-items: center;
    min-width: 0;
    background: var(--bk-sunken);
    border-right: 1px solid var(--bk-line);
}
.bk-captcha .captcha,
.bk-captcha img,
.bk-captcha .bk-skel {
    display: block;
    width: 100%;
    height: 48px;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: var(--bk-sunken);
}
.bk-captcha .form-control {
    height: 48px;
    min-width: 0;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff;
    letter-spacing: 0.12em;
    font-variant-numeric: tabular-nums;
}
.bk-captcha .form-control:hover,
.bk-captcha .form-control:focus {
    border: 0 !important;
    box-shadow: none !important;
}
.bk-captcha-refresh {
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--bk-line);
    background: var(--bk-sunken);
    color: var(--bk-navy);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, transform .16s ease;
}
.bk-captcha-refresh:hover {
    background: var(--bk-blue-soft);
    color: var(--bk-blue);
}
.bk-captcha-refresh:active { transform: rotate(-40deg); }
.bk-timer { margin-top: 12px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--bk-navy); }
.bk-auth-foot { margin-top: 18px; text-align: center; color: var(--bk-faint); font-size: 12px; }
.bk-auth .os-toast,
.bk-auth .alert-float {
    top: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}
.bk-auth-card > .os-toast,
.bk-auth-card > .alert-float,
.bk-auth-card > .myalert {
    position: static;
    width: 100%;
    margin: 0 0 16px;
    padding: 12px 14px;
    box-shadow: none;
    animation: bk-error-rise .35s ease both;
}
@media (max-width: 420px) {
    .bk-auth-card { padding: 24px 18px 22px; }
    .bk-captcha { grid-template-columns: minmax(96px, 112px) minmax(0, 1fr) 44px; }
}

/* Errors */
.bk-error {
    --bk-error-accent: #a3262e;
    --bk-error-accent-2: #c43b44;
    --bk-error-soft: #fdecee;
    --bk-error-glow: rgba(163, 38, 46, 0.22);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 20px;
    background:
        radial-gradient(1200px 500px at 10% -10%, var(--bk-error-soft), transparent 55%),
        radial-gradient(900px 420px at 100% 110%, rgba(12, 35, 64, 0.06), transparent 50%),
        var(--bk-canvas);
    font-family: var(--bk-font);
}
.bk-error[data-code="401"] {
    --bk-error-accent: #1d4e89;
    --bk-error-accent-2: #2f6db5;
    --bk-error-soft: #e8f0f8;
    --bk-error-glow: rgba(29, 78, 137, 0.22);
}
.bk-error[data-code="403"] {
    --bk-error-accent: #9a6700;
    --bk-error-accent-2: #c48912;
    --bk-error-soft: #fff6e0;
    --bk-error-glow: rgba(154, 103, 0, 0.22);
}
.bk-error[data-code="404"] {
    --bk-error-accent: #a3262e;
    --bk-error-accent-2: #d6454f;
    --bk-error-soft: #fdecee;
    --bk-error-glow: rgba(163, 38, 46, 0.24);
}
.bk-error[data-code="419"],
.bk-error[data-code="429"] {
    --bk-error-accent: #c2410c;
    --bk-error-accent-2: #ea580c;
    --bk-error-soft: #fff1eb;
    --bk-error-glow: rgba(194, 65, 12, 0.22);
}
.bk-error[data-code="500"] {
    --bk-error-accent: #7f1d1d;
    --bk-error-accent-2: #b91c1c;
    --bk-error-soft: #fee2e2;
    --bk-error-glow: rgba(127, 29, 29, 0.26);
}
.bk-error[data-code="503"] {
    --bk-error-accent: #475569;
    --bk-error-accent-2: #64748b;
    --bk-error-soft: #eef2f6;
    --bk-error-glow: rgba(71, 85, 105, 0.22);
}
.bk-error-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
    z-index: 0;
    animation: bk-error-orb 10s ease-in-out infinite;
}
.bk-error-orb-a {
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    top: -12%;
    right: -8%;
    background: radial-gradient(circle, var(--bk-error-glow), transparent 68%);
}
.bk-error-orb-b {
    width: min(360px, 62vw);
    height: min(360px, 62vw);
    bottom: -16%;
    left: -10%;
    background: radial-gradient(circle, rgba(12, 35, 64, 0.1), transparent 70%);
    animation-delay: -4s;
}
.bk-error-card {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    padding: 36px 32px 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid color-mix(in srgb, var(--bk-error-accent) 18%, var(--bk-line));
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(12, 35, 64, 0.04),
        0 18px 48px rgba(12, 35, 64, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    backdrop-filter: blur(6px);
    animation: bk-error-card-in .55s cubic-bezier(.16, 1, .3, 1) both;
}
.bk-error-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, var(--bk-error-accent), var(--bk-error-accent-2));
}
.bk-error-mark {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
}
.bk-error-wave {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--bk-error-accent) 55%, #fff);
    pointer-events: none;
    animation: bk-error-wave 5.8s ease-out infinite;
}
.bk-error-wave:nth-child(1) { animation-delay: 0s; }
.bk-error-wave:nth-child(2) { animation-delay: 1.9s; }
.bk-error-wave:nth-child(3) { animation-delay: 3.8s; }
.bk-error-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--bk-error-accent);
    background: var(--bk-error-soft);
    box-shadow:
        0 0 0 8px color-mix(in srgb, var(--bk-error-soft) 70%, transparent),
        0 10px 24px var(--bk-error-glow);
    animation: bk-error-icon-pulse 4.8s ease-in-out infinite;
}
.bk-error-icon svg { width: 34px; height: 34px; }
.bk-error-card .bk-kicker {
    display: block;
    margin-bottom: 10px;
    color: color-mix(in srgb, var(--bk-error-accent) 70%, var(--bk-muted));
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 750;
    text-align: center;
}
.bk-error-card .code {
    display: block;
    font-size: clamp(52px, 12vw, 68px);
    line-height: 0.95;
    color: var(--bk-error-accent);
    letter-spacing: -0.05em;
    font-weight: 750;
    text-align: center;
    text-shadow: 0 10px 30px var(--bk-error-glow);
    animation: bk-error-code-in .6s cubic-bezier(.16, 1, .3, 1) .08s both;
}
.bk-error-card h1 {
    margin: 12px 0 8px;
    font-size: 22px;
    line-height: 1.25;
    color: var(--bk-ink);
    text-align: center;
    animation: bk-error-rise .5s ease .14s both;
}
.bk-error-card p {
    margin: 0;
    color: var(--bk-muted);
    text-align: center;
    font-size: 14px;
    line-height: 1.55;
    animation: bk-error-rise .5s ease .2s both;
}
.bk-error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    animation: bk-error-rise .5s ease .28s both;
}
.bk-error-actions .btn-primary {
    background: var(--bk-error-accent);
    border-color: var(--bk-error-accent);
}
.bk-error-actions .btn-primary:hover {
    background: var(--bk-error-accent-2);
    border-color: var(--bk-error-accent-2);
    color: #fff;
}
.bk-error-actions .btn-default:hover {
    border-color: color-mix(in srgb, var(--bk-error-accent) 35%, var(--bk-line));
    color: var(--bk-error-accent);
}
@keyframes bk-error-card-in {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to { opacity: 1; transform: none; }
}
@keyframes bk-error-code-in {
    from { opacity: 0; transform: translateY(10px) scale(.92); }
    to { opacity: 1; transform: none; }
}
@keyframes bk-error-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
@keyframes bk-error-wave {
    0% {
        transform: scale(.88);
        opacity: .65;
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}
@keyframes bk-error-icon-pulse {
    0%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--bk-error-soft) 70%, transparent), 0 10px 24px var(--bk-error-glow); }
    50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--bk-error-soft) 35%, transparent), 0 14px 32px var(--bk-error-glow); }
}
@keyframes bk-error-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-18px, 14px) scale(1.08); }
}
@media (max-width: 520px) {
    .bk-error-card { padding: 28px 20px 24px; }
    .bk-error-actions { flex-direction: column; }
    .bk-error-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .bk-error-card,
    .bk-error-card .code,
    .bk-error-card h1,
    .bk-error-card p,
    .bk-error-actions,
    .bk-error-wave,
    .bk-error-icon,
    .bk-error-orb {
        animation: none !important;
    }
}

/* Home modules */
.bk-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.bk-module {
    display: block;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    color: var(--bk-ink);
    box-shadow: var(--bk-shadow);
}
.bk-module:hover { border-color: var(--bk-blue); color: var(--bk-navy); }
.bk-module strong { display: block; margin-bottom: 4px; }
.bk-module span { color: var(--bk-muted); font-size: 12px; }
.bk-icon-tile {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    margin-bottom: 12px;
    border-radius: 4px;
    background: var(--bk-blue-soft);
    color: var(--bk-navy);
}

/* List group used on user detail */
.list-group { display: flex; flex-direction: column; border: 1px solid var(--bk-line); border-radius: var(--bk-radius); overflow: hidden; }
.list-group-item { padding: 10px 12px; background: #fff; border-top: 1px solid var(--bk-line); color: var(--bk-ink); }
.list-group-item:first-child { border-top: 0; }

@keyframes bk-nav-sheet {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bk-drop-accordion {
    from { opacity: 0; max-height: 0; transform: translateY(-6px); }
    to { opacity: 1; max-height: 480px; transform: translateY(0); }
}
@media (max-width: 980px) {
    .bk-menu-btn { display: inline-grid; place-items: center; }
    .bk-nav {
        display: none;
        position: absolute;
        top: var(--bk-top);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        background: #fff;
        border-bottom: 1px solid var(--bk-line);
        box-shadow: var(--bk-shadow-pop);
        max-height: calc(100vh - var(--bk-top));
        overflow: auto;
    }
    .bk-nav.is-open {
        display: flex;
        animation: bk-nav-sheet .3s cubic-bezier(.16, 1, .3, 1) both;
    }
    .bk-pop {
        position: static;
        box-shadow: none;
        border: 0;
        padding-left: 12px;
        margin-top: 0;
        transform-origin: top center;
        overflow: hidden;
    }
    .bk-pop::before { display: none; }
    .bk-drop:hover > .bk-pop,
    .bk-drop:focus-within > .bk-pop { display: none; animation: none; }
    .bk-drop.is-open > .bk-pop {
        display: block;
        animation: bk-drop-accordion .34s cubic-bezier(.16, 1, .3, 1) both;
    }
    .bk-drop.is-open > .bk-pop > * { animation: bk-drop-item-in .28s cubic-bezier(.16, 1, .3, 1) both; }
    .bk-stage { padding: 80px 14px 28px; }
    .bk-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px 18px;
        gap: 10px;
    }
    .bk-footer-meta { text-align: left; }
    .bk-auth { grid-template-columns: 1fr; }
    .bk-auth-side { min-height: auto; padding: 28px 20px 20px; }
    .bk-auth-logo-wrap { width: 190px; height: 190px; }
    .bk-auth-logo { width: 132px; height: 132px; }
    .bk-auth-box h1 { font-size: 22px; }
    .bk-auth-side > small { margin-top: 16px; }
    .bk-user-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .bk-caret,
    .bk-nav-link, .bk-drop > button,
    .bk-nav-link::after, .bk-drop > button::after,
    .bk-pop a,
    .dropdown-item {
        transition: none !important;
    }
    .bk-drop.is-open > .bk-pop,
    .bk-drop:hover > .bk-pop,
    .bk-drop:focus-within > .bk-pop,
    .bk-drop.is-open > .bk-pop > *,
    .bk-drop:hover > .bk-pop > *,
    .bk-drop:focus-within > .bk-pop > *,
    .bk-pop a:hover::before,
    .bk-pop a:focus-visible::before,
    .dropdown-menu.show,
    .dropdown-menu.show > *,
    .bk-nav.is-open {
        animation: none !important;
    }
    .bk-pop a:hover, .bk-pop a:focus-visible,
    .dropdown-item:hover, .dropdown-item:focus {
        transform: none;
    }
}
/* Order sheet closing / signature block
   Yours Faithfully          (right)
   _____  _____  _____  Branch Manager
*/
.bk-signoff {
    margin-top: 36px;
    color: #000;
    page-break-inside: avoid;
    break-inside: avoid;
}
.bk-signoff-title {
    display: block;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 48px;
    padding-right: 4px;
}
.bk-signoff-line {
    display: block;
    width: 100%;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.2;
}
.bk-signoff-dash {
    display: inline-block;
    width: 22%;
    margin-right: 2.5%;
    border: 0;
    border-bottom: 1px solid #111;
    vertical-align: bottom;
    line-height: 1.2;
    height: 1.15em;
}
.bk-signoff-role {
    display: inline-block;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    vertical-align: bottom;
    margin-left: 4px;
}

@media print {
    .noprint, .bk-top, .bk-footer, .bk-pagehead, .bk-boot { display: none !important; }
    html, body, body.bk-body {
        background: #fff !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .bk-app,
    .bk-stage,
    .bk-page,
    .bk-card,
    .panel,
    .card,
    .bk-card-body,
    .panel-body,
    .card-body,
    .invoice,
    #invoice,
    #content,
    #wrapper,
    #panel_body_pdf,
    #myPreview,
    .modal-content,
    .modal-body {
        display: block !important;
        float: none !important;
        position: static !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        flex: none !important;
        transform: none !important;
        background: #fff !important;
    }
    .bk-stage { padding: 0 !important; }
    .bk-card, .panel, .card { border: 0 !important; }
    .row, [class*="col-"] {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .bk-signoff {
        display: block !important;
        width: 100% !important;
        margin-top: 28px !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    .bk-signoff-title {
        display: block !important;
        text-align: right !important;
        margin: 0 0 48px !important;
        width: 100% !important;
        float: none !important;
    }
    .bk-signoff-line {
        display: block !important;
        width: 100% !important;
        white-space: nowrap !important;
        float: none !important;
    }
    .bk-signoff-dash {
        display: inline-block !important;
        width: 22% !important;
        max-width: 22% !important;
        margin: 0 2.5% 0 0 !important;
        padding: 0 !important;
        float: none !important;
        border: 0 !important;
        border-bottom: 1px solid #111 !important;
        height: 1.15em !important;
        vertical-align: bottom !important;
    }
    .bk-signoff-role {
        display: inline-block !important;
        width: auto !important;
        max-width: none !important;
        float: none !important;
        white-space: nowrap !important;
        vertical-align: bottom !important;
        margin: 0 0 0 4px !important;
        padding: 0 !important;
    }
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }
    /* Do not repeat column headers / totals on every printed page */
    thead { display: table-row-group !important; }
    tfoot { display: table-row-group !important; }
    tfoot tr,
    tr:has(> td.total),
    tr.total-row {
        page-break-inside: avoid !important;
        break-inside: avoid-page !important;
        page-break-before: auto !important;
        page-break-after: auto !important;
    }
    tr {
        page-break-inside: avoid !important;
        break-inside: avoid-page !important;
        page-break-after: auto !important;
    }
    td, th {
        page-break-inside: auto !important;
        break-inside: auto !important;
        orphans: 3;
        widows: 3;
        vertical-align: top !important;
        line-height: 1.4 !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        overflow: visible !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }
    img {
        max-width: 100% !important;
        page-break-inside: avoid !important;
    }
    p, h1, h2, h3, h4, h5, li {
        orphans: 3;
        widows: 3;
        page-break-inside: avoid;
        break-inside: avoid;
    }
}
