:root {
    --app-primary: #0d47a1;
    --app-primary-700: #0a397f;
    --app-primary-900: #082a5d;
    --app-accent: #ffde03;
    --app-bg: #f5f7fb;
    --app-surface: #ffffff;
    --app-text: #172033;
    --app-muted: #6b7280;
    --app-border: #e6eaf0;
    --app-success: #138a5b;
    --app-danger: #d64545;
    --app-warning: #d18a00;
    --app-info: #1f7ae0;
    --app-radius: 16px;
    --app-shadow: 0 8px 28px rgba(18, 38, 63, .08);
    --app-shadow-sm: 0 3px 14px rgba(18, 38, 63, .06);
}

html, body {
    min-height: 100%;
}

body {
    background: var(--app-bg);
    color: var(--app-text);
    font-family: Inter, Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
}

#wrapper {
    min-height: 100vh;
}

#content-wrapper,
#content {
    background: var(--app-bg) !important;
}

/* Sidebar */
.sidebar.modern-sidebar,
.sidebar.amarelo-light {
    background: linear-gradient(180deg, var(--app-primary-900) 0%, var(--app-primary) 72%, var(--app-primary-700) 100%) !important;
    box-shadow: 8px 0 30px rgba(7, 31, 71, .10);
    min-height: 100vh;
}

.sidebar .sidebar-brand {
    min-height: 88px;
    padding: 14px 12px;
    text-decoration: none;
    gap: 10px;
}

.sidebar .sidebar-brand-icon {
    transform: none !important;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 18px rgba(0,0,0,.12);
    flex: 0 0 48px;
}

.sidebar .sidebar-brand-icon img {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain;
}

.sidebar .sidebar-brand-text {
    color: #fff;
    font-weight: 800;
    letter-spacing: .2px;
    font-size: 15px;
    line-height: 1.05;
}

.sidebar .sidebar-brand-text small {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.62);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.sidebar .sidebar-divider {
    border-color: rgba(255,255,255,.12) !important;
    width: calc(100% - 28px) !important;
    margin-left: 14px !important;
}

.sidebar .nav-section-label {
    color: rgba(255,255,255,.48);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 17px 18px 7px;
}

.sidebar .nav-item {
    width: 100%;
}

.sidebar .nav-link {
    color: rgba(255,255,255,.82) !important;
    border: 0 !important;
    border-radius: 11px;
    margin: 3px 10px;
    padding: 11px 12px !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-weight: 600;
    transition: .18s ease;
}

.sidebar .nav-link i {
    width: 22px;
    text-align: center;
    font-size: 15px;
    color: rgba(255,255,255,.70) !important;
}

.sidebar .nav-link:hover {
    background: rgba(255,255,255,.10);
    color: #fff !important;
    transform: translateX(2px);
}

.sidebar .nav-link.active {
    background: #fff;
    color: var(--app-primary) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.sidebar .nav-link.active i {
    color: var(--app-primary) !important;
}

.sidebar #sidebarToggle {
    background: rgba(255,255,255,.12);
    color: #fff;
    margin: 12px 0 18px;
}

/* Top bar */
.topbar.modern-topbar,
.navbar.azul-dark {
    background: rgba(255,255,255,.97) !important;
    border-bottom: 1px solid var(--app-border);
    box-shadow: 0 5px 18px rgba(18,38,63,.05) !important;
    min-height: 72px;
    margin-bottom: 24px !important;
}

.modern-topbar .page-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.modern-topbar .page-identity strong {
    color: var(--app-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
}

.modern-topbar .page-identity small {
    color: var(--app-muted);
    font-size: 11px;
    margin-top: 3px;
}

.modern-topbar .notification-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--app-border);
    background: #fff;
    color: var(--app-primary);
    border-radius: 12px;
    box-shadow: var(--app-shadow-sm);
}

.modern-topbar .notification-btn:hover {
    background: #f8fbff;
    color: var(--app-primary-700);
}

.modern-topbar .dropdown-menu {
    border: 1px solid var(--app-border);
    border-radius: 14px;
    box-shadow: var(--app-shadow);
    padding: 8px;
}

.modern-topbar .dropdown-item {
    border-radius: 9px;
    padding: 9px 11px;
}

.modern-topbar .img-profile {
    width: 38px;
    height: 38px;
    object-fit: cover;
    box-shadow: 0 0 0 3px #edf3fb;
}

/* General page headings */
.container-fluid > .d-sm-flex h3,
.container-fluid h4.text-dark,
.page-title {
    color: var(--app-text) !important;
    font-weight: 800 !important;
    letter-spacing: -.25px;
}

.page-title-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.page-title-wrap h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--app-text);
}

.page-title-wrap p {
    margin: 4px 0 0;
    color: var(--app-muted);
    font-size: 13px;
}

/* Cards */
.card {
    border: 1px solid var(--app-border) !important;
    border-radius: var(--app-radius) !important;
    box-shadow: var(--app-shadow-sm) !important;
    overflow: hidden;
}

.card.shadow,
.card.shadow-lg {
    box-shadow: var(--app-shadow) !important;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--app-border);
    padding: 15px 18px;
    font-weight: 700;
}

.card-body {
    padding: 18px;
}

/* Dashboard stat cards */
.dashboard-grid {
    row-gap: 18px;
}

.stat-card {
    position: relative;
    border: 0 !important;
    min-height: 132px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(18,38,63,.14) !important;
}

.stat-card .card-body {
    padding: 20px 20px 18px;
    position: relative;
    z-index: 2;
}

.stat-card .stat-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    opacity: .82;
    margin-bottom: 7px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,.18);
    font-size: 20px;
}

.stat-card::after {
    content: "";
    position: absolute;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    right: -26px;
    bottom: -42px;
    background: rgba(255,255,255,.10);
}

.stat-blue { background: linear-gradient(135deg, #0d47a1, #2477dd); color:#fff; }
.stat-cyan { background: linear-gradient(135deg, #006f87, #22a7c7); color:#fff; }
.stat-green { background: linear-gradient(135deg, #087f5b, #26a875); color:#fff; }
.stat-red { background: linear-gradient(135deg, #b42334, #e5525f); color:#fff; }
.stat-purple { background: linear-gradient(135deg, #5f3dc4, #845ef7); color:#fff; }
.stat-amber { background: linear-gradient(135deg, #b16d00, #e9a323); color:#fff; }

.dashboard-welcome {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    padding: 20px 22px;
    box-shadow: var(--app-shadow-sm);
    margin-bottom: 22px;
}

.dashboard-welcome h2 {
    font-size: 23px;
    font-weight: 850;
    margin: 0;
    color: var(--app-text);
}

.dashboard-welcome p {
    margin: 6px 0 0;
    color: var(--app-muted);
}

/* Tables */
.table-responsive {
    border-radius: 13px;
}

.table {
    margin-bottom: 0;
    color: var(--app-text);
}

.table thead th {
    border-top: 0;
    border-bottom: 1px solid var(--app-border) !important;
    background: #f7f9fc;
    color: #596276;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .45px;
    padding: 13px 12px;
    vertical-align: middle;
}

.table tbody td {
    border-color: #edf0f4 !important;
    padding: 12px;
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(13,71,161,.018);
}

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: rgba(13,71,161,.045);
}

/* Forms */
.form-control,
.form-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1px solid #dbe1e9 !important;
    border-radius: 10px !important;
    min-height: 42px;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #78a8e6 !important;
    box-shadow: 0 0 0 3px rgba(13,71,161,.10) !important;
}

.form-control::placeholder {
    color: #9aa3b2;
}

label,
.form-label {
    color: #4b5563;
    font-weight: 650;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 700;
    min-height: 38px;
    box-shadow: none !important;
}

.btn-primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--app-primary-700);
    border-color: var(--app-primary-700);
}

.btn-success {
    background: var(--app-success);
    border-color: var(--app-success);
}

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

.btn-info {
    background: var(--app-info);
    border-color: var(--app-info);
}

.btn-warning {
    background: var(--app-accent);
    border-color: var(--app-accent);
    color: #2b2b2b !important;
}

/* Modal */
.modal-content {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(18,38,63,.20);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--app-border);
    padding: 17px 20px;
}

.modal-footer {
    border-top: 1px solid var(--app-border);
    padding: 14px 20px;
}

/* Badges */
.badge {
    font-weight: 700;
    letter-spacing: .15px;
}

/* Footer */
.sticky-footer,
footer.bg-white {
    background: transparent !important;
    color: #8992a3;
    padding: 22px 0 !important;
}

/* Login */
body.modern-login-body {
    background:
        radial-gradient(circle at 15% 20%, rgba(255,222,3,.18), transparent 32%),
        radial-gradient(circle at 85% 80%, rgba(63,127,213,.30), transparent 34%),
        linear-gradient(135deg, #061b3b 0%, #0d47a1 58%, #103c78 100%) !important;
    min-height: 100vh;
    padding: 0 !important;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
    align-items: stretch;
}

.login-brand-panel {
    padding: clamp(34px, 6vw, 84px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    position: relative;
}

.login-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    font-weight: 850;
    font-size: 18px;
}

.login-brand-mark img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    padding: 5px;
}

.login-brand-copy {
    max-width: 600px;
}

.login-brand-copy h1 {
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 18px;
    letter-spacing: -1.3px;
}

.login-brand-copy p {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255,255,255,.72);
    max-width: 520px;
}

.login-brand-footer {
    color: rgba(255,255,255,.52);
    font-size: 12px;
}

.login-form-panel {
    background: rgba(255,255,255,.97);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px;
    box-shadow: -20px 0 50px rgba(0,0,0,.10);
}

.login-card-modern {
    width: 100%;
    max-width: 430px;
}

.login-card-modern .login-eyebrow {
    color: var(--app-primary);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    margin-bottom: 8px;
}

.login-card-modern h2 {
    color: var(--app-text);
    font-size: 29px;
    font-weight: 900;
    margin: 0 0 8px;
}

.login-card-modern .login-subtitle {
    color: var(--app-muted);
    margin-bottom: 28px;
}

.login-field {
    position: relative;
}

.login-field i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b95a5;
    z-index: 2;
}

.login-field .form-control {
    min-height: 50px;
    padding-left: 42px;
    background: #fff;
}

.login-card-modern .btn-login-main {
    min-height: 50px;
    border-radius: 12px;
    background: var(--app-primary);
    border-color: var(--app-primary);
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(13,71,161,.18) !important;
}

.login-card-modern .btn-login-main:hover {
    background: var(--app-primary-700);
}

#status > div {
    background: #c93b46 !important;
    border: 0 !important;
    height: auto !important;
    min-height: 48px;
    line-height: 24px !important;
    padding: 12px 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
    font-size: 14px !important;
    font-weight: 700;
}

#load {
    background: rgba(6,27,59,.98) !important;
}

#load > div {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    color: #fff !important;
}

/* Mobile */
@media (max-width: 767.98px) {
    .topbar.modern-topbar,
    .navbar.azul-dark {
        min-height: 64px;
    }

    .modern-topbar .page-identity small {
        display: none;
    }

    .modern-topbar .page-identity strong {
        font-size: 14px;
    }

    .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }

    .dashboard-welcome {
        padding: 17px;
    }

    .dashboard-welcome h2 {
        font-size: 20px;
    }

    .stat-card {
        min-height: 112px;
    }

    .login-shell {
        display: block;
        min-height: 100vh;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 24px;
        background: rgba(255,255,255,.98);
    }
}

/* Clientes 2.0 - lista compacta, filtros e paginação */
.clientes-page {
    padding-top: 18px;
}

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

.clientes-eyebrow {
    color: var(--app-primary);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .9px;
    margin-bottom: 6px;
}

.clientes-page-header h4 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    color: var(--app-text);
    letter-spacing: -.5px;
}

.clientes-page-header p {
    margin: 5px 0 0;
    color: var(--app-muted);
    max-width: 720px;
}

.clientes-add-btn {
    min-height: 44px;
    border-radius: 12px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

.clientes-stat-card {
    min-height: 92px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    border-radius: 16px;
    box-shadow: var(--app-shadow-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none !important;
    color: var(--app-text) !important;
    transition: .18s ease;
}

.clientes-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--app-shadow);
    border-color: rgba(13,71,161,.25);
}

.clientes-stat-card.is-active {
    border-color: rgba(13,71,161,.42);
    box-shadow: 0 7px 22px rgba(13,71,161,.12);
}

.clientes-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    font-size: 17px;
}

.clientes-stat-icon.is-blue { background: #eaf2ff; color: #1767c7; }
.clientes-stat-icon.is-green { background: #e8f7f0; color: #138a5b; }
.clientes-stat-icon.is-red { background: #fdecec; color: #c93b46; }
.clientes-stat-icon.is-amber { background: #fff4dc; color: #b97800; }

.clientes-stat-card small {
    color: var(--app-muted);
    display: block;
    font-size: 11px;
    font-weight: 750;
    margin-bottom: 2px;
}

.clientes-stat-card strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}

.clientes-table-card {
    border: 1px solid var(--app-border) !important;
    border-radius: 18px !important;
    overflow: visible;
}

.clientes-toolbar {
    padding: 14px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--app-border);
    flex-wrap: wrap;
}

.clientes-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: min(100%, 610px);
    flex: 1 1 520px;
}

.clientes-search-box {
    min-height: 42px;
    border: 1px solid #dce2ea;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 9px;
    flex: 1;
    transition: .15s ease;
}

.clientes-search-box:focus-within {
    border-color: rgba(13,71,161,.55);
    box-shadow: 0 0 0 3px rgba(13,71,161,.08);
}

.clientes-search-box > i {
    color: #929cad;
}

.clientes-search-box input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    min-width: 0;
    color: var(--app-text);
    font-size: 13px;
}

.clientes-clear-search {
    color: #98a2b2;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.clientes-clear-search:hover {
    background: #f0f3f7;
    color: var(--app-danger);
}

.clientes-search-btn {
    min-height: 42px;
    border-radius: 11px;
    padding: 0 18px;
}

.clientes-filters {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.clientes-filters a {
    border: 1px solid #dfe4eb;
    background: #fff;
    color: #586273;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none !important;
    transition: .15s ease;
}

.clientes-filters a:hover {
    border-color: rgba(13,71,161,.35);
    color: var(--app-primary);
}

.clientes-filters a.active {
    background: var(--app-primary);
    color: #fff;
    border-color: var(--app-primary);
    box-shadow: 0 5px 13px rgba(13,71,161,.16);
}

.clientes-table-wrap {
    overflow: visible;
}

.clientes-table {
    font-size: 12px;
    table-layout: auto;
}

.clientes-table thead th {
    background: #f8fafc !important;
    color: #687386 !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--app-border) !important;
    padding: 10px 13px !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    text-transform: uppercase;
    letter-spacing: .55px;
    vertical-align: middle;
    position: sticky;
    top: 0;
    z-index: 3;
}

.clientes-table tbody td {
    padding: 9px 13px !important;
    vertical-align: middle !important;
    border-top: 1px solid #edf0f4 !important;
    background: #fff;
    height: 62px;
}

.clientes-table tbody tr:hover td {
    background: #fbfcfe;
}

.clientes-table th:first-child,
.clientes-table td:first-child {
    min-width: 300px;
}

.clientes-company-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.clientes-company-avatar {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #edf4ff;
    color: var(--app-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    font-size: 13px;
}

.clientes-company-text {
    min-width: 0;
    display: block;
    max-width: 430px;
}

.clientes-company-text strong {
    color: #273246;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 800;
}

.clientes-company-text small {
    color: #7f8999;
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
}

.clientes-nowrap { white-space: nowrap; }

.clientes-date-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    white-space: nowrap;
}

.clientes-date-cell strong {
    font-size: 11px;
    font-weight: 750;
    color: #445064;
}

.clientes-mini-badge {
    padding: 2px 6px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 850;
}

.clientes-mini-badge.danger { background: #fdebed; color: #c73b49; }
.clientes-mini-badge.warning { background: #fff3d7; color: #a96f00; }

.clientes-access-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    box-shadow: 0 0 0 3px rgba(0,0,0,.025);
}

.clientes-access-dot.online { background: #17b978; }
.clientes-access-dot.offline { background: #e0525e; }

.clientes-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.clientes-status-badge.active { background: #e7f7ef; color: #138a5b; }
.clientes-status-badge.blocked { background: #fdebed; color: #c93b46; }

.clientes-action-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    color: #5f697a;
    background: #fff;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.clientes-action-btn:hover,
.clientes-action-btn:focus {
    background: #edf4ff;
    color: var(--app-primary);
    border-color: rgba(13,71,161,.24);
}

.clientes-actions .dropdown-menu {
    border: 1px solid var(--app-border);
    border-radius: 13px;
    box-shadow: 0 14px 38px rgba(18,38,63,.16);
    padding: 7px;
    min-width: 205px;
    z-index: 1100;
}

.clientes-actions .dropdown-item {
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #4c5668;
    display: flex;
    align-items: center;
    gap: 9px;
}

.clientes-actions .dropdown-item i {
    width: 14px;
    color: #7e8999;
}

.clientes-actions .dropdown-item:hover {
    background: #f3f6fa;
    color: var(--app-primary);
}

.clientes-empty-state {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--app-muted);
}

.clientes-empty-state > span {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: #eef3f9;
    color: #7e8a9d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.clientes-empty-state strong { color: var(--app-text); font-size: 14px; }
.clientes-empty-state small { font-size: 11px; }

.clientes-table-footer {
    min-height: 62px;
    padding: 10px 15px;
    border-top: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.clientes-results-count {
    color: #7b8595;
    font-size: 11px;
    margin-right: auto;
}

.clientes-results-count strong { color: #3f4b5e; }

.clientes-page-size {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 750;
    color: #778294;
}

.clientes-page-size select {
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
    min-height: 32px;
    padding: 0 26px 0 9px;
    color: #465164;
}

.clientes-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.clientes-pagination a,
.clientes-pagination span {
    min-width: 32px;
    height: 32px;
    padding: 0 7px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 800;
    color: #5d6879;
    border: 1px solid #e0e5eb;
    background: #fff;
}

.clientes-pagination a:hover {
    color: var(--app-primary);
    border-color: rgba(13,71,161,.3);
}

.clientes-pagination a.active {
    background: var(--app-primary);
    color: #fff;
    border-color: var(--app-primary);
}

.clientes-pagination a.disabled {
    opacity: .38;
    pointer-events: none;
}

.clientes-pagination span {
    border-color: transparent;
    background: transparent;
}

.clientes-detail-modal .modal-header {
    background: #fff !important;
    color: var(--app-text) !important;
}

.clientes-modal-eyebrow {
    display: block;
    color: var(--app-primary);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 2px;
}

.clientes-detail-hero {
    padding: 14px;
    border: 1px solid var(--app-border);
    background: #f8fafc;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.clientes-detail-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #eaf2ff;
    color: var(--app-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
}

.clientes-detail-hero > div {
    min-width: 0;
    flex: 1;
}

.clientes-detail-hero strong {
    display: block;
    font-size: 14px;
    color: var(--app-text);
}

.clientes-detail-hero small {
    display: block;
    color: var(--app-muted);
    margin-top: 2px;
}

.clientes-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.clientes-detail-grid > div {
    padding: 11px 12px;
    border: 1px solid #edf0f4;
    border-radius: 11px;
    background: #fff;
    min-width: 0;
}

.clientes-detail-grid .span-2 { grid-column: span 2; }

.clientes-detail-grid small {
    display: block;
    color: #8a94a4;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .45px;
    margin-bottom: 4px;
}

.clientes-detail-grid strong {
    display: block;
    color: #3e495b;
    font-size: 11px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .clientes-table-wrap { overflow-x: auto; }
    .clientes-table { min-width: 720px; }
    .clientes-toolbar { align-items: stretch; }
    .clientes-filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
    .clientes-filters a { white-space: nowrap; }
}

@media (max-width: 767.98px) {
    .clientes-page-header { align-items: center; }
    .clientes-page-header p { display: none; }
    .clientes-page-header h4 { font-size: 22px; }
    .clientes-add-btn span { display: none; }
    .clientes-add-btn { width: 42px; padding: 0; justify-content: center; }
    .clientes-stat-card { min-height: 80px; padding: 12px; }
    .clientes-stat-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
    .clientes-stat-card strong { font-size: 20px; }
    .clientes-search-form { min-width: 100%; flex-basis: 100%; }
    .clientes-search-btn { display: none; }
    .clientes-table-footer { justify-content: center; }
    .clientes-results-count { width: 100%; text-align: center; margin-right: 0; }
    .clientes-detail-grid { grid-template-columns: 1fr; }
    .clientes-detail-grid .span-2 { grid-column: span 1; }
}
