:root {
    --pospay-primary: #0f766e;
    --pospay-primary-dark: #0b4f49;
    --pospay-primary-rgb: 15, 118, 110;
    --pospay-icon-color: #facc15;
    --pospay-accent: #f59e0b;
    --pospay-bg: #f5f7fb;
    --pospay-surface: #ffffff;
    --pospay-text: #172033;
    --pospay-muted: #6b7280;
    --pospay-border: #e5e7eb;
    --pospay-radius: 8px;
    --pospay-shadow: 0 14px 40px rgba(15, 23, 42, .08);
    --pospay-sidebar-width: 17.5rem;
}

body {
    background: var(--pospay-bg);
    color: var(--pospay-text);
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

.pospay-preloader {
    align-items: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(var(--pospay-primary-rgb), .18), transparent 34%),
        #f8fafc;
    bottom: 0;
    color: var(--pospay-primary-dark);
    display: flex;
    flex-direction: column;
    gap: .85rem;
    justify-content: center;
    left: 0;
    opacity: 1;
    pointer-events: all;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity .28s ease, visibility .28s ease;
    visibility: visible;
    z-index: 3000;
}

.pospay-preloader__mark {
    align-items: center;
    background: rgba(var(--pospay-primary-rgb), .1);
    border: 1px solid rgba(var(--pospay-primary-rgb), .18);
    border-radius: 999px;
    display: inline-flex;
    height: 76px;
    justify-content: center;
    position: relative;
    width: 76px;
}

.pospay-preloader__mark:before {
    animation: pospay-spin .85s linear infinite;
    border: 4px solid rgba(var(--pospay-primary-rgb), .18);
    border-top-color: var(--pospay-primary);
    border-radius: 999px;
    content: "";
    height: 58px;
    position: absolute;
    width: 58px;
}

.pospay-preloader__mark span {
    background: var(--pospay-primary);
    border-radius: 999px;
    box-shadow: 0 0 0 8px rgba(var(--pospay-primary-rgb), .14);
    display: block;
    height: 18px;
    width: 18px;
}

.pospay-preloader strong {
    font-size: .92rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.pospay-loaded .pospay-preloader {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

@keyframes pospay-spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-primary,
.dataTables_wrapper .dt-buttons .dt-button,
input[type="submit"].btn-primary {
    background: var(--pospay-primary) !important;
    border-color: var(--pospay-primary) !important;
    box-shadow: 0 8px 18px rgba(var(--pospay-primary-rgb), .18);
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
input[type="submit"].btn-primary:hover {
    background: var(--pospay-primary-dark) !important;
    border-color: var(--pospay-primary-dark) !important;
}

.btn-secondary {
    background: #475569;
    border-color: #475569;
}

.btn-outline-primary {
    border-color: var(--pospay-primary) !important;
    color: var(--pospay-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--pospay-primary) !important;
    color: #fff !important;
}

.card {
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    box-shadow: var(--pospay-shadow) !important;
}

.card-header {
    background: var(--pospay-surface);
    border-bottom: 1px solid var(--pospay-border);
}

.menu-lateral {
    background: #0f172a;
    border-right: 1px solid rgba(255,255,255,.08);
}

.menu-lateral .nav-link,
.menu-lateral .sidebar-brand {
    color: rgba(255,255,255,.82) !important;
}

.menu-lateral .nav-link:hover,
.menu-lateral .nav-item.active .nav-link {
    color: #fff !important;
    background: rgba(255,255,255,.08);
}

.sidebar .collapse-inner {
    border-radius: var(--pospay-radius) !important;
}

.modern-sidebar {
    background:
        linear-gradient(180deg, rgba(var(--pospay-primary-rgb), .96) 0%, var(--pospay-primary-dark) 34%, #0f172a 100%);
    border-right: 1px solid rgba(var(--pospay-primary-rgb), .28);
    box-shadow: 8px 0 30px rgba(var(--pospay-primary-rgb), .22);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 1rem;
}

.modern-sidebar .sidebar-brand-wrap {
    list-style: none;
    padding: .85rem .75rem .5rem;
}

.modern-sidebar .sidebar-brand {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 64px;
    margin: 0;
    padding: 0;
    position: relative;
}

.modern-sidebar .sidebar-brand img {
    display: block;
    max-height: 58px;
    max-width: 172px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.sidebar-brand-fallback {
    color: var(--pospay-primary);
    display: none;
    font-size: 1.15rem;
    font-weight: 900;
    left: 50%;
    letter-spacing: .02em;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.sidebar-section-label {
    color: rgba(255,255,255,.42);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    list-style: none;
    margin: .85rem .95rem .25rem;
    text-transform: uppercase;
}

.modern-sidebar .nav-item {
    margin: .1rem .65rem;
}

.modern-sidebar .nav-link {
    align-items: center;
    border-radius: var(--pospay-radius);
    display: flex;
    gap: .65rem;
    min-height: 42px;
    padding: .65rem .85rem !important;
    text-align: left !important;
    width: 100% !important;
}

.sidebar.sidebar-dark.modern-sidebar .nav-item > .nav-link i,
.sidebar.sidebar-dark.modern-sidebar .nav-item.active > .nav-link i,
.sidebar.sidebar-dark.modern-sidebar .nav-item > .nav-link:hover i,
.sidebar.sidebar-dark.modern-sidebar .nav-item > .nav-link:focus i {
    color: var(--pospay-icon-color) !important;
    font-size: .92rem;
    margin-right: 0 !important;
    text-align: center;
    width: 20px;
}

.modern-sidebar .nav-item .nav-link span {
    color: rgba(255,255,255,.88);
    display: inline !important;
    font-size: .88rem;
    font-weight: 800;
}

.modern-sidebar .nav-link:hover,
.modern-sidebar .nav-item.active > .nav-link {
    background: rgba(var(--pospay-primary-rgb), .24);
}

.modern-sidebar .nav-link:hover span,
.modern-sidebar .nav-item.active > .nav-link span {
    color: #fff;
}

.modern-sidebar .nav-link[data-toggle="collapse"]:after {
    color: var(--pospay-icon-color) !important;
    margin-left: auto;
}

.modern-sidebar .collapse-inner {
    background: rgba(15, 23, 42, .82) !important;
    border: 1px solid rgba(255,255,255,.08);
    margin: .25rem 0 .55rem;
    padding: .35rem !important;
}

.modern-sidebar .collapse-item {
    align-items: center;
    border-radius: 7px !important;
    color: rgba(255,255,255,.78) !important;
    display: flex !important;
    font-size: .82rem;
    font-weight: 700;
    gap: .6rem;
    line-height: 1.2;
    margin: .1rem 0;
    padding: .58rem .65rem !important;
    white-space: normal !important;
}

.sidebar.sidebar-dark.modern-sidebar .collapse-item i,
.sidebar.sidebar-dark.modern-sidebar .collapse-item:hover i,
.sidebar.sidebar-dark.modern-sidebar .collapse-item:focus i {
    color: var(--pospay-icon-color) !important;
    flex: 0 0 18px;
    font-size: .78rem;
    text-align: center;
}

.modern-sidebar .collapse-item:hover,
.modern-sidebar .collapse-item:focus {
    background: rgba(var(--pospay-primary-rgb), .18) !important;
    color: #fff !important;
    text-decoration: none;
}

.modern-sidebar .sidebar-toggle-wrap {
    margin-top: 1rem;
}

@media (min-width: 769px) {
    #wrapper > .sidebar.modern-sidebar,
    #wrapper > .sidebar.modern-sidebar.toggled {
        flex: 0 0 var(--pospay-sidebar-width) !important;
        min-width: var(--pospay-sidebar-width) !important;
        overflow: hidden !important;
        width: var(--pospay-sidebar-width) !important;
    }

    #wrapper > .sidebar.modern-sidebar.toggled .nav-item .nav-link {
        padding: .65rem .85rem !important;
        text-align: left !important;
        width: 100% !important;
    }

    #wrapper > .sidebar.modern-sidebar.toggled .nav-item .nav-link span {
        display: inline !important;
        font-size: .88rem;
    }

    #wrapper > .sidebar.modern-sidebar.toggled .nav-item .nav-link[data-toggle="collapse"]:after {
        display: block;
    }

    #wrapper > .sidebar.modern-sidebar.toggled .nav-item .collapse {
        left: auto;
        margin: .25rem 0 .55rem;
        position: relative;
        top: auto;
    }

    .modern-sidebar .sidebar-toggle-wrap {
        display: none !important;
    }
}

.topbar {
    height: auto;
    min-height: 82px;
    background: var(--pospay-surface) !important;
    border-bottom: 1px solid var(--pospay-border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.logo.navbar,
.logo {
    max-height: 64px;
    width: auto;
    margin: 14px 24px 4px;
}

.app-topbar {
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    height: auto;
    justify-content: space-between;
    min-height: 82px;
    padding: .85rem 1.25rem;
    position: relative;
}

#sidebarToggleTop {
    align-items: center;
    background: rgba(var(--pospay-primary-rgb), .08) !important;
    border: 1px solid rgba(var(--pospay-primary-rgb), .18) !important;
    color: var(--pospay-primary) !important;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.app-topbar:before {
    background: var(--pospay-primary);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    width: 4px;
}

.app-topbar__context {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    min-width: 0;
}

.app-context-card {
    background: #f8fafc;
    border: 1px solid var(--pospay-border);
    border-left: 4px solid var(--pospay-primary);
    border-radius: var(--pospay-radius);
    min-width: 210px;
    padding: .65rem .85rem;
}

.app-context-card--wide {
    min-width: 360px;
}

.app-context-card--empty {
    border-left-color: #94a3b8;
}

.app-context-card span {
    color: var(--pospay-muted);
    display: block;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .04em;
    line-height: 1.1;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.app-context-card strong {
    color: var(--pospay-text);
    display: block;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-context-card small {
    color: var(--pospay-muted);
    display: block;
    line-height: 1.25;
    margin-top: .15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-topbar__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
    margin-left: auto;
}

#content {
    padding-bottom: 32px;
}

.container-fluid {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.page-shell {
    max-width: 1240px;
    margin: 0 auto;
}

.page-title {
    margin-bottom: 1.25rem;
}

.page-title h1 {
    color: var(--pospay-text);
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0;
}

.page-title p {
    color: var(--pospay-muted);
    margin: .35rem 0 0;
}

.modern-card {
    background: var(--pospay-surface);
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    box-shadow: var(--pospay-shadow);
    padding: 1.25rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.metric-card {
    background: var(--pospay-surface);
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    padding: 1rem;
    box-shadow: var(--pospay-shadow);
}

.metric-card span {
    color: var(--pospay-muted);
    display: block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.metric-card strong {
    color: var(--pospay-text);
    display: block;
    font-size: 1.65rem;
    margin-top: .35rem;
}

.metric-card i {
    color: var(--pospay-primary);
    float: right;
    font-size: 1.3rem;
}

.table {
    color: var(--pospay-text);
}

.table thead th,
table.dataTable thead th,
.table-bordered thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--pospay-border);
    color: #334155;
    font-size: .78rem;
    text-transform: uppercase;
}

.table td,
.table th,
.table-bordered td,
.table-bordered th {
    border-color: var(--pospay-border) !important;
    vertical-align: middle !important;
}

.form-control {
    border-color: #d7dde7;
    border-radius: var(--pospay-radius);
    min-height: 42px;
}

.form-control:focus {
    border-color: var(--pospay-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--pospay-primary-rgb), .16);
}

.form-section-title {
    color: var(--pospay-primary-dark);
    font-size: .86rem;
    font-weight: 800;
    margin: 1rem 0 .75rem;
    text-transform: uppercase;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
}

.client-picker {
    max-width: 760px;
    margin: 0 auto;
}

.client-search-status {
    color: var(--pospay-muted);
    font-size: .9rem;
    margin-top: .5rem;
}

.event-filter {
    background: #f8fafc;
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    padding: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
}

.product-card {
    background: var(--pospay-surface);
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    box-shadow: var(--pospay-shadow);
    min-height: 178px;
    padding: 1rem;
}

.product-card__top {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
}

.product-card h3 {
    color: var(--pospay-text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.product-card__group {
    color: var(--pospay-muted);
    display: block;
    font-size: .82rem;
    margin-top: .35rem;
}

.product-card__price {
    color: var(--pospay-primary-dark);
    font-size: 1.2rem;
    font-weight: 900;
    white-space: nowrap;
}

.product-card__stats {
    border-top: 1px solid var(--pospay-border);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin-top: 1rem;
    padding-top: .85rem;
}

.product-card__stats span {
    color: var(--pospay-muted);
    display: block;
    font-size: .72rem;
}

.product-card__stats strong {
    color: var(--pospay-text);
    display: block;
    font-size: .92rem;
}

.product-list-table th:last-child,
.product-list-table td.product-actions-cell {
    min-width: 310px;
    width: 310px;
}

.product-table-actions {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: .4rem;
    justify-content: flex-start;
}

.product-action-form {
    margin: 0;
}

.product-action-btn {
    align-items: center;
    border-radius: 6px !important;
    box-shadow: none !important;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    justify-content: center;
    min-height: 34px;
    padding: .42rem .58rem;
    white-space: nowrap;
}

.product-table-actions .btn-outline-primary {
    background: #fff;
    border-color: var(--pospay-border);
    color: var(--pospay-primary) !important;
}

.product-table-actions .btn-secondary {
    background: #475569;
    border-color: #475569;
    color: #fff !important;
}

.product-table-actions .btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff !important;
}

.product-list-table tbody tr:hover td {
    background: #f8fafc !important;
    color: var(--pospay-text) !important;
}

.product-list-table tbody tr:hover .report-status,
.product-list-table tbody tr:hover .product-action-btn {
    opacity: 1;
    visibility: visible;
}

.product-table-actions .btn-primary,
.product-table-actions .btn-primary:hover,
.product-table-actions .btn-secondary,
.product-table-actions .btn-secondary:hover,
.product-table-actions .btn-danger,
.product-table-actions .btn-danger:hover {
    color: #fff !important;
}

.product-table-actions .btn-outline-primary:hover {
    color: #fff !important;
}

.stock-page .form-card {
    margin-bottom: 1.25rem;
}

.stock-summary-grid {
    margin-top: 1.25rem;
}

.stock-variation-grid {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stock-variation-item {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--pospay-border);
    border-radius: 8px;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr) 130px;
    padding: .85rem;
}

.stock-variation-item strong {
    color: var(--pospay-text);
    display: block;
    font-weight: 900;
}

.stock-variation-item span {
    color: var(--pospay-muted);
    display: block;
    font-size: .8rem;
    margin-top: .15rem;
}

.stock-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1rem;
}

.stock-dynamic-area {
    display: grid;
    gap: .85rem;
}

.stock-dynamic-row {
    align-items: end;
    background: #f8fafc;
    border: 1px solid var(--pospay-border);
    border-radius: 8px;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 140px;
    padding: .85rem;
}

.dashboard-page {
    padding-bottom: 2rem;
}

.dashboard-hero {
    align-items: center;
    background: #111827;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--pospay-radius);
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    padding: 1.5rem;
    position: relative;
}

.dashboard-hero:before {
    background: linear-gradient(90deg, var(--pospay-primary), var(--pospay-accent));
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.dashboard-eyebrow,
.dashboard-panel__header span {
    color: var(--pospay-accent);
    display: block;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .04em;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.dashboard-hero h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
}

.dashboard-hero p {
    color: rgba(255,255,255,.78);
    margin: .35rem 0 0;
}

.dashboard-hero__total {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--pospay-radius);
    min-width: 280px;
    padding: 1rem;
}

.dashboard-hero__total span,
.dashboard-hero__total small {
    color: rgba(255,255,255,.72);
    display: block;
}

.dashboard-hero__total strong {
    color: #fff;
    display: block;
    font-size: 1.9rem;
    font-weight: 900;
    margin: .15rem 0;
}

.dashboard-kpi {
    background: var(--pospay-surface);
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    box-shadow: var(--pospay-shadow);
    min-height: 148px;
    padding: 1rem;
    position: relative;
}

.dashboard-kpi:before {
    background: var(--pospay-primary);
    border-radius: var(--pospay-radius) var(--pospay-radius) 0 0;
    content: "";
    height: 4px;
    left: -1px;
    position: absolute;
    right: -1px;
    top: -1px;
}

.dashboard-kpi i {
    align-items: center;
    background: #f1f5f9;
    border-radius: 999px;
    color: var(--pospay-primary);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin-bottom: .75rem;
    width: 38px;
}

.dashboard-kpi span {
    color: var(--pospay-muted);
    display: block;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dashboard-kpi strong {
    color: var(--pospay-text);
    display: block;
    font-size: 1.55rem;
    font-weight: 900;
    margin-top: .2rem;
}

.dashboard-kpi small {
    color: var(--pospay-muted);
    display: block;
    margin-top: .15rem;
}

.dashboard-kpi--cash:before,
.dashboard-kpi--cash i {
    color: #16a34a;
}

.dashboard-kpi--cash:before {
    background: #16a34a;
}

.dashboard-kpi--debit:before {
    background: #2563eb;
}

.dashboard-kpi--debit i {
    color: #2563eb;
}

.dashboard-kpi--credit:before {
    background: #e11d48;
}

.dashboard-kpi--credit i {
    color: #e11d48;
}

.dashboard-kpi--pix:before {
    background: #f59e0b;
}

.dashboard-kpi--pix i {
    color: #f59e0b;
}

.dashboard-kpi--items:before {
    background: #7c3aed;
}

.dashboard-kpi--items i {
    color: #7c3aed;
}

.dashboard-panel {
    background: var(--pospay-surface);
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    box-shadow: var(--pospay-shadow);
    height: 100%;
    padding: 1.15rem;
}

.dashboard-panel__header {
    align-items: flex-start;
    border-bottom: 1px solid var(--pospay-border);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: .85rem;
}

.dashboard-panel__header h2 {
    color: var(--pospay-text);
    font-size: 1.08rem;
    font-weight: 900;
    margin: 0;
}

.dashboard-panel__header i {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--pospay-border);
    border-radius: 999px;
    color: var(--pospay-primary);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.dashboard-chart {
    min-height: 320px;
    position: relative;
}

.dashboard-chart--line {
    min-height: 390px;
}

.dashboard-chart--bar {
    min-height: 430px;
}

.dashboard-chart canvas {
    height: 100% !important;
    width: 100% !important;
}

.dashboard-list {
    display: grid;
    gap: .75rem;
}

.dashboard-list__item {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .85rem;
}

.dashboard-list__item strong {
    color: var(--pospay-text);
    display: block;
    font-size: .95rem;
}

.dashboard-list__item span {
    color: var(--pospay-muted);
    display: block;
    font-size: .82rem;
    margin-top: .1rem;
}

.dashboard-list__item b {
    color: var(--pospay-primary-dark);
    white-space: nowrap;
}

.dashboard-empty {
    background: #f8fafc;
    border: 1px dashed var(--pospay-border);
    border-radius: var(--pospay-radius);
    color: var(--pospay-muted);
    padding: 1rem;
    text-align: center;
}

.finance-page {
    padding-bottom: 2rem;
}

.finance-client-grid {
    display: grid;
    gap: 1rem;
}

.finance-client-card {
    background: var(--pospay-surface);
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    box-shadow: var(--pospay-shadow);
    overflow: hidden;
}

.finance-client-card__header {
    align-items: center;
    background: #f8fafc;
    border-bottom: 1px solid var(--pospay-border);
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto auto;
    padding: 1rem;
}

.finance-client-card__header span {
    color: var(--pospay-muted);
    display: block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.finance-client-card__header h2 {
    color: var(--pospay-text);
    font-size: 1.08rem;
    font-weight: 900;
    margin: .15rem 0 0;
}

.finance-client-card__metrics {
    background: rgba(var(--pospay-primary-rgb), .08);
    border: 1px solid rgba(var(--pospay-primary-rgb), .20);
    border-radius: var(--pospay-radius);
    min-width: 112px;
    padding: .65rem .8rem;
    text-align: center;
}

.finance-client-card__metrics strong {
    color: var(--pospay-primary-dark);
    display: block;
    font-size: 1.15rem;
    font-weight: 900;
}

.finance-client-card__metrics--danger {
    background: rgba(225, 29, 72, .08);
    border-color: rgba(225, 29, 72, .22);
}

.finance-client-card__metrics--danger strong {
    color: #be123c;
}

.finance-table {
    margin-bottom: 0;
}

.finance-table__total td {
    background: #f1f5f9;
    color: var(--pospay-text);
    font-weight: 900;
}

.report-page {
    padding-bottom: 2rem;
}

.report-hero {
    align-items: center;
    background: #111827;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--pospay-radius);
    color: #fff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    overflow: hidden;
    padding: 1.4rem;
    position: relative;
}

.report-hero:before {
    background: var(--pospay-primary);
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.report-hero span {
    color: var(--pospay-accent);
    display: block;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .05em;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.report-hero h1 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0;
}

.report-hero p {
    color: rgba(255,255,255,.74);
    margin: .35rem 0 0;
}

.report-hero__icon {
    align-items: center;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 1.3rem;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.report-filter-card,
.report-result-card,
.report-page > .page-shell > .card,
.report-page .card.shadow {
    background: var(--pospay-surface);
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    box-shadow: var(--pospay-shadow) !important;
}

.report-filter-card {
    margin-bottom: 1.25rem;
    padding: 1.15rem;
}

.report-result-card {
    margin-bottom: 1.25rem;
    overflow: hidden;
    padding: 1.15rem;
}

.report-result-card .dataTables_wrapper {
    color: var(--pospay-text);
    display: grid;
    gap: .9rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.report-result-card .dataTables_wrapper .dt-buttons {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.report-result-card .dataTables_wrapper .dataTables_filter {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.report-result-card .dataTables_wrapper .dataTables_filter label {
    align-items: center;
    display: flex;
    gap: .5rem;
    margin: 0;
}

.report-result-card .dataTables_wrapper .dataTables_filter input {
    background: #fff;
    border: 1px solid var(--pospay-border);
    border-radius: 6px;
    color: var(--pospay-text);
    margin: 0;
    min-height: 40px;
    min-width: 230px;
    padding: .45rem .7rem;
}

.report-result-card .dataTables_wrapper .dataTables_info,
.report-result-card .dataTables_wrapper .dataTables_paginate {
    align-self: center;
    margin: 0;
    padding-top: 0;
}

.report-result-card .dataTables_wrapper .dataTables_paginate {
    justify-self: end;
}

.report-result-card table.dataTable,
.report-result-card table.table {
    border: 1px solid var(--pospay-border) !important;
    border-collapse: separate !important;
    border-radius: 8px;
    border-spacing: 0;
    grid-column: 1 / -1;
    margin: 0 !important;
    overflow: hidden;
    width: 100% !important;
}

.report-result-card table.dataTable.no-footer {
    border-bottom: 1px solid var(--pospay-border) !important;
}

.report-result-card table.dataTable thead th,
.report-result-card table.table thead th {
    background: #f8fafc !important;
    border: 0 !important;
    border-bottom: 1px solid var(--pospay-border) !important;
    color: #334155;
    font-size: .75rem;
    font-weight: 900;
    padding: .85rem .75rem !important;
    text-transform: uppercase;
    white-space: nowrap;
}

.report-result-card table.dataTable tbody td,
.report-result-card table.table tbody td {
    background: #fff;
    border: 0 !important;
    border-bottom: 1px solid var(--pospay-border) !important;
    color: var(--pospay-text);
    padding: .8rem .75rem !important;
    vertical-align: middle;
}

.report-result-card table.dataTable tbody tr:last-child td,
.report-result-card table.table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.report-result-card table.dataTable tbody tr:hover td,
.report-result-card table.table tbody tr:hover td {
    background: rgba(var(--pospay-primary-rgb), .045);
}

.report-result-card .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #fff !important;
    border: 1px solid var(--pospay-border) !important;
    border-radius: 6px !important;
    color: var(--pospay-text) !important;
    margin-left: .3rem;
    min-width: 38px;
    padding: .42rem .65rem !important;
}

.report-result-card .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.report-result-card .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--pospay-primary) !important;
    border-color: var(--pospay-primary) !important;
    color: #fff !important;
}

.report-filter-card label,
.report-page label {
    color: #334155;
    font-size: .84rem;
    font-weight: 800;
}

.report-filter-card .form-control,
.report-filter-card select.form-control,
.report-filter-card select.form-control option {
    background-color: #fff;
    color: var(--pospay-text);
}

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

.report-page .form-row {
    align-items: end;
}

.report-page .card .p-5 {
    padding: 1.15rem !important;
}

.report-page .card-body {
    padding: 1.15rem;
}

.report-section-title {
    align-items: center;
    border-bottom: 1px solid var(--pospay-border);
    display: flex;
    gap: .65rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: .85rem;
}

.report-section-title h2,
.report-section-title h3 {
    color: var(--pospay-text);
    font-size: 1.08rem;
    font-weight: 900;
    margin: 0;
}

.report-section-title span {
    color: var(--pospay-muted);
    font-size: .82rem;
}

.report-page table {
    margin-bottom: 0;
}

.report-page .table thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--pospay-border);
    color: #334155;
    font-size: .78rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.report-page .table td {
    color: var(--pospay-text);
    vertical-align: middle;
}

.report-page .table td,
.report-page .table th {
    border-color: var(--pospay-border);
}

.report-stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.report-stat-card {
    background: #fff;
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    box-shadow: var(--pospay-shadow);
    padding: 1rem;
}

.report-stat-card span {
    color: var(--pospay-muted);
    display: block;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.report-stat-card strong {
    color: var(--pospay-text);
    display: block;
    font-size: 1.25rem;
    margin-top: .25rem;
}

.report-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: .76rem;
    font-weight: 900;
    padding: .34rem .58rem;
}

.report-status--success {
    background: #dcfce7;
    color: #166534;
}

.report-status--danger {
    background: #fee2e2;
    color: #991b1b;
}

.report-status--warning {
    background: #fef3c7;
    color: #92400e;
}

.report-status--info {
    background: #dbeafe;
    color: #1d4ed8;
}

.report-page .table-responsive + .table-responsive {
    margin-top: 1rem;
}

.report-page .dt-buttons .dt-button,
.report-page .dataTables_wrapper .dt-buttons .dt-button {
    background: var(--pospay-primary) !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #fff !important;
    font-weight: 800;
    margin: 0 !important;
    min-height: 38px;
    padding: .48rem .75rem !important;
}

.report-page .dataTables_filter input,
.report-page .dataTables_length select {
    border: 1px solid var(--pospay-border);
    border-radius: 6px;
    min-height: 36px;
}

.report-placeholder {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed var(--pospay-border);
    border-radius: var(--pospay-radius);
    color: var(--pospay-muted);
    display: flex;
    gap: .65rem;
    justify-content: center;
    min-height: 110px;
    padding: 1rem;
    text-align: center;
}

.report-ajax-grid {
    display: grid;
    gap: 1rem;
}

.report-ajax-grid .card {
    margin-bottom: 0 !important;
}

.form-hero {
    align-items: center;
    background: #111827;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--pospay-radius);
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    padding: 1.5rem;
    position: relative;
}

.form-hero:before {
    background: var(--pospay-primary);
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.form-eyebrow {
    color: var(--pospay-accent);
    display: block;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .04em;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.form-hero h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
}

.form-hero p {
    color: rgba(255,255,255,.78);
    margin: .35rem 0 0;
}

.modern-form {
    padding-bottom: 2rem;
}

.form-card {
    background: var(--pospay-surface);
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    box-shadow: var(--pospay-shadow);
    margin-bottom: 1.25rem;
    padding: 1.25rem;
}

.form-card__header {
    align-items: center;
    border-bottom: 1px solid var(--pospay-border);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.15rem;
    padding-bottom: .9rem;
}

.form-card__header span {
    color: var(--pospay-primary);
    display: block;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.form-card__header h2 {
    color: var(--pospay-text);
    font-size: 1.12rem;
    font-weight: 900;
    margin: .12rem 0 0;
}

.form-card__header i {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--pospay-border);
    border-radius: 999px;
    color: var(--pospay-primary);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.modern-form label {
    color: #334155;
    font-size: .84rem;
    font-weight: 800;
}

.modern-form .form-control {
    background: #fbfdff;
}

.access-event-grid {
    display: grid;
    gap: .7rem;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.access-event-option {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    cursor: pointer;
    display: flex;
    gap: .7rem;
    margin: 0;
    min-height: 58px;
    padding: .75rem;
}

.access-event-option:has(input:checked) {
    background: rgba(var(--pospay-primary-rgb), .08);
    border-color: var(--pospay-primary);
}

.access-event-option input {
    accent-color: var(--pospay-primary);
    flex: 0 0 auto;
}

.access-event-option span {
    color: var(--pospay-text);
    font-size: .86rem;
    line-height: 1.25;
}

.access-event-option strong {
    color: var(--pospay-primary-dark);
    display: block;
    font-size: .72rem;
}

.operator-form-card > .form-row,
.operator-form-card > .form-group,
.operator-form-card fieldset {
    margin-left: 0;
    margin-right: 0;
}

.operator-form-card fieldset {
    border-top: 1px solid var(--pospay-border);
    margin-top: 1rem;
    padding-top: 1rem;
    width: 100%;
}

.operator-form-card legend {
    margin: 0 0 .7rem;
    width: 100%;
}

.operator-form-card legend h5,
.operator-form-card legend h4 {
    color: #334155;
    font-size: .84rem;
    font-weight: 900;
    letter-spacing: .03em;
    margin: 0;
    text-transform: uppercase;
}

.operator-form-card .form-check-inline {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    margin: .2rem .4rem .2rem 0;
    min-height: 40px;
    padding: .45rem .65rem;
}

.operator-form-card input[type="file"].form-control {
    height: auto;
    padding: .45rem;
}

.operator-form-card hr {
    border-color: var(--pospay-border);
    margin: 1rem 0;
}

.operator-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.operator-actions form {
    margin: 0;
}

.operator-actions .btn {
    align-items: center;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 34px;
    white-space: nowrap;
}

.operator-form-card[data-modernized="true"] {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.operator-form-card[data-modernized="true"] > .form-card__header {
    background: var(--pospay-surface);
    border: 1px solid var(--pospay-border);
    border-radius: 8px;
    box-shadow: var(--pospay-shadow);
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
}

.operator-section-block {
    background: var(--pospay-surface);
    border: 1px solid var(--pospay-border);
    border-radius: 8px;
    box-shadow: var(--pospay-shadow);
    margin: 0 0 1rem !important;
    padding: 1.15rem;
}

.operator-section-heading {
    align-items: center;
    border-bottom: 1px solid var(--pospay-border);
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: .8rem;
    width: 100%;
}

.operator-section-heading span {
    color: var(--pospay-primary);
    display: block;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.operator-section-heading h3 {
    color: var(--pospay-text);
    font-size: 1rem;
    font-weight: 900;
    margin: .1rem 0 0;
}

.operator-section-heading > i {
    align-items: center;
    background: rgba(var(--pospay-primary-rgb), .09);
    border-radius: 999px;
    color: var(--pospay-primary);
    display: flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.operator-basic-grid {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operator-basic-grid > .form-row,
.operator-basic-grid > .form-group.row {
    display: grid;
    gap: .85rem;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 0;
}

.operator-basic-grid > .form-row > [class*="col"],
.operator-basic-grid > .form-group.row > [class*="col"] {
    max-width: none;
    padding: 0;
    width: 100%;
}

.operator-market-section {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operator-market-section > br {
    display: none;
}

.operator-market-section > .form-row,
.operator-market-section > .form-group {
    margin: 0;
}

.operator-market-section > .form-row > [class*="col"],
.operator-market-section > .form-group[class*="col"] {
    max-width: none;
    padding: 0;
    width: 100%;
}

.operator-market-section img {
    border: 1px solid var(--pospay-border);
    border-radius: 6px;
    height: 44px !important;
    margin-top: .45rem;
    object-fit: contain;
    width: 64px !important;
}

.operator-schedule-section {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operator-schedule-section > [class*="col"] {
    max-width: none;
    padding: 0;
    width: 100%;
}

.operator-options-section {
    display: block;
}

.operator-options-grid {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operator-form-card .operator-option-card {
    background: #f8fafc;
    border: 1px solid var(--pospay-border);
    border-radius: 8px;
    margin: 0;
    padding: .9rem;
}

.operator-form-card .operator-option-card legend {
    align-items: center;
    color: var(--pospay-text);
    display: flex;
    font-size: .82rem;
    font-weight: 900;
    gap: .5rem;
    margin: 0 0 .7rem;
    padding: 0;
}

.operator-option-card legend i {
    color: var(--pospay-primary);
}

.operator-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.operator-form-card .operator-option-list .form-check-inline {
    background: #fff;
    margin: 0;
}

.operator-status-section {
    align-items: center;
    background: var(--pospay-surface);
    border: 1px solid var(--pospay-border);
    border-radius: 8px;
    box-shadow: var(--pospay-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 1rem !important;
    padding: 1rem 1.15rem;
}

.operator-status-section legend {
    flex: 1 0 100%;
}

.operator-submit-row {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--pospay-border);
    border-radius: 8px;
    bottom: .75rem;
    box-shadow: var(--pospay-shadow);
    justify-content: flex-end;
    margin: 0 !important;
    padding: .85rem;
    position: sticky;
    z-index: 5;
}

.event-select-row {
    cursor: pointer;
}

.event-select-row.is-selected td {
    background: rgba(var(--pospay-primary-rgb), .1) !important;
}

.event-select-row input[type="radio"] {
    accent-color: var(--pospay-primary);
    height: 18px;
    width: 18px;
}

.event-selection-table thead th:not(.event-selection-column) {
    cursor: pointer;
}

.event-selection-table .event-selection-column {
    min-width: 92px;
    width: 92px;
}

.product-detail-list > div {
    border-bottom: 1px solid var(--pospay-border);
    margin-bottom: .45rem;
    padding-bottom: .45rem;
}

.product-detail-list > div:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-detail-list small {
    color: var(--pospay-muted);
    display: block;
    margin-top: .2rem;
}

.page-shell--narrow {
    max-width: 920px;
}

.money-field {
    font-weight: 800;
}

.form-subtitle {
    color: var(--pospay-primary-dark);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .05em;
    margin: .35rem 0 .8rem;
    text-transform: uppercase;
}

.option-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.option-pill {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    cursor: pointer;
    display: inline-flex;
    gap: .45rem;
    margin: 0;
    min-height: 42px;
    padding: .55rem .75rem;
}

.option-pill input {
    accent-color: var(--pospay-primary);
    margin: 0;
}

.option-pill span {
    color: var(--pospay-text);
    font-size: .88rem;
    font-weight: 800;
}

.option-pill:has(input:checked) {
    background: rgba(var(--pospay-primary-rgb), .08);
    border-color: var(--pospay-primary);
}

.form-actions {
    align-items: center;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    bottom: .75rem;
    box-shadow: var(--pospay-shadow);
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    padding: .85rem;
    position: sticky;
    z-index: 5;
}

.theme-preview {
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--pospay-radius);
    display: flex;
    gap: .75rem;
    padding: .8rem 1rem;
}

.theme-preview span {
    background: var(--pospay-primary);
    border: 3px solid rgba(255,255,255,.72);
    border-radius: 999px;
    display: block;
    height: 34px;
    width: 34px;
}

.theme-preview span.theme-preview__icon {
    align-items: center;
    background: #111827;
    color: var(--pospay-icon-color);
    display: flex;
    font-size: .8rem;
    justify-content: center;
}

.theme-preview strong {
    color: #fff;
    font-weight: 900;
}

.color-input {
    height: 52px;
    padding: .25rem;
}

.current-logo-box {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--pospay-border);
    border-radius: var(--pospay-radius);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
}

.current-logo-box span {
    color: var(--pospay-muted);
    display: block;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.current-logo-box strong {
    color: var(--pospay-text);
    display: block;
    font-size: .92rem;
    margin-top: .15rem;
}

.current-logo-box img {
    max-height: 58px;
    max-width: 220px;
    object-fit: contain;
}

.login-modern {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, .16), transparent 36%),
        linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.login-card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: var(--pospay-radius);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
    margin: 8vh auto;
    max-width: 430px;
    padding: 2rem;
}

.login-card img {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 230px;
}

.login-card h1 {
    color: var(--pospay-text);
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
}

.login-card p {
    color: var(--pospay-muted);
    text-align: center;
}

.login-alert {
    border-radius: var(--pospay-radius);
    font-weight: 700;
}

@media (max-width: 992px) {
    .metric-grid,
    .report-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    #wrapper {
        min-width: 0;
        width: 100%;
    }

    .modern-sidebar {
        bottom: 0;
        display: block !important;
        flex: 0 0 auto !important;
        height: 100vh;
        left: 0;
        max-width: 320px;
        min-width: min(84vw, 320px) !important;
        min-height: 100vh;
        opacity: 1 !important;
        overflow-y: auto !important;
        position: fixed;
        top: 0;
        transform: translateX(-104%);
        transition: transform .22s ease, box-shadow .22s ease;
        visibility: visible !important;
        width: min(84vw, 320px) !important;
        z-index: 1080;
    }

    body.modern-sidebar-open .modern-sidebar,
    body.sidebar-toggled .modern-sidebar,
    body.sidebar-toggled .modern-sidebar.toggled {
        box-shadow: 18px 0 40px rgba(15, 23, 42, .28);
        display: block !important;
        min-width: min(84vw, 320px) !important;
        overflow-y: auto !important;
        transform: translateX(0);
        width: min(84vw, 320px) !important;
    }

    .modern-sidebar.toggled,
    .sidebar.toggled.modern-sidebar {
        width: min(84vw, 320px) !important;
    }

    .sidebar.toggled {
        overflow-y: auto !important;
    }

    body.modern-sidebar-open:after,
    body.sidebar-toggled:after {
        background: rgba(15, 23, 42, .45);
        bottom: 0;
        content: "";
        left: 0;
        position: fixed;
        right: 0;
        top: 0;
        z-index: 1070;
    }

    #content-wrapper {
        min-width: 0;
        width: 100%;
    }

    .container-fluid {
        padding-left: .9rem;
        padding-right: .9rem;
    }

    .topbar {
        min-height: 64px;
    }

    .app-topbar {
        align-items: stretch;
        flex-direction: column;
        padding: .85rem;
    }

    #sidebarToggleTop {
        align-self: flex-start;
        margin-right: 0 !important;
        position: relative;
        z-index: 1;
    }

    .app-topbar__context,
    .app-topbar__actions,
    .app-context-card,
    .app-context-card--wide {
        width: 100%;
    }

    .app-context-card,
    .app-context-card--wide {
        min-width: 0;
    }

    .app-topbar__actions {
        justify-content: stretch;
        margin-left: 0;
    }

    .app-topbar__actions .btn {
        flex: 1 1 auto;
    }

    .metric-grid,
    .product-grid,
    .report-stat-grid {
        grid-template-columns: 1fr;
    }

    .report-result-card {
        padding: .85rem;
    }

    .report-result-card .dataTables_wrapper {
        display: flex;
        flex-direction: column;
    }

    .report-result-card .dataTables_wrapper .dataTables_filter,
    .report-result-card .dataTables_wrapper .dataTables_paginate {
        justify-content: stretch;
        justify-self: stretch;
        text-align: left;
        width: 100%;
    }

    .report-result-card .dataTables_wrapper .dataTables_filter label,
    .report-result-card .dataTables_wrapper .dataTables_filter input {
        width: 100%;
    }

    .report-result-card .dataTables_wrapper .dataTables_filter input {
        min-width: 0;
    }

    .report-result-card .dataTables_wrapper .dataTables_info {
        white-space: normal;
    }

    .product-list-table th:last-child,
    .product-list-table td.product-actions-cell {
        min-width: 220px;
        width: 220px;
    }

    .product-table-actions {
        flex-wrap: wrap;
    }

    .product-action-btn {
        flex: 1 1 calc(50% - .4rem);
        min-width: 96px;
    }

    .stock-variation-grid,
    .stock-dynamic-row {
        grid-template-columns: 1fr;
    }

    .stock-variation-item {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .report-filter-actions .btn,
    .report-filter-actions a.btn {
        flex: 1 1 auto;
    }

    .operator-basic-grid,
    .operator-market-section,
    .operator-schedule-section,
    .operator-options-grid {
        grid-template-columns: 1fr;
    }

    .operator-section-block {
        padding: .9rem;
    }

    .operator-submit-row {
        align-items: stretch;
        bottom: auto;
        position: static;
    }

    .operator-submit-row .btn {
        width: 100%;
    }

    .dashboard-hero,
    .report-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-hero h1,
    .report-hero h1 {
        font-size: 1.5rem;
    }

    .form-hero h1 {
        font-size: 1.45rem;
    }

    .dashboard-hero__total {
        min-width: 0;
        width: 100%;
    }

    .dashboard-hero__total strong {
        font-size: 1.45rem;
    }

    .dashboard-chart,
    .dashboard-chart--line,
    .dashboard-chart--bar {
        min-height: 300px;
    }

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

    .current-logo-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .finance-client-card__header {
        grid-template-columns: 1fr;
    }

    .finance-client-card__metrics {
        min-width: 0;
        text-align: left;
    }

    .page-title h1 {
        font-size: 1.35rem;
    }

    .login-card {
        margin: 4vh 1rem;
        padding: 1.5rem;
    }
}
