:root {
    --erp-font-base: 'Plus Jakarta Sans', sans-serif;
    --erp-font-display: 'Fraunces', serif;
    --erp-bg: #f3f7fb;
    --erp-surface: #ffffff;
    --erp-text: #0f172a;
    --erp-muted: #64748b;
    --erp-border: #dbe6f3;
    --erp-primary: #0ea5a4;
    --erp-primary-dark: #0b8f8e;
    --erp-accent: #f97316;
    --erp-sidebar-top: #0b172a;
    --erp-sidebar-bottom: #132f4c;
    --erp-sidebar-width: 300px;
    --erp-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body {
    font-family: var(--erp-font-base);
    color: var(--erp-text);
}

.erp-app .content-wrapper {
    background:
        radial-gradient(circle at 15% 20%, rgba(14, 165, 164, 0.12), transparent 34%),
        radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.1), transparent 32%),
        var(--erp-bg);
}

.main-header.erp-navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--erp-border);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(6px);
}

.erp-menu-toggle {
    color: #1f2937 !important;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.erp-menu-toggle:hover {
    background: #e2f3f3;
    color: var(--erp-primary-dark) !important;
}

.erp-company-name {
    font-family: var(--erp-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 0.2px;
}

.erp-logout-link {
    border-radius: 999px;
    border: 1px solid #d1d9e6;
    padding: 8px 14px !important;
    color: #334155 !important;
    transition: all 0.2s ease;
}

.erp-logout-link:hover {
    border-color: var(--erp-primary);
    color: var(--erp-primary-dark) !important;
    background: #ecfdfc;
}

.erp-sidebar {
    background: linear-gradient(180deg, var(--erp-sidebar-top), var(--erp-sidebar-bottom));
    overflow: hidden;
}

.main-sidebar.erp-sidebar {
    display: flex;
    flex-direction: column;
}

.erp-sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    gap: 0;
    padding: 12px 10px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.erp-sidebar-title-wrap {
    display: flex;
    justify-content: center;
    margin: 0;
}

.erp-sidebar-logo-wrap {
    margin-top: 25px;
    padding-top: 18px;
}

.erp-brand-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 92%;
    max-width: 258px;
    min-height: 54px;
    padding: 9px 14px !important;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at top center, rgba(14, 165, 164, 0.09), transparent 64%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 15px;
    box-shadow: 0 6px 14px rgba(3, 10, 18, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.erp-brand-text {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: var(--erp-font-base);
    color: #f8fafc;
    font-size: clamp(0.88rem, 0.84rem + 0.18vw, 0.98rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.08;
    text-transform: uppercase;
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    text-shadow: 0 10px 24px rgba(3, 10, 18, 0.28);
}

.main-sidebar.erp-sidebar > .sidebar,
.erp-sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: 12px 0 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(191, 219, 254, 0.32) transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.erp-sidebar .os-host,
.erp-sidebar .os-padding,
.erp-sidebar .os-viewport,
.erp-sidebar .os-content {
    height: 100% !important;
}

.erp-sidebar .os-viewport {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}

.main-sidebar.erp-sidebar > .sidebar::-webkit-scrollbar,
.erp-sidebar-scroll::-webkit-scrollbar {
    width: 8px;
}

.main-sidebar.erp-sidebar > .sidebar::-webkit-scrollbar-track,
.erp-sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.main-sidebar.erp-sidebar > .sidebar::-webkit-scrollbar-thumb,
.erp-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(191, 219, 254, 0.32);
    border-radius: 999px;
}

.erp-logo-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 8px;
    margin: 0 auto;
    padding: 14px 10px 14px;
    min-height: 210px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(5, 18, 36, 0.2), rgba(8, 30, 56, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.erp-logo-section::before {
    content: '';
    display: block;
    width: 74%;
    max-width: none;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(191, 219, 254, 0.24), transparent);
}

.erp-logo-card {
    width: 86%;
    max-width: 244px;
    min-width: 172px;
    aspect-ratio: 1 / 1;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.erp-logo-card-inner {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.94));
    border: 1px solid rgba(226, 232, 240, 0.78);
    box-shadow: 0 10px 22px rgba(3, 10, 18, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.erp-sidebar-logo {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    display: block;
    margin: 0 auto;
    border-radius: inherit;
    filter: none;
}

.erp-sidebar-menu {
    margin-bottom: 0 !important;
    padding: 10px 8px 56px;
}

.erp-sidebar .nav-sidebar,
.erp-sidebar .nav-treeview {
	    max-width: 100%;
	    overflow-x: hidden;
}

.erp-sidebar .nav-sidebar .nav-link {
	    display: flex;
	    align-items: flex-start;
	    gap: 10px;
	    border-radius: 10px;
	    margin-bottom: 4px;
	    font-weight: 500;
	    white-space: normal;
	    max-width: 100%;
}

.erp-sidebar .nav-sidebar .nav-link .nav-icon {
    flex: 0 0 1.2rem;
    margin-top: 3px;
    text-align: center;
}

.erp-sidebar .nav-sidebar .nav-link p {
    margin: 0;
    width: 100%;
    min-width: 0;
    line-height: 1.26;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.erp-sidebar .nav-sidebar .nav-link p .right {
    margin-top: 2px;
}

.erp-sidebar .nav-treeview > .nav-item > .nav-link {
    padding-left: 1.95rem;
}

.erp-sidebar .nav-treeview > .nav-item > .nav-link p {
    font-size: 0.92rem;
}

.nav-sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--erp-primary), #19b4b2);
    color: #fff !important;
    box-shadow: 0 10px 18px rgba(14, 165, 164, 0.3);
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link.active {
    background: rgba(14, 165, 164, 0.25);
}

@media (min-width: 992px) {
    .sidebar-mini.layout-fixed .main-sidebar,
    .sidebar-mini.layout-fixed .main-sidebar::before {
        width: var(--erp-sidebar-width);
    }

    .sidebar-mini.layout-fixed:not(.sidebar-collapse) .content-wrapper,
    .sidebar-mini.layout-fixed:not(.sidebar-collapse) .main-footer,
    .sidebar-mini.layout-fixed:not(.sidebar-collapse) .main-header {
        margin-left: var(--erp-sidebar-width);
    }

    .sidebar-mini.sidebar-collapse .main-sidebar,
    .sidebar-mini.sidebar-collapse .main-sidebar::before {
        margin-left: calc(-1 * var(--erp-sidebar-width));
    }
}

	.erp-pdv-page,
	.erp-pdv-page .wrapper {
	    overflow-x: hidden;
}

.erp-report-page,
.erp-report-page .content,
.erp-report-page .container-fluid {
	    overflow-x: hidden;
}

.erp-report-page .row > [class*="col-"] {
	    min-width: 0;
}

.erp-report-page .card.no-print form .row {
	    align-items: flex-end;
}

.erp-report-page .card.no-print .select2-container {
	    width: 100% !important;
}

.erp-report-page .erp-report-table-wrap {
	    width: 100%;
	    overflow-x: auto;
	    overflow-y: hidden;
	    -webkit-overflow-scrolling: touch;
}

.erp-report-page .erp-report-table {
	    min-width: 620px;
	    margin-bottom: 0;
}

.erp-report-page .erp-report-table th,
.erp-report-page .erp-report-table td {
	    vertical-align: middle;
}

.erp-report-page canvas.chartjs {
	    max-width: 100%;
}

.erp-pdv-page .table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.erp-pdv-page .erp-pdv-products-table th,
.erp-pdv-page .erp-pdv-products-table td,
#caixas-abertos .pdv-caixas-table th,
#caixas-abertos .pdv-caixas-table td {
    white-space: nowrap;
    vertical-align: middle;
}

.erp-pdv-page .modal-footer {
    gap: 8px;
}

.erp-pdv-page .select2-container {
    width: 100% !important;
}

.erp-pdv-page .erp-pdv-total-input {
    letter-spacing: 0.5px;
}

#caixas-abertos .pdv-caixas-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#caixas-abertos .pdv-caixas-action {
    min-width: 96px;
    white-space: nowrap;
}

.card {
    border: 1px solid var(--erp-border);
    border-radius: 14px;
    box-shadow: var(--erp-shadow);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border-bottom: 1px solid var(--erp-border);
}

.small-box {
    border-radius: 14px;
    box-shadow: var(--erp-shadow);
    overflow: hidden;
}

.small-box .inner h3 {
    font-family: var(--erp-font-display);
    letter-spacing: 0.3px;
}

.small-box-footer {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.25);
}

.table thead th {
    background: #f1f6fc;
    color: #334155;
    border-bottom: 1px solid var(--erp-border);
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--erp-primary), #18b2b0);
    border-color: var(--erp-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--erp-primary-dark), #0ea5a4);
    border-color: var(--erp-primary-dark);
}

.style-action {
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 7px;
    padding-right: 7px;
}

.button-voltar {
    height: 23px;
    padding-top: 0;
    margin-right: 15px;
}

.erp-footer {
    border-top: 1px solid var(--erp-border);
    background: #fff;
}

.erp-admin-dashboard .content-header {
    padding-bottom: 6px;
}

.erp-admin-subtitle {
    margin-top: 8px;
    color: var(--erp-muted);
}

.erp-admin-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 164, 0.18), transparent 38%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.16), transparent 34%),
        linear-gradient(145deg, #ffffff, #f8fbff);
    border: 1px solid rgba(14, 165, 164, 0.12);
}

.erp-admin-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 164, 0.1);
    color: var(--erp-primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.erp-admin-hero-title {
    margin-top: 18px;
    margin-bottom: 12px;
    font-family: var(--erp-font-display);
    font-size: clamp(1.9rem, 1.4rem + 1vw, 2.6rem);
    color: #10213a;
}

.erp-admin-hero-copy {
    max-width: 640px;
    color: #475569;
    line-height: 1.7;
}

.erp-admin-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.erp-admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.erp-admin-glance {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(11, 23, 42, 0.92);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.erp-admin-glance-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

.erp-admin-glance-item strong {
    font-family: var(--erp-font-display);
    font-size: 1.35rem;
    font-weight: 700;
}

.erp-admin-glance-label {
    color: rgba(248, 250, 252, 0.72);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.erp-admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.erp-admin-card-link {
    color: inherit;
    text-decoration: none !important;
}

.erp-admin-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 150px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.erp-admin-card-link:hover .erp-admin-card {
    transform: translateY(-3px);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.12);
}

.erp-admin-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.erp-admin-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.erp-admin-card-title {
    color: #334155;
    font-size: 0.94rem;
    font-weight: 700;
}

.erp-admin-card-value {
    display: block;
    font-family: var(--erp-font-display);
    font-size: 1.8rem;
    line-height: 1.1;
    color: #10213a;
}

.erp-admin-card-description {
    color: var(--erp-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.erp-admin-card-arrow {
    color: #94a3b8;
    font-size: 0.95rem;
}

.erp-admin-card--info .erp-admin-card-icon {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.erp-admin-card--success .erp-admin-card-icon {
    background: linear-gradient(135deg, #059669, #34d399);
}

.erp-admin-card--dark .erp-admin-card-icon {
    background: linear-gradient(135deg, #334155, #64748b);
}

.erp-admin-card--warning .erp-admin-card-icon {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.erp-admin-card--danger .erp-admin-card-icon {
    background: linear-gradient(135deg, #dc2626, #fb7185);
}

.erp-admin-card--success-soft .erp-admin-card-icon {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.erp-admin-card--danger-soft .erp-admin-card-icon {
    background: linear-gradient(135deg, #be123c, #fb7185);
}

.erp-admin-card--accent .erp-admin-card-icon {
    background: linear-gradient(135deg, #ea580c, #fb923c);
}

.erp-admin-card--primary .erp-admin-card-icon {
    background: linear-gradient(135deg, var(--erp-primary-dark), var(--erp-primary));
}

.erp-admin-section-card {
    margin-bottom: 18px;
}

.erp-admin-shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.erp-admin-shortcut {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    color: inherit;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.erp-admin-shortcut:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    border-color: rgba(14, 165, 164, 0.3);
}

.erp-admin-shortcut-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(14, 165, 164, 0.12);
    color: var(--erp-primary-dark);
    font-size: 1.05rem;
}

.erp-admin-shortcut strong {
    display: block;
    margin-bottom: 4px;
    color: #10213a;
}

.erp-admin-shortcut span {
    display: block;
    color: var(--erp-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.erp-report-shell .card-body {
    position: relative;
}

.erp-report-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.erp-report-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.erp-report-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef6ff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
}

.erp-report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.erp-report-summary-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.erp-report-summary-card strong {
    display: block;
    margin-top: 8px;
    font-family: var(--erp-font-display);
    font-size: 1.45rem;
    color: #10213a;
}

.erp-report-summary-card span {
    color: var(--erp-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.erp-report-note {
    margin-top: 14px;
    color: var(--erp-muted);
    font-size: 0.88rem;
}

.erp-page-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
    padding-top: 8px;
}

.erp-page-title-block {
    min-width: 0;
    flex: 1 1 520px;
}

.erp-page-kicker,
.erp-section-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 164, 0.1);
    color: var(--erp-primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.erp-page-title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 14px;
}

.erp-page-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(14, 165, 164, 0.14), rgba(249, 115, 22, 0.14));
    color: #10213a;
    font-size: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.erp-page-title {
    margin: 0;
    font-family: var(--erp-font-display);
    font-size: clamp(1.5rem, 1.2rem + 0.55vw, 2.15rem);
    color: #10213a;
    line-height: 1.08;
}

.erp-page-description {
    margin: 10px 0 0;
    max-width: 760px;
    color: #526277;
    font-size: 0.95rem;
    line-height: 1.72;
}

.erp-page-breadcrumbs {
    flex: 0 0 auto;
    max-width: 100%;
}

.erp-page-breadcrumbs .breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    margin-bottom: 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(219, 230, 243, 0.9);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.erp-page-breadcrumbs .breadcrumb-item,
.erp-page-breadcrumbs .breadcrumb-item a {
    color: #526277;
    font-size: 0.84rem;
    font-weight: 600;
}

.erp-page-breadcrumbs .breadcrumb-item.active {
    color: #10213a;
}

.erp-page-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

.erp-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.erp-section-title,
.erp-panel-title {
    margin: 10px 0 0;
    font-family: var(--erp-font-display);
    font-size: 1.24rem;
    color: #10213a;
}

.erp-section-description,
.erp-panel-copy {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.65;
}

.erp-panel-header {
    padding: 18px 22px 16px;
}

.erp-report-shell,
.erp-admin-section-card {
    border-radius: 20px;
    border-color: rgba(219, 230, 243, 0.96);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
}

.erp-filter-shell {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 164, 0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.08), transparent 26%),
        linear-gradient(180deg, #ffffff, #fbfdff);
}

.erp-filter-head {
    margin-bottom: 14px;
}

.erp-filter-grid {
    row-gap: 8px;
}

.erp-filter-actions {
    gap: 10px;
}

.erp-admin-section-card--flat {
    margin-bottom: 18px;
}

.erp-admin-section-card--flat .erp-section-head {
    padding: 2px 2px 0;
}

.erp-admin-hero {
    border-radius: 26px;
    box-shadow: 0 26px 48px rgba(15, 23, 42, 0.1);
}

.erp-admin-hero .card-body {
    padding: clamp(1.5rem, 1rem + 1vw, 2rem);
}

.erp-admin-hero::before {
    content: '';
    position: absolute;
    inset: auto -60px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(14, 165, 164, 0.18), transparent 70%);
    pointer-events: none;
}

.erp-admin-hero::after {
    content: '';
    position: absolute;
    inset: 20px auto auto -40px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 72%);
    pointer-events: none;
}

.erp-admin-glance {
    position: relative;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.erp-admin-glance-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(2px);
}

.erp-admin-glance-item small {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.8rem;
}

.erp-admin-glance-item--success {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.16), rgba(255, 255, 255, 0.04));
}

.erp-admin-glance-item--danger {
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.16), rgba(255, 255, 255, 0.04));
}

.erp-admin-glance-item--accent {
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.16), rgba(255, 255, 255, 0.04));
}

.erp-admin-card-link {
    display: block;
}

.erp-admin-card {
    position: relative;
    isolation: isolate;
    min-height: 164px;
    border-radius: 22px;
    border-color: rgba(219, 230, 243, 0.96);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    --erp-card-accent: var(--erp-primary);
}

.erp-admin-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.95));
    z-index: 0;
}

.erp-admin-card::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--erp-card-accent), transparent 78%);
    z-index: 1;
}

.erp-admin-card-icon,
.erp-admin-card-body,
.erp-admin-card-arrow {
    position: relative;
    z-index: 2;
}

.erp-admin-card-value {
    font-size: clamp(1.65rem, 1.15rem + 0.7vw, 2rem);
}

.erp-admin-card--info {
    --erp-card-accent: #2563eb;
}

.erp-admin-card--success {
    --erp-card-accent: #059669;
}

.erp-admin-card--dark {
    --erp-card-accent: #334155;
}

.erp-admin-card--warning {
    --erp-card-accent: #d97706;
}

.erp-admin-card--danger {
    --erp-card-accent: #dc2626;
}

.erp-admin-card--success-soft {
    --erp-card-accent: #0f766e;
}

.erp-admin-card--danger-soft {
    --erp-card-accent: #be123c;
}

.erp-admin-card--accent {
    --erp-card-accent: #ea580c;
}

.erp-admin-card--primary {
    --erp-card-accent: var(--erp-primary-dark);
}

.erp-admin-shortcut {
    min-height: 112px;
    border-radius: 18px;
}

.erp-report-shell .card-body {
    padding: 22px;
}

.erp-report-shell--table .card-body.p-0 {
    padding: 0 !important;
}

.erp-report-toolbar {
    margin-bottom: 16px;
}

.erp-report-meta {
    background: linear-gradient(180deg, #eef6ff, #f8fbff);
    border: 1px solid rgba(191, 219, 254, 0.65);
}

.erp-report-brandline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    border: 1px solid rgba(219, 230, 243, 0.95);
}

.erp-report-summary {
    gap: 16px;
}

.erp-report-summary-card {
    position: relative;
    overflow: hidden;
    min-height: 138px;
    border-radius: 18px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
    --erp-summary-accent: rgba(14, 165, 164, 0.8);
}

.erp-report-summary-card::before {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: var(--erp-summary-accent);
}

.erp-report-summary-card::after {
    content: '';
    position: absolute;
    inset: auto -24px -34px auto;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 72%);
    pointer-events: none;
}

.erp-report-summary-card--info {
    --erp-summary-accent: rgba(37, 99, 235, 0.9);
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.58), #ffffff);
    border-color: rgba(147, 197, 253, 0.48);
}

.erp-report-summary-card--success {
    --erp-summary-accent: rgba(5, 150, 105, 0.9);
    background: linear-gradient(180deg, rgba(209, 250, 229, 0.6), #ffffff);
    border-color: rgba(110, 231, 183, 0.48);
}

.erp-report-summary-card--warning {
    --erp-summary-accent: rgba(217, 119, 6, 0.9);
    background: linear-gradient(180deg, rgba(254, 243, 199, 0.64), #ffffff);
    border-color: rgba(251, 191, 36, 0.42);
}

.erp-report-summary-card--danger {
    --erp-summary-accent: rgba(220, 38, 38, 0.92);
    background: linear-gradient(180deg, rgba(255, 228, 230, 0.68), #ffffff);
    border-color: rgba(253, 164, 175, 0.46);
}

.erp-report-summary-card--dark {
    --erp-summary-accent: rgba(51, 65, 85, 0.92);
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.7), #ffffff);
    border-color: rgba(148, 163, 184, 0.42);
}

.erp-report-summary-card--accent {
    --erp-summary-accent: rgba(234, 88, 12, 0.92);
    background: linear-gradient(180deg, rgba(255, 237, 213, 0.7), #ffffff);
    border-color: rgba(253, 186, 116, 0.42);
}

.erp-report-summary-card--success-soft {
    --erp-summary-accent: rgba(15, 118, 110, 0.92);
    background: linear-gradient(180deg, rgba(204, 251, 241, 0.68), #ffffff);
    border-color: rgba(45, 212, 191, 0.38);
}

.erp-report-summary-card--danger-soft {
    --erp-summary-accent: rgba(190, 24, 93, 0.92);
    background: linear-gradient(180deg, rgba(252, 231, 243, 0.72), #ffffff);
    border-color: rgba(244, 114, 182, 0.4);
}

.erp-report-table-wrap {
    border-radius: 0 0 20px 20px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.erp-report-table {
    min-width: 700px;
}

.erp-report-table--compact {
    min-width: 560px;
}

.erp-report-page .erp-report-table thead th {
    padding: 0.95rem 0.9rem;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.erp-report-page .erp-report-table tbody td {
    padding: 0.92rem 0.9rem;
    color: #1f2937;
    vertical-align: middle;
}

.erp-report-page .erp-report-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.52);
}

.erp-report-page .erp-report-table tbody tr:hover {
    background: rgba(14, 165, 164, 0.05);
}

.erp-table-actions {
    white-space: nowrap;
}

.erp-empty-state-cell {
    padding: 1.4rem !important;
    color: #64748b;
    text-align: center;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.erp-report-page .form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.erp-report-page .form-control,
.erp-admin-dashboard .form-control {
    height: 44px;
    border-radius: 12px;
    border-color: rgba(203, 213, 225, 0.85);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.erp-report-page .form-control:focus,
.erp-admin-dashboard .form-control:focus {
    border-color: rgba(14, 165, 164, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 164, 0.12);
}

.erp-report-page .select2-container--default .select2-selection--single,
.erp-report-page .select2-container--default .select2-selection--multiple {
    min-height: 44px;
    border-radius: 12px;
    border-color: rgba(203, 213, 225, 0.85);
    padding-top: 6px;
}

.erp-report-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    color: #334155;
}

.erp-report-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
}

.erp-admin-dashboard .btn,
.erp-report-page .btn {
    border-radius: 12px;
    font-weight: 700;
    padding: 0.62rem 0.96rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.erp-admin-dashboard .btn:hover,
.erp-report-page .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.erp-admin-dashboard .btn-default,
.erp-report-page .btn-default {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border-color: rgba(203, 213, 225, 0.88);
    color: #334155;
}

.erp-admin-dashboard .btn-info,
.erp-report-page .btn-info {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    border-color: #0f766e;
    color: #fff;
}

.erp-admin-dashboard .btn-success,
.erp-report-page .btn-success {
    background: linear-gradient(135deg, #059669, #34d399);
    border-color: #059669;
}

.erp-admin-dashboard .btn-danger,
.erp-report-page .btn-danger {
    background: linear-gradient(135deg, #dc2626, #fb7185);
    border-color: #dc2626;
}

.erp-admin-dashboard .btn-secondary,
.erp-report-page .btn-secondary {
    background: linear-gradient(135deg, #475569, #64748b);
    border-color: #475569;
}

.erp-admin-dashboard .btn-warning,
.erp-report-page .btn-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    border-color: #d97706;
    color: #fff;
}

.erp-admin-dashboard .btn-primary,
.erp-report-page .btn-primary {
    color: #fff;
}

.erp-report-page .style-action,
.erp-admin-dashboard .style-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 6px;
    margin-bottom: 6px;
    padding: 0;
    border-radius: 12px;
}

.erp-report-page .badge,
.erp-admin-dashboard .badge,
.erp-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.46rem 0.76rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.erp-report-page .badge-success,
.erp-status-pill[data-status="pago"],
.erp-status-pill[data-status*="paid"],
.erp-status-pill[data-status*="receb"],
.erp-status-pill[data-status*="confirm"] {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.28);
    color: #047857;
}

.erp-report-page .badge-warning,
.erp-status-pill[data-status="pendente"],
.erp-status-pill[data-status*="pending"],
.erp-status-pill[data-status*="aguard"] {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.28);
    color: #b45309;
}

.erp-report-page .badge-danger,
.erp-status-pill[data-status="vencido"],
.erp-status-pill[data-status*="overdue"],
.erp-status-pill[data-status*="late"],
.erp-status-pill[data-status*="cancel"],
.erp-status-pill[data-status*="fail"] {
    background: rgba(244, 63, 94, 0.14);
    border-color: rgba(244, 63, 94, 0.28);
    color: #be123c;
}

.erp-report-page .badge-dark,
.erp-status-pill[data-status="cancelado"] {
    background: rgba(71, 85, 105, 0.16);
    border-color: rgba(71, 85, 105, 0.3);
    color: #334155;
}

.erp-report-page .badge-secondary,
.erp-report-page .badge-info,
.erp-status-pill {
    background: rgba(14, 165, 164, 0.12);
    border-color: rgba(14, 165, 164, 0.22);
    color: #0f766e;
}

.erp-produtos-page .erp-panel-copy {
    max-width: 680px;
}

.erp-produtos-page .erp-produto-nome-cell strong {
    display: block;
    color: #10213a;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.erp-produtos-page .erp-produto-categoria-badge {
    background: rgba(14, 165, 164, 0.14);
    border-color: rgba(14, 165, 164, 0.28);
    color: #0f766e;
    font-size: 0.72rem;
}

.erp-produtos-page .erp-produtos-group-row td {
    padding: 0.56rem 0.95rem !important;
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.92), rgba(236, 253, 245, 0.88));
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.erp-produtos-group-label {
    margin-right: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.erp-produto-categoria-highlight {
    padding: 11px;
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 164, 0.22);
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.9), rgba(236, 253, 245, 0.82));
}

.erp-produto-categoria-highlight label {
    color: #0f766e;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.erp-produto-categoria-link {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0f766e;
}

.erp-produto-categoria-link:hover {
    color: #0a4f4a;
    text-decoration: underline;
}

.erp-produto-categoria-highlight .select2-container {
    margin-top: 8px;
}

@media (max-width: 991px) {
    .erp-produtos-page .erp-page-head {
        margin-bottom: 12px;
        gap: 10px;
        padding-top: 0;
    }

    .erp-produtos-page .erp-page-title-row {
        margin-top: 8px;
        gap: 10px;
    }

    .erp-produtos-page .erp-page-description {
        margin-top: 6px;
        line-height: 1.45;
    }

    .erp-produtos-page .erp-filter-head {
        margin-bottom: 8px;
    }
}

@media (max-width: 767px) {
    .erp-produtos-page .container-fluid {
        padding-top: 6px;
    }

    .erp-produtos-page .erp-page-breadcrumbs {
        display: none;
    }

    .erp-produtos-page .erp-page-kicker {
        padding: 5px 9px;
        font-size: 0.68rem;
    }

    .erp-produtos-page .erp-page-title-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 0.95rem;
    }

    .erp-produtos-page .erp-page-title {
        font-size: 1.35rem;
    }

    .erp-produtos-page .erp-page-description {
        margin-top: 4px;
        font-size: 0.84rem;
        line-height: 1.4;
    }

    .erp-produtos-page .erp-report-shell .card-body {
        padding: 12px;
    }

    .erp-produtos-page .erp-report-toolbar {
        margin-bottom: 10px;
        gap: 8px;
    }

    .erp-produtos-page .erp-report-meta {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .erp-produtos-page .erp-panel-title {
        margin-top: 6px;
        font-size: 1.05rem;
    }

    .erp-produtos-page .erp-panel-copy {
        margin-top: 3px;
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .erp-produtos-page .erp-filter-grid {
        row-gap: 4px;
    }

    .erp-produtos-page .erp-report-toolbar-actions {
        flex-direction: row;
        align-items: stretch;
        gap: 8px;
    }

    .erp-produtos-page .erp-filter-actions {
        gap: 8px;
    }

    .erp-produtos-page .card.no-print .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 0 !important;
    }

    .erp-produtos-page .erp-report-toolbar-actions .btn,
    .erp-produtos-page .erp-filter-actions .btn {
        flex: 1 1 calc(50% - 4px);
        width: auto;
    }
}

.erp-report-page .dataTables_wrapper {
    padding: 12px 14px 16px;
}

.erp-report-page .dataTables_wrapper .row:first-child,
.erp-report-page .dataTables_wrapper .row:last-child {
    align-items: center;
}

.erp-report-page .dataTables_wrapper .dataTables_length,
.erp-report-page .dataTables_wrapper .dataTables_filter,
.erp-report-page .dataTables_wrapper .dataTables_info,
.erp-report-page .dataTables_wrapper .dataTables_paginate {
    margin-top: 8px;
    margin-bottom: 8px;
}

.erp-report-page .dataTables_wrapper .dataTables_filter input,
.erp-report-page .dataTables_wrapper .dataTables_length select {
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 10px;
    padding: 0.35rem 0.7rem;
    background: #fff;
}

.erp-report-page .dataTables_wrapper .paginate_button.current {
    border-radius: 10px !important;
    border-color: rgba(14, 165, 164, 0.28) !important;
    background: rgba(14, 165, 164, 0.12) !important;
    color: #0f766e !important;
}

.erp-report-page .dataTables_wrapper .paginate_button:hover {
    border-radius: 10px !important;
    border-color: rgba(14, 165, 164, 0.22) !important;
    background: rgba(14, 165, 164, 0.08) !important;
    color: #0f766e !important;
}

.erp-sidebar-context {
    margin-top: 12px;
    padding: 0 8px 2px;
    text-align: center;
}

.erp-sidebar-context-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(14, 165, 164, 0.14);
    color: #d8fffb;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.erp-sidebar-context-copy {
    margin: 10px auto 0;
    max-width: 220px;
    color: rgba(241, 245, 249, 0.72);
    font-size: 0.82rem;
    line-height: 1.55;
}

.erp-sidebar .nav-sidebar > .nav-item > .nav-link {
    padding: 0.84rem 0.92rem;
}

.erp-sidebar .nav-treeview > .nav-item > .nav-link {
    margin: 3px 0;
    border-radius: 10px;
}

.erp-sidebar .nav-link:not(.active):hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
}

.erp-sidebar-spotlight > .nav-link {
    border: 1px solid rgba(14, 165, 164, 0.18);
    background: linear-gradient(180deg, rgba(14, 165, 164, 0.08), rgba(255, 255, 255, 0.02));
}

.erp-sidebar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 22px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(14, 165, 164, 0.16);
    color: #c8fffb;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.erp-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
}

.erp-footer-copy-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.erp-footer-brand {
    color: #10213a;
    font-weight: 800;
}

.erp-footer-copy {
    color: #64748b;
    font-size: 0.9rem;
}

.erp-footer-version {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(219, 230, 243, 0.95);
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
}

.erp-chart-card .card-body {
    padding: 20px;
}

.erp-login-page {
    position: relative;
    overflow: hidden;
}

.erp-login-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(14, 165, 164, 0.22), transparent 34%),
        radial-gradient(circle at 85% 12%, rgba(249, 115, 22, 0.22), transparent 32%);
    pointer-events: none;
}

.erp-login-card {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(8px);
}

.erp-login-title {
    font-family: var(--erp-font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: #0b172a;
}

.erp-login-input {
    border-radius: 10px;
    border-color: #d6e3f2;
}

.erp-login-input:focus {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 164, 0.14);
}

.erp-login-btn {
    font-weight: 700;
    letter-spacing: 0.4px;
    border-radius: 10px;
}

@media (max-width: 991px) {
    .erp-company-name {
        display: none;
    }

    .erp-page-head {
        flex-direction: column;
        align-items: stretch;
    }

    /* Evita bloco alto no mobile/tablet quando o head vira coluna */
    .erp-page-title-block {
        flex: 1 1 auto;
        width: 100%;
    }

    .erp-page-breadcrumbs .breadcrumb {
        justify-content: flex-start;
    }

    .erp-admin-hero {
        margin-bottom: 14px;
    }

    .erp-admin-glance {
        margin-top: 18px;
    }

    .sidebar-open .main-sidebar,
    .sidebar-open .main-sidebar::before {
        width: min(88vw, 338px);
    }

    .erp-sidebar-top {
        gap: 0;
        padding: 11px 10px 16px;
    }

    .erp-sidebar-logo-wrap {
        margin-top: 14px;
        padding-top: 8px;
    }

    .erp-brand-banner {
        width: 90%;
        min-height: 52px;
        padding: 9px 12px !important;
    }

    .erp-logo-section {
        row-gap: 8px;
        padding: 13px 8px 13px;
        min-height: 196px;
    }

    .erp-logo-section::before {
        width: 72%;
    }

    .erp-brand-text {
        font-size: 0.86rem;
    }

    .erp-logo-card {
        width: 86%;
        max-width: 226px;
        min-width: 164px;
    }

    .erp-logo-card-inner {
        width: 100%;
        height: 100%;
        padding: 0;
        border-radius: 20px;
    }

    .erp-sidebar .nav-treeview > .nav-item > .nav-link {
        padding-left: 1.7rem;
    }

    .erp-sidebar-menu {
        padding-bottom: 48px;
    }

    .erp-sidebar-pill {
        margin-right: 0;
    }

    .erp-report-brandline {
        flex-direction: column;
        align-items: flex-start;
    }

    .erp-filter-actions {
        width: 100%;
    }

    .erp-filter-actions .btn {
        justify-content: center;
    }

    .erp-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .erp-pdv-page #valor_recebido,
    .erp-pdv-page #troco {
        height: 58px !important;
        font-size: 2.2rem !important;
    }
}

@media (max-width: 767px) {
    .content-wrapper .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .erp-page-title-block {
        flex: 1 1 auto;
    }

    .erp-page-title-row {
        gap: 12px;
    }

    .erp-page-title-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 1.05rem;
    }

    .erp-admin-hero-title {
        font-size: 1.8rem;
    }

    .erp-admin-card {
        grid-template-columns: auto 1fr;
    }

    .erp-admin-card-arrow {
        display: none;
    }

    .erp-admin-shortcuts {
        grid-template-columns: 1fr;
    }

    .erp-report-toolbar,
    .erp-report-toolbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .erp-report-shell .card-body {
        padding: 16px;
    }

    .erp-panel-header {
        padding: 16px 16px 12px;
    }

    .erp-report-summary {
        grid-template-columns: 1fr;
    }

    .erp-filter-actions .btn,
    .erp-report-toolbar-actions .btn {
        width: 100%;
    }

    .erp-footer-copy-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .card {
        border-radius: 12px;
    }

    .small-box {
        margin-bottom: 10px;
    }

    .erp-sidebar-top {
        gap: 0;
        padding: 10px 9px 14px;
    }

    .erp-sidebar-logo-wrap {
        margin-top: 22px;
        padding-top: 20px;
    }

    .erp-brand-banner {
        width: 100%;
        min-height: 48px;
        padding: 8px 11px !important;
    }

    .erp-logo-section {
        row-gap: 7px;
        padding: 12px 6px 12px;
        min-height: 182px;
    }

    .erp-logo-section::before {
        width: 68%;
    }

    .erp-brand-text {
        font-size: 0.8rem;
        letter-spacing: 0.018em;
    }

    .erp-logo-card {
        width: 88%;
        max-width: 206px;
        min-width: 150px;
    }

    .erp-logo-card-inner {
        width: 100%;
        height: 100%;
        padding: 0;
        border-radius: 18px;
    }

    .erp-sidebar .nav-sidebar .nav-link {
        gap: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .erp-sidebar .nav-sidebar .nav-link p {
        font-size: 1.03rem;
    }

	    .erp-sidebar .nav-treeview > .nav-item > .nav-link p {
	        font-size: 0.98rem;
	    }

	    .erp-report-page .card.no-print .btn {
	        display: block;
	        width: 100%;
	        margin-top: 0 !important;
	    }

	    .erp-report-page .card.no-print .btn + .btn {
	        margin-top: 8px !important;
	    }

	    .erp-report-page .erp-report-table {
	        min-width: 560px;
	    }

	    .erp-report-page .erp-report-table-wrap {
	        border-radius: 12px;
	    }

	    .erp-pdv-page .erp-pdv-container {
	        margin-top: 8px !important;
        padding-left: 8px;
        padding-right: 8px;
    }

    .erp-pdv-page .card-header .card-title {
        font-size: 1rem;
    }

    .erp-pdv-page #valor_recebido,
    .erp-pdv-page #troco,
    .erp-pdv-page .erp-pdv-total-input {
        height: 54px !important;
        font-size: 1.85rem !important;
    }

    .erp-pdv-page .erp-pdv-finalizar-btn {
        width: 100%;
        font-size: 1rem;
    }

    .erp-pdv-page .table th,
    .erp-pdv-page .table td,
    #caixas-abertos .table th,
    #caixas-abertos .table td {
        font-size: 0.84rem;
        padding: 0.4rem;
    }

    .erp-pdv-page .modal-dialog,
    #caixas-abertos .pdv-caixas-dialog {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem;
    }

    .erp-pdv-page .modal-footer {
        flex-wrap: wrap;
    }

    .erp-pdv-page .modal-footer .btn {
        flex: 1 1 calc(50% - 8px);
    }

    #caixas-abertos .pdv-caixas-footer {
        flex-wrap: wrap;
    }

    #caixas-abertos .pdv-caixas-footer .pdv-caixas-btn {
        flex: 1 1 100%;
    }

    .erp-pdv-page .erp-pdv-cupom-dialog {
        width: 95vw !important;
        max-width: 95vw !important;
        margin-left: auto;
        margin-right: auto;
    }
}
