@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ControlEx Financial - Custom CSS */

/* Global Styles */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.auth-shell {
    --auth-bg: #f3f6fb;
    --auth-text: #0f172a;
    margin: 0;
    min-height: 100vh;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: 'Manrope', sans-serif;
}

.auth-shell h1,
.auth-shell h2,
.auth-shell h3,
.auth-shell h4,
.auth-shell h5,
.auth-shell h6 {
    font-family: 'Space Grotesk', sans-serif;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Cards */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Badges */
.badge {
    border-radius: 4px;
    font-weight: 500;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius);
    margin: 2px 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.alert-dismissible .btn-close {
    padding: 1rem 1rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: var(--border-radius);
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

/* Custom utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.shadow-custom {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Premium auth login */
.pb-login {
    --pb-bg: #05070a;
    --pb-panel: rgba(12, 16, 22, 0.96);
    --pb-surface: rgba(17, 23, 31, 0.9);
    --pb-border: rgba(185, 151, 94, 0.18);
    --pb-border-soft: rgba(154, 166, 182, 0.14);
    --pb-gold: #b9975e;
    --pb-gold-soft: #e7d4b2;
    --pb-text: #f4eee5;
    --pb-muted: #97a3b2;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 16%, rgba(185, 151, 94, 0.08), transparent 20%),
        linear-gradient(135deg, #020304 0%, #080b10 48%, #0f151e 100%);
    color: var(--pb-text);
    font-family: 'Manrope', sans-serif;
    position: relative;
    overflow: hidden;
}

.pb-login::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 86%);
    pointer-events: none;
}

.pb-frame {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    align-items: center;
}

.pb-stage {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    border-radius: 2rem;
    border: 1px solid rgba(185, 151, 94, 0.14);
    background: linear-gradient(180deg, rgba(8, 11, 16, 0.98) 0%, rgba(12, 17, 24, 0.96) 100%);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.44);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(380px, 430px);
}

.pb-editorial {
    position: relative;
    padding: 2.3rem 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 760px;
    background: linear-gradient(180deg, rgba(10, 14, 19, 0.98) 0%, rgba(13, 18, 25, 0.92) 100%);
}

.pb-editorial::after {
    content: "";
    position: absolute;
    inset: 1.35rem;
    border: 1px solid rgba(185, 151, 94, 0.08);
    border-radius: 1.5rem;
    pointer-events: none;
}

.pb-topbar,
.pb-hero,
.pb-foot {
    position: relative;
    z-index: 1;
}

.pb-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.pb-brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--pb-text);
    text-decoration: none;
}

.pb-crest {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 1.45rem;
    display: grid;
    place-items: center;
    color: #11161d;
    font-size: 1.05rem;
    padding: .42rem;
    background: linear-gradient(135deg, rgba(241, 225, 194, .94) 0%, rgba(185, 151, 94, .98) 100%);
    box-shadow: 0 18px 34px rgba(157, 112, 52, .22);
    position: relative;
}

.pb-crest::after {
    content: "";
    position: absolute;
    inset: .28rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(16, 22, 31, .14);
    pointer-events: none;
}

.pb-crest img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 1.1rem;
}

.pb-brand-copy strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.82rem;
    font-weight: 600;
    line-height: .94;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.pb-brand-copy span {
    display: block;
    margin-top: .2rem;
    color: var(--pb-muted);
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.pb-return {
    color: var(--pb-gold-soft);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    opacity: .85;
}

.pb-return:hover {
    opacity: 1;
    color: #fff7ea;
}

.pb-hero {
    max-width: 640px;
    padding-top: 2rem;
}

.pb-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    color: var(--pb-gold-soft);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.pb-title {
    margin: 0;
    max-width: 19ch;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.45rem, 4vw, 4.4rem);
    font-weight: 600;
    line-height: .84;
    letter-spacing: -.02em;
    color: #fbf7f0;
}

.pb-title span {
    display: block;
    color: var(--pb-gold-soft);
}

.pb-copy {
    margin: 1.35rem 0 0;
    max-width: 560px;
    color: #bfcbda;
    font-size: .95rem;
    line-height: 1.95;
}

.pb-copy,
.login-summary,
.cx-page-subtitle,
.cx-panel-copy,
.dash-subtitle {
    display: none !important;
}

.pb-monogram {
    margin-top: 3.25rem;
    display: inline-flex;
    align-items: baseline;
    gap: .75rem;
    color: rgba(231, 212, 178, 0.28);
}

.pb-monogram strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.2rem;
    font-weight: 600;
    line-height: .8;
}

.pb-monogram span {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(151, 163, 178, 0.68);
}

.pb-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 2rem;
    align-items: end;
    padding-top: 2rem;
}

.pb-quote {
    padding-left: 1.2rem;
    border-left: 1px solid rgba(185, 151, 94, 0.22);
}

.pb-quote p {
    margin: 0 0 .7rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.42rem;
    line-height: 1.48;
    color: #e7edf4;
    max-width: 42ch;
}

.pb-quote strong {
    color: var(--pb-gold-soft);
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.pb-card {
    padding: 1.1rem 1.15rem;
    border-radius: 1.35rem;
    border: 1px solid var(--pb-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(14, 19, 27, 0.82) 100%);
}

.pb-card span {
    display: block;
    color: var(--pb-muted);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: .8rem;
}

.pb-card strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    margin-bottom: .35rem;
}

.pb-card p {
    margin: 0;
    color: #a7b4c5;
    font-size: .8rem;
    line-height: 1.6;
}

.pb-auth {
    position: relative;
    padding: 2.2rem 1.9rem;
    border-left: 1px solid rgba(185, 151, 94, 0.12);
    background: linear-gradient(180deg, rgba(14, 19, 27, 0.98) 0%, rgba(17, 23, 32, 0.98) 100%);
    align-items: center;
}

.pb-auth::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pb-gold-soft) 0%, var(--pb-gold) 100%);
}

.pb-auth-card {
    width: 100%;
    padding: 1.5rem;
    border-radius: 1.65rem;
    border: 1px solid rgba(185, 151, 94, 0.14);
    background: linear-gradient(180deg, rgba(21, 28, 39, 0.88) 0%, rgba(16, 22, 31, 0.94) 100%);
}

.pb-auth-tag {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .9rem;
    color: var(--pb-gold-soft);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.pb-auth-card h2 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: .98;
    color: #fbf7f0;
}

.pb-auth-card > p {
    margin: .55rem 0 0;
    color: var(--pb-muted);
    font-size: .92rem;
    line-height: 1.85;
}

.pb-alerts {
    display: grid;
    gap: .7rem;
    margin: 1rem 0;
}

.pb-alerts .alert {
    margin: 0;
    border: 0;
    border-radius: 1rem;
}

.pb-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.1rem;
}

.pb-field label {
    display: block;
    margin-bottom: .45rem;
    color: #d8e0ea;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.pb-input {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 3.65rem;
    padding: 0 1rem;
    border-radius: 1rem;
    border: 1px solid var(--pb-border-soft);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.pb-input:focus-within {
    border-color: rgba(185, 151, 94, 0.4);
    box-shadow: 0 0 0 4px rgba(185, 151, 94, 0.08);
}

.pb-input i {
    color: var(--pb-gold-soft);
    font-size: 1rem;
    flex-shrink: 0;
}

.pb-input input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: .96rem;
    font-weight: 600;
}

.pb-input input::placeholder {
    color: #738194;
}

.pb-toggle {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: .65rem;
    background: transparent;
    color: var(--pb-muted);
    display: grid;
    place-items: center;
}

.pb-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.pb-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--pb-muted);
    font-size: .77rem;
}

.pb-meta strong {
    color: var(--pb-text);
}

.pb-submit {
    min-height: 3.75rem;
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--pb-gold-soft) 0%, var(--pb-gold) 62%, #9d7034 100%);
    color: #10151c;
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
    box-shadow: 0 20px 36px rgba(157, 112, 52, 0.22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.pb-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 42px rgba(157, 112, 52, 0.28);
}

.pb-service {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(185, 151, 94, 0.12);
    display: grid;
    gap: .85rem;
}

.pb-service-item {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
}

.pb-service-item i {
    width: 1.95rem;
    height: 1.95rem;
    border-radius: .7rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #11161d;
    background: linear-gradient(135deg, var(--pb-gold-soft) 0%, var(--pb-gold) 100%);
}

.pb-service-item strong {
    display: block;
    color: #fff;
    font-size: .86rem;
    margin-bottom: .15rem;
}

.pb-service-item p {
    margin: 0;
    color: #9cabbd;
    font-size: .79rem;
    line-height: 1.45;
}

.pb-footnote {
    margin-top: 1rem;
    color: #728195;
    font-size: .74rem;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 1180px) {
    .pb-stage {
        grid-template-columns: 1fr;
    }

    .pb-auth {
        border-left: 0;
        border-top: 1px solid rgba(185, 151, 94, 0.12);
    }

    .pb-editorial {
        min-height: auto;
    }
}

@media (max-width: 820px) {
    .pb-frame {
        padding: 1rem;
    }

    .pb-editorial,
    .pb-auth {
        padding: 1.2rem;
    }

    .pb-topbar,
    .pb-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .pb-foot {
        grid-template-columns: 1fr;
    }

    .pb-title {
        font-size: 2.15rem;
    }
}

/* Legacy auth login */
.login-screen {
    --login-navy: #071a2f;
    --login-navy-soft: #0d2745;
    --login-cyan: #14b8a6;
    --login-cyan-soft: #99f6e4;
    --login-amber: #f97316;
    --login-amber-soft: #fed7aa;
    --login-surface: rgba(255, 255, 255, 0.9);
    --login-border: rgba(148, 163, 184, 0.28);
    --login-text: #e2e8f0;
    --login-muted: #94a3b8;
    --login-card-text: #0f172a;
    --login-card-muted: #475569;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.24), transparent 26%),
        radial-gradient(circle at 88% 14%, rgba(249, 115, 22, 0.22), transparent 22%),
        radial-gradient(circle at 78% 84%, rgba(59, 130, 246, 0.18), transparent 26%),
        linear-gradient(135deg, #03101f 0%, #08213c 44%, #0b1f34 100%);
    position: relative;
    overflow: hidden;
}

.login-screen::before,
.login-screen::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 999px;
    filter: blur(40px);
    opacity: .45;
    pointer-events: none;
}

.login-screen::before {
    width: 280px;
    height: 280px;
    left: -80px;
    bottom: 7%;
    background: rgba(20, 184, 166, 0.34);
}

.login-screen::after {
    width: 340px;
    height: 340px;
    right: -120px;
    top: 6%;
    background: rgba(249, 115, 22, 0.28);
}

.login-grid {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px);
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

.login-brand-panel {
    color: var(--login-text);
    padding: 2rem 1rem 2rem 2.5rem;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.5rem;
    color: #f8fafc;
    text-decoration: none;
}

.login-brand-mark {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, var(--login-cyan) 0%, #2563eb 55%, var(--login-amber) 100%);
    box-shadow: 0 18px 40px rgba(8, 145, 178, 0.32);
}

.login-brand-copy strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    letter-spacing: .03em;
}

.login-brand-copy span {
    color: var(--login-muted);
    font-size: .9rem;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid rgba(153, 246, 228, 0.24);
    background: rgba(8, 28, 52, 0.46);
    color: #d5fbf5;
    border-radius: 999px;
    padding: .45rem .85rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.login-title {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: .96;
    color: #f8fafc;
    max-width: 11ch;
}

.login-title .accent {
    color: #8bfff1;
}

.login-summary {
    max-width: 560px;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 1.25rem 0 1.7rem;
}

.login-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-bottom: 1.7rem;
}

.login-pill {
    border-radius: 999px;
    padding: .55rem .9rem;
    border: 1px solid rgba(203, 213, 225, 0.16);
    background: rgba(15, 23, 42, 0.36);
    color: #e2e8f0;
    font-size: .84rem;
    font-weight: 700;
}

.login-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 760px;
    margin-bottom: 1rem;
}

.login-stat {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    padding: 1.15rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(8, 28, 52, 0.92) 0%, rgba(9, 22, 39, 0.78) 100%);
    box-shadow: 0 24px 48px rgba(2, 8, 23, 0.18);
}

.login-stat::after {
    content: "";
    position: absolute;
    inset: auto -30px -40px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.14);
}

.login-stat.alt::after {
    background: rgba(249, 115, 22, 0.16);
}

.login-stat span {
    display: block;
    color: #7dd3fc;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .7rem;
    position: relative;
    z-index: 1;
}

.login-stat strong {
    display: block;
    color: #f8fafc;
    font-size: 1.9rem;
    line-height: 1;
    margin-bottom: .4rem;
    position: relative;
    z-index: 1;
}

.login-stat p {
    margin: 0;
    color: #cbd5e1;
    font-size: .88rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.login-ops-card {
    max-width: 760px;
    border-radius: 1.5rem;
    padding: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(10, 25, 45, 0.92) 0%, rgba(9, 18, 33, 0.82) 100%);
    box-shadow: 0 28px 52px rgba(2, 8, 23, 0.18);
}

.login-ops-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.login-ops-header h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.05rem;
}

.login-ops-header span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.14);
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: #d1fae5;
    padding: .4rem .72rem;
    font-size: .78rem;
    font-weight: 700;
}

.login-ops-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: .9rem;
}

.login-flow-panel,
.login-trust-panel {
    border-radius: 1.15rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.42);
    padding: 1rem;
}

.login-flow-label,
.login-trust-panel > strong {
    display: block;
    color: #cbd5e1;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.login-flow-bars {
    display: flex;
    align-items: end;
    gap: .45rem;
    height: 140px;
}

.login-flow-bars i {
    flex: 1;
    border-radius: .7rem .7rem .25rem .25rem;
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    box-shadow: inset 0 -8px 18px rgba(7, 26, 47, 0.24);
}

.login-flow-bars i.alt {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.92) 0%, rgba(249, 115, 22, 0.92) 100%);
}

.login-flow-axis {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: .72rem;
    margin-top: .65rem;
}

.trust-list {
    display: grid;
    gap: .7rem;
}

.trust-item {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
}

.trust-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: .8rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.92) 0%, rgba(37, 99, 235, 0.92) 100%);
    flex-shrink: 0;
}

.trust-item strong {
    margin: 0 0 .15rem;
    color: #f8fafc;
    font-size: .92rem;
}

.trust-item p {
    margin: 0;
    color: #94a3b8;
    font-size: .82rem;
    line-height: 1.45;
}

.login-form-panel {
    position: relative;
    padding: 1rem;
}

.login-form-card {
    border-radius: 1.75rem;
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.92) 100%);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(18px);
}

.login-card-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.login-card-top h3 {
    margin: 0;
    color: var(--login-card-text);
    font-size: 1.75rem;
}

.login-card-top p {
    margin: .35rem 0 0;
    color: var(--login-card-muted);
    line-height: 1.55;
}

.login-risk-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #9a3412;
    border: 1px solid #fdba74;
    padding: .45rem .75rem;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.login-alerts {
    display: grid;
    gap: .7rem;
    margin-bottom: 1rem;
}

.login-alerts .alert {
    margin: 0;
    border: 0;
    border-radius: 1rem;
    font-size: .92rem;
    box-shadow: 0 12px 24px rgba(148, 163, 184, 0.12);
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-field label {
    display: block;
    margin-bottom: .45rem;
    color: #334155;
    font-size: .84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.login-input-wrap {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 3.55rem;
    padding: 0 1rem;
    border-radius: 1rem;
    border: 1px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.88);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.login-input-wrap:focus-within {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
    transform: translateY(-1px);
}

.login-input-wrap i {
    color: #0f766e;
    font-size: 1rem;
    flex-shrink: 0;
}

.login-input-wrap input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    color: #0f172a;
    font-size: .98rem;
    font-weight: 600;
    box-shadow: none;
}

.login-input-wrap input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.login-toggle {
    border: 0;
    background: transparent;
    color: #64748b;
    width: 2rem;
    height: 2rem;
    border-radius: .65rem;
    display: grid;
    place-items: center;
}

.login-toggle:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.login-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    color: #64748b;
    font-size: .83rem;
}

.login-meta strong {
    color: #0f172a;
}

.login-submit {
    border: 0;
    min-height: 3.55rem;
    border-radius: 1rem;
    color: #fff;
    font-weight: 800;
    font-size: .98rem;
    letter-spacing: .02em;
    background: linear-gradient(135deg, var(--login-cyan) 0%, #2563eb 48%, var(--login-amber) 100%);
    box-shadow: 0 20px 34px rgba(37, 99, 235, 0.26);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.login-submit:hover {
    transform: translateY(-1px);
    filter: saturate(1.06);
    box-shadow: 0 24px 40px rgba(37, 99, 235, 0.3);
}

.login-support {
    margin-top: 1rem;
    display: grid;
    gap: .8rem;
}

.login-support-card {
    display: flex;
    gap: .8rem;
    border-radius: 1rem;
    padding: .95rem 1rem;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid #e2e8f0;
}

.login-support-card i {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: .8rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
    flex-shrink: 0;
}

.login-support-card strong {
    display: block;
    color: #0f172a;
    font-size: .9rem;
    margin-bottom: .15rem;
}

.login-support-card p {
    margin: 0;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.45;
}

.login-footer-note {
    margin-top: .9rem;
    color: #64748b;
    font-size: .76rem;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 1200px) {
    .login-grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
        padding: 1.5rem;
    }

    .login-brand-panel {
        padding-left: .5rem;
    }

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

@media (max-width: 991px) {
    .login-grid {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        gap: 1rem;
    }

    .login-brand-panel {
        padding: 1rem 0 0;
    }

    .login-form-panel {
        padding: 0;
    }

    .login-ops-grid,
    .login-insights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .login-grid {
        padding: 1rem;
    }

    .login-title {
        font-size: 2.3rem;
    }

    .login-card-top {
        flex-direction: column;
    }

    .login-form-card {
        padding: 1.1rem;
        border-radius: 1.4rem;
    }

    .login-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Configuracoes */
.cx-config-shell {
    gap: 1.2rem;
}

.cx-config-tabs-wrap {
    padding: 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(185, 151, 94, .14);
    background: linear-gradient(180deg, rgba(255, 251, 244, .88) 0%, rgba(246, 239, 228, .72) 100%);
    box-shadow: 0 24px 46px rgba(17, 24, 33, .06);
}

.cx-config-shell .nav-tabs {
    border-bottom: 0;
    gap: .65rem;
}

.cx-config-shell .nav-tabs .nav-link {
    color: var(--text-muted);
    border: 1px solid rgba(185, 151, 94, .14);
    border-radius: 999px;
    padding: .85rem 1.15rem;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, .58);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cx-config-shell .nav-tabs .nav-link:hover {
    color: #6a4d2a;
    border-color: rgba(185, 151, 94, .28);
    background: rgba(185, 151, 94, .08);
}

.cx-config-shell .nav-tabs .nav-link.active {
    color: #10161d;
    font-weight: 800;
    border-color: rgba(185, 151, 94, .3);
    background: linear-gradient(135deg, rgba(231, 212, 178, .82) 0%, rgba(185, 151, 94, .24) 100%);
    box-shadow: 0 12px 22px rgba(157, 112, 52, .12);
}

.cx-config-shell .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cx-config-shell .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12) !important;
}

.cx-config-shell .card-header[class*="bg-"] {
    background: rgba(255, 252, 247, .9) !important;
    color: var(--text) !important;
}

.cx-config-shell .card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.cx-config-shell .form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.cx-config-shell .form-check-input:focus {
    border-color: rgba(185, 151, 94, .45);
    box-shadow: 0 0 0 0.25rem rgba(185, 151, 94, .12);
}

.cx-config-shell .tab-pane {
    animation: cx-config-fade 0.3s ease-in;
}

@keyframes cx-config-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cx-config-shell .form-control:focus,
.cx-config-shell .form-select:focus {
    border-color: rgba(185, 151, 94, .45);
    box-shadow: 0 0 0 0.25rem rgba(185, 151, 94, 0.12);
}

@media (max-width: 767px) {
    .cx-config-tabs-wrap {
        padding: .85rem;
    }

    .cx-config-shell .nav-tabs .nav-link {
        width: 100%;
        justify-content: center;
    }
}

/* Contas a receber */
.cx-receber-shell .cx-remessa-error .modal-header {
    background-color: #dc3545;
    color: #fff;
}

.cx-receber-shell #modalOcorrencias .modal-ocorrencias-dialog {
    max-width: min(1200px, 96vw);
}

.cx-receber-shell #modalOcorrencias .modal-content {
    height: 85vh;
}

.cx-receber-shell #modalOcorrencias .modal-ocorrencias-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cx-receber-shell #modalOcorrencias .ocorrencias-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.cx-receber-shell #modalOcorrencias .ocorrencias-table-wrap table {
    min-width: 980px;
}

.cx-receber-shell #modalOcorrencias .ocorrencias-table-wrap thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.cx-receber-shell .cx-remessa-error .modal-body {
    font-size: 14px;
    line-height: 1.6;
    max-height: 500px;
    overflow-y: auto;
}

.cx-receber-shell .cx-remessa-error .modal-body ul {
    margin-top: 10px;
    padding-left: 20px;
}

.cx-receber-shell .cx-remessa-error .modal-body li {
    margin-bottom: 5px;
}

/* SQL console */
.cx-sql-console #sqlEditor {
    font-size: 14px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.cx-sql-console #sqlEditor:focus {
    background-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.cx-sql-console .result-table {
    font-size: 13px;
    max-height: 500px;
    overflow: auto;
}

.cx-sql-console .result-table th {
    position: sticky;
    top: 0;
    background-color: #0d6efd;
    color: #fff;
    z-index: 10;
}

.cx-sql-console .sql-stats {
    font-size: 12px;
    color: #6c757d;
}

.cx-sql-console .history-list {
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
}

.cx-sql-console .history-item {
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    padding: 0.7rem;
}

.cx-sql-console .history-item:last-child {
    border-bottom: 0;
}

.cx-sql-console .history-item:hover {
    background-color: #f8f9fa;
}

.cx-sql-console .history-item.active {
    background-color: #e7f1ff;
}

.cx-sql-console .history-sql {
    font-family: monospace;
    font-size: 0.86rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.cx-sql-console .history-meta {
    font-size: 0.78rem;
    color: #6c757d;
}

/* Premium internal shell */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --sw: 72px;
    --th: 52px;
    --bh: 0px;
    --sidebar-bg: #0b1118;
    --sidebar-bg-soft: #111822;
    --sidebar-hover: rgba(231, 212, 178, .08);
    --sidebar-active: rgba(185, 151, 94, .16);
    --accent: #b9975e;
    --accent-hover: #c9ab78;
    --accent-strong: #8f6736;
    --accent-soft: #e7d4b2;
    --surface: rgba(252, 249, 243, .94);
    --surface-strong: #fffdf8;
    --surface-dark: #10161f;
    --bg: #f3efe7;
    --bg-soft: #ede7dd;
    --border: rgba(120, 98, 63, .18);
    --border-strong: rgba(185, 151, 94, .3);
    --text: #1a2430;
    --text-muted: #6e7987;
    --text-soft: #9aa5b3;
    --success-soft: #dfeee3;
    --warning-soft: #f5e7d2;
    --danger-soft: #f3dddd;
}

body {
    background:
        radial-gradient(circle at top left, rgba(185, 151, 94, .1), transparent 22%),
        linear-gradient(180deg, #f6f1e8 0%, #ece4d7 100%);
    color: var(--text);
    font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.banner-homolog {
    position: fixed;
    top: 0;
    left: var(--sw);
    right: 0;
    height: 30px;
    background: repeating-linear-gradient(45deg,#f59e0b,#f59e0b 10px,#1e2a3a 10px,#1e2a3a 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
    letter-spacing: .04em;
    gap: .5rem;
    z-index: 950;
    padding: 0 2.5rem;
}

.banner-homolog a {
    color: #fde68a;
    text-decoration: underline;
}

.banner-homolog-close {
    position: absolute;
    right: .5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

body.has-banner {
    --bh: 30px;
}

.cx-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sw);
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-soft) 100%);
    border-right: 1px solid rgba(231, 212, 178, .08);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 10px 0 40px rgba(7, 10, 15, .24);
}

.cx-sidebar-logo {
    height: calc(var(--th) + var(--bh));
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.02);
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s;
    border-bottom: 1px solid rgba(231, 212, 178, .08);
}

.cx-sidebar-logo img {
    width: 71px;
    height: 53px;
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
}

.cx-sidebar-logo:hover {
    color: var(--accent-soft);
    background: rgba(255,255,255,.04);
}

.cx-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: .375rem 0 1rem;
    scrollbar-width: none;
}

.cx-sidebar-nav::-webkit-scrollbar {
    display: none;
}

.cx-section-label {
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(231,212,178,.32);
    text-align: center;
    padding: .85rem 4px .2rem;
    user-select: none;
}

.cx-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(229, 233, 239, .6);
    padding: .56rem 2px;
    gap: .22rem;
    position: relative;
    transition: background .15s, color .15s;
}

.cx-nav-item i {
    font-size: 1.2rem;
    line-height: 1;
}

.cx-nav-item span {
    font-size: .56rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.25;
    max-width: 64px;
    word-break: break-word;
}

.cx-nav-item:hover {
    background: var(--sidebar-hover);
    color: #fffaf2;
}

.cx-nav-item.active {
    background: var(--sidebar-active);
    color: #fffaf2;
}

.cx-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}

.cx-nav-item::after {
    content: attr(title);
    position: absolute;
    left: calc(var(--sw) + 6px);
    top: 50%;
    transform: translateY(-50%);
    background: #111822;
    color: #fff7ea;
    font-size: .78rem;
    font-weight: 500;
    padding: .3rem .65rem;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 1100;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.cx-nav-item:hover::after {
    opacity: 1;
}

.cx-topbar {
    position: fixed;
    top: var(--bh);
    left: var(--sw);
    right: 0;
    height: var(--th);
    background: rgba(11, 17, 24, .94);
    border-bottom: 1px solid rgba(231, 212, 178, .12);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: .75rem;
    z-index: 900;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    backdrop-filter: blur(18px);
}

.cx-topbar-brand {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.cx-topbar-brand-name {
    display: inline-flex;
    align-items: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.95rem;
    font-weight: 600;
    color: var(--accent-soft);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cx-topbar-brand-module {
    font-size: .85rem;
    font-weight: 700;
    color: rgba(231, 212, 178, .74);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.cx-user-btn {
    display: flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    padding: .3rem .6rem;
    border-radius: 8px;
    border: 1px solid rgba(231, 212, 178, .08);
    background: rgba(255,255,255,.02);
    color: #d7deea;
    font-size: .85rem;
    position: relative;
}

.cx-topbar-dropdown {
    position: relative;
}

.cx-user-btn:hover {
    background: rgba(255,255,255,.05);
    color: #fff8ee;
}

.cx-user-btn > span {
    color: #f3eee6;
    font-weight: 600;
}

.cx-user-btn > i {
    color: rgba(231, 212, 178, .7);
}

.cx-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 100%);
    color: #11161d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
}

.cx-user-dropdown,
.cx-admin-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(9,12,17,.18);
    min-width: 175px;
    padding: .3rem 0;
    z-index: 1001;
    display: none;
}

.cx-user-dropdown.open,
.cx-admin-dropdown.open {
    display: block;
}

.cx-admin-btn {
    display: flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    padding: .3rem .65rem;
    border-radius: 8px;
    border: 1px solid rgba(231, 212, 178, .18);
    background: rgba(185,151,94,.12);
    color: #f8f2e9;
    font-size: .82rem;
    font-weight: 500;
    position: relative;
}

.cx-admin-btn:hover {
    background: rgba(185,151,94,.18);
    color: #fffdf8;
    border-color: rgba(231,212,178,.28);
}

.cx-admin-btn:focus-visible {
    outline: 2px solid rgba(231,212,178,.4);
    outline-offset: 2px;
}

.cx-admin-dropdown a,
.cx-user-dropdown a,
.cx-user-dropdown button {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1rem;
    font-size: .85rem;
    color: var(--text);
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.cx-admin-dropdown a:hover,
.cx-user-dropdown a:hover,
.cx-user-dropdown button:hover {
    background: #f4ede3;
    color: #0b1220;
}

.cx-user-dropdown hr {
    margin: .25rem 0;
    border-color: #e8ddd0;
}

.cx-page {
    margin-left: var(--sw);
    padding-top: calc(var(--th) + var(--bh));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cx-content {
    padding: 1.5rem;
    width: 100%;
    flex: 1;
}

.card {
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(17, 24, 33, .08);
    background: linear-gradient(180deg, rgba(255, 252, 247, .98) 0%, rgba(249, 244, 236, .96) 100%);
    overflow: hidden;
}

.card-header {
    background: rgba(255, 251, 244, .9) !important;
    border-bottom: 1px solid var(--border);
    border-radius: 18px 18px 0 0 !important;
    padding: 1rem 1.3rem;
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.card-body {
    padding: 1.3rem;
}

.form-label {
    font-size: .72rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: .35rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 12px !important;
    border-color: rgba(146, 127, 95, .2);
    font-size: .9rem;
    background: rgba(255,255,255,.82);
}

.input-group-text {
    color: var(--accent-strong);
    background: #faf4eb;
}

.form-control,
.form-select {
    color: var(--text);
    min-height: 3rem;
}

.form-control::placeholder {
    color: #98a2af;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(185,151,94,.42);
    box-shadow: 0 0 0 4px rgba(185,151,94,.1);
    background: #fffdf9;
}

fieldset.border {
    border-color: var(--border) !important;
    border-radius: 10px;
}

legend.float-none {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 .375rem;
}

.btn {
    border-radius: 12px;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 68%, var(--accent-strong) 100%) !important;
    border-color: transparent !important;
    color: #11161d !important;
    box-shadow: 0 14px 24px rgba(144, 107, 54, .18);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #efdfc0 0%, var(--accent-hover) 70%, #a77b44 100%) !important;
    border-color: transparent !important;
}

.btn-outline-primary {
    border-color: rgba(185,151,94,.38) !important;
    color: var(--accent-strong) !important;
    background: rgba(255,255,255,.58);
}

.btn-outline-primary:hover {
    background: rgba(185,151,94,.12) !important;
    color: #5f4525 !important;
}

.btn-outline-secondary,
.btn-secondary {
    border-color: rgba(111, 121, 135, .2) !important;
    color: var(--text-muted) !important;
    background: rgba(255,255,255,.6);
}

.btn-outline-secondary:hover,
.btn-secondary:hover {
    background: #ebe3d7 !important;
    color: var(--text) !important;
}

.btn-outline-dark {
    border-color: rgba(16,22,31,.2) !important;
    color: var(--text) !important;
    background: rgba(255,255,255,.58);
}

.btn-outline-dark:hover {
    background: #e7dfd1 !important;
    color: #10161f !important;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
}

.btn:active {
    transform: translateY(0);
}

.table {
    font-size: .84rem;
    margin-bottom: 0;
}

.table > thead > tr > th {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: #f5ede1;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    padding: .65rem .75rem;
}

.table > tbody > tr > td {
    padding: .6rem .75rem;
    vertical-align: middle;
}

.table > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(245, 237, 225, .52);
}

.table > tbody > tr:nth-of-type(even) > * {
    background-color: rgba(255, 252, 247, .78);
}

.table-responsive {
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: rgba(255,255,255,.5);
}

.table-hover > tbody > tr:hover > td {
    background-color: #f8f2e8;
}

.badge {
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: .45rem .7rem;
    text-transform: uppercase;
}

.alert {
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: .875rem;
    background: rgba(255,251,244,.88);
}

.page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    font-size: .8rem;
}

.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.page-header h1,
.page-header .h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.cx-page-shell {
    display: grid;
    gap: 1rem;
}

.cx-page-hero {
    position: relative;
    padding: 1.55rem 1.6rem;
    border-radius: 22px;
    border: 1px solid rgba(185, 151, 94, .18);
    background:
        radial-gradient(circle at top right, rgba(185,151,94,.12), transparent 24%),
        linear-gradient(135deg, rgba(255,251,244,.98) 0%, rgba(245,238,227,.96) 100%);
    box-shadow: 0 24px 46px rgba(17, 24, 33, .08);
    overflow: hidden;
}

.cx-page-hero::after {
    content: '';
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(185,151,94,.08);
    border-radius: 18px;
    pointer-events: none;
}

.cx-page-hero-inner,
.cx-panel-head,
.cx-hero-stats {
    position: relative;
    z-index: 1;
}

.cx-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .8rem;
    color: var(--accent-strong);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.cx-page-title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.35rem;
    line-height: .92;
    font-weight: 600;
    color: #1a2330;
    letter-spacing: .02em;
}

.cx-page-subtitle {
    margin: .75rem 0 0;
    max-width: 70ch;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: .92rem;
}
@media (max-width: 767px) {
    .cx-page-title {
        font-size: 1.95rem;
    }
}

.cx-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 1.25rem;
}

.cx-hero-stat {
    padding: .95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(185,151,94,.14);
    background: rgba(255,255,255,.55);
}

.cx-hero-stat span {
    display: block;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .4rem;
}

.cx-hero-stat strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    line-height: 1;
    color: #17202b;
}

.cx-hero-stat p {
    margin: .3rem 0 0;
    color: var(--text-muted);
    font-size: .79rem;
    line-height: 1.55;
}

.cx-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cx-panel-title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: #18222d;
}

.cx-panel-copy {
    margin: .25rem 0 0;
    color: var(--text-muted);
    font-size: .86rem;
}

.cx-action-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.cx-empty-state {
    text-align: center;
    padding: 3.25rem 1rem;
    color: var(--text-muted);
}

.cx-empty-state i {
    font-size: 3.5rem;
    color: rgba(185,151,94,.58);
}

.cx-empty-state h4 {
    margin: 1rem 0 .45rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #1c2631;
}

.cx-table-meta {
    color: var(--text-muted);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
}

#cx-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.5);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

#cx-backdrop.show {
    display: flex;
}

#cx-dialog {
    background: linear-gradient(180deg, rgba(255,252,247,.98) 0%, rgba(246,239,228,.98) 100%);
    border-radius: 18px;
    border: 1px solid rgba(185,151,94,.2);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    padding: 2rem 2rem 1.5rem;
    max-width: 420px;
    width: calc(100% - 2rem);
    animation: cx-pop .16s ease;
}

@keyframes cx-pop {
    from {
        transform: scale(.94);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#cx-dialog-icon {
    font-size: 2rem;
    margin-bottom: .6rem;
    line-height: 1;
}

#cx-dialog-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: #0f172a;
}

#cx-dialog-msg {
    font-size: .88rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
    line-height: 1.6;
}

#cx-dialog-actions {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
}
@media (max-width: 767px) {
    .cx-sidebar {
        transform: translateX(-72px);
        transition: transform .25s;
    }

    .cx-sidebar.open {
        transform: translateX(0);
    }

    .cx-topbar,
    .cx-page {
        margin-left: 0 !important;
        left: 0 !important;
    }

    .banner-homolog {
        left: 0;
    }

    .cx-content {
        padding: 1rem .75rem;
    }

    .cx-nav-item::after {
        display: none;
    }
}

/* Premium internal collection views */
.cx-collection-shell {
    display: grid;
    gap: 1rem;
}

.cx-collection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.cx-collection-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 1.25rem;
}

.cx-collection-summary-card {
    padding: .95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(185, 151, 94, .14);
    background: rgba(255, 255, 255, .55);
}

.cx-collection-summary-card span {
    display: block;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-muted, #6e7987);
    margin-bottom: .4rem;
}

.cx-collection-summary-card strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    line-height: 1;
    color: #17202b;
}

.cx-collection-summary-card p {
    margin: .3rem 0 0;
    color: var(--text-muted, #6e7987);
    font-size: .79rem;
    line-height: 1.55;
}

.cx-collection-shell .card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 600;
}

.cx-collection-status-note {
    color: var(--text-muted, #6e7987);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
}

.cx-badge-soft-success {
    background: rgba(43, 122, 66, .12);
    color: #2f6941;
}

.cx-badge-soft-warning {
    background: rgba(196, 140, 54, .16);
    color: #7a531f;
}

.cx-badge-soft-danger {
    background: rgba(170, 69, 69, .14);
    color: #8a3b3b;
}

.cx-badge-soft-secondary {
    background: rgba(108, 117, 125, .14);
    color: #5f6770;
}

.cx-badge-soft-info {
    background: rgba(95, 123, 147, .14);
    color: #4a6277;
}

.cx-modal-header-success {
    background: linear-gradient(135deg, #2f6941 0%, #3f8455 100%);
    color: #f7f3eb;
}

.cx-modal-header-info {
    background: linear-gradient(135deg, #4a6277 0%, #5f7b93 100%);
    color: #f7f3eb;
}

.cx-modal-header-danger {
    background: linear-gradient(135deg, #8a3b3b 0%, #aa4545 100%);
    color: #f7f3eb;
}

.cx-empty-inline {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted, #6e7987);
}

.cx-empty-inline i {
    font-size: 3.5rem;
    color: rgba(185, 151, 94, .58);
}

.cx-empty-inline h4 {
    margin: 1rem 0 .45rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #1c2631;
}
@media (max-width: 767px) {
    .cx-collection-actions {
        width: 100%;
    }

    .cx-collection-actions .btn {
        width: 100%;
    }
}

.cx-form-shell {
    display: grid;
    gap: 1rem;
}

.cx-finance-form-shell {
    gap: 1rem;
}

.cx-finance-hero {
    position: relative;
}

.cx-finance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.cx-cadastro-form .row.mb-3 {
    row-gap: .45rem;
}

.cx-cadastro-form .row.mb-3 > [class*="col-sm-"] {
    flex: 0 0 100%;
    max-width: 100%;
}

.cx-cadastro-form .row.mb-3 > label.col-form-label {
    padding-top: 0;
    padding-bottom: .1rem;
    font-weight: 600;
    color: var(--text-muted, #6e7987);
}

.cx-cadastro-form .form-label {
    font-weight: 600;
    color: var(--text-muted, #6e7987);
}

.cx-cadastro-form .form-control,
.cx-cadastro-form .form-select,
.cx-cadastro-form textarea {
    min-height: 40px;
}

.cx-cadastro-form .money,
.cx-cadastro-form .text-end {
    text-align: right;
}

.cx-cadastro-form .badge-toggle {
    cursor: pointer;
}

.cx-cadastro-form .row > .offset-sm-3 {
    margin-left: 0;
    flex: 0 0 100%;
    max-width: 100%;
}

.cx-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
@media (max-width: 767px) {
    .cx-finance-actions,
    .cx-form-actions {
        width: 100%;
    }

    .cx-finance-actions .btn,
    .cx-form-actions .btn {
        width: 100%;
    }
}

.cx-form-shell .card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 600;
}

.cx-form-shell .card-header {
    background: rgba(255, 252, 247, .9) !important;
}

.cx-finance-form-shell .card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 600;
}

.cx-finance-form-shell .card-header {
    background: rgba(255, 252, 247, .9) !important;
}

.cx-form-shell hr {
    border-color: rgba(185, 151, 94, .14);
    opacity: 1;
}

.cx-finance-form-shell hr {
    border-color: rgba(185, 151, 94, .14);
    opacity: 1;
}

.cx-finance-values-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.cx-finance-values-grid > div {
    min-width: 0;
}

.cx-finance-values-grid .form-control-plaintext {
    margin-bottom: 0;
}

.cx-finance-documents-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.cx-finance-documents-grid-payable {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.05fr) minmax(0, .55fr) minmax(0, .55fr) minmax(0, 1.65fr);
}

.cx-finance-documents-grid > div {
    min-width: 0;
}

.cx-finance-documents-grid .form-control-plaintext {
    margin-bottom: 0;
}

@media (max-width: 1399px) {
    .cx-finance-documents-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cx-finance-values-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .cx-finance-documents-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cx-finance-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Premium dashboard */
.dash-shell {
    --dbx-bg: radial-gradient(circle at top right, rgba(185, 151, 94, .11), transparent 24%), linear-gradient(180deg, #fcf8f2 0%, #f2ebdf 100%);
    --dbx-text: #18222d;
    --dbx-muted: #697585;
    --dbx-surface: rgba(255, 252, 247, .94);
    --dbx-border: rgba(130, 104, 62, .16);
    --dbx-primary: #b9975e;
    --dbx-receber: #6d8fa7;
    --dbx-pagar: #a97948;
    --dbx-success: #16a34a;
    --dbx-danger: #dc2626;
}

.dash-shell {
    background: var(--dbx-bg);
    border: 1px solid var(--dbx-border);
    border-radius: 24px;
    padding: 1.15rem;
    box-shadow: 0 28px 54px rgba(17, 24, 33, .08);
}

.dash-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .35rem .35rem 1rem .35rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--dbx-border);
}

.dash-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .75rem;
    color: #8f6736;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.dash-title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.45rem;
    line-height: .94;
    color: var(--dbx-text);
    font-weight: 600;
}

.dash-subtitle {
    margin: .6rem 0 0;
    color: var(--dbx-muted);
    font-size: .92rem;
    line-height: 1.8;
    max-width: 64ch;
}

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

.kpi-card {
    background: linear-gradient(180deg, rgba(255,255,255,.74) 0%, rgba(248,241,231,.94) 100%);
    border: 1px solid var(--dbx-border);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .05);
}

.kpi-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .45rem;
    color: var(--dbx-muted);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.kpi-icon {
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    border-radius: .8rem;
    background: rgba(255,255,255,.7);
}

.kpi-value {
    margin: 0;
    color: var(--dbx-text);
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.15;
}

.kpi-note {
    margin-top: .3rem;
    font-size: .75rem;
    color: var(--dbx-muted);
    line-height: 1.55;
}

.kpi-tone-clientes .kpi-icon { color: #5f7b93; }
.kpi-tone-fornecedores .kpi-icon { color: #876847; }
.kpi-tone-receber .kpi-icon { color: var(--dbx-receber); }
.kpi-tone-pagar .kpi-icon { color: var(--dbx-pagar); }

.dash-grid-charts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: .95rem;
}

.dash-grid-tables {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: .95rem;
}

.chart-wrap {
    position: relative;
    height: 220px;
}

.chart-wrap-comparativo {
    height: 245px;
}

.dbx-card {
    background: linear-gradient(180deg, rgba(255,252,247,.96) 0%, rgba(248,242,232,.96) 100%);
    border: 1px solid var(--dbx-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(15, 23, 42, .06);
}

.dbx-card-head {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--dbx-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .6rem;
    background: rgba(255,255,255,.42);
}

.dbx-card-title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--dbx-text);
}

.dbx-card-body {
    padding: 1rem 1.1rem;
}

.dbx-table {
    margin: 0;
    font-size: .81rem;
}

.dbx-table thead th {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #697585;
    border-bottom-width: 1px;
    background: #f5ede1;
}

.dbx-table td,
.dbx-table th {
    vertical-align: middle;
}

.dash-mini {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .5rem;
    margin-top: 1rem;
    border-top: 1px dashed var(--dbx-border);
    padding-top: .85rem;
}

.dash-mini-item small {
    display: block;
    font-size: .68rem;
    color: var(--dbx-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.dash-mini-item strong {
    font-size: 1rem;
}

.dash-grid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
    margin-bottom: .95rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
}

.quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    text-decoration: none;
    padding: .8rem .85rem;
    border-radius: 14px;
    border: 1px solid var(--dbx-border);
    color: var(--dbx-text);
    background: rgba(255,255,255,.72);
    font-size: .8rem;
    font-weight: 700;
    transition: all .15s ease;
}

.quick-btn:hover {
    transform: translateY(-1px);
    filter: brightness(.98);
}

.quick-btn-clientes {
    background: rgba(95, 123, 147, .12);
    border-color: rgba(95, 123, 147, .22);
    color: #465d71;
}

.quick-btn-receber {
    background: rgba(109, 143, 167, .12);
    border-color: rgba(109, 143, 167, .22);
    color: #506a7d;
}

.quick-btn-pagar {
    background: rgba(169, 121, 72, .12);
    border-color: rgba(169, 121, 72, .22);
    color: #7e5935;
}

.quick-btn-warning {
    background: rgba(183, 78, 78, .12);
    border-color: rgba(183, 78, 78, .22);
    color: #8a3b3b;
}

.dbx-card-warning {
    border-color: rgba(169, 121, 72, .28);
}

.dbx-card-warning .dbx-card-head {
    background: rgba(169, 121, 72, .08);
}

@media (max-width: 1100px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-grid-charts,
    .dash-grid-tables { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .dash-shell {
        padding: .7rem;
        border-radius: 12px;
    }

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

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

    .dash-title {
        font-size: 1.95rem;
    }
}

@media (max-width: 991px) {
    .cx-hero-stats {
        grid-template-columns: 1fr;
    }

    .cx-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 767px) {
}
@media print {
    .cx-receber-shell .btn-toolbar,
    .cx-receber-shell .btn-group,
    .cx-receber-shell .border-bottom,
    .cx-receber-shell .no-print,
    nav,
    .sidebar,
    .navbar,
    .btn,
    .alert {
        display: none !important;
    }
    
    .container-fluid {
        margin-top: 0 !important;
    }
    
    main {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .cx-receber-shell .card {
        border: none !important;
        box-shadow: none !important;
    }

    .card {
        border: 1px solid #000;
        box-shadow: none;
    }

    .cx-receber-shell .table {
        font-size: 12px;
    }

    .table {
        border-collapse: collapse;
    }

    .table th,
    .table td {
        border: 1px solid #000;
    }

    @page {
        size: landscape;
        margin: 1cm;
    }
}