.iq-profile-avatar.status-primary:before { background-color: #6a75ca; }
.iq-profile-avatar.status-blue:before { background-color: #468bd8; }
.iq-profile-avatar.status-info:before { background-color: #17a2b8; }
.iq-profile-avatar.status-danger:before { background-color: #ea5455; }
@media (min-width: 992px) {
    .iq-top-navbar {
        padding: 0 16px;
        background:
            radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 28%),
            radial-gradient(circle at top right, rgba(59, 130, 246, 0.06), transparent 24%),
            linear-gradient(180deg, rgba(247, 249, 255, 0.95) 0%, rgba(240, 242, 255, 0.9) 100%);
    }
    .iq-top-navbar .iq-sidebar-logo .top-logo {
        display: block;
    }
    .iq-navbar-custom.vt-topbar {
        position: relative;
        display: grid !important;
        grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) auto;
        align-items: center;
        margin-top: 16px;
        padding: 14px 18px;
        min-height: 96px;
        border-radius: 26px;
        border: 1px solid #d8e2ee;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.97) 100%);
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
        gap: 20px;
        overflow: visible;
    }
    .iq-navbar-custom.vt-topbar::before {
        content: "";
        position: absolute;
        top: 0;
        left: 22px;
        width: 168px;
        height: 4px;
        border-radius: 999px;
        background: linear-gradient(90deg, #0f766e 0%, #38bdf8 100%);
        opacity: 0.55;
    }
    .vt-topbar__brand {
        width: auto;
        min-width: 0;
        padding: 0;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }
    .vt-brand {
        display: inline-flex;
        align-items: center !important;
        gap: 14px;
        text-decoration: none !important;
        min-width: 0;
    }
    .vt-brand img {
        width: 46px;
        height: 46px;
        padding: 6px;
        object-fit: contain;
        flex: 0 0 auto;
        border-radius: 16px;
        border: 1px solid #d8e2ee;
        background: linear-gradient(180deg, #ffffff 0%, #f2f7fb 100%);
        box-shadow: 0 10px 22px rgba(148, 163, 184, 0.14);
    }
    .vt-brand__text {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
        line-height: 1;
    }
    .vt-brand__eyebrow {
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        color: #72829a;
        margin: 0;
        line-height: 1;
    }
    .vt-brand__name {
        display: block;
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.04em;
        color: #0f172a;
        line-height: 1;
        text-transform: none;
    }
    .vt-brand__caption {
        font-size: 12px;
        font-weight: 600;
        color: #66758d;
        line-height: 1.25;
        margin: 0;
    }
    .vt-topbar__menu {
        display: flex;
        justify-content: center;
        min-width: 0;
        overflow: visible;
    }
    .vt-topbar__menu .iq-sidebar-menu {
        width: 100%;
        display: flex;
        justify-content: center;
        overflow: visible;
    }
    .vt-topbar-nav {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        padding: 6px;
        border: 1px solid #d8e2ee;
        border-radius: 18px;
        background: linear-gradient(180deg, #fbfdff 0%, #f4f7fb 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
        overflow: visible;
    }
    .vt-topbar-nav > li {
        position: relative;
        margin: 0;
    }
    .vt-topbar-nav > li.active {
        margin-bottom: 0 !important;
    }
    .vt-topbar-nav > li > a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: auto;
        line-height: 1;
        padding: 11px 14px !important;
        border-radius: 13px;
        color: #70819a;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: -0.01em;
        transition: all 0.18s ease;
        white-space: nowrap;
    }
    .vt-topbar-nav > li > a i {
        margin: 0;
        font-size: 18px;
        color: inherit;
    }
    .vt-topbar-nav > li > a span {
        color: inherit;
        font-size: 13px;
        line-height: 1;
    }
    .vt-topbar-nav > li > a .iq-arrow-right {
        font-size: 16px;
        opacity: 0.6;
    }
    .vt-topbar-dropdown > a .iq-arrow-right {
        transition: transform 0.18s ease, opacity 0.18s ease;
    }
    .vt-topbar-nav > li > a:hover,
    .vt-topbar-nav > li.active > a,
    .vt-topbar-nav > li.menu-open > a,
    .vt-topbar-nav > li > a[aria-expanded="true"] {
        color: #0f172a;
        background: #ffffff !important;
        box-shadow: 0 8px 18px rgba(148, 163, 184, 0.18);
    }
    .vt-topbar-nav > li.active > a,
    .vt-topbar-nav > li.menu-open > a,
    .vt-topbar-nav > li > a[aria-expanded="true"] {
        color: #0f766e;
    }
    .vt-topbar-dropdown:hover > a .iq-arrow-right,
    .vt-topbar-dropdown:focus-within > a .iq-arrow-right,
    .vt-topbar-dropdown.menu-open > a .iq-arrow-right {
        transform: rotate(180deg);
        opacity: 1;
    }
    .vt-topbar-divider {
        width: 1px;
        height: 24px;
        background: linear-gradient(180deg, transparent 0%, #d6dfeb 50%, transparent 100%);
        flex: 0 0 auto;
        margin: 0 2px;
    }
    .vt-topbar-nav > li > .iq-submenu {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        top: calc(100% + 10px);
        left: 0;
        min-width: 228px;
        padding: 8px;
        border: 1px solid #d8e2ee;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 20px 38px rgba(15, 23, 42, 0.14);
        transform: translateY(6px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
        z-index: 400;
    }
    .vt-topbar-dropdown:hover > .iq-submenu,
    .vt-topbar-dropdown:focus-within > .iq-submenu,
    .vt-topbar-dropdown.menu-open > .iq-submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .vt-topbar-nav > li > .iq-submenu li {
        margin: 0;
    }
    .vt-topbar-nav > li > .iq-submenu li a {
        padding: 11px 12px;
        border-radius: 10px;
        color: #52637d;
        font-weight: 600;
    }
    .vt-topbar-nav > li > .iq-submenu li a:hover,
    .vt-topbar-nav > li > .iq-submenu li.active > a {
        background: #f4f8ff;
        color: #0f172a;
    }
    .vt-topbar .navbar {
        flex: 0 0 auto;
        margin-left: auto;
    }
    .vt-topbar .navbar-list {
        float: none;
        display: flex;
        align-items: center;
        margin: 0;
    }
    .vt-topbar .navbar-list li {
        float: none;
    }
    .topbar-user-trigger.vt-topbar-user {
        display: inline-flex !important;
        align-items: center;
        min-height: auto;
        line-height: 1.1;
        padding: 8px 10px !important;
        border-radius: 18px;
        border: 1px solid #d8e2ee;
        background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
        gap: 10px;
        box-shadow: 0 10px 22px rgba(148, 163, 184, 0.12);
    }
    .topbar-user-trigger.vt-topbar-user:hover {
        text-decoration: none;
        background: #ffffff;
        border-color: #cfdbe8;
    }
    .vt-topbar-user__meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        min-width: 0;
    }
    .vt-topbar-user__role {
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: #7b8aa3;
        line-height: 1;
    }
    .vt-topbar-user .topbar-user-name {
        font-weight: 700;
        color: #0f172a;
        font-size: 15px;
        line-height: 1.1;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .vt-topbar-user__caret {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 999px;
        background: #edf2f7;
        color: #64748b;
        font-size: 16px;
        flex: 0 0 auto;
    }
    .vt-topbar-user__caret i {
        line-height: 1;
    }
    .vt-topbar-user .topbar-user-avatar {
        width: 42px;
        height: 42px;
        font-size: 15px;
        box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
    }
}
.topbar-user-trigger {
    gap: 10px;
}
.topbar-user-avatar,
.mobile-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.16);
}
.topbar-user-avatar.has-image,
.mobile-profile-avatar.has-image {
    color: transparent;
}
.topbar-user-avatar--panel {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}
.topbar-user-name {
    font-weight: 600;
    color: #0f172a;
}
.topbar-user-panel {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-profile-avatar {
    text-decoration: none !important;
}
@media (min-width: 992px) and (max-width: 1320px) {
    .iq-navbar-custom.vt-topbar {
        grid-template-columns: minmax(190px, 228px) minmax(0, 1fr) auto;
        padding: 12px 14px;
        gap: 12px;
    }
    .vt-brand__eyebrow {
        display: none;
    }
    .vt-brand__caption {
        display: none;
    }
    .vt-topbar-nav > li > a {
        padding: 10px 9px !important;
        font-size: 12px;
    }
    .vt-topbar-nav > li > a i {
        font-size: 16px;
    }
    .vt-topbar-user__role {
        display: none;
    }
    .vt-topbar-user .topbar-user-name {
        max-width: 120px;
        font-size: 14px;
    }
}
.bg-blue { background-color: #468bd8 !important; }
.dash-hover-gradient { background-color: #fff; min-height: 200px; }
.dash-hover-gradient:hover { cursor: pointer; background: #0084ff; color: #fff; }
.dash-hover-scale { min-height: 200px; transition: all 200ms ease-in-out; }
.dash-hover-scale:hover { cursor: pointer; transform: scale(1.1); transition: all 200ms ease-in-out; }
.dash-hover-gradient:hover .iq-card-body *, .dash-hover-gradient:hover .iq-card-header i { color: #fff; }


.transformY-min-15 { transform: translateY(-15px); }
.transformY-min-45 { transform: translateY(-45px); }
.text-gray { color: #aaa; }
.font-size-22 { font-size: 22px; }
.font-size-24 { font-size: 24px; }
.font-size-26 { font-size: 26px; }
.font-size-28 { font-size: 28px; }
.font-size-30 { font-size: 30px; }
.font-size-32 { font-size: 32px; }
.font-size-34 { font-size: 34px; }
.font-size-36 { font-size: 36px; }
.font-size-38 { font-size: 38px; }
.font-size-40 { font-size: 40px; }
.height-25 { height: 25px !important; }
.height-50 { height: 50px !important; }
.height-75 { height: 75px !important; }
.height-100 { height: 100px !important; }
.height-125 { height: 125px !important; }
.height-150 { height: 150px !important; }
.chartjs-pie-chart { display: inline-block; vertical-align: middle; width: 100%; }
.chart-legend { margin: 0; padding: 0; }
.chart-legend { display: inline-block; vertical-align: middle; width: 80%; font-size: 14px; }
.chart-legend ul { padding: 0px; }
.chart-legend li { line-height: 1.3em; list-style: none; margin: 0 0 .3em 0; min-height: 1.3em; }
.chart-legend li span { border-radius: .3em; display: inline-block; height: 1.3em; left: 0; margin-right: .5em; vertical-align: middle; width: 1.3em; }
.apexcharts-gridlines-horizontal { display: none !important; }

/*  Css for the Dashboard 2 */
.iq-border-radius-5 { border-radius: 5px; }
.iq-border-radius-10 { border-radius: 10px; }
.iq-border-radius-15 { border-radius: 15px; }
.iq-border-radius-20 { border-radius: 20px; }
.iq-border-r-5 { border-right: 5px solid; }
.iq-border-l-5 { border-left: 5px solid; }
.iq-shadow { box-shadow: 0 0 2rem 0 rgba(136, 152, 170, .15) !important; }
.iq-profile-card { overflow: visible; }
.left-section { }
.right-section { min-height: 80vh; border-radius: 50px; }
.iq-icon-shape { padding: 12px; text-align: center; display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; }

/* Project 7 Dashboard */
.kanban-drag, .kanban-item { padding: 5px !important; }
.kanban-drag { height: 600px; overflow: hidden; overflow-y: scroll; }
.gantt-container { height: 350px; }
.bg-banner-image { background-size: 100% 100% !important; background-repeat: no-repeat !important; height: 250px; }
.banner-bg-color-primary { width: 100%; height: 100%; background: rgba(106, 117, 202, 0.8); border-radius: inherit; }
.iq-mt--50 { margin-top: -50px; }
.full-map { height: 100vh; z-index: 0; }
.map-profile-card { margin-right: 30px; border: 1px solid #ddd; }
.track { display: -webkit-inline-box; display: -moz-inline-box; overflow-x: scroll; }
::-webkit-scrollbar { width: 8px; height: 8px; border-radius: 20px; }

/* Track */
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 20px; }

/* Handle */
::-webkit-scrollbar-thumb { background: #888; border-radius: 20px; }

/* Handle on hover */
::-webkit-scrollbar-thumb:hover { background: #555; border-radius: 20px; }
.dash-tracking-icon { height: 100px; }
.transformX-min-1 { transform: scaleX(-1); }

/* Dashboard */
.stat-row .col-lg-6,
.stat-row .col-lg-3,
.quick-stats .col-lg-3 { display: flex; width: 100%; }
.quick-card { min-height: 150px; }
.quick-stats .iq-card { width: 100%; }
.quick-stats .iq-card .iq-card-body { padding: 16px 18px; }
.quick-stats h2 { font-size: 26px; }
.stat-stack .iq-card { min-height: 150px; }
.quick-stats .iq-card .iq-card-icon { width: 44px; height: 44px; }
.stat-range .btn { min-width: 40px; padding: 2px 8px; }
.stat-range .btn.active { background: #6b5bff; color: #fff; border-color: #6b5bff; }
.stat-range-label { color: #6b5bff; font-weight: 600; font-size: 12px; padding-left: 4px; }

.dashboard-page .dashboard-container {
    max-width: 1490px;
}

.dashboard-page .dashboard-ledger__shell {
    padding: 22px;
    border-radius: 26px;
    border: 1px solid #dbe4ee;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.07), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 252, 0.98) 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.dashboard-page .dashboard-ledger__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.dashboard-page .dashboard-ledger__copy {
    max-width: 760px;
}

.dashboard-page .dashboard-ledger__eyebrow,
.dashboard-page .dashboard-chart-card__eyebrow,
.dashboard-page .dashboard-trend-card__eyebrow,
.dashboard-page .dashboard-metric-card__label,
.dashboard-page .dashboard-ledger__scope-label,
.dashboard-page .dashboard-ledger__year-label,
.dashboard-page .dashboard-trend-card__kpi-label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dashboard-page .dashboard-ledger__eyebrow {
    color: #718096;
}

.dashboard-page .dashboard-ledger__title {
    margin: 0;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.dashboard-page .dashboard-ledger__subtitle {
    margin: 12px 0 0;
    max-width: 680px;
    font-size: 15px;
    line-height: 1.65;
    color: #607086;
}

.dashboard-page .dashboard-ledger__toolbar {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-page .dashboard-ledger__scope,
.dashboard-page .dashboard-ledger__year {
    min-width: 180px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid #dbe4ee;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    margin: 0;
}

.dashboard-page .dashboard-ledger__scope {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-page .dashboard-ledger__scope-label,
.dashboard-page .dashboard-ledger__year-label {
    color: #7b8aa3;
    margin-bottom: 4px;
}

.dashboard-page .dashboard-ledger__scope-value {
    display: block;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.dashboard-page .dashboard-ledger__year .form-control {
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid #d6e0ea;
    background: #ffffff;
    box-shadow: none;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-page .dashboard-ledger__year .form-control:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.dashboard-page .dashboard-metric-card,
.dashboard-page .dashboard-trend-card,
.dashboard-page .dashboard-chart-card {
    border: 1px solid #dde5ef;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.dashboard-page .dashboard-metric-card .iq-card-body,
.dashboard-page .dashboard-trend-card .iq-card-body {
    padding: 20px 22px;
}

.dashboard-page .dashboard-metric-card__label {
    color: #718096;
}

.dashboard-page .dashboard-metric-card h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.dashboard-page .dashboard-metric-card__meta {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.dashboard-page .dashboard-metric-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    flex: 0 0 auto;
}

.dashboard-page .dashboard-metric-card__icon--emerald {
    background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
}

.dashboard-page .dashboard-metric-card__icon--slate {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

.dashboard-page .wave-card.dashboard-trend-card {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 24%),
        linear-gradient(180deg, #fdfefe 0%, #f5f8fb 100%);
}

.dashboard-page .dashboard-trend-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.dashboard-page .dashboard-trend-card__copy {
    max-width: 520px;
}

.dashboard-page .dashboard-trend-card__eyebrow,
.dashboard-page .dashboard-chart-card__eyebrow {
    color: #718096;
}

.dashboard-page .dashboard-trend-card__title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.dashboard-page .dashboard-trend-card__range {
    color: #0f766e;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.dashboard-page .dashboard-trend-card__meta {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #607086;
}

.dashboard-page .dashboard-trend-card__kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 320px;
}

.dashboard-page .dashboard-trend-card__kpi {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #dce5ef;
    background: rgba(255, 255, 255, 0.84);
}

.dashboard-page .dashboard-trend-card__kpi-label {
    color: #7b8aa3;
    margin-bottom: 8px;
}

.dashboard-page .dashboard-trend-card__kpi-value {
    display: block;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #0f172a;
    font-weight: 800;
}

.dashboard-page .dashboard-trend-card__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.dashboard-page .dashboard-range-toggle {
    gap: 6px;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid #dbe4ee;
    background: #edf2f7;
}

.dashboard-page .dashboard-range-toggle .btn {
    min-width: 76px;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #52637d;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.dashboard-page .dashboard-range-toggle .btn.active,
.dashboard-page .dashboard-range-toggle .btn:hover,
.dashboard-page .dashboard-range-toggle .btn:focus {
    background: #ffffff;
    color: #0f766e;
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(148, 163, 184, 0.16);
}

.dashboard-page .dashboard-range-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-page .dashboard-range-filter .form-control {
    min-width: 154px;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid #d6e0ea;
    background: #ffffff;
    box-shadow: none;
}

.dashboard-page .dashboard-range-filter .form-control:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.dashboard-page .dashboard-range-filter .btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
    font-weight: 700;
}

.dashboard-page .dashboard-range-filter .btn:hover,
.dashboard-page .dashboard-range-filter .btn:focus {
    background: linear-gradient(135deg, #0b5f58 0%, #0d9a6f 100%);
}

.dashboard-page .dashboard-trend-card__chart {
    min-height: 190px;
}

.dashboard-page .dashboard-chart-card .iq-card-header {
    padding: 18px 22px 0;
    border-bottom: 0;
    background: transparent;
}

.dashboard-page .dashboard-chart-card .iq-card-body {
    padding: 16px 22px 22px;
}

.dashboard-page .dashboard-chart-card .card-title {
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.dashboard-page .dashboard-chart-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce5ef;
    background: #f8fafc;
    color: #0f766e;
    font-size: 20px;
}

.dashboard-page .apexcharts-legend-text {
    color: #52637d !important;
}

.dashboard-page .chart-loading .apexcharts-canvas {
    opacity: 0;
}

@media (max-width: 991.98px) {
    .dashboard-page .dashboard-ledger__shell {
        padding: 18px;
        border-radius: 22px;
    }

    .dashboard-page .dashboard-ledger__header,
    .dashboard-page .dashboard-trend-card__header,
    .dashboard-page .dashboard-trend-card__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-page .dashboard-ledger__toolbar {
        width: 100%;
        justify-content: stretch;
    }

    .dashboard-page .dashboard-ledger__scope,
    .dashboard-page .dashboard-ledger__year {
        width: 100%;
    }

    .dashboard-page .dashboard-ledger__title {
        font-size: 31px;
    }

    .dashboard-page .dashboard-trend-card__title {
        font-size: 24px;
    }

    .dashboard-page .dashboard-trend-card__kpis {
        min-width: 0;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .dashboard-page .dashboard-range-filter {
        justify-content: stretch;
    }

    .dashboard-page .dashboard-range-filter .form-control,
    .dashboard-page .dashboard-range-filter .btn {
        width: 100%;
    }
}

.table-area {
    max-width: 1100px;
    margin: 0 auto;
}

/* Filter drawer */
.filter-pane { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 18px; }
.filter-pane__header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eef1f7; padding-bottom: 6px; }
.filter-pane__eyebrow { margin: 0; color: #8a94ad; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; }
.filter-pane__title { margin: 0; color: #1a2950; font-weight: 700; }
.filter-section { display: flex; flex-direction: column; gap: 6px; }
.filter-label { font-weight: 600; color: #1a2950; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 0; }
.filter-actions { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-start; }
.filter-actions .btn { border-radius: 8px; font-weight: 600; }
.active-filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #f4f6fb;
    color: #1a2950;
    font-weight: 600;
    border: 1px solid #e4e8f3;
}
.filter-tag__close { cursor: pointer; color: #8a94ad; }

/* Dashboard charts */
#monthlyChart, #paymentChart {
    min-height: 220px;
}
.chart-range .btn { min-width: 80px; }

/* Serviços - cards de análise */
.service-analytics .iq-card { width: 100%; }
.svc-analytic-card {
    border: 1px solid #eef1f7;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
    border-radius: 12px;
    background: linear-gradient(180deg, #f7f8ff 0%, #ffffff 70%, #f9f9ff 100%);
    position: relative;
}
.svc-card-loading .svc-real { opacity: 0; }
.svc-card-loading .svc-sparkline { display: none; }
.svc-card-loading .svc-skeleton { display: flex; }
.svc-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(73, 94, 252, 0.18);
}
.bg-gradient-primary {
    background: linear-gradient(135deg, #7a5af8 0%, #5b8def 100%);
}
.bg-gradient-info {
    background: linear-gradient(135deg, #34c3ff 0%, #5b8def 100%);
}
.svc-pill {
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.svc-pill-success {
    background: rgba(46, 201, 70, 0.12);
    color: #1f9c3a;
}
.svc-pill-danger {
    background: rgba(240, 79, 79, 0.12);
    color: #d93c3c;
}
.svc-sparkline {
    min-height: 120px;
}
.svc-analytic-card h2 { font-size: 28px; }
.svc-analytic-card h6 { font-weight: 700; color: #1a2950; }

/* Loaders / skeleton */
.svc-skeleton, .chart-skeleton { display: none; flex-direction: column; gap: 8px; }
.skeleton-line {
    display: block;
    width: 80%;
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f2f3f7 25%, #e5e7ef 37%, #f2f3f7 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}
.skeleton-line.short { width: 50%; }
.skeleton-line.tall { height: 22px; }
.skeleton-block {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f2f3f7 25%, #e5e7ef 37%, #f2f3f7 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}
.chart-loading .chart-skeleton { display: flex; }
.chart-loading .apexcharts-canvas { opacity: 0; }

.ledger-loading-row td {
    padding: 14px;
    border-top: 1px solid #edf2f7;
    vertical-align: middle;
    background: #ffffff !important;
}

.ledger-loading-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ledger-loading-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    min-width: 88px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d8e1ec;
    background: #f8fafc;
}

.ledger-loading-pill .skeleton-line {
    width: 58px;
    height: 10px;
    margin: 0;
}

.ledger-loading-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #d8e1ec;
    background: #ffffff;
}

.ledger-loading-action .skeleton-line {
    width: 22px;
    height: 10px;
    margin: 0;
}

.ledger-loading-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 16px;
    border: 1px solid #dce5ef;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ledger-loading-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ledger-loading-card__stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ledger-loading-card__stack .skeleton-line:last-child {
    width: 56%;
}

.footable-loader {
    display: none !important;
}

table.footable > tbody > tr.footable-empty > td {
    font-size: 14px;
}

/* Filter panel */
.svc-filter-panel {
    background: #fff;
    border: 1px solid #eef1f7;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 10px 15px;
}
.svc-filter-panel .filter-section { margin-bottom: 10px; }
.svc-filter-panel .filter-actions { margin-top: 6px; }
@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.svc-service-modal-shell .modal-dialog {
    max-width: 980px;
}

.svc-service-modal-shell .modal-content {
    border: 1px solid #dce5ef;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.2);
    background: linear-gradient(180deg, #f9fbfd 0%, #f3f7fb 100%);
}

.svc-service-modal-shell .modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #dde5ef;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
}

.svc-service-modal-shell .modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.svc-service-modal-shell .modal-header .close,
.svc-service-modal-shell .modal-header .modal-closer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    padding: 0;
    margin: 0;
    border: 1px solid #dce5ef;
    background: #ffffff;
    color: #475569;
    opacity: 1;
}

.svc-service-modal-shell .modal-header .close:hover,
.svc-service-modal-shell .modal-header .modal-closer:hover {
    background: #f8fafc;
    color: #0f172a;
}

.svc-service-modal-shell .modal-body {
    padding: 0;
}

.svc-modal-shell {
    padding: 24px;
}

.svc-modal-shell--create .svc-modal-intro {
    background: linear-gradient(135deg, #0f766e 0%, #0f9f8f 55%, #14b8a6 100%);
}

.svc-modal-shell--update .svc-modal-intro {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #2563eb 100%);
}

.svc-modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.svc-modal-intro {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid #dce5ef;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
    color: #e2e8f0;
}

.svc-modal-kicker,
.svc-section-kicker,
.svc-modal-footer-label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.svc-modal-kicker {
    color: rgba(226, 232, 240, 0.78);
}

.svc-modal-heading {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.svc-modal-copy {
    margin: 0;
    max-width: 760px;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.55;
}

.svc-modal-alert {
    min-height: 0;
}

.svc-modal-alert:not(:empty) {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(220, 38, 38, 0.18);
    background: rgba(254, 242, 242, 0.95);
    color: #b91c1c;
}

.svc-modal-alert ul,
.svc-modal-alert ol {
    margin: 0;
    padding-left: 18px;
}

.svc-modal-section {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #dce5ef;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.svc-section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.svc-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 18px;
    flex-shrink: 0;
}

.svc-section-kicker {
    color: #64748b;
}

.svc-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.svc-modal-grid {
    display: grid;
    gap: 18px;
}

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

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

.svc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.svc-field-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.svc-field-hint {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.svc-price-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1e3a8a;
}

.svc-price-info__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 14px;
    flex-shrink: 0;
}

.svc-price-info__text {
    font-size: 12px;
    line-height: 1.55;
}

.svc-price-info__text strong {
    color: #0f172a;
    font-weight: 700;
}

.svc-price-field {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    margin-top: -4px;
    transition: max-height 220ms ease, opacity 180ms ease, margin-top 180ms ease, padding-top 180ms ease;
}

.svc-price-field.is-visible {
    max-height: 160px;
    opacity: 1;
    margin-top: 4px;
    padding-top: 4px;
}

.svc-service-modal-shell .form-control,
.svc-service-modal-shell .input-group-text {
    min-height: 48px;
    border-radius: 12px;
}

.svc-service-modal-shell .form-control {
    border: 1px solid #d8e1ea;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: none;
}

.svc-service-modal-shell .form-control::placeholder {
    color: #94a3b8;
}

.svc-service-modal-shell .form-control:focus {
    border-color: #12a866;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(18, 168, 102, 0.12);
}

.svc-input-group .input-group-text {
    border: 1px solid #d8e1ea;
    border-right: 0;
    background: #eef4f8;
    color: #64748b;
}

.svc-input-group .form-control {
    border-left: 0;
}

.svc-detail-editor {
    min-height: 150px;
}

.svc-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.svc-payment-option {
    padding-left: 0;
    min-height: 0;
}

.svc-payment-option .custom-control-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.svc-payment-option .custom-control-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    text-align: center;
    transition: all 180ms ease;
    cursor: pointer;
}

.svc-payment-option .custom-control-label::before,
.svc-payment-option .custom-control-label::after {
    display: none;
}

.svc-payment-option .custom-control-input:checked ~ .custom-control-label {
    border-color: #12a866;
    background: rgba(18, 168, 102, 0.1);
    color: #0b8f56;
    box-shadow: inset 0 0 0 1px rgba(18, 168, 102, 0.12);
}

.svc-payment-option .custom-control-input:focus ~ .custom-control-label {
    box-shadow: 0 0 0 3px rgba(18, 168, 102, 0.12);
}

.svc-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid #dce5ef;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.svc-modal-footer--submit-only {
    justify-content: flex-end;
}

.svc-modal-footer-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #475569;
}

.svc-modal-footer-copy strong {
    color: #0f172a;
    font-size: 15px;
}

.svc-modal-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 46px;
    border-radius: 12px;
    font-weight: 700;
}

.svc-service-modal-shell .ck.ck-editor__main > .ck-editor__editable {
    min-height: 170px;
    border-radius: 0 0 12px 12px;
}

.svc-service-modal-shell .ck.ck-toolbar {
    border-radius: 12px 12px 0 0;
}

.svc-summary-sheet {
    text-align: left;
}

.svc-summary-head {
    margin-bottom: 16px;
}

.svc-summary-kicker {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f766e;
}

.svc-summary-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.svc-summary-copy {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.svc-summary-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 16px;
    border: 1px solid #dbe6f0;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fffc 0%, #eefaf5 45%, #f8fafc 100%);
}

.svc-summary-amount-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.svc-summary-amount-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.svc-summary-amount {
    font-size: 30px;
    line-height: 1;
    color: #0f172a;
}

.svc-summary-pill-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.svc-summary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.svc-summary-pill--credit {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.2);
    color: #15803d;
}

.svc-summary-pill--debit {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

.svc-summary-pill--cash {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.22);
    color: #b45309;
}

.svc-summary-pill--mbway {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

.svc-summary-pill--neutral,
.svc-summary-pill--default {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.2);
    color: #475569;
}

.svc-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.svc-summary-card {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.svc-summary-card__label,
.svc-summary-details__label {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.svc-summary-card__value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.svc-summary-details {
    padding: 16px 18px;
    margin-bottom: 14px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.svc-summary-details__value {
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
    white-space: pre-wrap;
}

.svc-summary-note {
    padding-top: 12px;
    border-top: 1px dashed #d7e1ea;
    font-size: 13px;
    color: #64748b;
}

.client-page .container-fluid {
    max-width: 1480px;
}

.client-page .client-board {
    padding: 10px 4px 26px;
}

.client-page .client-board__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.client-page .client-board__intro {
    max-width: 760px;
}

.client-page .client-board__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f766e;
}

.client-page .client-board__title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
}

.client-page .client-board__copy {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.client-page .client-board__cta {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #18c57b 0%, #0faa66 100%);
    box-shadow: 0 16px 30px rgba(16, 185, 129, 0.18);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.client-page .client-board__cta:hover,
.client-page .client-board__cta:focus {
    background: linear-gradient(180deg, #12b16e 0%, #0c995b 100%);
    box-shadow: 0 18px 34px rgba(16, 185, 129, 0.22);
}

.client-page .client-board__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.client-page .client-stat-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dce5ef;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, #ffffff 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.client-page .client-stat-card__label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.client-page .client-stat-card__value {
    display: block;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
}

.client-page .client-ledger-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.client-page .client-ledger-card {
    border: 1px solid #dde5ef;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    background: #f8fafc;
}

.client-page .client-ledger-card--active {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06), inset 0 4px 0 #10b981;
}

.client-page .client-ledger-card--inactive {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06), inset 0 4px 0 #ef4444;
}

.client-page .client-ledger-body {
    padding: 16px 16px 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 1) 100%);
}

.client-page .client-ledger-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.client-page .client-ledger-card__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.client-page .client-ledger-card__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.client-page .client-ledger-card__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #d8e1ec;
    background: #ffffff;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
}

.client-page .client-searchbar {
    position: relative;
    margin-bottom: 14px;
}

.client-page .client-searchbar__icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

.client-page .client-searchbar .form-control {
    min-height: 48px;
    padding-left: 44px;
    border-radius: 14px;
    border: 1px solid #d6e0ea;
    background: #ffffff;
    box-shadow: none;
}

.client-page .client-searchbar .form-control::placeholder {
    color: #94a3b8;
}

.client-page .client-searchbar .form-control:focus {
    border-color: #12a866;
    box-shadow: 0 0 0 3px rgba(18, 168, 102, 0.12);
}

.client-page .client-ledger-table-wrap {
    border-radius: 16px;
    overflow: visible;
    border: 1px solid #dce5ef;
    background: #ffffff;
    padding-bottom: 12px;
}

.client-page .client-ledger-table {
    margin-bottom: 0;
}

.client-page .client-ledger-table thead th {
    padding: 13px 14px;
    border-top: 0;
    border-bottom: 1px solid #d8e1ea;
    background: #eef3f7;
    color: #526277;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.client-page .client-ledger-table thead th:last-child {
    text-align: right;
}

.client-page .client-ledger-table tbody td {
    padding: 14px;
    border-top: 1px solid #edf2f7;
    vertical-align: middle;
    color: #1e293b;
}

.client-page .client-ledger-row:nth-child(even) td {
    background: #fbfdff;
}

.client-page .client-ledger-row:hover td {
    background: #f7fafc;
}

.client-page .client-col-name__title {
    display: block;
    font-weight: 700;
    color: #102a43;
}

.client-page .client-col-nif__value {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d8e1ec;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.client-page .client-col-nif__value.is-empty {
    border-style: dashed;
    color: #94a3b8;
    background: #ffffff;
}

.client-page .client-col-actions,
.staff-page .client-col-actions {
    width: 72px;
    position: relative;
    z-index: 3;
}

.client-page .client-actions,
.staff-page .client-actions {
    justify-content: flex-end;
    position: relative;
    z-index: 3;
}

.client-page .client-actions.show,
.staff-page .client-actions.show {
    z-index: 120;
}

.client-page .client-actions__trigger,
.staff-page .client-actions__trigger {
    min-width: 54px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border-color: #19b873;
    color: #12a866;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.client-page .client-actions__trigger.dropdown-toggle::after,
.staff-page .client-actions__trigger.dropdown-toggle::after {
    display: none;
}

.client-page .client-actions__trigger:hover,
.client-page .client-actions__trigger:focus,
.staff-page .client-actions__trigger:hover,
.staff-page .client-actions__trigger:focus {
    background: #f2fbf6;
    border-color: #12a866;
    color: #0b9a5d;
    box-shadow: none;
}

.client-page .client-actions__icons,
.staff-page .client-actions__icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.client-page .client-actions__menu,
.staff-page .client-actions__menu {
    min-width: 156px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #dde5ef;
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    z-index: 300;
}

.client-page .client-actions__menu.is-floating,
.staff-page .client-actions__menu.is-floating {
    position: fixed;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    margin: 0 !important;
    z-index: 2200;
}

.client-page .client-ledger-row.client-row-menu-open,
.staff-page .client-ledger-row.client-row-menu-open {
    position: relative;
    z-index: 120;
}

.client-page .client-actions__menu .dropdown-item,
.staff-page .client-actions__menu .dropdown-item {
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    color: #334155;
}

.client-page .client-actions__menu .dropdown-item:hover,
.staff-page .client-actions__menu .dropdown-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.client-page .client-empty-state {
    padding: 22px 14px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.client-modal-shell .modal-dialog {
    max-width: 720px;
}

.client-modal-shell .modal-content {
    border: 1px solid #dce5ef;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
    background: linear-gradient(180deg, #f9fbfd 0%, #f3f7fb 100%);
}

.client-modal-shell .modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #dde5ef;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
}

.client-modal-shell .modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.client-modal-shell .modal-header .close,
.client-modal-shell .modal-header .modal-closer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border-radius: 12px;
    border: 1px solid #dce5ef;
    background: #ffffff;
    color: #475569;
    opacity: 1;
}

.client-modal-shell .modal-header .close:hover,
.client-modal-shell .modal-header .close:focus,
.client-modal-shell .modal-header .modal-closer:hover,
.client-modal-shell .modal-header .modal-closer:focus {
    background: #f8fafc;
    color: #0f172a;
}

.client-modal-shell .modal-body {
    padding: 22px 24px 24px;
}

.client-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.client-form-alert {
    min-height: 0;
}

.client-form-alert:not(:empty) {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(220, 38, 38, 0.18);
    background: rgba(254, 242, 242, 0.95);
    color: #b91c1c;
}

.client-form-alert ul,
.client-form-alert ol {
    margin: 0;
    padding-left: 18px;
}

.client-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.client-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.client-form-field--wide {
    grid-column: 1 / -1;
}

.client-form-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.client-form-hint {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.client-form .form-control {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid #d8e1ea;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: none;
}

.client-form .form-control::placeholder {
    color: #94a3b8;
}

.client-form .form-control:focus {
    border-color: #12a866;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(18, 168, 102, 0.12);
}

.client-form-actions {
    display: flex;
    justify-content: flex-end;
}

.client-form-submit {
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #18c57b 0%, #0faa66 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(16, 185, 129, 0.18);
}

.client-form-submit:hover,
.client-form-submit:focus {
    background: linear-gradient(180deg, #12b16e 0%, #0c995b 100%);
    color: #ffffff;
}

.staff-page .staff-col-name__meta {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.staff-page .staff-col-access {
    width: 150px;
}

.staff-page .staff-access-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    background: rgba(14, 165, 233, 0.08);
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
}

.staff-page .staff-access-badge.is-admin {
    border-color: rgba(139, 92, 246, 0.18);
    background: rgba(139, 92, 246, 0.08);
    color: #6d28d9;
}

@media (max-width: 991.98px) {
    .client-page .client-board {
        padding-top: 0;
    }

    .client-page .client-board__header {
        flex-direction: column;
        align-items: stretch;
    }

    .client-page .client-board__stats,
    .client-page .client-ledger-grid {
        grid-template-columns: 1fr;
    }

    .client-page .client-board__cta,
    .client-page .client-form-submit {
        width: 100%;
    }

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

    .client-modal-shell .modal-body {
        padding: 18px;
    }

    .staff-page .staff-col-access {
        width: auto;
    }
}

.vehicle-page .container-fluid {
    max-width: 1480px;
}

.vehicle-page .vehicle-board {
    padding: 10px 4px 26px;
}

.vehicle-page .vehicle-board__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.vehicle-page .vehicle-board__intro {
    max-width: 760px;
}

.vehicle-page .vehicle-board__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f766e;
}

.vehicle-page .vehicle-board__title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
}

.vehicle-page .vehicle-board__copy {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.vehicle-page .vehicle-board__cta {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #18c57b 0%, #0faa66 100%);
    box-shadow: 0 16px 30px rgba(16, 185, 129, 0.18);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vehicle-page .vehicle-board__cta:hover,
.vehicle-page .vehicle-board__cta:focus {
    background: linear-gradient(180deg, #12b16e 0%, #0c995b 100%);
    box-shadow: 0 18px 34px rgba(16, 185, 129, 0.22);
}

.vehicle-page .vehicle-board__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.vehicle-page .vehicle-stat-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #dce5ef;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, #ffffff 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.vehicle-page .vehicle-stat-card__label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.vehicle-page .vehicle-stat-card__value {
    display: block;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    color: #0f172a;
}

.vehicle-page .vehicle-ledger-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.vehicle-page .vehicle-ledger-card {
    border: 1px solid #dde5ef;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    background: #f8fafc;
}

.vehicle-page .vehicle-ledger-card--active {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06), inset 0 4px 0 #10b981;
}

.vehicle-page .vehicle-ledger-card--inactive {
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06), inset 0 4px 0 #ef4444;
}

.vehicle-page .vehicle-ledger-body {
    padding: 16px 16px 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 1) 100%);
}

.vehicle-page .vehicle-ledger-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.vehicle-page .vehicle-ledger-card__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.vehicle-page .vehicle-ledger-card__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.vehicle-page .vehicle-ledger-card__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #d8e1ec;
    background: #ffffff;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
}

.vehicle-page .vehicle-searchbar {
    position: relative;
    margin-bottom: 14px;
}

.vehicle-page .vehicle-searchbar__icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
}

.vehicle-page .vehicle-searchbar .form-control {
    min-height: 48px;
    padding-left: 44px;
    border-radius: 14px;
    border: 1px solid #d6e0ea;
    background: #ffffff;
    box-shadow: none;
}

.vehicle-page .vehicle-searchbar .form-control::placeholder {
    color: #94a3b8;
}

.vehicle-page .vehicle-searchbar .form-control:focus {
    border-color: #12a866;
    box-shadow: 0 0 0 3px rgba(18, 168, 102, 0.12);
}

.vehicle-page .vehicle-ledger-table-wrap {
    border-radius: 16px;
    overflow: visible;
    border: 1px solid #dce5ef;
    background: #ffffff;
    padding-bottom: 12px;
}

.vehicle-page .vehicle-ledger-table {
    margin-bottom: 0;
}

.vehicle-page .vehicle-ledger-table thead th {
    padding: 13px 14px;
    border-top: 0;
    border-bottom: 1px solid #d8e1ea;
    background: #eef3f7;
    color: #526277;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.vehicle-page .vehicle-ledger-table thead th:last-child {
    text-align: right;
}

.vehicle-page .vehicle-ledger-table tbody td {
    padding: 14px;
    border-top: 1px solid #edf2f7;
    vertical-align: middle;
    color: #1e293b;
}

.vehicle-page .vehicle-ledger-row:nth-child(even) td {
    background: #fbfdff;
}

.vehicle-page .vehicle-ledger-row:hover td {
    background: #f7fafc;
}

.vehicle-page .vehicle-plate {
    display: inline-flex;
    align-items: stretch;
    min-height: 52px;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #111827;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.vehicle-page .vehicle-plate__eu {
    position: relative;
    width: 42px;
    background: linear-gradient(180deg, #1d4ed8 0%, #1d4ed8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 5px;
    color: #ffffff;
}

.vehicle-page .vehicle-plate__stars {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}

.vehicle-page .vehicle-plate__stars::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3px;
    height: 3px;
    margin: -1.5px 0 0 -1.5px;
    border-radius: 999px;
    background: #facc15;
    box-shadow:
        0 -8px 0 #facc15,
        4px -6px 0 #facc15,
        7px -2px 0 #facc15,
        7px 2px 0 #facc15,
        4px 6px 0 #facc15,
        0 8px 0 #facc15,
        -4px 6px 0 #facc15,
        -7px 2px 0 #facc15,
        -7px -2px 0 #facc15,
        -4px -6px 0 #facc15;
}

.vehicle-page .vehicle-plate__country {
    display: block;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

.vehicle-page .vehicle-plate__body {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px 0 16px;
    background:
        linear-gradient(90deg, rgba(245, 158, 11, 0.95) 0 4px, transparent 4px),
        #ffffff;
    color: #020617;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.vehicle-page .vehicle-plate__segment {
    font-size: 19px;
    line-height: 1;
}

.vehicle-page .vehicle-plate__separator {
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
    margin-top: -1px;
}

.vehicle-page .vehicle-model {
    display: block;
    font-weight: 700;
    color: #102a43;
}

.vehicle-page .vehicle-col-actions {
    width: 72px;
    position: relative;
    z-index: 3;
}

.vehicle-page .vehicle-actions {
    justify-content: flex-end;
    position: relative;
    z-index: 3;
}

.vehicle-page .vehicle-actions.show {
    z-index: 120;
}

.vehicle-page .vehicle-actions__trigger {
    min-width: 54px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border-color: #19b873;
    color: #12a866;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.vehicle-page .vehicle-actions__trigger.dropdown-toggle::after {
    display: none;
}

.vehicle-page .vehicle-actions__trigger:hover,
.vehicle-page .vehicle-actions__trigger:focus {
    background: #f2fbf6;
    border-color: #12a866;
    color: #0b9a5d;
    box-shadow: none;
}

.vehicle-page .vehicle-actions__icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.vehicle-page .vehicle-actions__menu {
    min-width: 156px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #dde5ef;
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    z-index: 300;
}

.vehicle-page .vehicle-actions__menu.is-floating {
    position: fixed;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    margin: 0 !important;
    z-index: 2200;
}

.vehicle-page .vehicle-ledger-row.vehicle-row-menu-open {
    position: relative;
    z-index: 120;
}

.vehicle-page .vehicle-actions__menu .dropdown-item {
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    color: #334155;
}

.vehicle-page .vehicle-actions__menu .dropdown-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.vehicle-page .vehicle-empty-state {
    padding: 22px 14px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.profile-page .container-fluid {
    max-width: 1380px;
}

.profile-page .profile-shell {
    padding: 10px 4px 26px;
}

.profile-page .profile-shell__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f766e;
}

.profile-page .profile-shell__title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
}

.profile-page .profile-shell__copy {
    margin: 0 0 18px;
    color: #64748b;
    line-height: 1.65;
    max-width: 720px;
}

.profile-page .profile-grid {
    display: grid;
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
    gap: 18px;
}

.profile-page .profile-summary-card,
.profile-page .profile-form-card {
    border: 1px solid #dde5ef;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 1) 100%);
}

.profile-page .profile-summary-card__body,
.profile-page .profile-form-card__body {
    padding: 24px;
}

.profile-page .profile-avatar-upload {
    margin: 0 auto 18px;
    position: relative;
}

.profile-page .profile-avatar-upload .avatar-preview {
    width: 192px;
    height: 192px;
    margin: 0 auto;
    border: 6px solid #e6edf5;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.profile-page .profile-avatar-preview > div,
.profile-page #profileAvatarPreview {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
}

.profile-page #profileAvatarPreview.has-initials {
    background-image: none !important;
    background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
    color: #ffffff;
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.profile-page #profileAvatarPreview.has-image {
    color: transparent;
}

.profile-page .profile-avatar-upload.is-uploading .avatar-preview {
    position: relative;
}

.profile-page .profile-avatar-upload.is-uploading .avatar-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.44);
    z-index: 2;
}

.profile-page .profile-avatar-upload.is-uploading .avatar-preview::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.42);
    border-top-color: #ffffff;
    animation: profileAvatarSpin 0.8s linear infinite;
    z-index: 3;
}

.profile-page .profile-avatar-upload.is-uploading .avatar-edit {
    pointer-events: none;
    opacity: 0.7;
}

.profile-page .profile-summary-card__meta {
    text-align: center;
    margin-bottom: 18px;
}

.profile-page .profile-summary-card__meta h4 {
    margin: 0 0 6px;
    color: #0f172a;
    font-weight: 700;
}

.profile-page .profile-summary-card__meta p {
    margin: 0;
    color: #64748b;
}

.profile-page .profile-summary-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.profile-page .profile-summary-stat {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.profile-page .profile-summary-stat__label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.profile-page .profile-summary-stat__value {
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.profile-page .profile-summary-note {
    padding-top: 14px;
    border-top: 1px dashed #d7e1ea;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.profile-page .profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.profile-page .profile-form-field--wide {
    grid-column: 1 / -1;
}

.profile-page .profile-form-label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.profile-page .profile-form-card .form-control {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid #d8e1ea;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: none;
}

.profile-page .profile-form-card .form-control::placeholder {
    color: #94a3b8;
}

.profile-page .profile-form-card .form-control:focus {
    border-color: #12a866;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(18, 168, 102, 0.12);
}

.profile-page .profile-form-alert {
    border-radius: 14px;
    border-color: rgba(59, 130, 246, 0.16);
    background: rgba(239, 246, 255, 0.96);
    color: #1e40af;
}

@keyframes profileAvatarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 991.98px) {
    .vehicle-page .vehicle-board {
        padding-top: 0;
    }

    .vehicle-page .vehicle-board__header {
        flex-direction: column;
        align-items: stretch;
    }

    .vehicle-page .vehicle-board__stats,
    .vehicle-page .vehicle-ledger-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-page .vehicle-board__cta {
        width: 100%;
    }

    .topbar-user-name {
        display: none;
    }

    .profile-page .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-page .profile-form-grid,
    .profile-page .profile-summary-stats {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .client-page .client-ledger-grid,
    .vehicle-page .vehicle-ledger-grid {
        grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.78fr);
        align-items: start;
    }

    .client-page .client-ledger-card--inactive,
    .vehicle-page .vehicle-ledger-card--inactive {
        opacity: 0.96;
    }

    .client-page .client-ledger-card--inactive .client-ledger-body,
    .vehicle-page .vehicle-ledger-card--inactive .vehicle-ledger-body {
        padding-bottom: 14px;
    }

    .client-page .client-ledger-card--inactive .client-ledger-card__title,
    .vehicle-page .vehicle-ledger-card--inactive .vehicle-ledger-card__title {
        font-size: 20px;
    }

    .client-page .client-ledger-card--inactive .client-ledger-card__count,
    .vehicle-page .vehicle-ledger-card--inactive .vehicle-ledger-card__count {
        min-width: 40px;
        min-height: 40px;
        font-size: 16px;
    }

.client-page .client-ledger-card--inactive .client-searchbar,
.vehicle-page .vehicle-ledger-card--inactive .vehicle-searchbar {
    margin-bottom: 10px;
}

    .client-page .client-ledger-card--inactive .client-searchbar .form-control,
    .vehicle-page .vehicle-ledger-card--inactive .vehicle-searchbar .form-control {
        min-height: 42px;
        font-size: 14px;
    }

    .client-page .client-ledger-card--inactive .client-ledger-table-wrap,
    .vehicle-page .vehicle-ledger-card--inactive .vehicle-ledger-table-wrap {
        max-height: 360px;
        overflow: auto;
    }

    .client-page .client-ledger-card--inactive .client-ledger-table thead th,
    .vehicle-page .vehicle-ledger-card--inactive .vehicle-ledger-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .client-page .client-ledger-card--inactive .client-ledger-table tbody td,
    .vehicle-page .vehicle-ledger-card--inactive .vehicle-ledger-table tbody td {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .client-page .client-ledger-card--inactive .client-col-name__title,
    .vehicle-page .vehicle-ledger-card--inactive .vehicle-model {
        font-size: 14px;
    }

    .client-page .client-ledger-card--inactive .client-col-nif__value,
    .vehicle-page .vehicle-ledger-card--inactive .vehicle-plate {
        transform: scale(0.94);
        transform-origin: left center;
    }

.client-page .client-ledger-card--inactive .client-actions__trigger,
.vehicle-page .vehicle-ledger-card--inactive .vehicle-actions__trigger {
    min-width: 48px;
    height: 34px;
}

.category-page .container-fluid {
    max-width: 1340px;
}

.category-page .category-board {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 6px;
}

.category-page .category-board__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.category-page .category-board__intro {
    max-width: 760px;
}

.category-page .category-board__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0f766e;
}

.category-page .category-board__title {
    margin: 0;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.category-page .category-board__copy {
    margin: 12px 0 0;
    max-width: 700px;
    font-size: 16px;
    line-height: 1.65;
    color: #607086;
}

.category-page .category-board__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
    border: 0;
    background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.22);
    font-weight: 700;
}

.category-page .category-board__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    gap: 16px;
}

.category-page .category-stat-card {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid #dde5ef;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.category-page .category-stat-card__label,
.category-page .category-ledger-card__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #718096;
}

.category-page .category-stat-card__value {
    display: block;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.category-page .category-ledger-card {
    border: 1px solid #dde5ef;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.category-page .category-ledger-body {
    padding: 18px;
}

.category-page .category-ledger-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.category-page .category-ledger-card__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.category-page .category-ledger-card__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #d9e2ec;
    background: #ffffff;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
}

.category-page .category-ledger-table-wrap {
    position: relative;
    border-radius: 18px;
    overflow: visible;
    border: 0;
    background: transparent;
    padding-bottom: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.category-page .category-ledger-table-wrap.is-ft-loading::after {
    display: none;
}

.category-page .category-ledger-table-wrap.is-ft-loading .category-ledger-table {
    opacity: 1;
}

.category-page .category-ledger-table {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #d2dce8;
    border-radius: 16px;
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.05);
}

.category-page .category-ledger-table thead th {
    padding: 15px 14px;
    border-top: 0;
    border-bottom: 1px solid #d4deea;
    background: linear-gradient(180deg, #f7f9fc 0%, #e9eff5 100%);
    color: #425466;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.category-page .category-ledger-table thead th + th {
    border-left: 1px solid #edf2f7;
}

.category-page .category-ledger-table thead th:last-child {
    text-align: right;
}

.category-page .category-ledger-table tbody td {
    padding: 16px 14px;
    border-top: 1px solid #e8eef4;
    vertical-align: middle;
    color: #1e293b;
    font-size: 14px;
}

.category-page .category-ledger-row:nth-child(even) td {
    background: #fcfdff;
}

.category-page .category-ledger-row:hover td {
    background: #f6fafc;
}

.category-page .category-col-name__title {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: #102a43;
}

.category-page .category-col-actions {
    width: 76px;
    position: relative;
    z-index: 3;
}

.category-page .category-actions {
    justify-content: flex-end;
    position: relative;
    z-index: 3;
}

.category-page .category-actions.show,
.category-page .category-actions.dropup {
    z-index: 12;
}

.category-page .category-actions__trigger {
    min-width: 58px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border-color: #c4d2e1;
    color: #214d7a;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.category-page .category-actions__trigger.dropdown-toggle::after {
    display: none;
}

.category-page .category-actions__trigger:hover,
.category-page .category-actions__trigger:focus {
    background: #f3f8fc;
    border-color: #9db4cb;
    color: #163f74;
    box-shadow: none;
}

.category-page .category-actions__icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.category-page .category-actions__menu {
    min-width: 156px;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    margin-top: 0;
    padding: 8px;
    border: 1px solid #dde5ef;
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    z-index: 40;
}

.category-page .category-actions__menu.is-floating {
    position: fixed;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    margin: 0 !important;
    z-index: 2200;
}

.category-page .category-ledger-row.category-row-menu-open {
    position: relative;
    z-index: 120;
}

.category-page .category-actions.dropup .category-actions__menu {
    top: auto;
    bottom: calc(100% + 8px);
}

.category-page .category-actions__menu .dropdown-item {
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    color: #334155;
}

.category-page .category-actions__menu .dropdown-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.category-page .category-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 20px;
    color: #7b8aa3;
    font-weight: 600;
    text-align: center;
}

.category-page .table.footable > thead > tr.footable-filtering > th {
    padding: 14px 16px;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef4f8 100%);
    border-bottom: 1px solid #d8e1ea;
}

.category-page .table.footable > thead > tr.footable-filtering > th div.form-group,
.category-page .form-group > .footable-filtering-search {
    width: min(100%, 420px);
}

.category-page .footable-filtering-search {
    float: none;
    margin: 0;
}

.category-page .footable-filtering-search .input-group {
    align-items: stretch;
    width: 100%;
    border: 1px solid #d6e0ea;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.category-page .footable-filtering-search input.form-control {
    height: 48px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 18px;
    color: #0f172a;
    font-size: 15px;
    box-shadow: none;
}

.category-page .footable-filtering-search input.form-control::placeholder {
    color: #94a3b8;
}

.category-page .footable-filtering-search .input-group-btn {
    display: flex;
}

.category-page .footable-filtering-search .btn {
    min-width: 56px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #18c57b 0%, #0faa66 100%);
    color: #ffffff;
    box-shadow: none;
}

.category-page .footable-filtering-search .btn:hover,
.category-page .footable-filtering-search .btn:focus {
    background: linear-gradient(180deg, #10b36d 0%, #0a995b 100%);
    color: #ffffff;
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .category-page .category-board {
        gap: 14px;
    }

    .category-page .category-board__header {
        flex-direction: column;
        align-items: stretch;
    }

    .category-page .category-board__title {
        font-size: 30px;
    }

    .category-page .category-board__copy {
        font-size: 14px;
        line-height: 1.55;
    }

    .category-page .category-board__cta {
        width: 100%;
    }

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

    .category-page .category-ledger-card__head {
        align-items: flex-start;
    }

    .category-page .category-ledger-card__title {
        font-size: 24px;
    }

    .category-page .category-ledger-body {
        padding: 16px;
    }
}
}

body.vt-login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.16), transparent 32%),
        linear-gradient(135deg, #f4fbf8 0%, #f8fafc 45%, #eef4ff 100%);
    overflow-x: hidden;
}

body.vt-login-page::before,
body.vt-login-page::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

body.vt-login-page::before {
    width: 420px;
    height: 420px;
    top: -160px;
    right: -120px;
    background: rgba(20, 184, 166, 0.12);
    filter: blur(8px);
}

body.vt-login-page::after {
    width: 360px;
    height: 360px;
    bottom: -120px;
    left: -120px;
    background: rgba(59, 130, 246, 0.1);
    filter: blur(10px);
}

body.vt-login-page .vt-login-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

body.vt-login-page .vt-login-access {
    width: 100%;
    max-width: 480px;
}

body.vt-login-page .vt-login-brand__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 18px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
}

body.vt-login-page .vt-login-brand__name {
    display: block;
    font-size: 28px;
    line-height: 1;
    color: #0f172a;
}

body.vt-login-page .vt-login-access {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.vt-login-page .form-login {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: none;
    height: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

body.vt-login-page .vt-login-card {
    border-radius: 30px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.vt-login-page .vt-login-card.is-success {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 32px 70px rgba(15, 118, 110, 0.14);
}

body.vt-login-page .vt-login-card.is-busy {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 34px 72px rgba(15, 23, 42, 0.16);
}

body.vt-login-page .sign-in-from {
    padding: 36px 34px;
}

body.vt-login-page .vt-login-card-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}

body.vt-login-page .vt-login-card-head {
    margin-bottom: 20px;
    text-align: center;
}

body.vt-login-page .vt-login-card-head h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: #0f172a;
}

body.vt-login-page .vt-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.vt-login-page .vt-login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.vt-login-page .vt-login-field label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

body.vt-login-page .vt-login-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.vt-login-page .vt-login-password-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    color: #0f766e;
    cursor: pointer;
}

body.vt-login-page .vt-login-password-toggle:hover {
    color: #0b5f58;
}

body.vt-login-page .vt-login-form .form-control {
    min-height: 56px;
    border-radius: 16px;
    border: 1px solid #dbe4ee;
    background: #f8fafc;
    box-shadow: none;
    color: #0f172a;
    font-size: 16px;
}

body.vt-login-page .vt-login-form .form-control::placeholder {
    color: #94a3b8;
}

body.vt-login-page .vt-login-form .form-control:focus {
    border-color: #10b981;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

body.vt-login-page .vt-login-options {
    margin: 0;
    padding: 2px 0;
}

body.vt-login-page .vt-login-options .custom-control-label,
body.vt-login-page .vt-login-options small {
    color: #64748b;
}

body.vt-login-page .vt-login-status {
    min-height: 22px;
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
}

body.vt-login-page .vt-login-status.is-info {
    color: #0f766e;
}

body.vt-login-page .vt-login-status.is-error {
    color: #b91c1c;
}

body.vt-login-page .vt-login-status.is-success {
    color: #0f766e;
}

body.vt-login-page #btn-auth {
    min-height: 58px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f766e 0%, #10b981 100%);
    box-shadow: 0 16px 30px rgba(16, 185, 129, 0.22);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.vt-login-page #btn-auth:hover,
body.vt-login-page #btn-auth:focus {
    background: linear-gradient(135deg, #0b5f58 0%, #0f9f72 100%);
}

body.vt-login-page #btn-auth[disabled] {
    opacity: 0.94;
    cursor: wait;
}

body.vt-login-page #btn-auth .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.14em;
    vertical-align: text-bottom;
}

.vt-auth-toast {
    min-width: 330px;
    border-radius: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
}

.vt-auth-toast .swal2-html-container,
.vt-auth-toast .swal2-title {
    color: #ffffff !important;
}

.vt-auth-toast .swal2-html-container {
    margin-top: 2px !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

.vt-auth-toast .swal2-icon {
    margin: 0.65em auto 0.25em !important;
}

.vt-auth-toast .swal2-timer-progress-bar {
    background: rgba(255, 255, 255, 0.45) !important;
}

.vt-auth-toast--welcome {
    background: linear-gradient(135deg, #0f766e 0%, #10b981 55%, #34d399 100%) !important;
}

.vt-record-toast {
    min-width: 360px;
    padding: 12px 14px !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18) !important;
}

.vt-record-toast .swal2-title {
    margin: 0 0 8px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
}

.vt-record-toast .swal2-html-container {
    margin: 0 !important;
    text-align: left !important;
    color: #ffffff !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.vt-record-toast__rows {
    display: grid;
    gap: 6px;
}

.vt-record-toast__row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.vt-record-toast__label {
    opacity: 0.72;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vt-record-toast__value {
    font-weight: 600;
    word-break: break-word;
}

@media (max-width: 1199.98px) {
    body.vt-login-page .vt-login-layout {
        padding: 24px;
    }
}

@media (max-width: 991.98px) {
    body.vt-login-page .vt-login-layout {
        min-height: auto;
        padding: 18px;
    }

    body.vt-login-page .vt-login-access {
        min-height: auto;
    }

    body.vt-login-page .sign-in-from {
        padding: 24px;
    }

    body.vt-login-page .vt-login-card-head h2 {
        font-size: 30px;
    }

    body.vt-login-page .vt-login-options {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .svc-modal-shell {
        padding: 0px;
    }

    .svc-modal-grid--3,
    .svc-modal-grid--2 {
        grid-template-columns: 1fr;
    }

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

    .svc-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .svc-modal-submit {
        width: 100%;
    }

    .svc-summary-highlight {
        flex-direction: column;
        align-items: flex-start;
    }

    .svc-summary-pill-group {
        justify-content: flex-start;
    }

    .svc-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .svc-page .container {
        max-width: 1480px;
    }

    .expense-page .expense-searchbar {
        position: relative;
        display: flex;
        align-items: center;
        margin-bottom: 14px;
        width: min(100%, 980px);
    }

    .expense-page .expense-searchbar.is-loading {
        opacity: 0.8;
    }

    .expense-page .expense-searchbar__icon {
        position: absolute;
        top: 50%;
        left: 16px;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 16px;
        pointer-events: none;
    }

    .expense-page .expense-searchbar .form-control {
        min-height: 48px;
        padding-left: 44px;
        border-radius: 14px;
        border: 1px solid #d6e0ea;
        background: #ffffff;
        box-shadow: none;
    }

    .expense-page .expense-searchbar .form-control::placeholder {
        color: #94a3b8;
    }

    .expense-page .expense-searchbar .form-control:focus {
        border-color: #12a866;
        box-shadow: 0 0 0 3px rgba(18, 168, 102, 0.12);
    }

    .expense-page .expense-searchbar.is-loading .form-control {
        background: linear-gradient(180deg, #f8fbfd 0%, #f1f5f9 100%);
        cursor: text;
    }

    .svc-page .svc-ledger-card {
        border: 1px solid #dde5ef;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
        border-radius: 18px;
        overflow: visible;
        background: #f8fafc;
        transition: none;
    }

    .svc-page .svc-ledger-card:hover {
        border-color: #dde5ef !important;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06) !important;
    }

    .svc-page .svc-ledger-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        margin: 14px 14px 0;
        padding: 18px 22px;
        background: linear-gradient(180deg, #fcfdff 0%, #f4f7fb 100%);
        border: 1px solid #dde5ef;
        border-radius: 16px;
        transition: box-shadow 180ms ease, background 180ms ease, border-radius 180ms ease;
    }

    .svc-page .svc-header-stuck {
        background: #fdfefe;
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
        border-radius: 16px;
    }

    .svc-page .svc-ledger-header.svc-analytics-visible {
        border-radius: 16px 16px 0 0;
    }

    .svc-page .svc-header-copy {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .svc-page .svc-ledger-label {
        font-size: 11px;
        line-height: 1.2;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: #718096;
    }

    .svc-page .svc-header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        flex-wrap: wrap;
    }

    .svc-page .svc-header-actions .btn {
        min-height: 40px;
        border-radius: 10px;
        font-weight: 600;
    }

    .svc-page .svc-toggle-group {
        padding: 4px;
        border-radius: 12px;
        background: #edf2f7;
        border: 1px solid #dbe4ee;
        gap: 4px;
    }

    .svc-page .svc-toggle-group .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 106px;
        border: 0;
        background: transparent;
        color: #475569;
        box-shadow: none;
    }

    .svc-page .svc-toggle-group .btn:hover {
        background: #ffffff;
        color: #0f172a;
    }

    .svc-page .svc-header-chip {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        padding: 0 14px;
        border-radius: 999px;
        border: 1px solid #d8e1eb;
        background: #ffffff;
        color: #334155;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    .svc-page .svc-filter-panel {
        margin: 12px 14px 16px;
        padding: 18px 20px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #dce5ef;
    }

    .svc-page .filter-pane__header {
        margin-bottom: 14px !important;
        padding-bottom: 10px;
        border-bottom: 1px dashed #cfd8e3;
    }

    .svc-page .filter-label {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #475569;
    }

    .svc-page .svc-ledger-body {
        padding: 14px 14px 18px;
        background:
            linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 1) 100%);
        overflow: visible;
        min-width: 0;
    }

    .svc-page .active-filter-tags {
        gap: 10px;
        margin-bottom: 14px !important;
    }

    .svc-page .filter-tag {
        padding: 8px 12px;
        border-radius: 999px;
        background: #eef4f8;
        border-color: #d9e4ee;
        color: #334155;
        font-size: 12px;
    }

    .svc-page .svc-table-toolbar {
        margin-bottom: 16px;
    }

    .svc-page .svc-table-search {
        position: relative;
        width: min(100%, 980px);
    }

    .svc-page .svc-table-search.is-loading {
        opacity: 0.8;
    }

    .svc-page .svc-table-search__icon {
        position: absolute;
        top: 50%;
        left: 18px;
        transform: translateY(-50%);
        font-size: 18px;
        color: #94a3b8;
        pointer-events: none;
    }

    .svc-page .svc-table-search .form-control {
        height: 48px;
        padding: 0 46px 0 48px;
        border-radius: 14px;
        border: 1px solid #cfdbe7;
        background: #ffffff;
        color: #0f172a;
        font-size: 15px;
        font-weight: 500;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    }

    .svc-page .svc-table-search .form-control::placeholder {
        color: #94a3b8;
        font-weight: 500;
    }

    .svc-page .svc-table-search .form-control:focus {
        border-color: #11a46c;
        box-shadow: 0 0 0 4px rgba(17, 164, 108, 0.12);
    }

    .svc-page .svc-table-search.is-loading .form-control {
        background: linear-gradient(180deg, #f8fbfd 0%, #f1f5f9 100%);
        cursor: text;
    }

    .svc-page .svc-table-search__clear {
        position: absolute;
        top: 50%;
        right: 10px;
        width: 30px;
        height: 30px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: #64748b;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-50%);
        opacity: 0;
        pointer-events: none;
        transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
    }

    .svc-page .svc-table-search.has-value .svc-table-search__clear {
        opacity: 1;
        pointer-events: auto;
    }

    .svc-page .svc-table-search__clear:hover,
    .svc-page .svc-table-search__clear:focus {
        background: #eef2f7;
        color: #0f172a;
        outline: 0;
    }

    .svc-page .svc-ledger-table-wrap {
        position: relative;
        overflow: visible;
        isolation: auto;
        background: transparent;
        padding-bottom: 18px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .category-page .category-ledger-table-wrap::before {
        content: "";
        position: absolute;
        top: 0;
        left: 16px;
        right: 16px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, #8ca9bd 0%, #d9e4ec 55%, #eef4f8 100%);
        pointer-events: none;
        z-index: 1;
    }

    .svc-page .svc-search-loading-panel {
        display: none;
        position: absolute;
        top: 58px;
        left: 0;
        right: 0;
        z-index: 4;
        pointer-events: none;
        max-width: 100%;
    }

    .svc-page .svc-ledger-table-wrap.is-searching .svc-search-loading-panel {
        display: block;
    }

    .svc-page .svc-ledger-table-wrap.is-searching {
        overflow: hidden;
        border-radius: 16px;
    }

    .svc-page .svc-ledger-table-wrap.is-searching .svc-ledger-table tbody {
        opacity: 0;
    }

    .svc-page .svc-search-loading-table {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        box-shadow: none;
        overflow: hidden;
    }

    .svc-page .svc-ledger-table-wrap.is-ft-loading::after {
        display: none;
    }

    .svc-page .svc-ledger-table-wrap.is-ft-loading .svc-ledger-table {
        opacity: 1;
    }

    .svc-page .svc-ledger-table {
        margin-bottom: 0;
        width: 100%;
        max-width: 100%;
        background: #ffffff;
        border: 1px solid #d2dce8;
        border-radius: 16px;
        box-shadow: 0 20px 36px rgba(15, 23, 42, 0.05);
        table-layout: fixed;
    }

    .svc-page .svc-ledger-table thead th {
        padding: 15px 14px;
        border-top: 0;
        border-bottom: 1px solid #d4deea;
        background: linear-gradient(180deg, #f7f9fc 0%, #e9eff5 100%);
        color: #425466;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.16em;
    }

    .svc-page .svc-ledger-table thead th[data-sort-key] {
        cursor: pointer;
        user-select: none;
        position: relative;
        padding-right: 28px;
    }

    .svc-page .svc-ledger-table thead th[data-sort-key]::after {
        content: "↕";
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        font-size: 12px;
        letter-spacing: 0;
        color: #9aaabd;
    }

    .svc-page .svc-ledger-table thead th.is-sorted-asc::after {
        content: "↑";
        color: #123d68;
    }

    .svc-page .svc-ledger-table thead th.is-sorted-desc::after {
        content: "↓";
        color: #123d68;
    }

    .svc-page .svc-ledger-table thead th + th {
        border-left: 1px solid #edf2f7;
    }

    .svc-page .svc-ledger-table thead th:nth-child(6),
    .svc-page .svc-ledger-table thead th:last-child {
        text-align: right;
    }

    .svc-page .table.footable > thead > tr.footable-filtering {
        display: none !important;
    }

    .svc-page .svc-ledger-table tbody td {
        padding: 16px 14px;
        border-top: 1px solid #e8eef4;
        vertical-align: middle;
        color: #1e293b;
        font-size: 14px;
        position: relative;
        overflow: visible;
    }

    .svc-page .svc-ledger-row:nth-child(even) td {
        background: #fcfdff;
    }

    .svc-page .svc-ledger-row:hover td {
        background: #f6fafc;
    }

    .svc-page .svc-ledger-row.is-open td {
        background: #f7fbfe;
    }

    .svc-page .svc-ledger-table tbody tr:last-child > td {
        padding-bottom: 22px;
    }

    .svc-page .svc-search-empty-row td {
        padding: 28px 20px !important;
        background: #ffffff;
    }

    .svc-page .svc-search-empty-state {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 18px 20px;
        border: 1px dashed #d7e1ec;
        border-radius: 14px;
        background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
        color: #475569;
    }

    .svc-page .svc-search-empty-state strong {
        font-size: 14px;
        color: #0f172a;
    }

    .svc-page .svc-search-empty-state span {
        font-size: 13px;
        color: #64748b;
    }

    .svc-page .svc-empty-state {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        justify-content: center;
        min-height: 160px;
        padding: 24px 18px;
        border: 1px dashed #d7e1ec;
        border-radius: 16px;
        background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
        color: #64748b;
        text-align: center;
    }

    .svc-page .svc-empty-state strong {
        font-size: 15px;
        color: #0f172a;
    }

    .svc-page .svc-empty-state span {
        font-size: 13px;
        max-width: 280px;
    }

    .svc-page .svc-col-date,
    .svc-page .svc-col-price {
        white-space: nowrap;
    }

    .svc-page .svc-date-main,
    .svc-page .svc-amount {
        font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
        font-variant-numeric: tabular-nums;
    }

    .svc-page .svc-date-main {
        font-size: 15px;
        font-weight: 700;
        color: #0f172a;
    }

    .svc-page .svc-text-strong {
        font-weight: 600;
        color: #1f2937;
        letter-spacing: -0.01em;
    }

    .svc-page .svc-text-client {
        font-weight: 700;
        color: #102a43;
        letter-spacing: -0.01em;
    }

    .svc-page .svc-ledger-badge {
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .svc-page .svc-ledger-chip {
        display: inline-flex;
        align-items: center;
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid #d8e1ec;
        background: #f1f5f9;
        color: #334155;
        font-size: 12px;
        font-weight: 700;
    }

    .svc-page .svc-amount {
        display: block;
        font-size: 17px;
        font-weight: 700;
        color: #0f2744;
    }

    .svc-page .svc-currency {
        display: block;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: #7b8794;
    }

    .svc-page .svc-col-detail {
        min-width: 0;
        width: 140px;
    }

    .svc-page .svc-col-collab,
    .svc-page .svc-col-client,
    .svc-page .svc-col-payment,
    .svc-page .svc-col-vehicle {
        min-width: 0;
    }

    .svc-page .svc-detail-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-height: 38px;
        padding: 0 14px 0 12px;
        border: 1px solid #ccd7e4;
        border-radius: 12px;
        background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
        color: #244362;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
    }

    .svc-page .svc-detail-toggle:hover,
    .svc-page .svc-detail-toggle:focus {
        background: #f0f6fb;
        border-color: #9eb8d2;
        color: #123d68;
        outline: 0;
    }

    .svc-page .svc-detail-toggle.is-open {
        background: linear-gradient(180deg, #eef6fb 0%, #e4edf6 100%);
        border-color: #9fb6cb;
        color: #123d68;
    }

    .svc-page .svc-detail-toggle__icon {
        width: 20px;
        height: 20px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #e9f0f7;
        color: inherit;
        font-size: 14px;
    }

    .svc-page .svc-detail-toggle__label {
        white-space: nowrap;
    }

    .svc-page .svc-col-actions {
        width: 86px;
        position: relative;
        z-index: 3;
    }

    .svc-page .svc-col-actions .btn-group {
        justify-content: flex-end;
        position: relative;
        z-index: 3;
    }

    .svc-page .svc-col-actions .btn-group.show,
    .svc-page .svc-col-actions .btn-group.dropup {
        z-index: 120;
    }

    .svc-page .svc-action-toggle {
        min-width: 62px;
        height: 38px;
        padding: 0 12px;
        border-radius: 12px;
        border-color: #c4d2e1;
        color: #214d7a;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    }

    .svc-page .svc-action-toggle.dropdown-toggle::after {
        display: none;
    }

    .svc-page .svc-action-toggle:hover,
    .svc-page .svc-action-toggle:focus {
        background: #f3f8fc;
        border-color: #9db4cb;
        color: #163f74;
        box-shadow: none;
    }

    .svc-page .svc-action-toggle__icons {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 16px;
    }

    .svc-page .svc-action-menu {
        min-width: 156px;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        margin-top: 0;
        padding: 8px;
        border: 1px solid #dde5ef;
        border-radius: 14px;
        box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
        z-index: 300;
    }

    .svc-page .svc-action-menu.is-floating {
        position: fixed;
        top: 0 !important;
        right: auto !important;
        bottom: auto !important;
        left: 0 !important;
        margin: 0 !important;
        z-index: 2200;
    }

    .svc-page .svc-ledger-row.svc-row-menu-open,
    .svc-page .svc-ledger-row.svc-row-menu-open + .svc-ledger-detail-row {
        position: relative;
        z-index: 120;
    }

    .svc-page .svc-col-actions .btn-group.dropup .svc-action-menu {
        top: auto;
        bottom: calc(100% + 8px);
    }

    .svc-page .svc-ledger-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .svc-page .svc-action-menu .dropdown-item {
        border-radius: 10px;
        padding: 10px 12px;
        font-weight: 600;
        color: #334155;
    }

    .svc-page .svc-action-menu .dropdown-item:hover {
        background: #f8fafc;
        color: #0f172a;
    }

    .svc-page .svc-ledger-pagination {
        margin-top: 14px !important;
        padding-top: 12px;
        border-top: 1px solid #e5ebf2;
    }

    .svc-page .svc-ledger-detail-row[hidden] {
        display: none !important;
    }

    .svc-page .svc-ledger-detail-row > td,
    .svc-page .footable-detail-row > td {
        padding: 0 !important;
        background: #f8fbfd;
        border-top: 0;
        overflow: hidden;
    }

    .svc-page .footable-row-detail {
        margin: 0;
        padding: 14px 16px 16px;
        border-top: 1px solid #e5ebf2;
        background:
            linear-gradient(180deg, rgba(248, 251, 253, 0.96) 0%, rgba(241, 245, 249, 0.98) 100%);
        overflow: hidden;
    }

    .svc-page .footable-row-detail-inner {
        border: 1px solid #dce5ef;
        border-radius: 14px;
        background: #ffffff;
        overflow: hidden;
        max-width: 100%;
    }

    .svc-page .footable-row-detail-row {
        display: grid;
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 0;
        border-top: 1px solid #edf2f7;
    }

    .svc-page .footable-row-detail-row:first-child {
        border-top: 0;
    }

    .svc-page .footable-row-detail-name,
    .svc-page .footable-row-detail-value {
        padding: 12px 14px;
    }

    .svc-page .footable-row-detail-name {
        background: #f8fafc;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #64748b;
    }

    .svc-page .footable-row-detail-value {
        color: #334155;
        line-height: 1.5;
        word-break: break-word;
        overflow-wrap: anywhere;
        min-width: 0;
    }

    .svc-page #paginationInfo {
        font-size: 12px !important;
        font-weight: 700;
        color: #64748b !important;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .svc-page .svc-ledger-pagination .btn {
        min-width: 98px;
        font-weight: 600;
    }

    .svc-page #service-analytics-container {
        margin: -1px 14px 14px;
        padding: 0 14px;
        border-left: 1px solid #dde5ef;
        border-right: 1px solid #dde5ef;
        border-bottom: 1px solid #dde5ef;
        border-radius: 0 0 16px 16px;
        background: linear-gradient(180deg, #f8fafc 0%, #f3f7fb 100%);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        transition: max-height 220ms ease, opacity 180ms ease, padding 220ms ease;
    }

    .svc-page #service-analytics-container.svc-analytics-open {
        max-height: 480px;
        opacity: 1;
        padding-top: 16px;
        pointer-events: auto;
    }

    .svc-page #service-analytics-container.svc-analytics-collapsed {
        max-height: 0;
        opacity: 0;
        padding-top: 0;
        pointer-events: none;
    }

    .svc-page .svc-analytic-card {
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid #dce5ef;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    }

    .svc-page .svc-icon {
        box-shadow: none;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .svc-page .svc-col-detail {
        min-width: 220px;
    }
}

/* Mobile Login Optimization */
@media (max-width: 768px) {
    body.vt-login-page .vt-login-layout {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    body.vt-login-page .vt-login-access {
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.vt-login-page .form-login {
        width: 100%;
    }

    body.vt-login-page .vt-login-card {
        width: 100%;
        border-radius: 24px;
    }

    body.vt-login-page .sign-in-from {
        padding: 28px 24px;
    }

    body.vt-login-page .vt-login-card-head h2 {
        font-size: 26px;
    }

    body.vt-login-page .vt-login-form .form-control {
        min-height: 48px;
        font-size: 16px;
        border-radius: 12px;
    }

    body.vt-login-page #btn-auth {
        min-height: 50px;
        font-size: 15px;
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    body.vt-login-page {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.vt-login-page .vt-login-layout {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        width: 100%;
    }

    body.vt-login-page .vt-login-access {
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.vt-login-page .form-login {
        width: 100%;
        max-width: 340px;
    }

    body.vt-login-page .vt-login-card {
        width: 100%;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    }

    body.vt-login-page .sign-in-from {
        padding: 24px 20px;
    }

    body.vt-login-page .vt-login-card-brand {
        gap: 12px;
        margin-bottom: 20px;
    }

    body.vt-login-page .vt-login-brand__logo {
        width: 56px;
        height: 56px;
        padding: 6px;
    }

    body.vt-login-page .vt-login-brand__name {
        font-size: 24px;
    }

    body.vt-login-page .vt-login-card-head h2 {
        font-size: 22px;
        margin: 0;
    }

    body.vt-login-page .vt-login-form {
        gap: 14px;
    }

    body.vt-login-page .vt-login-field {
        gap: 6px;
    }

    body.vt-login-page .vt-login-field label {
        font-size: 11px;
    }

    body.vt-login-page .vt-login-form .form-control {
        min-height: 44px;
        font-size: 16px;
        border-radius: 10px;
        padding: 12px 14px;
    }

    body.vt-login-page .vt-login-options {
        margin: 0;
        gap: 8px;
        flex-direction: column;
        font-size: 13px;
    }

    body.vt-login-page .vt-login-status {
        font-size: 12px;
        min-height: auto;
    }

    body.vt-login-page #btn-auth {
        min-height: 48px;
        font-size: 14px;
        border-radius: 10px;
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    body.vt-login-page .vt-login-layout {
        padding: 12px;
    }

    body.vt-login-page .form-login {
        max-width: 100%;
    }

    body.vt-login-page .vt-login-card {
        border-radius: 18px;
    }

    body.vt-login-page .sign-in-from {
        padding: 20px 16px;
    }

    body.vt-login-page .vt-login-brand__logo {
        width: 48px;
        height: 48px;
        padding: 4px;
    }

    body.vt-login-page .vt-login-brand__name {
        font-size: 20px;
    }

    body.vt-login-page .vt-login-card-head h2 {
        font-size: 20px;
    }

    body.vt-login-page .vt-login-form .form-control {
        min-height: 40px;
        font-size: 16px;
    }

    body.vt-login-page #btn-auth {
        min-height: 44px;
    }
}

/* ===================================
   DESIGN CONTABILÍSTICO PROFISSIONAL
   =================================== */

:root {
    --accounting-primary: #1a365d;
    --accounting-secondary: #2d5a8e;
    --accounting-accent: #0f766e;
    --accounting-light: #f0f4f8;
    --accounting-border: #cbd5e0;
    --accounting-text: #2d3748;
    --accounting-success: #22863a;
    --accounting-error: #cb2431;
    --accounting-warning: #bf8700;
}

/* Cards Contabilísticos */
.iq-card {
    border: 1px solid var(--accounting-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.08) !important;
    background: #ffffff !important;
    transition: none !important;
}

.iq-card:hover {
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.08) !important;
    border-color: var(--accounting-border) !important;
}

.iq-card-header {
    border-bottom: 2px solid var(--accounting-light) !important;
    background: linear-gradient(180deg, rgba(240, 244, 248, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%) !important;
    padding: 18px 24px !important;
}

.iq-card-body {
    padding: 24px !important;
}

/* Dashboard Contabilístico */
.dashboard-page {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    padding: 24px 0;
}

.dashboard-ledger__header {
    border-bottom: 2px solid var(--accounting-border);
    padding-bottom: 18px;
    margin-bottom: 24px;
}

.dashboard-ledger__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accounting-secondary);
    margin-bottom: 8px;
}

.dashboard-ledger__subtitle {
    font-size: 14px;
    color: var(--accounting-text);
    margin: 0;
}

.dashboard-metric-card {
    border: 1px solid var(--accounting-border) !important;
    border-left: 4px solid var(--accounting-accent) !important;
    background: #ffffff !important;
}

.dashboard-metric-card__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accounting-secondary);
    margin-bottom: 8px;
}

.dashboard-metric-card h2 {
    color: var(--accounting-primary);
    font-weight: 700;
    font-size: 28px;
}

.dashboard-metric-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--accounting-accent);
}

.dashboard-metric-card__icon--emerald {
    background: linear-gradient(135deg, rgba(34, 134, 58, 0.15) 0%, rgba(34, 134, 58, 0.08) 100%) !important;
    color: var(--accounting-success) !important;
}

.dashboard-metric-card__icon--slate {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.15) 0%, rgba(45, 90, 142, 0.1) 100%) !important;
    color: var(--accounting-secondary) !important;
}

/* Tabelas Contabilísticas */
.table {
    font-size: 13px;
}

.table thead th {
    background: linear-gradient(180deg, var(--accounting-light) 0%, #f5f8fb 100%);
    color: var(--accounting-primary);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accounting-border);
    padding: 14px 16px;
}

.table tbody tr {
    border-bottom: 1px solid #f0f4f8;
}

.table tbody tr:hover {
    background-color: rgba(240, 244, 248, 0.5);
}

.table tbody td {
    padding: 14px 16px;
    color: var(--accounting-text);
    vertical-align: middle;
}

.table .badge {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background-color: rgba(34, 134, 58, 0.12) !important;
    color: var(--accounting-success) !important;
    border: 1px solid rgba(34, 134, 58, 0.2);
}

.badge-danger {
    background-color: rgba(203, 36, 49, 0.12) !important;
    color: var(--accounting-error) !important;
    border: 1px solid rgba(203, 36, 49, 0.2);
}

.badge-warning {
    background-color: rgba(191, 135, 0, 0.12) !important;
    color: var(--accounting-warning) !important;
    border: 1px solid rgba(191, 135, 0, 0.2);
}

/* Botões Contabilísticos */
.btn-primary {
    background: linear-gradient(135deg, var(--accounting-accent) 0%, #10b981 100%) !important;
    border: 0 !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
    transition: all 200ms ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.35);
}

.btn-outline-primary {
    color: var(--accounting-secondary) !important;
    border-color: var(--accounting-border) !important;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--accounting-light) !important;
    border-color: var(--accounting-secondary) !important;
    color: var(--accounting-secondary) !important;
}

.btn-outline-secondary {
    color: var(--accounting-text) !important;
    border-color: var(--accounting-border) !important;
}

.btn-outline-secondary:hover {
    background-color: var(--accounting-light) !important;
}

/* Headers Contabilísticos */
.iq-header-title h2,
.iq-header-title h3,
.iq-header-title h4 {
    color: var(--accounting-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Labels e Chips */
.svc-ledger-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accounting-secondary);
}

.svc-header-chip {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accounting-light) 0%, #e8f0f6 100%);
    border: 1px solid var(--accounting-border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accounting-secondary);
}

/* KPI Cards */
.dashboard-trend-card__kpi-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accounting-secondary);
    margin-bottom: 4px;
}

.dashboard-trend-card__kpi-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--accounting-primary);
}

/* Analytics Cards */
.svc-analytic-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%) !important;
    border: 1px solid var(--accounting-border) !important;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.06) !important;
}

.svc-real h6 {
    color: var(--accounting-secondary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.svc-real h2 {
    color: var(--accounting-primary);
    font-weight: 700;
    font-size: 28px;
}

/* Icons Contabilísticos */
.svc-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 20px;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--accounting-accent) 0%, #10b981 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--accounting-secondary) 0%, #2d7db5 100%) !important;
}

/* Form Controls */
.form-control {
    border: 1px solid var(--accounting-border) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: var(--accounting-text) !important;
    font-size: 14px;
    transition: all 150ms ease;
}

.form-control:focus {
    border-color: var(--accounting-secondary) !important;
    box-shadow: 0 0 0 4px rgba(45, 90, 142, 0.08) !important;
}

/* Expense Page */
.expense-page .iq-card-header {
    background: linear-gradient(180deg, rgba(26, 54, 93, 0.05) 0%, rgba(45, 90, 142, 0.02) 100%) !important;
}

.expense-page .svc-ledger-header {
    border-bottom: 2px solid var(--accounting-border);
    padding-bottom: 16px;
}

/* Services Page */
.svc-page {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
}

.svc-page .iq-card {
    transition: all 200ms ease;
}

.report-page {
    background: linear-gradient(135deg, #f7fafc 0%, #eef3f8 100%);
}

.report-page#content-page {
    padding-top: 148px;
}

.report-page .report-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px 0 24px;
}

.report-page .svc-ledger-card {
    border: 1px solid #dce5ef;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #fcfdff 0%, #f3f7fb 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.report-page .svc-ledger-card:hover {
    border-color: #dce5ef !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06) !important;
}

.report-page .svc-ledger-header {
    margin: 14px 14px 0;
    padding: 18px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
    border: 1px solid #dce5ef;
    border-radius: 16px;
    gap: 20px;
}

.report-page .report-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-page .report-hero-copy .iq-header-title span {
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #64748b !important;
}

.report-page .report-hero-copy .card-title {
    font-size: 30px;
    line-height: 1.05;
    color: #0f172a !important;
}

.report-page .report-hero-actions {
    flex-wrap: wrap;
    gap: 10px;
}

.report-page .report-range-chip {
    background: #ffffff;
    color: #334155;
    border-color: #d8e1eb;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.report-page .report-filter-box {
    margin: 12px 14px 0;
    border-radius: 16px;
    overflow: hidden;
}

.report-page .report-filter-panel {
    background: #f8fafc !important;
    border-bottom: 1px solid #dce5ef !important;
}

.report-page .report-kpi-panel {
    background: #ffffff;
    padding-top: 18px !important;
}

.report-page .report-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.report-page .report-kpi-item {
    border: 1px solid #dce5ef;
    border-radius: 16px;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 20px 22px;
    min-height: 152px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.report-page .report-kpi-label {
    display: block;
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
}

.report-page .report-kpi-item h2 {
    width: 100%;
    font-size: 38px;
    line-height: 1;
    margin: 0;
}

.report-page .report-kpi-item small {
    display: block;
    max-width: 24ch;
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    color: #64748b !important;
}

.report-page .report-kpi-item--revenue h2 {
    color: #12a866 !important;
}

.report-page .report-kpi-item--average h2 {
    color: #5bc0eb !important;
}

.report-page .report-kpi-item--days h2 {
    color: #334155 !important;
}

.report-page .report-tabs-card {
    border: 1px solid #dce5ef;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.report-page .report-tab-nav {
    background: linear-gradient(180deg, #f8fbfd 0%, #eef4f8 100%);
    padding: 12px !important;
}

.report-page .report-tab-nav .nav-link {
    border-radius: 12px;
    font-weight: 700;
    color: #64748b;
    padding: 10px 14px;
}

.report-page .report-tab-nav .nav-link.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.report-page .report-tab-content {
    background: #ffffff;
}

.report-page .report-section-head {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%) !important;
}

.report-page .report-table-wrap {
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 16px 16px;
}

.report-page .report-payment-table,
.report-page .report-payment-chart {
    background: #ffffff;
    border-color: #dce5ef !important;
}

.report-page .table-accounting thead th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    border-top: none;
}

.report-page .table-accounting tbody td {
    vertical-align: middle;
    font-size: 0.9rem;
    color: #475569;
}

.report-page .table-clickable-row tbody tr {
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.report-page .table-clickable-row tbody tr:hover {
    background-color: #f1f5f9;
}

.report-page .toggle-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    transition: all 0.2s ease;
}

.report-page .table-clickable-row tbody tr:hover .toggle-icon-wrap {
    background-color: #0d9488;
    border-color: #0d9488;
    color: #ffffff;
}

#drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
    opacity: 1;
}

#drawer-backdrop.d-none {
    opacity: 0;
    pointer-events: none;
}

.report-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: 420px;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    z-index: 1050;
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.12);
    transition: right 0.35s ease-in-out;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #dce5ef;
}

.report-drawer.open {
    right: 0;
}

.report-drawer .report-drawer-header {
    position: sticky !important;
    top: 0;
    z-index: 10;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%) !important;
}

.report-drawer .report-drawer-stats {
    background: #ffffff !important;
}

.report-drawer .report-drawer-body {
    overflow-y: auto !important;
    height: calc(100vh - 208px) !important;
    background: #f8fafc !important;
}

.report-drawer .drawer-item {
    transition: all 0.2s;
    padding: 12px 16px !important;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.report-drawer .drawer-item:hover {
    background-color: #f1f5f9;
    transform: translateX(2px);
}

.report-drawer .drawer-item .date-box {
    background: #e2e8f0;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    text-align: center;
    color: #475569;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.report-drawer .drawer-item .drawer-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0d9488;
}

.report-drawer .drawer-item .badge {
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.report-drawer .kpi-mini-card {
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991.98px) {
    .report-page#content-page {
        padding-top: 0;
    }

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

    .report-page .svc-ledger-header {
        margin: 12px 12px 0;
        padding: 16px 18px;
    }

    .report-page .report-hero-copy .card-title {
        font-size: 26px;
    }

    .report-page .report-hero-actions {
        justify-content: flex-start;
    }

    .report-drawer {
        width: 100%;
        right: -100%;
    }

    .report-drawer .report-drawer-body {
        height: calc(100vh - 188px) !important;
    }
}

@media (max-width: 576px) {
    .report-page .report-kpi-item {
        min-height: 124px;
        padding: 18px;
    }

    .report-page .report-kpi-item h2 {
        font-size: 30px;
    }
}

@media print {
    body, html {
        background: #fff !important;
        width: 100%;
        height: auto;
    }

    .report-page .iq-sidebar,
    .report-page .iq-top-navbar,
    .report-page .iq-footer,
    .report-page .filterBox,
    .report-page #filterBox,
    .report-page .svc-header-actions,
    .report-page .nav-pills,
    .report-drawer,
    #drawer-backdrop,
    .report-page .report-payment-chart {
        display: none !important;
    }

    #content-page.report-page,
    .report-page .iq-card {
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
    }

    .report-page#content-page {
        margin-left: 0 !important;
    }

    .report-page .tab-content > .tab-pane {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .report-page .tab-content > .tab-pane:not(.active) {
        display: none !important;
    }

    .report-page .table-accounting th,
    .report-page .table-accounting td {
        color: #000 !important;
        border-bottom-color: #ccc !important;
    }

    .report-page .toggle-icon-wrap {
        display: none !important;
    }

    .report-page .svc-ledger-header::before {
        content: "EXTRATO CONTABILÍSTICO VIDETAXIS";
        display: block;
        font-size: 1.5rem;
        font-weight: bold;
        text-align: center;
        width: 100%;
        margin-bottom: 20px;
        color: #000;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-metric-card h2 {
        font-size: 24px;
    }

    .dashboard-trend-card__kpi-value {
        font-size: 20px;
    }

    .table {
        font-size: 12px;
    }

    .table thead th {
        padding: 12px 8px;
    }

    .table tbody td {
        padding: 12px 8px;
    }
}
