    /* =========================================================
    CableTV Colombia V2
    Estilos de modernización del sistema
    ========================================================= */

    /* =========================================================
    Dashboard - Tarjetas
    ========================================================= */

    .dashboard-v2 {
        padding-top: 20px;
    }

    .dashboard-v2 .small-box {
        background: #ffffff !important;
        color: #343a40 !important;
        border-radius: 12px;
        border: 1px solid #e9ecef;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .dashboard-v2 .small-box:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .dashboard-v2 .small-box .inner {
        padding: 18px;
    }

    .dashboard-v2 .small-box h4 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .dashboard-v2 .small-box p {
        font-size: 14px;
        margin-bottom: 0;
        color: #6c757d;
    }

    .dashboard-v2 .small-box .icon {
        top: 10px;
        right: 15px;
        opacity: 0.12;
    }

    .dashboard-v2 .small-box .icon > i {
        font-size: 55px;
        color: #343a40;
    }

    .dashboard-v2 .small-box .small-box-footer {
        background: #f8f9fa;
        color: #495057 !important;
        padding: 8px 12px;
        text-align: left;
        border-top: 1px solid #eeeeee;
    }

    .dashboard-v2 .small-box.bg-info {
        border-top: 4px solid #17a2b8;
    }

    .dashboard-v2 .small-box.bg-success {
        border-top: 4px solid #28a745;
    }

    .dashboard-v2 .small-box.bg-warning {
        border-top: 4px solid #ffc107;
    }

    .dashboard-v2 .small-box.bg-danger {
        border-top: 4px solid #dc3545;
    }

    .dashboard-v2 .small-box.bg-primary {
        border-top: 4px solid #007bff;
    }

    .dashboard-v2 .small-box.bg-secondary {
        border-top: 4px solid #6c757d;
    }

    /* =========================================================
    Dashboard - Gráficos
    ========================================================= */

    .dashboard-v2 .dashboard-charts {
        margin-top: 28px;
    }

    .dashboard-v2 .chart-card {
        height: 100%;
        border: 1px solid #e9ecef;
        border-radius: 14px;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
        overflow: hidden;
        background: #ffffff;
    }

    .dashboard-v2 .chart-card-header {
        min-height: 82px;
        padding: 18px 20px;
        border-bottom: 1px solid #edf0f2;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .dashboard-v2 .chart-title {
        margin: 0;
        font-size: 19px;
        font-weight: 700;
        color: #2f343a;
    }

    .dashboard-v2 .chart-subtitle {
        margin: 5px 0 0;
        font-size: 13px;
        color: #7a828a;
    }

    .dashboard-v2 .chart-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        background: #f2f5f7;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #56616b;
        font-size: 18px;
    }

    .dashboard-v2 .chart-card .card-body {
        padding: 20px;
    }

    .dashboard-v2 .chart-container {
        position: relative;
        width: 100%;
    }

    .dashboard-v2 .chart-container-main {
        height: 360px;
    }

    .dashboard-v2 .chart-container-users {
        height: 270px;
        max-width: 320px;
        margin: 0 auto;
    }

    @media (max-width: 991.98px) {
        .dashboard-v2 .chart-container-main {
            height: 320px;
        }

        .dashboard-v2 .chart-container-users {
            height: 260px;
        }
    }

    @media (max-width: 575.98px) {
        .dashboard-v2 .chart-card-header {
            padding: 15px;
        }

        .dashboard-v2 .chart-card .card-body {
            padding: 15px;
        }

        .dashboard-v2 .chart-container-main {
            height: 280px;
        }

        .dashboard-v2 .chart-container-users {
            height: 240px;
        }
    }


    /* =========================================================
    Dashboard - Estado de usuarios
    ========================================================= */

    .dashboard-v2 .chart-center-total {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        line-height: 1.15;
    }

    .dashboard-v2 .chart-center-total strong {
        font-size: 30px;
        font-weight: 700;
        color: #2f343a;
    }

    .dashboard-v2 .chart-center-total span {
        margin-top: 5px;
        font-size: 12px;
        color: #7a828a;
    }

    .dashboard-v2 .user-status-summary {
        max-width: 330px;
        margin: 14px auto 0;
        padding-top: 10px;
        border-top: 1px solid #edf0f2;
    }

    .dashboard-v2 .user-status-item {
        display: grid;
        grid-template-columns: 12px 1fr auto;
        gap: 9px;
        align-items: center;
        min-height: 32px;
        font-size: 13px;
    }

    .dashboard-v2 .status-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block;
    }

    .dashboard-v2 .status-active {
        background: rgba(40, 167, 69, 0.85);
    }

    .dashboard-v2 .status-suspended {
        background: rgba(220, 53, 69, 0.85);
    }

    .dashboard-v2 .status-pending {
        background: rgba(255, 193, 7, 0.85);
    }

    .dashboard-v2 .status-label {
        color: #5f6871;
    }

    .dashboard-v2 .user-status-item strong {
        color: #2f343a;
        font-size: 13px;
    }


    /* =========================================================
    CableTV V2 - Layout principal
    Header + Sidebar + navegación
    ========================================================= */

    body {
        background: #f5f7fa;
    }

    .cabletv-navbar {
        min-height: 64px;
        border-bottom: 1px solid #e7ebef;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
        padding-left: 14px;
        padding-right: 18px;
    }

    .cabletv-navbar .nav-link {
        color: #56616b !important;
    }

    .cabletv-navbar [data-widget="pushmenu"] {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease;
    }

    .cabletv-navbar [data-widget="pushmenu"]:hover {
        background: #f0f3f5;
    }

    .cabletv-user-menu > a {
        display: flex;
        align-items: center;
        gap: 7px;
        border-radius: 9px;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .cabletv-user-menu > a:hover {
        background: #f5f7f9;
    }

    .cabletv-user-menu .dropdown-menu {
        border: 1px solid #e6eaee;
        border-radius: 10px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
        padding: 7px;
        min-width: 190px;
    }

    .cabletv-user-menu .dropdown-menu .nav-link {
        border-radius: 7px;
        padding: 9px 11px;
    }

    .cabletv-sidebar {
        background: #303942 !important;
        box-shadow: 4px 0 18px rgba(0, 0, 0, 0.08) !important;
    }

    .cabletv-brand {
        height: auto !important;
        min-height: 142px;
        padding: 16px 14px 12px !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        text-align: center;
    }

    .cabletv-brand-logo {
        width: 100%;
        max-width: 205px;
        min-height: 90px;
        padding: 7px;
        background: #ffffff;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cabletv-brand-logo img {
        display: block;
        max-width: 100%;
        width: auto;
        height: auto;
        max-height: 88px;
    }

    .cabletv-brand-version {
        margin-top: 8px;
        color: rgba(255, 255, 255, 0.55);
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .cabletv-sidebar-body {
        padding-top: 10px;
    }

    .cabletv-sidebar .nav-sidebar > .nav-item {
        margin: 3px 8px;
    }

    .cabletv-sidebar .nav-sidebar > .nav-item > .nav-link {
        min-height: 46px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        color: #d6dce1;
        padding: 10px 12px;
        transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }

    .cabletv-sidebar .nav-sidebar > .nav-item > .nav-link:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.09);
        transform: translateX(2px);
    }

    .cabletv-sidebar .nav-sidebar > .nav-item > .nav-link.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.14);
        box-shadow: none;
    }

    .cabletv-sidebar .nav-sidebar .nav-link > i:first-child {
        width: 26px;
        margin-right: 7px;
        text-align: center;
        font-size: 18px;
        color: #cbd3da;
    }

    .cabletv-sidebar .nav-sidebar .nav-link p {
        margin-bottom: 0;
        flex: 1;
    }

    .cabletv-sidebar .nav-treeview {
        padding: 5px 0 6px 13px;
    }

    .cabletv-sidebar .nav-treeview > .nav-item {
        margin: 2px 6px;
    }

    .cabletv-sidebar .nav-treeview > .nav-item > .nav-link {
        min-height: 38px;
        padding: 8px 10px;
        border-radius: 7px;
        color: #bfc7ce;
        font-size: 14px;
    }

    .cabletv-sidebar .nav-treeview > .nav-item > .nav-link:hover,
    .cabletv-sidebar .nav-treeview > .nav-item > .nav-link.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
    }

    .cabletv-content-wrapper {
        background: #f5f7fa !important;
        padding-top: 1px;
    }

    .cabletv-content-wrapper > .container-fluid {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cabletv-breadcrumb {
        margin-top: 18px;
        margin-bottom: 20px;
        padding: 14px 18px;
        border-radius: 9px;
        border: 1px solid #e4e9ed;
        background: #ffffff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    }

    .cabletv-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        color: #a0a8af;
    }

    .cabletv-breadcrumb .breadcrumb-item a {
        font-weight: 600;
    }

    @media (max-width: 767.98px) {
        .cabletv-navbar {
            min-height: 58px;
        }

        .cabletv-brand {
            min-height: 116px;
        }

        .cabletv-brand-logo {
            max-width: 185px;
            min-height: 76px;
        }

        .cabletv-content-wrapper > .container-fluid {
            padding-left: 10px;
            padding-right: 10px;
        }

        .cabletv-breadcrumb {
            margin-top: 12px;
            margin-bottom: 14px;
            padding: 11px 14px;
        }
    }


    /* =========================================================
    CableTV V2 - Suscriptores
    ========================================================= */

    .subscriber-v2 {
        padding: 4px 18px 28px;
    }

    .subscriber-v2 .subscriber-card {
        border: 1px solid #e4e9ed;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
        overflow: visible;
    }

    .subscriber-v2 .subscriber-card > .card-body {
        padding: 22px;
    }

    .subscriber-v2 .subscriber-actions {
        padding-bottom: 7px;
    }

    .subscriber-v2 .subscriber-label {
        display: block;
        margin-bottom: 7px;
        font-size: 13px;
        font-weight: 600;
        color: #56616b;
    }

    .subscriber-v2 .subscriber-primary-action,
    .subscriber-v2 .subscriber-search-action {
        min-height: 39px;
        border-radius: 8px;
        font-weight: 600;
        box-shadow: none;
    }

    .subscriber-v2 .select2-container--bootstrap4 .select2-selection {
        min-height: 39px;
        border-color: #d7dde2;
        border-radius: 8px;
    }

    .subscriber-v2 .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
        line-height: 37px;
        padding-left: 12px;
        color: #3f474f;
    }

    .subscriber-v2 .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
        height: 37px;
    }

    .subscriber-v2 .select2-container--bootstrap4.select2-container--focus .select2-selection,
    .subscriber-v2 .select2-container--bootstrap4.select2-container--open .select2-selection {
        border-color: #80bdff;
        box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.12);
    }

    .subscriber-v2 .subscriber-section-title {
        margin-top: 10px;
        margin-bottom: 14px;
        padding: 15px 17px;
        border-radius: 10px;
        background: #f7f9fb;
        border: 1px solid #edf0f2;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .subscriber-v2 .subscriber-section-title h5 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: #303942;
    }

    .subscriber-v2 .subscriber-section-title p {
        margin: 3px 0 0;
        color: #7a838b;
        font-size: 12px;
    }

    .subscriber-v2 .subscriber-section-title > i {
        font-size: 18px;
        color: #74808b;
    }

    .subscriber-v2 .subscriber-report-link {
        min-height: 72px;
        padding: 13px 15px;
        border: 1px solid #e5eaee;
        border-radius: 10px;
        background: #ffffff;
        color: #39434c;
        display: flex;
        align-items: center;
        text-decoration: none !important;
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.035);
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .subscriber-v2 .subscriber-report-link:hover {
        color: #27313a;
        border-color: #d4dce2;
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
    }

    .subscriber-v2 .subscriber-report-icon {
        width: 42px;
        height: 42px;
        margin-right: 13px;
        border-radius: 9px;
        background: #fff7dc;
        color: #b78900;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        font-size: 17px;
    }

    .subscriber-v2 .subscriber-report-text {
        display: flex;
        flex-direction: column;
        min-width: 0;
        flex: 1;
    }

    .subscriber-v2 .subscriber-report-text strong {
        font-size: 14px;
        font-weight: 650;
        color: #343d45;
    }

    .subscriber-v2 .subscriber-report-text small {
        margin-top: 2px;
        color: #7d868e;
        font-size: 12px;
    }

    .subscriber-v2 .subscriber-report-print {
        margin-left: 12px;
        color: #8d969e;
    }

    .subscriber-v2 .subscriber-table-heading {
        margin-top: 8px;
    }

    .subscriber-v2 .subscriber-table-wrapper {
        padding: 2px 4px 5px;
    }

    .subscriber-v2 table.dataTable,
    .subscriber-v2 #dataTable {
        border-collapse: separate !important;
        border-spacing: 0;
    }

    .subscriber-v2 #dataTable thead th {
        padding: 12px 10px;
        border-top: 0;
        border-bottom: 2px solid #e5e9ed;
        color: #46515a;
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
    }

    .subscriber-v2 #dataTable tbody td {
        padding: 10px;
        vertical-align: middle;
        border-top: 1px solid #eef1f3;
        color: #3e474f;
    }

    .subscriber-v2 #dataTable tbody tr:hover {
        background: #f8fafb;
    }

    .subscriber-v2 .subscriber-status {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        padding: 4px 10px;
        border-radius: 16px;
        border: 0;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }

    .subscriber-v2 .subscriber-status.alert-success {
        color: #1f7a3c;
        background: #e4f5e9;
    }

    .subscriber-v2 .subscriber-status.alert-info,
    .subscriber-v2 .subscriber-status.alert-primary {
        color: #176f8e;
        background: #e2f3f8;
    }

    .subscriber-v2 .subscriber-status.alert-warning {
        color: #906b00;
        background: #fff4ce;
    }

    .subscriber-v2 .subscriber-status.alert-danger {
        color: #b53b45;
        background: #fae7e9;
    }

    .subscriber-v2 div.dataTables_wrapper div.dataTables_length label,
    .subscriber-v2 div.dataTables_wrapper div.dataTables_filter label {
        color: #626c75;
        font-size: 13px;
        font-weight: 500;
    }

    .subscriber-v2 div.dataTables_wrapper div.dataTables_filter input,
    .subscriber-v2 div.dataTables_wrapper div.dataTables_length select {
        border: 1px solid #d7dde2;
        border-radius: 7px;
        min-height: 34px;
    }

    @media (max-width: 767.98px) {
        .subscriber-v2 {
            padding-left: 6px;
            padding-right: 6px;
        }

        .subscriber-v2 .subscriber-card > .card-body {
            padding: 15px;
        }

        .subscriber-v2 .subscriber-section-title {
            padding: 12px 13px;
        }

        .subscriber-v2 .subscriber-report-link {
            min-height: 64px;
        }
    }


    /* =========================================================
    Suscriptores V2 - DataTables
    ========================================================= */

    .subscriber-v2 .dataTables_wrapper {
        width: 100%;
    }

    .subscriber-v2 .dataTables_wrapper .row {
        margin-left: 0;
        margin-right: 0;
    }

    .subscriber-v2 .dataTables_wrapper .row > div {
        padding-left: 0;
        padding-right: 0;
    }

    .subscriber-v2 .dataTables_length,
    .subscriber-v2 .dataTables_filter {
        margin: 8px 0 14px;
    }

    .subscriber-v2 .dataTables_filter {
        text-align: right;
    }

    .subscriber-v2 .dataTables_filter input {
        width: 220px;
        margin-left: 8px;
        padding: 5px 10px;
        background: #ffffff;
    }

    .subscriber-v2 .dataTables_length select {
        margin: 0 5px;
        padding: 4px 28px 4px 8px;
        background: #ffffff;
    }

    .subscriber-v2 .dataTables_info {
        padding-top: 15px !important;
        color: #737d86;
        font-size: 12px;
    }

    .subscriber-v2 .dataTables_paginate {
        padding-top: 9px !important;
    }

    .subscriber-v2 .dataTables_paginate .pagination {
        justify-content: flex-end;
        margin-bottom: 0;
    }

    .subscriber-v2 .page-link {
        color: #4d5963;
        border-color: #e1e6ea;
        min-width: 34px;
        text-align: center;
    }

    .subscriber-v2 .page-item.active .page-link {
        background: #1677d2;
        border-color: #1677d2;
        color: #ffffff;
    }

    .subscriber-v2 .page-link:hover {
        background: #f2f5f7;
        color: #1677d2;
    }

    #modalunico .modal-dialog {
        max-width: 980px;
    }

    #modalunico .modal-content {
        border: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
    }

    #modalunico .modal-body {
        padding: 0;
    }

    @media (max-width: 767.98px) {
        .subscriber-v2 .dataTables_filter {
            text-align: left;
        }

        .subscriber-v2 .dataTables_filter input {
            width: calc(100% - 60px);
        }

        .subscriber-v2 .dataTables_paginate .pagination {
            justify-content: flex-start;
            margin-top: 8px;
        }

        #modalunico .modal-dialog {
            max-width: calc(100% - 20px);
            margin: 10px auto;
        }
    }


    /* =========================================================
    CableTV V2 - Formularios de suscriptores
    ========================================================= */

    .cabletv-form-v2,
    .contract-v2 {
        background: #ffffff;
        color: #303942;
    }

    .cabletv-form-v2 {
        width: 100%;
    }

    .form-v2-header {
        min-height: 86px;
        padding: 18px 24px;
        display: flex;
        align-items: center;
        gap: 15px;
        background: linear-gradient(135deg, #1682ba 0%, #3498c5 100%);
        color: #ffffff;
    }

    .form-v2-header-icon {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.16);
        font-size: 19px;
    }

    .form-v2-header h3 {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
    }

    .form-v2-header p {
        margin: 4px 0 0;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.82);
    }

    .form-v2-body {
        padding: 20px 24px 10px;
    }

    .form-v2-section {
        padding: 0 0 18px;
    }

    .form-v2-section + .form-v2-section {
        padding-top: 18px;
        border-top: 1px solid #edf0f2;
    }

    .form-v2-section-title {
        display: flex;
        align-items: center;
        gap: 11px;
        margin-bottom: 16px;
    }

    .form-v2-section-title > span {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #eef6fa;
        color: #267da5;
    }

    .form-v2-section-title h4 {
        margin: 0;
        color: #303942;
        font-size: 16px;
        font-weight: 700;
    }

    .form-v2-section-title p {
        margin: 2px 0 0;
        color: #7b858e;
        font-size: 12px;
    }

    .cabletv-form-v2 label,
    .contract-v2 label {
        display: block;
        margin-bottom: 6px;
        color: #4b5660;
        font-size: 12.5px;
        font-weight: 650;
    }

    .required-mark {
        color: #dc3545;
        font-weight: 700;
    }

    .input-group-v2 {
        position: relative;
    }

    .input-group-v2 .input-icon {
        position: absolute;
        z-index: 3;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        color: #8a949d;
        text-align: center;
        font-size: 13px;
        pointer-events: none;
    }

    .input-group-v2 .form-control {
        height: 42px;
        padding-left: 38px;
        border: 1px solid #d8dee3;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: none;
        color: #34404a;
        font-size: 14px;
        transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .form-control-v2 {
        height: 42px;
        border: 1px solid #d8dee3;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: none;
        color: #34404a;
        font-size: 14px;
    }

    .input-group-v2 .form-control:focus,
    .form-control-v2:focus {
        border-color: #5ca7ce;
        box-shadow: 0 0 0 0.16rem rgba(52, 152, 197, 0.12);
    }

    .input-group-v2.readonly-field .form-control {
        background: #f5f7f9;
        color: #64707a;
    }

    .form-v2-footer {
        min-height: 72px;
        padding: 14px 24px;
        border-top: 1px solid #e9edf0;
        background: #f8fafb;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    .form-v2-required-note {
        color: #7a858e;
        font-size: 12px;
    }

    .form-v2-actions {
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .btn-light-v2,
    .btn-primary-v2 {
        min-height: 39px;
        padding: 8px 16px;
        border-radius: 8px;
        border: 1px solid transparent;
        font-size: 13px;
        font-weight: 650;
        box-shadow: none !important;
    }

    .btn-light-v2 {
        color: #56616b;
        background: #ffffff;
        border-color: #dce2e6;
    }

    .btn-light-v2:hover {
        color: #354049;
        background: #f2f5f7;
    }

    .btn-primary-v2 {
        color: #ffffff;
        background: #1682ba;
        border-color: #1682ba;
    }

    .btn-primary-v2:hover {
        color: #ffffff;
        background: #116f9f;
        border-color: #116f9f;
    }

    /* El formulario de registro se muestra dentro de modalunico */
    #modalunico .cabletv-form-v2 {
        border-radius: 12px;
        overflow: hidden;
    }

    #modalunico .modal-dialog {
        max-width: 980px;
    }

    #modalunico .modal-content {
        overflow: hidden;
    }

    /* =========================================================
    Formalización de contrato
    ========================================================= */

    .contract-v2 {
        margin: 4px 0 18px;
        border: 1px solid #e3e8ec;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.055);
    }

    .contract-v2-header {
        min-height: 92px;
        padding: 20px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        border-bottom: 1px solid #e8ecef;
        background: #ffffff;
    }

    .contract-v2-kicker {
        display: block;
        margin-bottom: 3px;
        color: #1682ba;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .contract-v2-header h3 {
        margin: 0;
        color: #2f3942;
        font-size: 23px;
        font-weight: 700;
    }

    .contract-v2-header p {
        margin: 5px 0 0;
        color: #7b858e;
        font-size: 13px;
    }

    .contract-v2-header-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #eef6fa;
        color: #267da5;
        font-size: 19px;
    }

    .contract-v2-body {
        padding: 22px 24px 8px;
    }

    .client-summary-v2 {
        margin-bottom: 22px;
        padding: 18px 18px 4px;
        border: 1px solid #e7ecef;
        border-radius: 11px;
        background: #f8fafb;
    }

    .client-summary-heading {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 14px;
    }

    .client-summary-heading > i {
        color: #1682ba;
        font-size: 22px;
    }

    .client-summary-heading h4 {
        margin: 0;
        color: #303942;
        font-size: 16px;
        font-weight: 700;
    }

    .client-summary-heading p {
        margin: 2px 0 0;
        color: #7b858e;
        font-size: 12px;
    }

    .summary-item-v2 {
        min-height: 63px;
        margin-bottom: 14px;
        padding: 10px 12px;
        border-radius: 8px;
        background: #ffffff;
        border: 1px solid #e9edef;
    }

    .summary-item-v2 span {
        display: block;
        margin-bottom: 3px;
        color: #89929a;
        font-size: 11px;
    }

    .summary-item-v2 strong {
        display: block;
        overflow: hidden;
        color: #38434c;
        font-size: 13px;
        font-weight: 650;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .contract-data-v2 {
        padding: 4px 0 10px;
    }

    .contract-section-title {
        margin-bottom: 17px;
    }

    .contract-v2-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* BootstrapValidator antiguo: lo mantenemos funcional pero menos invasivo */
    .cabletv-form-v2 .form-group.has-error .form-control,
    .contract-v2 .form-group.has-error .form-control {
        border-color: #dc3545;
    }

    .cabletv-form-v2 .help-block,
    .contract-v2 .help-block {
        margin-top: 4px;
        color: #dc3545;
        font-size: 11px;
    }

    @media (max-width: 767.98px) {
        .form-v2-header,
        .contract-v2-header {
            padding: 16px;
        }

        .form-v2-body,
        .contract-v2-body {
            padding-left: 16px;
            padding-right: 16px;
        }

        .form-v2-footer {
            padding: 13px 16px;
            flex-direction: column;
            align-items: stretch;
        }

        .form-v2-actions {
            width: 100%;
        }

        .form-v2-actions .btn {
            flex: 1;
        }

        .contract-v2-header-icon {
            display: none;
        }
    }


    /* =========================================================
    CableTV V2 - Densidad compacta para pantallas de trabajo
    Mantiene el lenguaje visual V2 y aprovecha mejor portátiles.
    ========================================================= */

    /* ---- Suscriptores: menos aire vertical ---- */

    .subscriber-v2 {
        padding-top: 2px;
        padding-bottom: 16px;
    }

    .subscriber-v2 .subscriber-card > .card-body {
        padding: 16px 18px;
    }

    .subscriber-v2 .subscriber-actions {
        padding-bottom: 2px;
    }

    .subscriber-v2 .subscriber-actions .mb-3 {
        margin-bottom: 10px !important;
    }

    .subscriber-v2 .subscriber-primary-action,
    .subscriber-v2 .subscriber-search-action {
        min-height: 36px;
        height: 36px;
        border-radius: 7px;
        font-size: 13px;
    }

    .subscriber-v2 .subscriber-label {
        margin-bottom: 4px;
        font-size: 12px;
    }

    .subscriber-v2 .select2-container--bootstrap4 .select2-selection {
        min-height: 36px;
        height: 36px;
    }

    .subscriber-v2 .select2-container--bootstrap4
    .select2-selection--single .select2-selection__rendered {
        line-height: 34px;
        font-size: 13px;
    }

    .subscriber-v2 .select2-container--bootstrap4
    .select2-selection--single .select2-selection__arrow {
        height: 34px;
    }

    /* Espacio reservado para el contrato: desaparece cuando está vacío */
    .subscriber-contract-slot:empty {
        display: none;
    }

    .subscriber-contract-slot {
        margin: 2px 0 12px;
    }

    /* Encabezados de sección más compactos */
    .subscriber-v2 .subscriber-section-title {
        margin-top: 6px;
        margin-bottom: 9px;
        padding: 10px 13px;
        min-height: 50px;
        border-radius: 9px;
    }

    .subscriber-v2 .subscriber-section-title h5 {
        font-size: 14px;
    }

    .subscriber-v2 .subscriber-section-title p {
        margin-top: 1px;
        font-size: 11px;
    }

    .subscriber-v2 .subscriber-section-title > i {
        font-size: 15px;
    }

    /* Reportes: conservan tarjetas pero ocupan menos alto */
    .subscriber-v2 .subscriber-reports {
        margin-left: -5px;
        margin-right: -5px;
    }

    .subscriber-v2 .subscriber-reports > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }

    .subscriber-v2 .subscriber-reports .mb-3 {
        margin-bottom: 9px !important;
    }

    .subscriber-v2 .subscriber-report-link {
        min-height: 54px;
        padding: 8px 11px;
        border-radius: 8px;
    }

    .subscriber-v2 .subscriber-report-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        margin-right: 10px;
        border-radius: 8px;
        font-size: 14px;
    }

    .subscriber-v2 .subscriber-report-text strong {
        font-size: 12.5px;
    }

    .subscriber-v2 .subscriber-report-text small {
        margin-top: 0;
        font-size: 10.5px;
    }

    .subscriber-v2 .subscriber-report-print {
        margin-left: 8px;
        font-size: 12px;
    }

    /* Tabla un poco más densa */
    .subscriber-v2 #dataTable thead th {
        padding: 9px 8px;
        font-size: 12px;
    }

    .subscriber-v2 #dataTable tbody td {
        padding: 7px 8px;
        font-size: 12.5px;
    }

    .subscriber-v2 .subscriber-status {
        min-height: 24px;
        padding: 3px 8px;
        font-size: 11px;
    }

    .subscriber-v2 .dataTables_length,
    .subscriber-v2 .dataTables_filter {
        margin: 5px 0 8px;
    }

    /* =========================================================
    Formalizar contrato compacto
    ========================================================= */

    .contract-v2.contract-v2-compact {
        margin: 0;
        border-radius: 10px;
        border: 1px solid #dfe6ea;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.045);
        overflow: hidden;
    }

    .contract-compact-head {
        min-height: 54px;
        padding: 9px 13px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: #ffffff;
        border-bottom: 1px solid #e8ecef;
    }

    .contract-compact-title {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .contract-compact-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: #eaf5fa;
        color: #1682ba;
        font-size: 14px;
    }

    .contract-compact-eyebrow {
        margin-bottom: 1px;
        color: #1682ba;
        font-size: 10px;
        font-weight: 750;
        letter-spacing: .35px;
        text-transform: uppercase;
    }

    .contract-compact-client {
        overflow: hidden;
        color: #303942;
        font-size: 14px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .contract-compact-client span {
        margin: 0 4px;
        color: #b2bac0;
    }

    .contract-compact-client small {
        color: #6f7a83;
        font-size: 11px;
        font-weight: 600;
    }

    .contract-compact-close {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        padding: 0;
        border: 1px solid #e1e6e9;
        border-radius: 8px;
        background: #f8fafb;
        color: #77828b;
        box-shadow: none !important;
    }

    .contract-compact-close:hover {
        background: #f0f3f5;
        color: #404a52;
    }

    /* Toda la información del cliente en una sola franja flexible */
    .contract-client-line {
        padding: 7px 13px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 5px 16px;
        background: #f7f9fa;
        border-bottom: 1px solid #e8ecef;
        color: #66727c;
        font-size: 11px;
    }

    .contract-client-line span {
        min-width: 0;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .contract-client-line i {
        width: 13px;
        color: #8b969e;
        text-align: center;
    }

    .contract-client-email {
        overflow: hidden;
        max-width: 290px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Cinco campos alineados en una sola franja en escritorio */
    .contract-compact-form {
        padding: 10px 13px 8px;
        display: grid;
        grid-template-columns:
            minmax(115px, .85fr)
            minmax(210px, 1.65fr)
            minmax(125px, .95fr)
            minmax(190px, 1.35fr)
            minmax(100px, .72fr);
        gap: 9px;
        align-items: end;
    }

    .contract-field {
        min-width: 0;
    }

    .contract-v2-compact label {
        margin-bottom: 4px;
        font-size: 11px;
        font-weight: 650;
    }

    .contract-v2-compact .input-group-v2 .form-control,
    .contract-v2-compact .form-control-v2 {
        height: 36px;
        padding-left: 34px;
        border-radius: 7px;
        font-size: 12.5px;
    }

    .contract-v2-compact .input-group-v2 .input-icon {
        left: 10px;
        font-size: 11px;
    }

    .contract-compact-footer {
        min-height: 49px;
        padding: 7px 13px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        background: #f8fafb;
        border-top: 1px solid #e8ecef;
        color: #7a858e;
        font-size: 10.5px;
    }

    .contract-compact-actions {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .contract-v2-compact .btn-light-v2,
    .contract-v2-compact .btn-primary-v2 {
        min-height: 34px;
        padding: 6px 11px;
        border-radius: 7px;
        font-size: 11.5px;
    }

    /* Portátil medio: 3 campos arriba + 2 abajo */
    @media (max-width: 1199.98px) {
        .contract-compact-form {
            grid-template-columns: 1fr 1.7fr 1fr;
        }

        .contract-field-date {
            grid-column: span 2;
        }
    }

    /* Tablet: dos columnas */
    @media (max-width: 767.98px) {
        .subscriber-v2 .subscriber-card > .card-body {
            padding: 12px;
        }

        .contract-client-line {
            gap: 5px 11px;
        }

        .contract-compact-form {
            grid-template-columns: 1fr 1fr;
        }

        .contract-field-service,
        .contract-field-date {
            grid-column: span 2;
        }

        .contract-compact-footer {
            align-items: stretch;
            flex-direction: column;
        }

        .contract-compact-actions {
            width: 100%;
        }

        .contract-compact-actions .btn {
            flex: 1;
        }
    }

    /* Móvil: una sola columna */
    @media (max-width: 575.98px) {
        .contract-compact-form {
            grid-template-columns: 1fr;
        }

        .contract-field-service,
        .contract-field-date {
            grid-column: auto;
        }

        .contract-client-line {
            display: grid;
            grid-template-columns: 1fr;
        }
    }


    /* =========================================================
    CableTV V2 - Órdenes
    ========================================================= */

    .orders-v2 {
        padding: 2px 14px 18px;
    }

    .orders-card {
        border: 1px solid #e2e7eb;
        border-radius: 11px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, .045);
        overflow: hidden;
    }

    .orders-head {
        min-height: 58px;
        padding: 9px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: #fff;
        border-bottom: 1px solid #e8ecef;
    }

    .orders-head-title {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .orders-head-icon {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        background: #eaf5fa;
        color: #1682ba;
        font-size: 14px;
    }

    .orders-head h4 {
        margin: 0;
        color: #303942;
        font-size: 15px;
        font-weight: 700;
    }

    .orders-head p {
        margin: 1px 0 0;
        color: #7a858e;
        font-size: 10.5px;
    }

    .orders-count {
        padding: 5px 9px;
        border-radius: 15px;
        background: #f1f4f6;
        color: #68737c;
        font-size: 10.5px;
        font-weight: 650;
    }

    .orders-body {
        padding: 10px 13px 12px;
    }

    .orders-table {
        margin-bottom: 4px !important;
    }

    .orders-table thead th {
        padding: 8px 7px !important;
        border-top: 0 !important;
        border-bottom: 2px solid #e6eaed !important;
        color: #46515a;
        font-size: 11.5px;
        font-weight: 700;
        white-space: nowrap;
    }

    .orders-table tbody td {
        padding: 7px !important;
        vertical-align: middle !important;
        border-top: 1px solid #edf0f2 !important;
        color: #3f4952;
        font-size: 12px;
    }

    .orders-table tbody tr:hover {
        background: #fafbfc;
    }

    .order-number {
        color: #1682ba;
        font-weight: 700;
    }

    .order-client,
    .order-address {
        display: flex;
        flex-direction: column;
        min-width: 145px;
    }

    .order-client strong,
    .order-address span {
        overflow: hidden;
        max-width: 240px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .order-client small,
    .order-address small {
        margin-top: 1px;
        color: #87919a;
        font-size: 10px;
    }

    .order-service {
        display: block;
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .order-date {
        white-space: nowrap;
        font-size: 11px;
    }

    .order-type {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 3px 8px;
        border-radius: 13px;
        font-size: 10.5px;
        font-weight: 650;
        white-space: nowrap;
    }

    .order-type-install {
        background: #e4f5e9;
        color: #247841;
    }

    .order-type-reconnect {
        background: #e1f3f8;
        color: #176f8e;
    }

    .order-type-debt {
        background: #fae7e9;
        color: #b53b45;
    }

    .order-type-voluntary {
        background: #fff2d4;
        color: #906b00;
    }

    .order-type-default {
        background: #eef1f3;
        color: #59656f;
    }

    .order-actions {
        white-space: nowrap;
    }

    .order-action-btn,
    .order-icon-btn {
        min-height: 30px;
        padding: 4px 8px;
        border: 0;
        border-radius: 7px;
        box-shadow: none !important;
        font-size: 10.5px;
        font-weight: 650;
    }

    .order-action-btn i {
        margin-right: 4px;
    }

    .order-icon-btn {
        width: 30px;
        padding: 4px;
        margin-left: 3px;
        background: #eef2f5;
        color: #61707c;
    }

    .order-action-run {
        background: #e3f4e8;
        color: #247841;
    }

    .order-action-reconnect {
        background: #e1f3f8;
        color: #176f8e;
    }

    .order-action-suspend {
        background: #fff0d2;
        color: #8a6500;
    }

    .order-action-detail {
        background: #eaf2fb;
        color: #246a9b;
    }

    .order-action-btn:hover,
    .order-icon-btn:hover {
        filter: brightness(.96);
    }

    /* DataTables */
    .orders-v2 .dataTables_length,
    .orders-v2 .dataTables_filter {
        margin: 2px 0 8px;
        color: #65717a;
        font-size: 11.5px;
    }

    .orders-v2 .dataTables_filter {
        text-align: right;
    }

    .orders-v2 .dataTables_filter input,
    .orders-v2 .dataTables_length select {
        min-height: 32px;
        border: 1px solid #d7dde2;
        border-radius: 7px;
        background: #fff;
    }

    .orders-v2 .dataTables_filter input {
        width: 210px;
        margin-left: 6px;
        padding: 4px 8px;
    }

    .orders-v2 .dataTables_info {
        padding-top: 11px !important;
        color: #7a858e;
        font-size: 10.5px;
    }

    .orders-v2 .dataTables_paginate {
        padding-top: 6px !important;
    }

    .orders-v2 .pagination {
        justify-content: flex-end;
        margin-bottom: 0;
    }

    .orders-v2 .page-link {
        min-width: 32px;
        padding: 5px 8px;
        color: #52606b;
        border-color: #e2e7eb;
        text-align: center;
        font-size: 11px;
    }

    .orders-v2 .page-item.active .page-link {
        background: #1682ba;
        border-color: #1682ba;
        color: #fff;
    }

    /* =========================================================
    Modal de órdenes
    ========================================================= */

    .order-modal .modal-dialog {
        max-width: 900px;
    }

    .order-modal .modal-content {
        border: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
    }

    .order-form-v2 {
        background: #fff;
        color: #303942;
    }

    .order-form-head {
        min-height: 62px;
        padding: 10px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: #fff;
        border-bottom: 1px solid #e7ecef;
    }

    .order-form-title {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .order-form-icon {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        background: #eaf5fa;
        color: #1682ba;
        font-size: 15px;
    }

    .order-form-kicker {
        display: block;
        margin-bottom: 1px;
        color: #1682ba;
        font-size: 9.5px;
        font-weight: 750;
        letter-spacing: .35px;
        text-transform: uppercase;
    }

    .order-form-head h4 {
        margin: 0;
        color: #303942;
        font-size: 17px;
        font-weight: 700;
    }

    .order-form-close {
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid #e0e5e8;
        border-radius: 8px;
        background: #f7f9fa;
        color: #77828b;
    }

    .order-form-body {
        padding: 11px 14px;
    }

    .order-summary-line {
        padding: 7px 9px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 5px 15px;
        border-radius: 7px 7px 0 0;
        background: #f5f8fa;
        color: #4d5963;
        font-size: 11px;
    }

    .order-summary-line + .order-summary-line {
        border-radius: 0 0 7px 7px;
        border-top: 1px solid #e8ecef;
    }

    .order-summary-line i {
        width: 13px;
        color: #87949e;
        text-align: center;
    }

    .order-summary-muted {
        color: #6f7b84;
    }

    .order-procedure-card,
    .order-invoice-card {
        margin-top: 9px;
        padding: 8px 10px;
        display: flex;
        align-items: center;
        gap: 10px;
        border: 1px solid #e4e9ed;
        border-radius: 8px;
        background: #fff;
    }

    .order-procedure-icon,
    .order-invoice-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: #eef6fa;
        color: #1682ba;
        font-size: 13px;
    }

    .order-procedure-card > div:nth-child(2),
    .order-invoice-card > div:nth-child(2) {
        display: flex;
        flex: 1;
        min-width: 0;
        flex-direction: column;
    }

    .order-procedure-card span,
    .order-invoice-card span {
        color: #89939b;
        font-size: 9.5px;
    }

    .order-procedure-card strong,
    .order-invoice-card strong {
        color: #35404a;
        font-size: 12px;
        font-weight: 700;
    }

    .order-procedure-card small,
    .order-invoice-card small {
        overflow: hidden;
        margin-top: 1px;
        color: #77828b;
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .order-procedure-value,
    .order-invoice-value {
        color: #35404a;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    .order-invoice-debt {
        border-color: #f1c9ce;
        background: #fff7f8;
    }

    .order-invoice-debt .order-invoice-icon {
        background: #fae7e9;
        color: #b53b45;
    }

    .order-invoice-ok {
        border-color: #cde7d5;
        background: #f7fcf8;
    }

    .order-invoice-ok .order-invoice-icon {
        background: #e4f5e9;
        color: #247841;
    }

    .order-form-fields {
        margin-top: 9px;
    }

    .order-form-fields label {
        margin-bottom: 4px;
        color: #4d5963;
        font-size: 10.5px;
        font-weight: 650;
    }

    .order-form-fields .form-control {
        height: 36px;
        padding-left: 34px;
        border: 1px solid #d8dee3;
        border-radius: 7px;
        box-shadow: none;
        font-size: 12px;
    }

    .order-form-fields .input-icon {
        left: 10px;
        font-size: 11px;
    }

    .order-form-footer {
        min-height: 49px;
        padding: 7px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border-top: 1px solid #e8ecef;
        background: #f8fafb;
        color: #7b858e;
        font-size: 10px;
    }

    .order-form-footer > div {
        display: flex;
        gap: 7px;
    }

    .order-form-footer .btn {
        min-height: 33px;
        padding: 6px 11px;
        font-size: 11px;
    }

    /* Detalle de orden ejecutada */
    .order-detail-person {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .order-detail-person > div,
    .order-detail-grid > div {
        padding: 8px 10px;
        border: 1px solid #e6ebee;
        border-radius: 8px;
        background: #fafbfc;
    }

    .order-detail-person span,
    .order-detail-grid span,
    .order-result-card span {
        display: block;
        margin-bottom: 2px;
        color: #8b959d;
        font-size: 9.5px;
    }

    .order-detail-person strong,
    .order-detail-grid strong,
    .order-result-card strong {
        display: block;
        color: #35404a;
        font-size: 11.5px;
        font-weight: 700;
    }

    .order-detail-person small {
        display: block;
        margin-top: 2px;
        color: #74808a;
        font-size: 10px;
    }

    .order-detail-grid {
        margin-top: 8px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
    }

    .order-result-card {
        margin-top: 8px;
        padding: 9px 10px;
        display: grid;
        grid-template-columns: .8fr 2fr;
        gap: 12px;
        border-radius: 8px;
        background: #eef7fa;
        border: 1px solid #d8ebf1;
    }

    /* Modal reconnect/suspend: mantiene mismo lenguaje */
    .order-form-reconnect .order-form-icon,
    .order-form-reconnect .order-procedure-icon {
        background: #e1f3f8;
        color: #176f8e;
    }

    .order-form-suspend .order-form-icon,
    .order-form-suspend .order-procedure-icon {
        background: #fff2d4;
        color: #906b00;
    }

    /* Responsive */
    @media (max-width: 991.98px) {
        .orders-v2 {
            padding-left: 6px;
            padding-right: 6px;
        }

        .orders-table {
            min-width: 980px;
        }

        .order-modal .modal-dialog {
            max-width: calc(100% - 24px);
        }
    }

    @media (max-width: 767.98px) {
        .orders-head {
            padding: 8px 10px;
        }

        .orders-body {
            padding: 8px 9px;
        }

        .orders-v2 .dataTables_filter {
            text-align: left;
        }

        .order-detail-person,
        .order-detail-grid,
        .order-result-card {
            grid-template-columns: 1fr;
        }

        .order-form-footer {
            align-items: stretch;
            flex-direction: column;
        }

        .order-form-footer > div {
            width: 100%;
        }

        .order-form-footer .btn {
            flex: 1;
        }
    }


    /* =========================================================
    Ajuste de legibilidad - Órdenes V2
    Mantiene diseño compacto, aumenta tipografía sin ganar alto.
    ========================================================= */

    .orders-head h4 {
        font-size: 16px;
    }

    .orders-head p,
    .orders-count {
        font-size: 11.5px;
    }

    .orders-table thead th {
        font-size: 12.5px !important;
    }

    .orders-table tbody td {
        font-size: 13px;
    }

    .order-client small,
    .order-address small {
        font-size: 11px;
    }

    .order-date {
        font-size: 12px;
    }

    .order-type {
        font-size: 11.5px;
    }

    .order-action-btn,
    .order-icon-btn {
        font-size: 11.5px;
    }

    .orders-v2 .dataTables_length,
    .orders-v2 .dataTables_filter {
        font-size: 12.5px;
    }

    .orders-v2 .dataTables_info {
        font-size: 11.5px;
    }

    .orders-v2 .page-link {
        font-size: 12px;
    }

    /* Modal */
    .order-form-kicker {
        font-size: 10.5px;
    }

    .order-form-head h4 {
        font-size: 18px;
    }

    .order-summary-line {
        font-size: 12px;
    }

    .order-procedure-card span,
    .order-invoice-card span,
    .order-detail-person span,
    .order-detail-grid span,
    .order-result-card span {
        font-size: 10.5px;
    }

    .order-procedure-card strong,
    .order-invoice-card strong,
    .order-detail-person strong,
    .order-detail-grid strong,
    .order-result-card strong {
        font-size: 12.5px;
    }

    .order-procedure-card small,
    .order-invoice-card small,
    .order-detail-person small {
        font-size: 11px;
    }

    .order-form-fields label {
        font-size: 11.5px;
    }

    .order-form-fields .form-control {
        font-size: 13px;
    }

    .order-form-footer {
        font-size: 11px;
    }

    .order-form-footer .btn {
        font-size: 12px;
    }


    /* =========================================================
    ÓRDENES V2 - Lectura cómoda para usuario final
    La densidad se logra con composición, no con letra pequeña.
    ========================================================= */

    /* ---------- Pantalla principal ---------- */

    .orders-head {
        min-height: 62px;
    }

    .orders-head h4 {
        font-size: 17px;
        line-height: 1.2;
    }

    .orders-head p {
        font-size: 12.5px;
        line-height: 1.3;
    }

    .orders-count {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Tabla: texto principal cómodo */
    .orders-table thead th {
        font-size: 13.5px !important;
        line-height: 1.2;
    }

    .orders-table tbody td {
        font-size: 14px;
        line-height: 1.25;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    /* Datos secundarios: visibles, pero no compiten con el principal */
    .order-client small,
    .order-address small {
        font-size: 11.8px;
        line-height: 1.25;
    }

    .order-client strong,
    .order-address span,
    .order-service {
        font-size: 13.5px;
    }

    .order-date {
        font-size: 12.5px;
    }

    .order-number {
        font-size: 13.5px;
    }

    /* Badges y acciones deben poder leerse sin esfuerzo */
    .order-type {
        min-height: 27px;
        padding: 4px 10px;
        font-size: 12px;
    }

    .order-action-btn,
    .order-icon-btn {
        min-height: 32px;
        font-size: 12px;
    }

    .order-action-btn {
        padding-left: 10px;
        padding-right: 10px;
    }

    .orders-v2 .dataTables_length,
    .orders-v2 .dataTables_filter {
        font-size: 13px;
    }

    .orders-v2 .dataTables_filter input,
    .orders-v2 .dataTables_length select {
        min-height: 34px;
        font-size: 13px;
    }

    .orders-v2 .dataTables_info {
        font-size: 12px;
    }

    .orders-v2 .page-link {
        min-width: 34px;
        padding: 6px 9px;
        font-size: 12.5px;
    }

    /* ---------- Modal / detalle ---------- */

    /* Un poco más ancho para que la letra crezca sin forzar scroll vertical */
    .order-modal .modal-dialog {
        max-width: 960px;
    }

    .order-form-head {
        min-height: 68px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .order-form-kicker {
        font-size: 11px;
    }

    .order-form-head h4 {
        font-size: 20px;
        line-height: 1.2;
    }

    /* Franja resumen */
    .order-summary-line {
        font-size: 13px;
        line-height: 1.35;
        gap: 7px 18px;
    }

    /* Tarjetas y datos del detalle */
    .order-procedure-card span,
    .order-invoice-card span,
    .order-detail-person span,
    .order-detail-grid span,
    .order-result-card span {
        font-size: 11.5px;
        line-height: 1.25;
    }

    .order-procedure-card strong,
    .order-invoice-card strong,
    .order-detail-person strong,
    .order-detail-grid strong,
    .order-result-card strong {
        font-size: 14px;
        line-height: 1.3;
    }

    .order-procedure-card small,
    .order-invoice-card small,
    .order-detail-person small {
        font-size: 12px;
        line-height: 1.3;
    }

    .order-procedure-value,
    .order-invoice-value {
        font-size: 13.5px;
    }

    /* Campos editables */
    .order-form-fields label {
        font-size: 12.5px;
    }

    .order-form-fields .form-control {
        height: 38px;
        font-size: 13.5px;
    }

    .order-form-footer {
        font-size: 12px;
    }

    .order-form-footer .btn {
        min-height: 35px;
        font-size: 12.5px;
    }

    /* ---------- Detalle ejecutado ---------- */

    .order-detail-person > div,
    .order-detail-grid > div {
        padding: 9px 11px;
    }

    .order-result-card {
        padding: 10px 11px;
    }

    /* Pantallas grandes: evitamos “microtexto” por exceso de columnas */
    @media (min-width: 1200px) {
        .order-client {
            min-width: 175px;
        }

        .order-address {
            min-width: 190px;
        }
    }

    /* Portátil: prioridad a lectura antes que comprimir a toda costa */
    @media (max-width: 1199.98px) {
        .orders-table {
            min-width: 1050px;
        }

        .orders-body {
            overflow-x: auto;
        }

        .order-modal .modal-dialog {
            max-width: calc(100% - 28px);
        }
    }

    @media (max-width: 767.98px) {
        .orders-table tbody td {
            font-size: 13.5px;
        }

        .order-form-head h4 {
            font-size: 18px;
        }

        .order-summary-line {
            font-size: 12.5px;
        }
    }


    /* =========================================================
    CableTV V2 - Mejora global de legibilidad
    Oscurece textos secundarios sin perder jerarquía visual.
    ========================================================= */

    /* Texto secundario general */
    .subscriber-v2 .subscriber-section-title p,
    .subscriber-v2 .subscriber-report-text small,
    .subscriber-v2 .subscriber-label,
    .subscriber-v2 div.dataTables_wrapper div.dataTables_length label,
    .subscriber-v2 div.dataTables_wrapper div.dataTables_filter label,
    .orders-head p,
    .orders-v2 .dataTables_length,
    .orders-v2 .dataTables_filter,
    .orders-v2 .dataTables_info,
    .order-client small,
    .order-address small,
    .order-form-kicker,
    .order-procedure-card span,
    .order-invoice-card span,
    .order-detail-person span,
    .order-detail-grid span,
    .order-result-card span,
    .order-form-footer,
    .form-v2-section-title p,
    .form-v2-required-note,
    .contract-v2-header p,
    .client-summary-heading p,
    .summary-item-v2 span,
    .contract-compact-client small,
    .contract-client-line,
    .contract-compact-footer {
        color: #5f6f82 !important;
    }

    /* Texto auxiliar que todavía debe verse claramente */
    .subscriber-v2 .subscriber-report-print,
    .subscriber-v2 .subscriber-section-title > i,
    .order-summary-muted,
    .order-summary-line i,
    .input-group-v2 .input-icon,
    .order-form-fields .input-icon {
        color: #6b7c8f !important;
    }

    /* Texto principal: ligeramente más sólido */
    .subscriber-v2 .subscriber-report-text strong,
    .subscriber-v2 .subscriber-section-title h5,
    .orders-head h4,
    .orders-table thead th,
    .orders-table tbody td,
    .order-client strong,
    .order-address span,
    .order-service,
    .order-detail-person strong,
    .order-detail-grid strong,
    .order-result-card strong,
    .form-v2-section-title h4,
    .contract-v2-header h3,
    .client-summary-heading h4,
    .summary-item-v2 strong {
        color: #2f3e4e !important;
    }

    /* Placeholder más visible, sin parecer texto diligenciado */
    .subscriber-v2 input::placeholder,
    .cabletv-form-v2 input::placeholder,
    .contract-v2 input::placeholder,
    .order-form-v2 input::placeholder {
        color: #7a8896 !important;
        opacity: 1;
    }


    /* =========================================================
    CableTV V2 - Contraste reforzado
    Pensado para lectura cómoda a 100% de zoom.
    ========================================================= */

    /* Suscriptores: subtítulos y textos secundarios */
    .subscriber-v2 .subscriber-section-title p,
    .subscriber-v2 .subscriber-report-text small,
    .subscriber-v2 .subscriber-label,
    .subscriber-v2 .dataTables_info,
    .subscriber-v2 .dataTables_length label,
    .subscriber-v2 .dataTables_filter label {
        color: #465568 !important;
        font-weight: 500 !important;
    }

    /* Encabezados y datos principales */
    .subscriber-v2 .subscriber-section-title h5,
    .subscriber-v2 .subscriber-report-text strong,
    .subscriber-v2 #dataTable thead th,
    .subscriber-v2 #dataTable tbody td {
        color: #2f3e4e !important;
    }

    /* Textos auxiliares e iconos */
    .subscriber-v2 .subscriber-section-title > i,
    .subscriber-v2 .subscriber-report-print,
    .subscriber-v2 .input-icon {
        color: #5f6f82 !important;
    }

    /* Órdenes: mismos niveles de contraste */
    .orders-head p,
    .orders-v2 .dataTables_info,
    .orders-v2 .dataTables_length,
    .orders-v2 .dataTables_filter,
    .order-client small,
    .order-address small,
    .order-summary-muted,
    .order-detail-person span,
    .order-detail-grid span,
    .order-result-card span,
    .order-form-footer {
        color: #465568 !important;
        font-weight: 500 !important;
    }

    .orders-head h4,
    .orders-table thead th,
    .orders-table tbody td,
    .order-client strong,
    .order-address span,
    .order-service,
    .order-detail-person strong,
    .order-detail-grid strong,
    .order-result-card strong {
        color: #2f3e4e !important;
    }

    /* Formularios */
    .form-v2-section-title p,
    .form-v2-required-note,
    .contract-v2-header p,
    .client-summary-heading p,
    .summary-item-v2 span,
    .contract-compact-client small,
    .contract-client-line,
    .contract-compact-footer {
        color: #465568 !important;
        font-weight: 500 !important;
    }

    /* Placeholders: visibles, pero diferenciados del valor real */
    .subscriber-v2 input::placeholder,
    .cabletv-form-v2 input::placeholder,
    .contract-v2 input::placeholder,
    .order-form-v2 input::placeholder {
        color: #667789 !important;
        opacity: 1 !important;
    }


    /* =========================================================
    CableTV V2 - CONTRASTE VISIBLE
    Ajuste deliberadamente más fuerte para usuarios finales.
    ========================================================= */

    /* SECUNDARIOS: más oscuros y con mayor peso */
    .subscriber-v2 .subscriber-section-title p,
    .subscriber-v2 .subscriber-report-text small,
    .subscriber-v2 .subscriber-label,
    .subscriber-v2 .dataTables_info,
    .subscriber-v2 .dataTables_length label,
    .subscriber-v2 .dataTables_filter label,
    .orders-head p,
    .orders-v2 .dataTables_info,
    .orders-v2 .dataTables_length,
    .orders-v2 .dataTables_filter,
    .order-client small,
    .order-address small,
    .order-summary-muted,
    .order-detail-person span,
    .order-detail-grid span,
    .order-result-card span,
    .order-form-footer,
    .form-v2-section-title p,
    .form-v2-required-note,
    .contract-v2-header p,
    .client-summary-heading p,
    .summary-item-v2 span,
    .contract-compact-client small,
    .contract-client-line,
    .contract-compact-footer {
        color: #3f4d5d !important;
        font-weight: 600 !important;
    }

    /* PRINCIPALES: más definidos */
    .subscriber-v2 .subscriber-section-title h5,
    .subscriber-v2 .subscriber-report-text strong,
    .subscriber-v2 #dataTable thead th,
    .subscriber-v2 #dataTable tbody td,
    .orders-head h4,
    .orders-table thead th,
    .orders-table tbody td,
    .order-client strong,
    .order-address span,
    .order-service,
    .order-detail-person strong,
    .order-detail-grid strong,
    .order-result-card strong,
    .form-v2-section-title h4,
    .contract-v2-header h3,
    .client-summary-heading h4,
    .summary-item-v2 strong {
        color: #1f2937 !important;
    }

    /* MODAL DE ÓRDENES: etiquetas claramente visibles */
    .order-detail-person span,
    .order-detail-grid span,
    .order-result-card span {
        font-size: 12px !important;
        color: #465568 !important;
        font-weight: 600 !important;
    }

    .order-detail-person strong,
    .order-detail-grid strong,
    .order-result-card strong {
        font-size: 14px !important;
        color: #1f2937 !important;
        font-weight: 700 !important;
    }

    /* Suscriptores: descripciones algo más grandes */
    .subscriber-v2 .subscriber-section-title p,
    .subscriber-v2 .subscriber-report-text small {
        font-size: 11.5px !important;
    }

    /* Placeholders: visibles, pero siguen pareciendo ayuda */
    .subscriber-v2 input::placeholder,
    .cabletv-form-v2 input::placeholder,
    .contract-v2 input::placeholder,
    .order-form-v2 input::placeholder {
        color: #5e6b78 !important;
        opacity: 1 !important;
    }


    /* =========================================================
    CableTV Colombia V2 - Pagos / Recaudos
    ========================================================= */

    .payments-v2 {
        padding-top: 2px;
    }

    .payments-card {
        border: 0;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 3px 14px rgba(31, 41, 55, 0.08);
    }

    .payments-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 16px 20px;
        background: #ffffff;
        border-bottom: 1px solid #e6ebf0;
    }

    .payments-kicker {
        margin-bottom: 2px;
        color: #3f4d5d;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .02em;
    }

    .payments-kicker i {
        margin-right: 5px;
        color: #1976d2;
    }

    .payments-head h4 {
        margin: 0;
        color: #1f2937;
        font-size: 20px;
        font-weight: 700;
    }

    .payments-head p {
        margin: 4px 0 0;
        color: #465568;
        font-size: 13px;
        font-weight: 500;
    }

    .payments-summary {
        display: flex;
        align-items: stretch;
        gap: 8px;
        flex-shrink: 0;
    }

    .payment-summary-item {
        min-width: 94px;
        padding: 7px 11px;
        border: 1px solid #e4e9ef;
        border-radius: 9px;
        background: #f8fafc;
        color: #465568;
        font-size: 11.5px;
        font-weight: 600;
        line-height: 1.15;
        text-align: center;
    }

    .payment-summary-item strong {
        display: block;
        margin-bottom: 2px;
        color: #1f2937;
        font-size: 17px;
        font-weight: 800;
    }

    .payment-summary-value {
        display: block;
        margin-top: 4px;
        padding-top: 4px;
        border-top: 1px solid rgba(31, 41, 55, 0.10);
        color: #344256;
        font-size: 11px;
        font-weight: 800;
        white-space: nowrap;
    }

    .payment-summary-pending {
        background: #fff9ed;
        border-color: #f5dfab;
    }

    .payment-summary-overdue {
        background: #fff2f1;
        border-color: #efc9c6;
    }

    .payment-summary-paid {
        background: #eef9f3;
        border-color: #c6e7d2;
    }

    .payments-body {
        padding: 12px 18px 16px;
    }

    .payments-table-wrapper {
        overflow: visible;
    }

    .payments-table {
        margin-bottom: 8px !important;
        color: #1f2937;
        font-size: 14px;
    }

    .payments-table thead th {
        padding: 9px 10px !important;
        border-top: 0 !important;
        border-bottom: 1px solid #dce3ea !important;
        background: #f7f9fb;
        color: #344255 !important;
        font-size: 13px;
        font-weight: 700;
        vertical-align: middle !important;
        white-space: nowrap;
    }

    .payments-table tbody td {
        padding: 9px 10px !important;
        border-top: 1px solid #edf0f3 !important;
        color: #1f2937 !important;
        vertical-align: middle !important;
    }

    .payments-table tbody tr:hover {
        background: #f9fbfd;
    }

    .payment-invoice-number {
        display: inline-block;
        color: #1769aa;
        font-weight: 800;
        white-space: nowrap;
    }

    .payment-contract {
        font-weight: 700;
        white-space: nowrap;
    }

    .payment-client {
        min-width: 190px;
        line-height: 1.2;
    }

    .payment-client strong {
        display: block;
        color: #1f2937;
        font-size: 14px;
        font-weight: 700;
    }

    .payment-client small {
        display: block;
        margin-top: 3px;
        color: #465568;
        font-size: 12px;
        font-weight: 600;
    }

    .payment-period {
        color: #344255;
        font-weight: 600;
        white-space: nowrap;
    }

    .payment-amount {
        color: #1f2937;
        font-size: 14px;
        font-weight: 800;
        white-space: nowrap;
    }

    .payment-status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 82px;
        padding: 5px 9px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
    }

    .payment-status-pending {
        background: #fff3d8;
        color: #855d00;
    }

    .payment-status-overdue {
        background: #fde8e7;
        color: #a22924;
    }

    .payment-status-paid {
        background: #e5f6ed;
        color: #167542;
    }

    .payment-actions {
        min-width: 205px;
        white-space: nowrap;
    }

    .payment-action-btn,
    .payment-icon-btn {
        border: 0;
        box-shadow: none !important;
        font-size: 12.5px;
        font-weight: 700;
    }

    .payment-action-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        min-height: 31px;
        padding: 5px 9px;
        margin: 1px 2px;
        border-radius: 7px;
    }

    .payment-action-pay {
        background: #e6f6ed;
        color: #11723d;
    }

    .payment-action-pay:hover {
        background: #d7efe1;
        color: #0d5d31;
    }

    .payment-action-partial {
        background: #eaf3fc;
        color: #1769aa;
    }

    .payment-action-partial:hover {
        background: #dbeaf8;
        color: #125487;
    }

    .payment-icon-btn {
        width: 32px;
        height: 31px;
        padding: 0;
        margin: 1px 2px;
        border-radius: 7px;
        background: #eef1f4;
        color: #465568;
    }

    .payment-icon-btn:hover {
        background: #dfe5ea;
        color: #1f2937;
    }

    .payment-no-action {
        color: #5b6775;
        font-size: 12px;
        font-weight: 600;
    }

    /* DataTables */
    .payments-v2 .dataTables_wrapper .dataTables_length,
    .payments-v2 .dataTables_wrapper .dataTables_filter,
    .payments-v2 .dataTables_wrapper .dataTables_info {
        color: #3f4d5d !important;
        font-size: 12.5px;
        font-weight: 600;
    }

    .payments-v2 .dataTables_wrapper .dataTables_length select,
    .payments-v2 .dataTables_wrapper .dataTables_filter input {
        border: 1px solid #cfd7df;
        border-radius: 6px;
        background: #fff;
        color: #1f2937;
    }

    .payments-v2 .dataTables_wrapper .dataTables_filter input {
        min-width: 220px;
        padding: 5px 8px;
    }

    .payments-v2 .dataTables_wrapper .dataTables_paginate .paginate_button {
        border-radius: 6px !important;
    }

    /* Modal pago / abono */
    .payment-modal .modal-dialog {
        max-width: 940px;
    }

    .payment-modal .modal-content {
        overflow: hidden;
        border: 0;
        border-radius: 12px;
        box-shadow: 0 16px 45px rgba(25, 39, 52, .22);
    }

    /* Confirmación de impresión */
    .payment-print-modal .modal-content {
        border: 0;
        border-radius: 12px;
        box-shadow: 0 16px 45px rgba(25, 39, 52, .22);
    }

    .payment-print-modal .modal-header {
        align-items: center;
        padding: 14px 18px;
        border-bottom: 1px solid #e6ebf0;
    }

    .payment-confirm-kicker {
        display: block;
        color: #465568;
        font-size: 11px;
        font-weight: 700;
    }

    .payment-print-modal .modal-title {
        margin: 1px 0 0;
        color: #1f2937;
        font-size: 18px;
        font-weight: 700;
    }

    .payment-print-modal .modal-body {
        padding: 20px;
        text-align: center;
    }

    .payment-confirm-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin-bottom: 10px;
        border-radius: 50%;
        background: #eaf3fc;
        color: #1769aa;
        font-size: 19px;
    }

    .payment-print-modal .modal-body p {
        margin: 0;
        color: #344255;
        font-size: 14px;
        font-weight: 600;
    }

    .payment-print-modal .modal-footer {
        padding: 10px 18px 14px;
        border-top: 0;
    }

    /* Responsive */
    @media (max-width: 991.98px) {
        .payments-head {
            align-items: flex-start;
            flex-direction: column;
            gap: 12px;
        }

        .payments-summary {
            width: 100%;
        }

        .payment-summary-item {
            flex: 1;
        }

        .payments-table-wrapper {
            overflow-x: auto;
        }
    }

    @media (max-width: 575.98px) {
        .payments-head {
            padding: 14px;
        }

        .payments-body {
            padding: 10px;
        }

        .payments-summary {
            gap: 5px;
        }

        .payment-summary-item {
            min-width: 0;
            padding: 6px 5px;
            font-size: 10.5px;
        }

        .payment-summary-item strong {
            font-size: 15px;
        }
    }


    /* =========================================================
    CableTV Colombia V2 - Modales de pago y abono
    ========================================================= */

    .payment-form-v2 {
        background: #fff;
        color: #1f2937;
    }

    .payment-form-v2 form {
        margin: 0;
    }

    .payment-form-header {
        position: relative;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 14px 18px;
        border-bottom: 1px solid #e3e8ee;
        background: #fff;
    }

    .payment-form-header-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 9px;
        background: #e6f6ed;
        color: #11723d;
        font-size: 16px;
    }

    .payment-form-header-partial .payment-form-header-icon {
        background: #eaf3fc;
        color: #1769aa;
    }

    .payment-form-kicker {
        display: block;
        margin-bottom: 1px;
        color: #465568;
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .payment-form-header h4 {
        margin: 0;
        color: #1f2937;
        font-size: 20px;
        font-weight: 800;
        line-height: 1.15;
    }

    .payment-form-close {
        position: absolute;
        top: 13px;
        right: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 33px;
        height: 33px;
        border: 1px solid #d7dee5;
        border-radius: 8px;
        background: #f7f9fb;
        color: #617080;
        cursor: pointer;
    }

    .payment-form-close:hover {
        background: #eef2f5;
        color: #1f2937;
    }

    .payment-form-body {
        padding: 12px 16px 14px;
    }

    .payment-customer-grid {
        display: grid;
        grid-template-columns: 1.1fr .9fr;
        gap: 8px;
        margin-bottom: 10px;
    }

    .payment-info-card {
        padding: 9px 11px;
        border: 1px solid #dfe5eb;
        border-radius: 8px;
        background: #f9fbfc;
        line-height: 1.2;
    }

    .payment-info-card > span {
        display: block;
        margin-bottom: 2px;
        color: #465568;
        font-size: 11px;
        font-weight: 600;
    }

    .payment-info-card > strong {
        display: block;
        overflow: hidden;
        color: #1f2937;
        font-size: 14px;
        font-weight: 750;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .payment-info-card > small {
        display: block;
        margin-top: 3px;
        color: #465568;
        font-size: 11.5px;
        font-weight: 600;
    }

    .payment-concepts {
        margin-bottom: 10px;
        overflow: hidden;
        border: 1px solid #dfe5eb;
        border-radius: 8px;
    }

    .payment-section-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 7px 10px;
        background: #f7f9fb;
        border-bottom: 1px solid #e3e8ed;
    }

    .payment-section-title div > span {
        display: block;
        color: #5c6977;
        font-size: 9.5px;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .payment-section-title div > strong {
        display: block;
        margin-top: 1px;
        color: #263445;
        font-size: 12.5px;
        font-weight: 700;
    }

    .payment-concept-count {
        padding: 4px 7px;
        border-radius: 999px;
        background: #eaf0f5;
        color: #465568;
        font-size: 10.5px;
        font-weight: 700;
    }

    .payment-concepts-table {
        margin: 0 !important;
        font-size: 13px;
    }

    .payment-concepts-table thead th {
        padding: 6px 9px !important;
        border-top: 0 !important;
        border-bottom: 1px solid #e3e8ed !important;
        background: #fff;
        color: #465568;
        font-size: 11.5px;
        font-weight: 700;
    }

    .payment-concepts-table tbody td {
        padding: 7px 9px !important;
        border-top: 1px solid #edf0f3 !important;
        color: #263445;
        vertical-align: middle;
    }

    .payment-operation-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 10px;
        align-items: stretch;
    }

    .payment-extra-fields {
        padding: 10px;
        border: 1px solid #dfe5eb;
        border-radius: 8px;
        background: #fff;
    }

    .payment-field {
        margin-bottom: 9px;
    }

    .payment-field label {
        margin-bottom: 4px;
        color: #344255;
        font-size: 12px;
        font-weight: 700;
    }

    .payment-field .form-control {
        height: 37px;
        padding: 6px 9px;
        border: 1px solid #cfd7df;
        border-radius: 7px;
        background: #fff;
        color: #1f2937;
        font-size: 13.5px;
    }

    .payment-field .form-control::placeholder {
        color: #697786;
        opacity: 1;
    }

    .payment-totals-card {
        padding: 7px 10px;
        border: 1px solid #dfe5eb;
        border-radius: 8px;
        background: #f8fafc;
    }

    .payment-total-row {
        display: grid;
        grid-template-columns: 1fr 145px;
        align-items: center;
        gap: 10px;
        min-height: 39px;
        border-bottom: 1px solid #e5e9ee;
    }

    .payment-total-row:last-child {
        border-bottom: 0;
    }

    .payment-total-row > span,
    .payment-total-row > label {
        margin: 0;
        color: #344255;
        font-size: 12.5px;
        font-weight: 700;
    }

    .payment-money-input {
        display: flex;
        align-items: center;
        height: 31px;
        overflow: hidden;
        border: 1px solid #cbd4dd;
        border-radius: 6px;
        background: #fff;
    }

    .payment-money-input > span {
        display: flex;
        align-items: center;
        height: 100%;
        padding: 0 6px;
        border-right: 1px solid #e0e5ea;
        background: #f2f5f7;
        color: #465568;
        font-size: 12px;
        font-weight: 700;
    }

    .payment-money-input input {
        width: 100%;
        height: 100%;
        min-width: 0;
        padding: 4px 7px;
        border: 0;
        outline: 0;
        background: transparent;
        color: #1f2937;
        font-size: 13.5px;
        font-weight: 700;
        text-align: right;
    }

    .payment-money-readonly,
    .payment-money-total {
        background: #f4f7f9;
    }

    .payment-money-readonly input,
    .payment-money-total input {
        cursor: default;
    }

    .payment-total-final {
        margin-top: 2px;
    }

    .payment-total-final > span {
        color: #1f2937;
        font-size: 13px;
        font-weight: 800;
    }

    .payment-total-final .payment-money-input {
        border-color: #aebdca;
    }

    .payment-total-final .payment-money-input input {
        font-size: 14px;
        font-weight: 800;
    }

    .payment-partial-note {
        display: flex;
        gap: 8px;
        margin-bottom: 9px;
        padding: 7px 9px;
        border: 1px solid #cfe2f5;
        border-radius: 7px;
        background: #f2f8fd;
        color: #344255;
    }

    .payment-partial-note > i {
        margin-top: 2px;
        color: #1769aa;
        font-size: 13px;
    }

    .payment-partial-note strong {
        display: block;
        color: #263445;
        font-size: 11.5px;
        font-weight: 750;
    }

    .payment-partial-note span {
        display: block;
        margin-top: 1px;
        color: #526273;
        font-size: 10.5px;
        font-weight: 600;
        line-height: 1.25;
    }

    .payment-partial-entry .payment-money-input {
        border-color: #91bce2;
        box-shadow: 0 0 0 2px rgba(23, 105, 170, .06);
    }

    .payment-form-footer {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        padding: 10px 16px 13px;
        border-top: 1px solid #e3e8ee;
        background: #f9fafb;
    }

    .payment-form-footer .btn {
        min-width: 130px;
        min-height: 36px;
        border: 0;
        border-radius: 7px;
        font-size: 12.5px;
        font-weight: 700;
    }

    .payment-btn-cancel {
        background: #e9edf1;
        color: #3f4d5d;
    }

    .payment-btn-cancel:hover {
        background: #dde3e8;
        color: #1f2937;
    }

    .payment-btn-save {
        background: #16824c;
        color: #fff;
    }

    .payment-btn-save:hover {
        background: #126c3f;
        color: #fff;
    }

    .payment-btn-save-partial {
        background: #1976b9;
    }

    .payment-btn-save-partial:hover {
        background: #155f94;
    }

    /* Modal ligeramente más contenido que la vista antigua */
    .payment-modal .modal-dialog {
        max-width: 900px;
    }

    @media (max-width: 767.98px) {
        .payment-customer-grid,
        .payment-operation-grid {
            grid-template-columns: 1fr;
        }

        .payment-operation-grid {
            gap: 8px;
        }

        .payment-form-header {
            padding-right: 55px;
        }

        .payment-form-footer {
            flex-direction: column-reverse;
        }

        .payment-form-footer .btn {
            width: 100%;
        }
    }
    /* =========================================================
    CableTV Colombia V2 - Modales de pago y abono
    ========================================================= */

    .payment-form-v2 {
        background: #fff;
        color: #1f2937;
    }

    .payment-form-v2 form {
        margin: 0;
    }

    .payment-form-header {
        position: relative;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 14px 18px;
        border-bottom: 1px solid #e3e8ee;
        background: #fff;
    }

    .payment-form-header-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 9px;
        background: #e6f6ed;
        color: #11723d;
        font-size: 16px;
    }

    .payment-form-header-partial .payment-form-header-icon {
        background: #eaf3fc;
        color: #1769aa;
    }

    .payment-form-kicker {
        display: block;
        margin-bottom: 1px;
        color: #465568;
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .payment-form-header h4 {
        margin: 0;
        color: #1f2937;
        font-size: 20px;
        font-weight: 800;
        line-height: 1.15;
    }

    .payment-form-close {
        position: absolute;
        top: 13px;
        right: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 33px;
        height: 33px;
        border: 1px solid #d7dee5;
        border-radius: 8px;
        background: #f7f9fb;
        color: #617080;
        cursor: pointer;
    }

    .payment-form-close:hover {
        background: #eef2f5;
        color: #1f2937;
    }

    .payment-form-body {
        padding: 12px 16px 14px;
    }

    .payment-customer-grid {
        display: grid;
        grid-template-columns: 1.1fr .9fr;
        gap: 8px;
        margin-bottom: 10px;
    }

    .payment-info-card {
        padding: 9px 11px;
        border: 1px solid #dfe5eb;
        border-radius: 8px;
        background: #f9fbfc;
        line-height: 1.2;
    }

    .payment-info-card > span {
        display: block;
        margin-bottom: 2px;
        color: #465568;
        font-size: 11px;
        font-weight: 600;
    }

    .payment-info-card > strong {
        display: block;
        overflow: hidden;
        color: #1f2937;
        font-size: 14px;
        font-weight: 750;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .payment-info-card > small {
        display: block;
        margin-top: 3px;
        color: #465568;
        font-size: 11.5px;
        font-weight: 600;
    }

    .payment-concepts {
        margin-bottom: 10px;
        overflow: hidden;
        border: 1px solid #dfe5eb;
        border-radius: 8px;
    }

    .payment-section-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 7px 10px;
        background: #f7f9fb;
        border-bottom: 1px solid #e3e8ed;
    }

    .payment-section-title div > span {
        display: block;
        color: #5c6977;
        font-size: 9.5px;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .payment-section-title div > strong {
        display: block;
        margin-top: 1px;
        color: #263445;
        font-size: 12.5px;
        font-weight: 700;
    }

    .payment-concept-count {
        padding: 4px 7px;
        border-radius: 999px;
        background: #eaf0f5;
        color: #465568;
        font-size: 10.5px;
        font-weight: 700;
    }

    .payment-concepts-table {
        margin: 0 !important;
        font-size: 13px;
    }

    .payment-concepts-table thead th {
        padding: 6px 9px !important;
        border-top: 0 !important;
        border-bottom: 1px solid #e3e8ed !important;
        background: #fff;
        color: #465568;
        font-size: 11.5px;
        font-weight: 700;
    }

    .payment-concepts-table tbody td {
        padding: 7px 9px !important;
        border-top: 1px solid #edf0f3 !important;
        color: #263445;
        vertical-align: middle;
    }

    .payment-operation-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 10px;
        align-items: stretch;
    }

    .payment-extra-fields {
        padding: 10px;
        border: 1px solid #dfe5eb;
        border-radius: 8px;
        background: #fff;
    }

    .payment-field {
        margin-bottom: 9px;
    }

    .payment-field label {
        margin-bottom: 4px;
        color: #344255;
        font-size: 12px;
        font-weight: 700;
    }

    .payment-field .form-control {
        height: 37px;
        padding: 6px 9px;
        border: 1px solid #cfd7df;
        border-radius: 7px;
        background: #fff;
        color: #1f2937;
        font-size: 13.5px;
    }

    .payment-field .form-control::placeholder {
        color: #697786;
        opacity: 1;
    }

    .payment-totals-card {
        padding: 7px 10px;
        border: 1px solid #dfe5eb;
        border-radius: 8px;
        background: #f8fafc;
    }

    .payment-total-row {
        display: grid;
        grid-template-columns: 1fr 145px;
        align-items: center;
        gap: 10px;
        min-height: 39px;
        border-bottom: 1px solid #e5e9ee;
    }

    .payment-total-row:last-child {
        border-bottom: 0;
    }

    .payment-total-row > span,
    .payment-total-row > label {
        margin: 0;
        color: #344255;
        font-size: 12.5px;
        font-weight: 700;
    }

    .payment-money-input {
        display: flex;
        align-items: center;
        height: 31px;
        overflow: hidden;
        border: 1px solid #cbd4dd;
        border-radius: 6px;
        background: #fff;
    }

    .payment-money-input > span {
        display: flex;
        align-items: center;
        height: 100%;
        padding: 0 6px;
        border-right: 1px solid #e0e5ea;
        background: #f2f5f7;
        color: #465568;
        font-size: 12px;
        font-weight: 700;
    }

    .payment-money-input input {
        width: 100%;
        height: 100%;
        min-width: 0;
        padding: 4px 7px;
        border: 0;
        outline: 0;
        background: transparent;
        color: #1f2937;
        font-size: 13.5px;
        font-weight: 700;
        text-align: right;
    }

    .payment-money-readonly,
    .payment-money-total {
        background: #f4f7f9;
    }

    .payment-money-readonly input,
    .payment-money-total input {
        cursor: default;
    }

    .payment-total-final {
        margin-top: 2px;
    }

    .payment-total-final > span {
        color: #1f2937;
        font-size: 13px;
        font-weight: 800;
    }

    .payment-total-final .payment-money-input {
        border-color: #aebdca;
    }

    .payment-total-final .payment-money-input input {
        font-size: 14px;
        font-weight: 800;
    }

    .payment-partial-note {
        display: flex;
        gap: 8px;
        margin-bottom: 9px;
        padding: 7px 9px;
        border: 1px solid #cfe2f5;
        border-radius: 7px;
        background: #f2f8fd;
        color: #344255;
    }

    .payment-partial-note > i {
        margin-top: 2px;
        color: #1769aa;
        font-size: 13px;
    }

    .payment-partial-note strong {
        display: block;
        color: #263445;
        font-size: 11.5px;
        font-weight: 750;
    }

    .payment-partial-note span {
        display: block;
        margin-top: 1px;
        color: #526273;
        font-size: 10.5px;
        font-weight: 600;
        line-height: 1.25;
    }

    .payment-partial-entry .payment-money-input {
        border-color: #91bce2;
        box-shadow: 0 0 0 2px rgba(23, 105, 170, .06);
    }

    .payment-form-footer {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        padding: 10px 16px 13px;
        border-top: 1px solid #e3e8ee;
        background: #f9fafb;
    }

    .payment-form-footer .btn {
        min-width: 130px;
        min-height: 36px;
        border: 0;
        border-radius: 7px;
        font-size: 12.5px;
        font-weight: 700;
    }

    .payment-btn-cancel {
        background: #e9edf1;
        color: #3f4d5d;
    }

    .payment-btn-cancel:hover {
        background: #dde3e8;
        color: #1f2937;
    }

    .payment-btn-save {
        background: #16824c;
        color: #fff;
    }

    .payment-btn-save:hover {
        background: #126c3f;
        color: #fff;
    }

    .payment-btn-save-partial {
        background: #1976b9;
    }

    .payment-btn-save-partial:hover {
        background: #155f94;
    }

    /* Modal ligeramente más contenido que la vista antigua */
    .payment-modal .modal-dialog {
        max-width: 900px;
    }

    @media (max-width: 767.98px) {
        .payment-customer-grid,
        .payment-operation-grid {
            grid-template-columns: 1fr;
        }

        .payment-operation-grid {
            gap: 8px;
        }

        .payment-form-header {
            padding-right: 55px;
        }

        .payment-form-footer {
            flex-direction: column-reverse;
        }

        .payment-form-footer .btn {
            width: 100%;
        }
    }
    /* =========================================================
    CableTV Colombia V2 - Facturación por ciclos
    PEGAR AL FINAL de public/cangrejoLayout/css/cabletv-v2.css
    ========================================================= */

    .billing-cycle-v2 {
        padding-top: 2px;
    }

    .billing-cycle-card {
        overflow: hidden;
        border: 0;
        border-radius: 12px;
        box-shadow: 0 3px 14px rgba(31, 41, 55, .08);
    }

    .billing-cycle-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 16px 20px;
        background: #fff;
        border-bottom: 1px solid #e5eaf0;
    }

    .billing-cycle-kicker {
        margin-bottom: 2px;
        color: #465568;
        font-size: 12px;
        font-weight: 700;
    }

    .billing-cycle-kicker i {
        margin-right: 5px;
        color: #1976d2;
    }

    .billing-cycle-head h4 {
        margin: 0;
        color: #1f2937;
        font-size: 21px;
        font-weight: 800;
    }

    .billing-cycle-head p {
        margin: 4px 0 0;
        color: #465568;
        font-size: 13px;
        font-weight: 500;
    }

    .billing-cycle-state {
        display: flex;
        align-items: center;
        gap: 9px;
        min-width: 150px;
        padding: 8px 11px;
        border: 1px solid #dfe5eb;
        border-radius: 9px;
    }

    .billing-cycle-state > i {
        font-size: 17px;
    }

    .billing-cycle-state small,
    .billing-cycle-state strong {
        display: block;
    }

    .billing-cycle-state small {
        color: #526273;
        font-size: 10.5px;
        font-weight: 600;
    }

    .billing-cycle-state strong {
        margin-top: 1px;
        color: #1f2937;
        font-size: 13px;
        font-weight: 800;
    }

    .billing-state-open {
        background: #fff8e9;
        border-color: #eed9a4;
    }

    .billing-state-open > i {
        color: #b77a00;
    }

    .billing-state-closed {
        background: #eef7fd;
        border-color: #c9dfef;
    }

    .billing-state-closed > i {
        color: #1976b9;
    }

    .billing-state-ready {
        background: #edf8f2;
        border-color: #c8e4d4;
    }

    .billing-state-ready > i {
        color: #16824c;
    }

    .billing-cycle-summary {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 10px 18px;
        background: #f8fafc;
        border-bottom: 1px solid #e5eaf0;
    }

    .billing-summary-item {
        padding: 8px 10px;
        border: 1px solid #dfe5eb;
        border-radius: 8px;
        background: #fff;
    }

    .billing-summary-item > span,
    .billing-summary-item > strong,
    .billing-summary-item > small {
        display: block;
    }

    .billing-summary-item > span {
        color: #465568;
        font-size: 11px;
        font-weight: 650;
    }

    .billing-summary-item > strong {
        margin: 1px 0;
        color: #1f2937;
        font-size: 19px;
        font-weight: 800;
    }

    .billing-summary-item > small {
        color: #526273;
        font-size: 10.5px;
        font-weight: 600;
    }

    .billing-summary-pending {
        background: #fff9ec;
        border-color: #f0dfb6;
    }

    .billing-summary-paid {
        background: #eff8f3;
        border-color: #cee5d8;
    }

    .billing-summary-overdue {
        background: #fff2f1;
        border-color: #efd0cd;
    }

    .billing-cycle-body {
        padding: 14px 18px 18px;
    }

    .billing-process-panel {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 13px;
        align-items: center;
        padding: 14px;
        border: 1px solid #e0e5eb;
        border-radius: 10px;
        background: #fff;
    }

    .billing-process-open {
        border-left: 4px solid #d89b24;
    }

    .billing-process-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background: #fff5dc;
        color: #a86e00;
        font-size: 18px;
    }

    .billing-process-label,
    .billing-generation-title span,
    .billing-neighborhoods-head span {
        display: block;
        margin-bottom: 1px;
        color: #536273;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .billing-process-content h5,
    .billing-generation-title h5,
    .billing-neighborhoods-head h5 {
        margin: 0;
        color: #1f2937;
        font-size: 16px;
        font-weight: 800;
    }

    .billing-process-content > p,
    .billing-generation-title p {
        margin: 4px 0 0;
        color: #465568;
        font-size: 12.5px;
        font-weight: 500;
        line-height: 1.4;
    }

    .billing-process-note {
        display: inline-flex;
        align-items: flex-start;
        gap: 6px;
        margin-top: 8px;
        color: #465568;
        font-size: 11.5px;
        font-weight: 500;
    }

    .billing-process-note i {
        margin-top: 2px;
        color: #b77a00;
    }

    .billing-close-cycle,
    .billing-generate-btn {
        min-height: 37px;
        padding: 7px 13px;
        border: 0;
        border-radius: 7px;
        font-size: 12.5px;
        font-weight: 700;
        white-space: nowrap;
    }

    .billing-generation-panel {
        overflow: hidden;
        border: 1px solid #dfe5eb;
        border-radius: 10px;
        background: #fff;
    }

    .billing-generation-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        background: #f7f9fb;
        border-bottom: 1px solid #e3e8ed;
    }

    .billing-generation-title > i {
        color: #1976b9;
        font-size: 24px;
    }

    .billing-generation-grid {
        display: grid;
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 10px;
        padding: 13px 14px 10px;
    }

    .billing-field {
        margin-bottom: 0;
    }

    .billing-field label {
        margin-bottom: 4px;
        color: #344255;
        font-size: 12px;
        font-weight: 700;
    }

    .billing-field .form-control,
    .billing-field .custom-select,
    .billing-field .input-group-text {
        height: 38px;
        border-color: #ccd5de;
        color: #1f2937;
        font-size: 13px;
    }

    .billing-field small {
        display: block;
        margin-top: 4px;
        color: #526273;
        font-size: 10.5px;
        font-weight: 600;
    }

    .billing-generation-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        padding: 10px 14px 13px;
        border-top: 1px solid #edf0f3;
    }

    .billing-generation-warning {
        display: flex;
        align-items: flex-start;
        gap: 7px;
        max-width: 720px;
        color: #465568;
        font-size: 11.5px;
        font-weight: 500;
        line-height: 1.35;
    }

    .billing-generation-warning i {
        margin-top: 2px;
        color: #c98c12;
    }

    .billing-neighborhoods {
        margin-top: 14px;
    }

    .billing-neighborhoods-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 8px;
    }

    .billing-neighborhoods-head small {
        color: #526273;
        font-size: 11px;
        font-weight: 600;
    }

    .billing-neighborhood-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .billing-neighborhood-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 9px;
        min-height: 57px;
        padding: 8px 9px;
        border: 1px solid #dfe5eb;
        border-radius: 8px;
        background: #fff;
    }

    .billing-neighborhood-count {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        height: 36px;
        padding: 0 6px;
        border-radius: 8px;
        background: #eaf6ef;
        color: #137142;
        font-size: 16px;
        font-weight: 800;
    }

    .billing-neighborhood-name {
        overflow: hidden;
        color: #263445;
        font-size: 12px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .billing-neighborhood-print {
        padding: 5px 7px;
        border: 0;
        border-radius: 6px;
        background: #eef2f5;
        color: #465568;
        font-size: 10.5px;
        font-weight: 700;
    }

    .billing-neighborhood-print:hover {
        background: #dfe6eb;
        color: #1f2937;
    }

    .billing-print-modal .modal-content {
        border: 0;
        border-radius: 12px;
        box-shadow: 0 16px 45px rgba(25, 39, 52, .22);
    }

    .billing-print-modal .modal-header span {
        color: #526273;
        font-size: 10px;
        font-weight: 800;
    }

    .billing-print-modal .modal-title {
        margin: 1px 0 0;
        color: #1f2937;
        font-size: 18px;
        font-weight: 800;
    }

    .billing-print-modal .modal-body {
        padding: 20px;
        text-align: center;
    }

    .billing-print-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-bottom: 9px;
        border-radius: 50%;
        background: #eaf3fc;
        color: #1976b9;
        font-size: 17px;
    }

    .billing-print-modal .modal-body p {
        margin: 0;
        color: #344255;
        font-size: 13.5px;
        font-weight: 600;
    }

    @media (max-width: 1199.98px) {
        .billing-neighborhood-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    @media (max-width: 991.98px) {
        .billing-cycle-head,
        .billing-generation-footer {
            align-items: flex-start;
            flex-direction: column;
        }

        .billing-cycle-summary {
            grid-template-columns: repeat(2, 1fr);
        }

        .billing-generation-grid {
            grid-template-columns: 1fr;
        }

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

    @media (max-width: 767.98px) {
        .billing-process-panel {
            grid-template-columns: 1fr;
        }

        .billing-process-action .btn {
            width: 100%;
        }
    }

    @media (max-width: 575.98px) {
        .billing-cycle-summary,
        .billing-neighborhood-grid {
            grid-template-columns: 1fr;
        }

        .billing-cycle-head,
        .billing-cycle-body {
            padding-left: 12px;
            padding-right: 12px;
        }
    }
    /* CableTV Colombia V2 - Facturación por ciclos: contraste reforzado */

    .billing-cycle-head {
        background: #ffffff;
        border-bottom: 1px solid #d6dee7;
    }

    .billing-cycle-kicker {
        color: #334155 !important;
        font-weight: 800 !important;
    }

    .billing-cycle-head h4 {
        color: #172033 !important;
        font-weight: 800 !important;
    }

    .billing-cycle-head p {
        color: #3f4d5d !important;
        font-weight: 600 !important;
    }

    .billing-cycle-state {
        border-width: 1px;
        box-shadow: 0 2px 7px rgba(31, 41, 55, .06);
    }

    .billing-state-open {
        background: #fff2cf !important;
        border-color: #e7bd59 !important;
    }

    .billing-state-open > i {
        color: #b87900 !important;
    }

    .billing-state-closed {
        background: #e8f3fb !important;
        border-color: #9fc9e6 !important;
    }

    .billing-state-ready {
        background: #e4f5eb !important;
        border-color: #9fd2b5 !important;
    }

    .billing-cycle-state small {
        color: #455468 !important;
        font-weight: 700 !important;
    }

    .billing-cycle-state strong {
        color: #182230 !important;
        font-weight: 800 !important;
    }

    .billing-cycle-summary {
        background: #f4f7fa !important;
    }

    .billing-summary-item {
        border-color: #ccd6e0 !important;
        box-shadow: 0 1px 3px rgba(31, 41, 55, .04);
    }

    .billing-summary-item > span {
        color: #3f4d5d !important;
        font-weight: 700 !important;
    }

    .billing-summary-item > strong {
        color: #172033 !important;
        font-size: 21px !important;
        font-weight: 800 !important;
    }

    .billing-summary-item > small {
        color: #465568 !important;
        font-weight: 600 !important;
    }

    .billing-summary-pending {
        background: #fff4d9 !important;
        border-color: #e7c56f !important;
    }

    .billing-summary-paid {
        background: #e7f6ed !important;
        border-color: #a9d7bb !important;
    }

    .billing-summary-overdue {
        background: #fde9e7 !important;
        border-color: #e5aaa6 !important;
    }

    .billing-process-panel {
        background: #fffdf8 !important;
        border-color: #d4dde6 !important;
        box-shadow: 0 2px 6px rgba(31, 41, 55, .04);
    }

    .billing-process-open {
        border-left: 4px solid #d89b24 !important;
    }

    .billing-process-icon {
        background: #ffedbd !important;
        color: #9a6400 !important;
    }

    .billing-process-label {
        color: #465568 !important;
        font-weight: 800 !important;
    }

    .billing-process-content h5 {
        color: #172033 !important;
        font-weight: 800 !important;
    }

    .billing-process-content > p,
    .billing-process-note {
        color: #3f4d5d !important;
        font-weight: 600 !important;
    }

    .billing-neighborhoods-head span {
        color: #465568 !important;
    }

    .billing-neighborhoods-head h5 {
        color: #172033 !important;
    }

    .billing-neighborhoods-head small {
        color: #465568 !important;
        font-weight: 600 !important;
    }

    .billing-neighborhood-card {
        background: #ffffff !important;
        border-color: #ccd6e0 !important;
        box-shadow: 0 1px 4px rgba(31, 41, 55, .04);
    }

    .billing-neighborhood-card:hover {
        border-color: #aebcca !important;
        box-shadow: 0 3px 9px rgba(31, 41, 55, .08);
    }

    .billing-neighborhood-count {
        background: #dff3e8 !important;
        color: #0d6b3b !important;
        font-weight: 800 !important;
    }

    .billing-neighborhood-name {
        color: #1f2937 !important;
        font-weight: 700 !important;
    }

    .billing-neighborhood-print {
        background: #e7edf2 !important;
        color: #344255 !important;
        font-weight: 700 !important;
    }

    .billing-neighborhood-print:hover {
        background: #d6e0e8 !important;
        color: #172033 !important;
    }

    .billing-generation-title {
        background: #f2f6fa !important;
        border-bottom-color: #d7e0e8 !important;
    }

    .billing-generation-title h5 {
        color: #172033 !important;
    }

    .billing-generation-title p {
        color: #3f4d5d !important;
        font-weight: 600 !important;
    }

    .billing-generation-warning {
        color: #3f4d5d !important;
        font-weight: 600 !important;
    }
    /* =========================================================
    CableTV Colombia V2 - Parámetros / Servicios
    PEGAR AL FINAL de public/cangrejoLayout/css/cabletv-v2.css
    ========================================================= */

    .services-v2 {
        padding-top: 2px;
    }

    .services-card {
        overflow: hidden;
        border: 0;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 3px 14px rgba(31, 41, 55, .08);
    }

    .services-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 15px 18px;
        border-bottom: 1px solid #dce3ea;
    }

    .services-kicker {
        margin-bottom: 2px;
        color: #3f4d5d;
        font-size: 11.5px;
        font-weight: 800;
    }

    .services-kicker i {
        margin-right: 5px;
        color: #1976d2;
    }

    .services-head h4 {
        margin: 0;
        color: #172033;
        font-size: 21px;
        font-weight: 800;
    }

    .services-head p {
        margin: 3px 0 0;
        color: #3f4d5d;
        font-size: 13px;
        font-weight: 600;
    }

    .services-counter {
        min-width: 120px;
        padding: 7px 11px;
        border: 1px solid #cbd7e2;
        border-radius: 9px;
        background: #f3f7fa;
        text-align: center;
    }

    .services-counter span,
    .services-counter strong {
        display: block;
    }

    .services-counter span {
        color: #465568;
        font-size: 10.5px;
        font-weight: 700;
    }

    .services-counter strong {
        margin-top: 1px;
        color: #172033;
        font-size: 19px;
        font-weight: 800;
    }

    .services-create {
        margin: 12px 18px 0;
        overflow: hidden;
        border: 1px solid #d8e0e8;
        border-radius: 10px;
        background: #f9fbfc;
    }

    .services-section-title,
    .services-list-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .services-section-title {
        padding: 8px 12px;
        border-bottom: 1px solid #dce3ea;
        background: #f1f6fa;
    }

    .services-section-title span,
    .services-list-head span {
        display: block;
        color: #465568;
        font-size: 9.5px;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .services-section-title h5,
    .services-list-head h5 {
        margin: 1px 0 0;
        color: #172033;
        font-size: 15px;
        font-weight: 800;
    }

    .services-section-title > i {
        color: #1976b9;
        font-size: 18px;
    }

    .services-create-grid {
        display: grid;
        grid-template-columns: 110px minmax(190px, .9fr) minmax(300px, 1.7fr) 170px 180px auto;
        gap: 9px;
        align-items: end;
        padding: 10px 12px 12px;
    }

    .service-field {
        margin-bottom: 0;
    }

    .service-field label {
        margin-bottom: 4px;
        color: #344255;
        font-size: 11.5px;
        font-weight: 700;
    }

    .service-field .form-control {
        height: 37px;
        border: 1px solid #cbd5de;
        border-radius: 7px;
        background: #fff;
        color: #1f2937;
        font-size: 13px;
    }

    .service-field small {
        display: block;
        margin-top: 3px;
        color: #596879;
        font-size: 9.5px;
        font-weight: 600;
    }

    .service-code-field .form-control {
        background: #edf2f6;
        font-weight: 700;
    }

    .service-money-input {
        display: flex;
        align-items: center;
        height: 37px;
        overflow: hidden;
        border: 1px solid #cbd5de;
        border-radius: 7px;
        background: #fff;
    }

    .service-money-input > span {
        display: flex;
        align-items: center;
        height: 100%;
        padding: 0 8px;
        border-right: 1px solid #dce3e9;
        background: #eef3f7;
        color: #344255;
        font-size: 12px;
        font-weight: 800;
    }

    .service-money-input .form-control {
        height: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none !important;
    }

    .service-create-action {
        display: flex;
        align-items: flex-end;
    }

    .service-save-btn {
        min-height: 37px;
        padding: 7px 12px;
        border: 0;
        border-radius: 7px;
        background: #16824c;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
    }

    .service-save-btn:hover {
        background: #126c3f;
        color: #fff;
    }

    .services-list {
        margin: 12px 18px 16px;
    }

    .services-list-head {
        margin-bottom: 7px;
    }

    .services-list-head small {
        color: #526273;
        font-size: 10.5px;
        font-weight: 600;
    }

    .services-table {
        margin-bottom: 6px !important;
        color: #1f2937;
        font-size: 13.5px;
    }

    .services-table thead th {
        padding: 8px 9px !important;
        border-top: 0 !important;
        border-bottom: 1px solid #cad4dd !important;
        background: #f4f7fa;
        color: #344255 !important;
        font-size: 12px;
        font-weight: 800;
        vertical-align: middle !important;
        white-space: nowrap;
    }

    .services-table tbody td {
        padding: 8px 9px !important;
        border-top: 1px solid #e7ecf0 !important;
        color: #263445 !important;
        vertical-align: middle !important;
    }

    .services-table tbody tr:hover {
        background: #f8fafc;
    }

    .service-id {
        color: #1769aa;
        font-weight: 800;
    }

    .service-name {
        color: #1f2937;
        font-size: 13.5px;
        font-weight: 750;
    }

    .service-description {
        color: #465568;
        font-size: 12.5px;
        font-weight: 550;
    }

    .service-value {
        color: #172033;
        font-weight: 800;
        white-space: nowrap;
    }

    .service-date {
        color: #465568;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }

    .service-actions {
        white-space: nowrap;
    }

    .service-action {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-height: 30px;
        padding: 5px 7px;
        margin: 1px;
        border: 0;
        border-radius: 6px;
        box-shadow: none !important;
        font-size: 10.5px;
        font-weight: 700;
    }

    .service-action-edit {
        background: #e6f1fb;
        color: #14659f;
    }

    .service-action-edit:hover {
        background: #d7e8f7;
        color: #104f7d;
    }

    .service-action-history {
        background: #edf0f5;
        color: #48576a;
    }

    .service-action-history:hover {
        background: #dfe4eb;
        color: #2e3b4a;
    }

    .service-action-disable {
        background: #fde9e7;
        color: #a22924;
    }

    .service-action-disable:hover {
        background: #f8d7d4;
        color: #861e1a;
    }

    /* DataTables de Servicios */
    .services-v2 .dataTables_wrapper .dataTables_length,
    .services-v2 .dataTables_wrapper .dataTables_filter,
    .services-v2 .dataTables_wrapper .dataTables_info {
        color: #3f4d5d !important;
        font-size: 12px;
        font-weight: 600;
    }

    .services-v2 .dataTables_wrapper .dataTables_length select,
    .services-v2 .dataTables_wrapper .dataTables_filter input {
        border: 1px solid #cbd5de;
        border-radius: 6px;
        background: #fff;
        color: #1f2937;
    }

    /* Inactivar servicio */
    .service-disable-modal .modal-content {
        border: 0;
        border-radius: 12px;
        box-shadow: 0 18px 48px rgba(25, 39, 52, .24);
    }

    .service-disable-modal .modal-header {
        align-items: center;
        padding: 13px 17px;
        border-bottom: 1px solid #e1e7ed;
    }

    .service-disable-kicker {
        display: block;
        color: #596879;
        font-size: 9.5px;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .service-disable-modal .modal-title {
        margin: 1px 0 0;
        color: #172033;
        font-size: 18px;
        font-weight: 800;
    }

    .service-disable-modal .modal-body {
        padding: 19px 20px;
        text-align: center;
    }

    .service-disable-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 47px;
        height: 47px;
        margin-bottom: 9px;
        border-radius: 50%;
        background: #fde9e7;
        color: #a22924;
        font-size: 18px;
    }

    .service-disable-modal .modal-body h5 {
        margin: 0 0 6px;
        color: #172033;
        font-size: 15px;
        font-weight: 800;
    }

    .service-disable-modal .modal-body p {
        max-width: 405px;
        margin: 0 auto;
        color: #465568;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.4;
    }

    .service-disable-modal .modal-footer {
        padding: 10px 17px 13px;
        border-top: 1px solid #e7ebef;
    }

    .service-disable-modal .modal-footer .btn {
        min-width: 115px;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 700;
    }

    /* Editar servicio / Historial (contenido AJAX de modalgeneral) */
    .services-edit-v2,
    .services-history-v2 {
        overflow: hidden;
        margin: -1rem;
        background: #fff;
        border-radius: 10px;
    }

    .service-modal-head {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px 16px;
        border-bottom: 1px solid #dce3ea;
        background: #fff;
    }

    .service-modal-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        border-radius: 9px;
        background: #e6f1fb;
        color: #14659f;
        font-size: 15px;
    }

    .service-modal-head > div:nth-child(2) > span {
        display: block;
        color: #596879;
        font-size: 9.5px;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .service-modal-head h4 {
        margin: 1px 0 0;
        color: #172033;
        font-size: 18px;
        font-weight: 800;
    }

    .service-modal-close {
        position: absolute;
        top: 13px;
        right: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: 1px solid #d5dde5;
        border-radius: 7px;
        background: #f7f9fb;
        color: #5b6877;
        cursor: pointer;
    }

    .service-modal-body {
        padding: 12px 15px;
    }

    .service-edit-grid {
        display: grid;
        grid-template-columns: 120px minmax(0, 1.1fr) 180px 180px;
        gap: 9px;
    }

    .service-edit-description {
        grid-column: 1 / -1;
    }

    .service-change-reason {
        margin-top: 10px;
        padding: 10px 11px;
        border: 1px solid #e5c86d;
        border-radius: 8px;
        background: #fff7dc;
    }

    .service-change-reason-head {
        display: flex;
        align-items: center;
        gap: 7px;
        margin-bottom: 7px;
    }

    .service-change-reason-head > i {
        color: #a86e00;
    }

    .service-change-reason-head span,
    .service-change-reason-head strong {
        display: block;
    }

    .service-change-reason-head span {
        color: #705a23;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .service-change-reason-head strong {
        color: #463816;
        font-size: 12.5px;
        font-weight: 800;
    }

    .service-change-reason label {
        margin-bottom: 4px;
        color: #4f421f;
        font-size: 11px;
        font-weight: 700;
    }

    .service-change-reason .form-control {
        height: 37px;
        border-color: #d8c078;
        border-radius: 7px;
        color: #1f2937;
        font-size: 13px;
    }

    .service-modal-footer,
    .service-history-footer {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        padding: 10px 15px 13px;
        border-top: 1px solid #e1e7ed;
        background: #f8fafb;
    }

    .service-modal-footer .btn,
    .service-history-footer .btn {
        min-width: 125px;
        min-height: 35px;
        border: 0;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 700;
    }

    .service-modal-cancel {
        background: #e9eef2;
        color: #3f4d5d;
    }

    .service-modal-save {
        background: #16824c;
        color: #fff;
    }

    .service-modal-save:hover {
        background: #126c3f;
        color: #fff;
    }

    /* Historial */
    .service-history-icon {
        background: #edf0f5;
        color: #48576a;
    }

    .service-history-body {
        padding: 12px 15px;
    }

    .service-history-summary {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        margin-bottom: 8px;
        padding: 5px 8px;
        border: 1px solid #d6dfe7;
        border-radius: 7px;
        background: #f5f8fa;
    }

    .service-history-summary span {
        color: #465568;
        font-size: 10.5px;
        font-weight: 650;
    }

    .service-history-summary strong {
        color: #172033;
        font-size: 13px;
        font-weight: 800;
    }

    .service-history-table {
        margin-bottom: 0 !important;
        font-size: 12.5px;
    }

    .service-history-table thead th {
        padding: 7px 8px !important;
        border-top: 0 !important;
        border-bottom: 1px solid #ccd6df !important;
        background: #f5f7f9;
        color: #344255;
        font-size: 11px;
        font-weight: 800;
    }

    .service-history-table tbody td {
        padding: 8px !important;
        border-top: 1px solid #e6ebef !important;
        color: #344255;
        vertical-align: middle;
    }

    .service-history-type {
        display: inline-flex;
        padding: 4px 7px;
        border-radius: 999px;
        background: #edf1f5;
        color: #465568;
        font-size: 10.5px;
        font-weight: 700;
    }

    .service-history-empty {
        padding: 25px 15px;
        text-align: center;
        color: #596879;
    }

    .service-history-empty i,
    .service-history-empty strong,
    .service-history-empty span {
        display: block;
    }

    .service-history-empty i {
        margin-bottom: 6px;
        font-size: 25px;
    }

    .service-history-empty strong {
        color: #344255;
        font-size: 13px;
    }

    .service-history-empty span {
        margin-top: 2px;
        font-size: 11px;
    }

    @media (max-width: 1199.98px) {
        .services-create-grid {
            grid-template-columns: 100px 1fr 1.5fr 150px 170px;
        }

        .service-create-action {
            grid-column: 1 / -1;
            justify-content: flex-end;
        }
    }

    @media (max-width: 991.98px) {
        .services-create-grid,
        .service-edit-grid {
            grid-template-columns: 1fr 1fr;
        }

        .service-description-field,
        .service-edit-description {
            grid-column: 1 / -1;
        }

        .services-head {
            align-items: flex-start;
        }

        .service-action span {
            display: none;
        }

        .service-action {
            width: 31px;
            justify-content: center;
        }
    }

    @media (max-width: 575.98px) {
        .services-head {
            flex-direction: column;
        }

        .services-counter {
            width: 100%;
        }

        .services-create,
        .services-list {
            margin-left: 10px;
            margin-right: 10px;
        }

        .services-create-grid,
        .service-edit-grid {
            grid-template-columns: 1fr;
        }

        .service-description-field,
        .service-edit-description {
            grid-column: auto;
        }
    }
    /* =========================================================
    CableTV Colombia V2 - Servicios / contraste y rediseño v2.1
    PEGAR AL FINAL de cabletv-v2.css
    ========================================================= */

    /* Más contraste general */
    .services-v2-strong .services-head {
        background: #f7f9fc;
        border-bottom-color: #c9d4df;
    }

    .services-v2-strong .services-head h4,
    .services-v2-strong .services-list-head h5,
    .services-v2-strong .services-section-title h5 {
        color: #132238 !important;
    }

    .services-v2-strong .services-head p,
    .services-v2-strong .services-list-head small {
        color: #34465b !important;
    }

    .services-v2-strong .services-counter {
        background: #e8f0f7 !important;
        border-color: #aebfce !important;
    }

    .services-v2-strong .services-counter span {
        color: #34465b !important;
    }

    .services-v2-strong .services-counter strong {
        color: #132238 !important;
    }

    /* Nuevo servicio: sin campo "asignado automáticamente" visible */
    .services-create-strong {
        background: #f5f8fb !important;
        border-color: #bfcbd7 !important;
    }

    .services-section-title-strong {
        background: #e6eef5 !important;
        border-bottom-color: #bdc9d5 !important;
    }

    .service-code-badge {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 5px 9px;
        border: 1px solid #aebdcc;
        border-radius: 7px;
        background: #ffffff;
    }

    .service-code-badge span {
        color: #4a5c70;
        font-size: 10px;
        font-weight: 700;
    }

    .service-code-badge strong {
        color: #1769aa;
        font-size: 13px;
        font-weight: 800;
    }

    .services-create-grid-clean {
        grid-template-columns: minmax(210px, 1fr) minmax(360px, 1.8fr) 170px 190px auto !important;
    }

    .services-v2-strong .service-field label {
        color: #26384d !important;
        font-weight: 750 !important;
    }

    .services-v2-strong .service-field .form-control,
    .services-v2-strong .service-money-input {
        border-color: #b7c5d2 !important;
        background: #fff !important;
    }

    .services-v2-strong .service-save-btn {
        background: #0f7a45 !important;
        box-shadow: 0 2px 5px rgba(15, 122, 69, .14);
    }

    /* Tabla con un poco más de presencia */
    .services-list-strong {
        padding-top: 2px;
    }

    .services-v2-strong .services-table thead th {
        background: #eaf0f5 !important;
        color: #26384d !important;
        border-bottom-color: #b8c5d1 !important;
    }

    .services-v2-strong .services-table tbody td {
        border-top-color: #dce4ea !important;
    }

    .services-v2-strong .service-name {
        color: #17283d !important;
    }

    .services-v2-strong .service-description,
    .services-v2-strong .service-date {
        color: #405167 !important;
    }

    .services-v2-strong .service-action-edit {
        background: #dcecf9 !important;
        color: #0e5f99 !important;
    }

    .services-v2-strong .service-action-history {
        background: #e4e9ef !important;
        color: #34465b !important;
    }

    .services-v2-strong .service-action-disable {
        background: #f9dcda !important;
        color: #9e211d !important;
    }

    /* =========================
    Editar Servicio v2.1
    ========================= */

    .services-edit-v2-strong {
        background: #f6f8fb;
    }

    .service-modal-head-strong {
        min-height: 78px;
        padding: 14px 62px 14px 17px !important;
        background: #e9f0f6 !important;
        border-bottom: 1px solid #b9c7d3 !important;
    }

    .service-modal-head-strong .service-modal-icon {
        background: #d4e8f7 !important;
        color: #0d639f !important;
    }

    .service-modal-title-wrap span {
        color: #45596f !important;
    }

    .service-modal-title-wrap h4 {
        color: #132238 !important;
        font-size: 19px !important;
    }

    .service-edit-code {
        margin-left: auto;
        margin-right: 8px;
        padding: 5px 9px;
        border: 1px solid #aebdca;
        border-radius: 7px;
        background: #fff;
        text-align: center;
    }

    .service-edit-code span,
    .service-edit-code strong {
        display: block;
    }

    .service-edit-code span {
        color: #5b6d80;
        font-size: 9px;
        font-weight: 700;
    }

    .service-edit-code strong {
        color: #1769aa;
        font-size: 13px;
        font-weight: 800;
    }

    .service-modal-body-strong {
        padding: 14px 16px !important;
        background: #f6f8fb;
    }

    .service-edit-section {
        overflow: hidden;
        border: 1px solid #bdc9d5;
        border-radius: 9px;
        background: #fff;
    }

    .service-edit-section-head {
        padding: 8px 11px;
        border-bottom: 1px solid #cbd5de;
        background: #edf2f6;
    }

    .service-edit-section-head span,
    .service-edit-section-head strong {
        display: block;
    }

    .service-edit-section-head span {
        color: #52667b;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .service-edit-section-head strong {
        margin-top: 1px;
        color: #26384d;
        font-size: 12.5px;
        font-weight: 800;
    }

    .service-edit-grid-strong {
        display: grid;
        grid-template-columns: minmax(250px, 1.3fr) 180px 180px !important;
        gap: 10px;
        padding: 11px;
    }

    .service-edit-grid-strong .service-edit-description {
        grid-column: 1 / -1 !important;
    }

    .service-edit-grid-strong .service-field label {
        color: #2d4055 !important;
    }

    .service-edit-grid-strong .service-field .form-control,
    .service-edit-grid-strong .service-money-input {
        border-color: #b7c4d0 !important;
    }

    .service-change-reason-strong {
        margin-top: 11px !important;
        padding: 11px 12px !important;
        border: 1px solid #d2ad40 !important;
        background: #fff1bf !important;
    }

    .service-change-reason-strong .service-change-reason-head {
        margin-bottom: 4px !important;
    }

    .service-change-reason-strong .service-change-reason-head > i {
        color: #8e5d00 !important;
    }

    .service-change-reason-strong .service-change-reason-head span {
        color: #765618 !important;
    }

    .service-change-reason-strong .service-change-reason-head strong {
        color: #47330c !important;
    }

    .service-change-reason-strong p {
        margin: 0 0 7px;
        color: #5d491c;
        font-size: 11px;
        font-weight: 600;
    }

    .service-change-reason-strong .form-control {
        border-color: #c8a542 !important;
        background: #fffdf5 !important;
    }

    .service-modal-footer-strong {
        background: #eaf0f4 !important;
        border-top-color: #c4d0da !important;
    }

    .service-modal-footer-strong .service-modal-cancel {
        background: #dce4eb !important;
        color: #34465b !important;
    }

    .service-modal-footer-strong .service-modal-save {
        background: #0f7a45 !important;
    }

    /* Responsive */
    @media (max-width: 1199.98px) {
        .services-create-grid-clean {
            grid-template-columns: 1fr 1.6fr 150px 170px !important;
        }

        .services-create-grid-clean .service-create-action {
            grid-column: 1 / -1;
        }
    }

    @media (max-width: 991.98px) {
        .services-create-grid-clean,
        .service-edit-grid-strong {
            grid-template-columns: 1fr 1fr !important;
        }

        .services-create-grid-clean .service-description-field,
        .service-edit-grid-strong .service-edit-description {
            grid-column: 1 / -1 !important;
        }

        .service-edit-code {
            display: none;
        }
    }
    /* =========================================================
    CableTV Colombia V2 - Parámetros / Barrios
    PEGAR AL FINAL de public/cangrejoLayout/css/cabletv-v2.css
    ========================================================= */

    .neighborhoods-v2 {
        padding-top: 2px;
    }

    .neighborhoods-card {
        overflow: hidden;
        border: 0;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 3px 14px rgba(31, 41, 55, .08);
    }

    .neighborhoods-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 15px 18px;
        border-bottom: 1px solid #c9d4df;
        background: #f7f9fc;
    }

    .neighborhoods-kicker {
        margin-bottom: 2px;
        color: #3d5065;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .02em;
    }

    .neighborhoods-kicker i {
        margin-right: 5px;
        color: #1976d2;
    }

    .neighborhoods-head h4 {
        margin: 0;
        color: #132238;
        font-size: 21px;
        font-weight: 800;
    }

    .neighborhoods-head p {
        margin: 3px 0 0;
        color: #34465b;
        font-size: 13px;
        font-weight: 600;
    }

    .neighborhoods-counter {
        min-width: 125px;
        padding: 7px 11px;
        border: 1px solid #aebfce;
        border-radius: 9px;
        background: #e8f0f7;
        text-align: center;
    }

    .neighborhoods-counter span,
    .neighborhoods-counter strong {
        display: block;
    }

    .neighborhoods-counter span {
        color: #34465b;
        font-size: 10.5px;
        font-weight: 700;
    }

    .neighborhoods-counter strong {
        color: #132238;
        font-size: 19px;
        font-weight: 800;
    }

    .neighborhoods-create {
        margin: 12px 18px 0;
        overflow: hidden;
        border: 1px solid #bfcbd7;
        border-radius: 10px;
        background: #f5f8fb;
    }

    .neighborhoods-section-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 12px;
        border-bottom: 1px solid #bdc9d5;
        background: #e6eef5;
    }

    .neighborhoods-section-title span,
    .neighborhoods-list-head span {
        display: block;
        color: #46586d;
        font-size: 9.5px;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .neighborhoods-section-title h5,
    .neighborhoods-list-head h5 {
        margin: 1px 0 0;
        color: #132238;
        font-size: 15px;
        font-weight: 800;
    }

    .neighborhood-code-badge {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 5px 9px;
        border: 1px solid #aebdcc;
        border-radius: 7px;
        background: #fff;
    }

    .neighborhood-code-badge span {
        color: #4a5c70;
        font-size: 10px;
        font-weight: 700;
    }

    .neighborhood-code-badge strong {
        color: #1769aa;
        font-size: 13px;
        font-weight: 800;
    }

    .neighborhoods-create-grid {
        display: grid;
        grid-template-columns: minmax(230px, .8fr) minmax(420px, 1.8fr) auto;
        gap: 10px;
        align-items: end;
        padding: 11px 12px 13px;
    }

    .neighborhood-field {
        margin-bottom: 0;
    }

    .neighborhood-field label {
        margin-bottom: 4px;
        color: #26384d;
        font-size: 11.5px;
        font-weight: 750;
    }

    .neighborhood-field .form-control {
        height: 38px;
        border: 1px solid #b7c5d2;
        border-radius: 7px;
        background: #fff;
        color: #1f2937;
        font-size: 13.5px;
    }

    .neighborhood-create-action {
        display: flex;
        align-items: flex-end;
    }

    .neighborhood-save-btn {
        min-height: 38px;
        padding: 7px 13px;
        border: 0;
        border-radius: 7px;
        background: #0f7a45;
        color: #fff;
        box-shadow: 0 2px 5px rgba(15, 122, 69, .14);
        font-size: 12.5px;
        font-weight: 700;
        white-space: nowrap;
    }

    .neighborhood-save-btn:hover {
        background: #0b6639;
        color: #fff;
    }

    .neighborhoods-list {
        margin: 13px 18px 16px;
    }

    .neighborhoods-list-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 7px;
    }

    .neighborhoods-list-head small {
        color: #405167;
        font-size: 10.5px;
        font-weight: 600;
    }

    .neighborhoods-table {
        margin-bottom: 6px !important;
        color: #1f2937;
        font-size: 13.5px;
    }

    .neighborhoods-table thead th {
        padding: 8px 10px !important;
        border-top: 0 !important;
        border-bottom: 1px solid #b8c5d1 !important;
        background: #eaf0f5;
        color: #26384d !important;
        font-size: 12px;
        font-weight: 800;
        vertical-align: middle !important;
    }

    .neighborhoods-table tbody td {
        padding: 9px 10px !important;
        border-top: 1px solid #dce4ea !important;
        color: #263445;
        vertical-align: middle !important;
    }

    .neighborhoods-table tbody tr:hover {
        background: #f7fafc;
    }

    .neighborhood-id {
        color: #1769aa;
        font-weight: 800;
    }

    .neighborhood-name {
        color: #17283d;
        font-size: 13.5px;
        font-weight: 750;
    }

    .neighborhood-description {
        color: #405167;
        font-size: 12.5px;
        font-weight: 550;
    }

    .neighborhood-status {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 4px 8px;
        border-radius: 999px;
        background: #def2e7;
        color: #106a3d;
        font-size: 10.5px;
        font-weight: 750;
    }

    .neighborhood-actions {
        white-space: nowrap;
    }

    .neighborhood-action {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        min-height: 31px;
        padding: 5px 8px;
        margin: 1px;
        border: 0;
        border-radius: 6px;
        box-shadow: none !important;
        font-size: 10.5px;
        font-weight: 700;
    }

    .neighborhood-action-edit {
        background: #dcecf9;
        color: #0e5f99;
    }

    .neighborhood-action-edit:hover {
        background: #cce1f2;
        color: #0b4c79;
    }

    .neighborhood-action-disable {
        background: #f9dcda;
        color: #9e211d;
    }

    .neighborhood-action-disable:hover {
        background: #f1c9c6;
        color: #801a17;
    }

    /* DataTables */
    .neighborhoods-v2 .dataTables_wrapper .dataTables_length,
    .neighborhoods-v2 .dataTables_wrapper .dataTables_filter,
    .neighborhoods-v2 .dataTables_wrapper .dataTables_info {
        color: #3f4d5d !important;
        font-size: 12px;
        font-weight: 600;
    }

    .neighborhoods-v2 .dataTables_wrapper .dataTables_length select,
    .neighborhoods-v2 .dataTables_wrapper .dataTables_filter input {
        border: 1px solid #b9c6d1;
        border-radius: 6px;
        background: #fff;
        color: #1f2937;
    }

    /* Modal editar */
    .neighborhood-edit-modal .modal-dialog {
        max-width: 760px;
    }

    .neighborhood-edit-modal .modal-content {
        overflow: hidden;
        border: 0;
        border-radius: 12px;
        box-shadow: 0 18px 48px rgba(25, 39, 52, .24);
    }

    .neighborhood-edit-v2 {
        background: #f6f8fb;
    }

    .neighborhood-modal-head {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 76px;
        padding: 13px 62px 13px 16px;
        border-bottom: 1px solid #b9c7d3;
        background: #e9f0f6;
    }

    .neighborhood-modal-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border-radius: 9px;
        background: #d4e8f7;
        color: #0d639f;
        font-size: 16px;
    }

    .neighborhood-modal-title span {
        display: block;
        color: #45596f;
        font-size: 9.5px;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .neighborhood-modal-title h4 {
        margin: 1px 0 0;
        color: #132238;
        font-size: 19px;
        font-weight: 800;
    }

    .neighborhood-edit-code {
        margin-left: auto;
        margin-right: 8px;
        padding: 5px 9px;
        border: 1px solid #aebdca;
        border-radius: 7px;
        background: #fff;
        text-align: center;
    }

    .neighborhood-edit-code span,
    .neighborhood-edit-code strong {
        display: block;
    }

    .neighborhood-edit-code span {
        color: #5b6d80;
        font-size: 9px;
        font-weight: 700;
    }

    .neighborhood-edit-code strong {
        color: #1769aa;
        font-size: 13px;
        font-weight: 800;
    }

    .neighborhood-modal-close {
        position: absolute;
        top: 15px;
        right: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: 1px solid #c4cfda;
        border-radius: 7px;
        background: #f8fafc;
        color: #526273;
        cursor: pointer;
    }

    .neighborhood-modal-body {
        padding: 14px 16px;
        background: #f6f8fb;
    }

    .neighborhood-edit-section {
        overflow: hidden;
        border: 1px solid #bdc9d5;
        border-radius: 9px;
        background: #fff;
    }

    .neighborhood-edit-section-head {
        padding: 8px 11px;
        border-bottom: 1px solid #cbd5de;
        background: #edf2f6;
    }

    .neighborhood-edit-section-head span,
    .neighborhood-edit-section-head strong {
        display: block;
    }

    .neighborhood-edit-section-head span {
        color: #52667b;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .neighborhood-edit-section-head strong {
        color: #26384d;
        font-size: 12.5px;
        font-weight: 800;
    }

    .neighborhood-edit-grid {
        display: grid;
        grid-template-columns: .8fr 1.4fr;
        gap: 10px;
        padding: 12px;
    }

    .neighborhood-edit-note {
        display: flex;
        align-items: flex-start;
        gap: 7px;
        margin-top: 10px;
        padding: 8px 10px;
        border: 1px solid #cbd8e2;
        border-radius: 7px;
        background: #edf5fb;
        color: #405167;
        font-size: 11.5px;
        font-weight: 600;
        line-height: 1.35;
    }

    .neighborhood-edit-note i {
        margin-top: 2px;
        color: #1976b9;
    }

    .neighborhood-modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        padding: 10px 16px 13px;
        border-top: 1px solid #c4d0da;
        background: #eaf0f4;
    }

    .neighborhood-modal-footer .btn {
        min-width: 125px;
        min-height: 36px;
        border: 0;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 700;
    }

    .neighborhood-modal-cancel {
        background: #dce4eb;
        color: #34465b;
    }

    .neighborhood-modal-save {
        background: #0f7a45;
        color: #fff;
    }

    .neighborhood-modal-save:hover {
        background: #0b6639;
        color: #fff;
    }

    .neighborhood-modal-loading {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 180px;
        color: #526273;
        font-size: 13px;
        font-weight: 600;
    }

    /* Modal inactivar */
    .neighborhood-disable-modal .modal-content {
        border: 0;
        border-radius: 12px;
        box-shadow: 0 18px 48px rgba(25, 39, 52, .24);
    }

    .neighborhood-disable-modal .modal-header {
        align-items: center;
        padding: 13px 17px;
        border-bottom: 1px solid #d8e0e7;
    }

    .neighborhood-disable-kicker {
        display: block;
        color: #596879;
        font-size: 9.5px;
        font-weight: 800;
        letter-spacing: .04em;
    }

    .neighborhood-disable-modal .modal-title {
        margin: 1px 0 0;
        color: #172033;
        font-size: 18px;
        font-weight: 800;
    }

    .neighborhood-disable-modal .modal-body {
        padding: 20px;
        text-align: center;
    }

    .neighborhood-disable-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 47px;
        height: 47px;
        margin-bottom: 9px;
        border-radius: 50%;
        background: #f9dcda;
        color: #9e211d;
        font-size: 18px;
    }

    .neighborhood-disable-modal .modal-body h5 {
        margin: 0 0 7px;
        color: #172033;
        font-size: 15px;
        font-weight: 800;
    }

    .neighborhood-disable-modal .modal-body p {
        max-width: 420px;
        margin: 0 auto;
        color: #465568;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.4;
    }

    .neighborhood-disable-modal .modal-footer {
        padding: 10px 17px 13px;
        border-top: 1px solid #e0e6eb;
    }

    .neighborhood-disable-modal .modal-footer .btn {
        min-width: 115px;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 700;
    }

    @media (max-width: 991.98px) {
        .neighborhoods-create-grid {
            grid-template-columns: 1fr 1.5fr;
        }

        .neighborhood-create-action {
            grid-column: 1 / -1;
            justify-content: flex-end;
        }
    }

    @media (max-width: 575.98px) {
        .neighborhoods-head,
        .neighborhoods-list-head {
            align-items: flex-start;
            flex-direction: column;
        }

        .neighborhoods-counter {
            width: 100%;
        }

        .neighborhoods-create,
        .neighborhoods-list {
            margin-left: 10px;
            margin-right: 10px;
        }

        .neighborhoods-create-grid,
        .neighborhood-edit-grid {
            grid-template-columns: 1fr;
        }

        .neighborhood-action span {
            display: none;
        }
    }
/* =========================================================
   CableTV Colombia V2 - Reportes / Recaudos
   PEGAR AL FINAL de public/cangrejoLayout/css/cabletv-v2.css
   ========================================================= */

.collections-report-v2 {
    padding-top: 2px;
}

.collections-report-card {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(31, 41, 55, .08);
}

.collections-report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    border-bottom: 1px solid #c6d2dc;
    background: #f2f6fa;
}

.collections-report-kicker {
    margin-bottom: 2px;
    color: #3d5065;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
}

.collections-report-kicker i {
    margin-right: 5px;
    color: #1976d2;
}

.collections-report-head h4 {
    margin: 0;
    color: #132238;
    font-size: 22px;
    font-weight: 800;
}

.collections-report-head p {
    margin: 3px 0 0;
    color: #34465b;
    font-size: 13px;
    font-weight: 600;
}

.collections-report-range {
    min-width: 185px;
    padding: 8px 11px;
    border: 1px solid #aebfce;
    border-radius: 9px;
    background: #e7eff6;
}

.collections-report-range span,
.collections-report-range strong {
    display: block;
}

.collections-report-range span {
    color: #52667b;
    font-size: 10px;
    font-weight: 700;
}

.collections-report-range strong {
    margin-top: 2px;
    color: #17283d;
    font-size: 12.5px;
    font-weight: 800;
}

.collections-filter {
    padding: 11px 18px;
    border-bottom: 1px solid #d8e0e7;
    background: #fbfcfd;
}

.collections-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 34px minmax(220px, 1fr) auto;
    gap: 9px;
    align-items: end;
    max-width: 920px;
}

.collections-filter-field {
    margin-bottom: 0;
}

.collections-filter-field label {
    margin-bottom: 4px;
    color: #2d4055;
    font-size: 11.5px;
    font-weight: 750;
}

.collections-filter-field .form-control {
    height: 38px;
    border: 1px solid #b5c3d0;
    border-radius: 7px;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
}

.collections-filter-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    color: #607387;
}

.collections-filter-btn {
    min-height: 38px;
    padding: 7px 15px;
    border: 0;
    border-radius: 7px;
    background: #1769aa;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
}

.collections-filter-btn:hover {
    background: #12588f;
    color: #fff;
}

.collections-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    padding: 11px 18px;
    border-bottom: 1px solid #d7e0e7;
    background: #edf2f6;
}

.collections-summary-card {
    min-height: 84px;
    padding: 10px 12px;
    border: 1px solid #b9c6d1;
    border-radius: 9px;
    background: #fff;
}

.collections-summary-card span,
.collections-summary-card strong,
.collections-summary-card small {
    display: block;
}

.collections-summary-card span {
    color: #405167;
    font-size: 11px;
    font-weight: 750;
}

.collections-summary-card strong {
    margin: 2px 0;
    color: #132238;
    font-size: 19px;
    font-weight: 800;
}

.collections-summary-card small {
    color: #526273;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.3;
}

.collections-summary-paid {
    background: #e2f3e9;
    border-color: #9fcfb2;
}

.collections-summary-carried {
    background: #fff0c9;
    border-color: #e2be62;
}

.collections-summary-pending {
    background: #fbe5e3;
    border-color: #e2aaa6;
}

.collections-summary-periods {
    background: #e5eef7;
    border-color: #abc0d4;
}

.collections-body {
    padding: 13px 18px 17px;
}

.collections-section-head,
.collections-chart-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.collections-section-head span,
.collections-chart-head span {
    display: block;
    color: #46586d;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.collections-section-head h5,
.collections-chart-head h5 {
    margin: 1px 0 0;
    color: #132238;
    font-size: 15px;
    font-weight: 800;
}

.collections-section-head small,
.collections-chart-head small {
    color: #405167;
    font-size: 10.5px;
    font-weight: 600;
}

.collections-table {
    margin-bottom: 0 !important;
    font-size: 13.5px;
}

.collections-table thead th {
    padding: 8px 10px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #b8c5d1 !important;
    background: #e8eff5;
    color: #26384d !important;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle !important;
}

.collections-table tbody td {
    padding: 9px 10px !important;
    border-top: 1px solid #dce4ea !important;
    color: #263445;
    vertical-align: middle !important;
}

.collections-table tbody tr:hover {
    background: #f7fafc;
}

.collections-period strong,
.collections-period span {
    display: block;
}

.collections-period strong {
    color: #17283d;
    font-size: 13px;
    font-weight: 800;
}

.collections-period span {
    margin-top: 1px;
    color: #607084;
    font-size: 10.5px;
    font-weight: 600;
}

.collections-money {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.collections-money-paid {
    color: #116b3f;
}

.collections-money-carried {
    color: #936000;
}

.collections-money-pending {
    color: #9f2824;
}

.collections-detail-btn {
    min-height: 31px;
    padding: 5px 9px;
    border: 0;
    border-radius: 6px;
    background: #dcecf9;
    color: #0e5f99;
    font-size: 10.5px;
    font-weight: 700;
}

.collections-detail-btn:hover {
    background: #cce1f2;
    color: #0b4c79;
}

.collections-empty {
    padding: 24px !important;
    color: #607084 !important;
    text-align: center;
    font-weight: 600;
}

.collections-chart-card {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid #bac7d2;
    border-radius: 9px;
    background: #fff;
}

.collections-chart-head {
    margin: 0;
    padding: 9px 11px;
    border-bottom: 1px solid #cbd5dd;
    background: #edf2f6;
}

.collections-chart-container {
    position: relative;
    width: 100%;
    height: 365px;
    padding: 10px 12px 8px;
}

/* Detalle modal */
.collections-detail-modal .modal-dialog {
    max-width: 1220px;
    width: calc(100% - 34px);
}

.collections-detail-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(25, 39, 52, .26);
}

.collection-detail-v2 {
    background: #fff;
}

.collection-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #c5d0da;
    background: #e9f0f6;
}

.collection-detail-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.collection-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 9px;
    background: #d4e8f7;
    color: #0d639f;
}

.collection-detail-kicker {
    display: block;
    color: #45596f;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.collection-detail-title h4 {
    margin: 1px 0 0;
    color: #132238;
    font-size: 19px;
    font-weight: 800;
}

.collection-detail-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #c4cfda;
    border-radius: 7px;
    background: #f8fafc;
    color: #526273;
}

.collection-detail-summary {
    display: flex;
    gap: 9px;
    padding: 9px 15px;
    border-bottom: 1px solid #d8e0e7;
    background: #f8fafc;
}

.collection-detail-summary > div {
    min-width: 150px;
    padding: 6px 9px;
    border: 1px solid #cbd6df;
    border-radius: 7px;
    background: #fff;
}

.collection-detail-summary span,
.collection-detail-summary strong {
    display: block;
}

.collection-detail-summary span {
    color: #526273;
    font-size: 9.5px;
    font-weight: 700;
}

.collection-detail-summary strong {
    color: #17283d;
    font-size: 13px;
    font-weight: 800;
}

.collection-detail-body {
    padding: 10px 14px 7px;
}

.collection-detail-table {
    font-size: 12.5px;
}

.collection-detail-table thead th {
    padding: 7px 8px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #b9c6d1 !important;
    background: #edf2f6;
    color: #2d4055 !important;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.collection-detail-table tbody td {
    padding: 7px 8px !important;
    border-top: 1px solid #e0e6eb !important;
    color: #34465b;
    vertical-align: middle;
}

.collection-detail-invoice {
    color: #1769aa;
    font-weight: 800;
}

.collection-detail-status {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.collection-detail-status-paid {
    background: #def2e7;
    color: #106a3d;
}

.collection-detail-status-pending {
    background: #fff0c9;
    color: #8b5a00;
}

.collection-detail-status-carried {
    background: #e4edf6;
    color: #315c82;
}

.collection-detail-status-overdue {
    background: #f9dcda;
    color: #9e211d;
}

.collection-detail-status-other {
    background: #e8edf1;
    color: #465568;
}

.collection-detail-footer {
    display: flex;
    justify-content: flex-end;
    padding: 9px 14px 12px;
    border-top: 1px solid #d7e0e7;
    background: #edf2f6;
}

.collection-detail-close-btn {
    min-width: 120px;
    border: 0;
    border-radius: 7px;
    background: #dce4eb;
    color: #34465b;
    font-size: 12px;
    font-weight: 700;
}

.collections-detail-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 250px;
    color: #526273;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .collections-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collections-filter-grid {
        grid-template-columns: 1fr 28px 1fr;
    }

    .collections-filter-action {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .collections-report-head,
    .collections-section-head,
    .collections-chart-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .collections-report-range {
        width: 100%;
    }

    .collections-chart-container {
        height: 310px;
    }
}

@media (max-width: 575.98px) {
    .collections-summary,
    .collections-filter-grid {
        grid-template-columns: 1fr;
    }

    .collections-filter-arrow {
        display: none;
    }

    .collections-summary {
        padding-left: 10px;
        padding-right: 10px;
    }

    .collections-body,
    .collections-filter,
    .collections-report-head {
        padding-left: 12px;
        padding-right: 12px;
    }
}
/* =========================================================
   CableTV Colombia V2 - Reportes / Usuarios Morosos
   PEGAR AL FINAL de public/cangrejoLayout/css/cabletv-v2.css
   ========================================================= */

.overdue-report-v2 {
    padding-top: 2px;
}

.overdue-report-card {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(31, 41, 55, .08);
}

.overdue-report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    border-bottom: 1px solid #c6d2dc;
    background: #f2f6fa;
}

.overdue-report-kicker {
    margin-bottom: 2px;
    color: #3d5065;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
}

.overdue-report-kicker i {
    margin-right: 5px;
    color: #c58a10;
}

.overdue-report-head h4 {
    margin: 0;
    color: #132238;
    font-size: 22px;
    font-weight: 800;
}

.overdue-report-head p {
    margin: 3px 0 0;
    color: #34465b;
    font-size: 13px;
    font-weight: 600;
}

.overdue-period-badge {
    min-width: 170px;
    padding: 8px 11px;
    border: 1px solid #d9ba67;
    border-radius: 9px;
    background: #fff0c9;
}

.overdue-period-badge span,
.overdue-period-badge strong {
    display: block;
}

.overdue-period-badge span {
    color: #725820;
    font-size: 10px;
    font-weight: 700;
}

.overdue-period-badge strong {
    margin-top: 2px;
    color: #4b3509;
    font-size: 12.5px;
    font-weight: 800;
}

.overdue-summary {
    display: grid;
    grid-template-columns: minmax(190px, .7fr) minmax(240px, 1fr) minmax(360px, 1.6fr);
    gap: 9px;
    padding: 11px 18px;
    border-bottom: 1px solid #d7e0e7;
    background: #edf2f6;
}

.overdue-summary-card {
    min-height: 78px;
    padding: 9px 11px;
    border: 1px solid #b9c6d1;
    border-radius: 9px;
}

.overdue-summary-card span,
.overdue-summary-card strong,
.overdue-summary-card small {
    display: block;
}

.overdue-summary-card span {
    color: #405167;
    font-size: 10.5px;
    font-weight: 750;
}

.overdue-summary-card strong {
    margin: 1px 0;
    color: #132238;
    font-size: 20px;
    font-weight: 800;
}

.overdue-summary-card small {
    color: #526273;
    font-size: 10px;
    font-weight: 600;
}

.overdue-summary-users {
    background: #fff0c9;
    border-color: #e1bd63;
}

.overdue-summary-debt {
    background: #fbe5e3;
    border-color: #dfaaa6;
}

.overdue-summary-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #bdc9d4;
    border-radius: 9px;
    background: #fff;
}

.overdue-all-users-btn,
.overdue-print-btn {
    min-height: 36px;
    padding: 7px 11px;
    border: 0;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.overdue-all-users-btn {
    background: #dcecf9;
    color: #0e5f99;
}

.overdue-all-users-btn:hover {
    background: #cce1f2;
    color: #0b4c79;
}

.overdue-print-btn {
    background: #334a60;
    color: #fff;
}

.overdue-print-btn:hover {
    background: #263b4e;
    color: #fff;
}

.overdue-report-body {
    padding: 13px 18px 17px;
}

.overdue-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.overdue-section-head span {
    display: block;
    color: #46586d;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.overdue-section-head h5 {
    margin: 1px 0 0;
    color: #132238;
    font-size: 15px;
    font-weight: 800;
}

.overdue-section-head small {
    color: #405167;
    font-size: 10.5px;
    font-weight: 600;
}

.overdue-table {
    margin-bottom: 6px !important;
    font-size: 13.2px;
}

.overdue-table thead th {
    padding: 8px 9px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #b8c5d1 !important;
    background: #e8eff5;
    color: #26384d !important;
    font-size: 11.7px;
    font-weight: 800;
    vertical-align: middle !important;
    white-space: nowrap;
}

.overdue-table tbody td {
    padding: 8px 9px !important;
    border-top: 1px solid #dce4ea !important;
    color: #263445;
    vertical-align: middle !important;
}

.overdue-table tbody tr:hover {
    background: #f8fafc;
}

.overdue-document,
.overdue-date,
.overdue-address {
    color: #405167;
    font-size: 12px;
    font-weight: 600;
}

.overdue-client {
    color: #17283d;
    font-weight: 750;
}

.overdue-invoice {
    color: #1769aa;
    font-weight: 800;
    white-space: nowrap;
}

.overdue-money {
    color: #9f2824;
    font-weight: 800;
    white-space: nowrap;
}

.overdue-suspend-btn {
    min-height: 31px;
    padding: 5px 9px;
    border: 0;
    border-radius: 6px;
    background: #f6d8d5;
    color: #99221e;
    font-size: 10.5px;
    font-weight: 750;
}

.overdue-suspend-btn:hover {
    background: #efc5c1;
    color: #7d1815;
}

/* DataTables */
.overdue-report-v2 .dataTables_wrapper .dataTables_length,
.overdue-report-v2 .dataTables_wrapper .dataTables_filter,
.overdue-report-v2 .dataTables_wrapper .dataTables_info {
    color: #3f4d5d !important;
    font-size: 12px;
    font-weight: 600;
}

.overdue-report-v2 .dataTables_wrapper .dataTables_length select,
.overdue-report-v2 .dataTables_wrapper .dataTables_filter input {
    border: 1px solid #b9c6d1;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
}

/* Modal de suspensión */
.overdue-cut-modal .modal-dialog {
    max-width: 860px;
}

.overdue-cut-modal .modal-content,
.overdue-users-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(25, 39, 52, .26);
}

.overdue-cut-v2 {
    background: #f6f8fb;
}

.overdue-cut-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 76px;
    padding: 13px 62px 13px 16px;
    border-bottom: 1px solid #c1ccd6;
    background: #edf2f6;
}

.overdue-cut-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 41px;
    height: 41px;
    border-radius: 9px;
    background: #f6d8d5;
    color: #99221e;
    font-size: 16px;
}

.overdue-cut-head span {
    display: block;
    color: #52667b;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.overdue-cut-head h4 {
    margin: 1px 0 0;
    color: #132238;
    font-size: 19px;
    font-weight: 800;
}

.overdue-cut-close {
    position: absolute;
    top: 15px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #c4cfda;
    border-radius: 7px;
    background: #f8fafc;
    color: #526273;
    cursor: pointer;
}

.overdue-cut-body {
    padding: 13px 15px;
}

.overdue-cut-client-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr .8fr;
    gap: 9px;
}

.overdue-cut-info {
    padding: 9px 10px;
    border: 1px solid #bdc9d5;
    border-radius: 8px;
    background: #fff;
}

.overdue-cut-info span,
.overdue-cut-info strong,
.overdue-cut-info small {
    display: block;
}

.overdue-cut-info span {
    color: #52667b;
    font-size: 9.5px;
    font-weight: 700;
}

.overdue-cut-info strong {
    margin: 1px 0;
    color: #17283d;
    font-size: 13px;
    font-weight: 800;
}

.overdue-cut-info small {
    color: #526273;
    font-size: 10.5px;
    font-weight: 600;
}

.overdue-cut-warning {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 10px;
    padding: 10px 11px;
    border: 1px solid #d9b65b;
    border-radius: 8px;
    background: #fff0c9;
}

.overdue-cut-warning > i {
    margin-top: 2px;
    color: #a36a00;
}

.overdue-cut-warning strong,
.overdue-cut-warning span {
    display: block;
}

.overdue-cut-warning strong {
    color: #4b3509;
    font-size: 12px;
    font-weight: 800;
}

.overdue-cut-warning span {
    margin-top: 2px;
    color: #695423;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.35;
}

.overdue-cut-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.overdue-cut-form-grid .form-group {
    margin-bottom: 0;
}

.overdue-cut-form-grid label {
    margin-bottom: 4px;
    color: #2d4055;
    font-size: 11.5px;
    font-weight: 750;
}

.overdue-cut-form-grid .form-control {
    height: 38px;
    border: 1px solid #b7c5d2;
    border-radius: 7px;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
}

.overdue-cut-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 15px 13px;
    border-top: 1px solid #cbd5de;
    background: #eaf0f4;
}

.overdue-cut-footer .btn {
    min-width: 125px;
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

.overdue-cut-cancel {
    background: #dce4eb;
    color: #34465b;
}

.overdue-cut-confirm {
    background: #b62f2a;
    color: #fff;
}

.overdue-cut-confirm:hover {
    background: #982621;
    color: #fff;
}

.overdue-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 220px;
    color: #526273;
    font-size: 13px;
    font-weight: 600;
}

/* Todos los usuarios */
.overdue-users-modal .modal-dialog {
    max-width: 1250px;
    width: calc(100% - 34px);
}

.overdue-users-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid #c4d0da;
    background: #e9f0f6;
}

.overdue-users-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.overdue-users-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border-radius: 9px;
    background: #d5e8f7;
    color: #0d639f;
}

.overdue-users-title > div > span {
    display: block;
    color: #45596f;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.overdue-users-title h4 {
    margin: 1px 0 0;
    color: #132238;
    font-size: 19px;
    font-weight: 800;
}

.overdue-users-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #c4cfda;
    border-radius: 7px;
    background: #f8fafc;
    color: #526273;
    cursor: pointer;
}

.overdue-users-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-bottom: 1px solid #d7e0e7;
    background: #f8fafc;
}

.overdue-users-summary > div {
    min-width: 150px;
    padding: 5px 8px;
    border: 1px solid #cbd6df;
    border-radius: 7px;
    background: #fff;
}

.overdue-users-summary span,
.overdue-users-summary strong {
    display: block;
}

.overdue-users-summary span {
    color: #526273;
    font-size: 9.5px;
    font-weight: 700;
}

.overdue-users-summary strong {
    color: #17283d;
    font-size: 13px;
    font-weight: 800;
}

.overdue-users-summary p {
    margin: 0;
    color: #526273;
    font-size: 10.5px;
    font-weight: 600;
}

.overdue-users-body {
    padding: 9px 13px 6px;
}

.overdue-users-table {
    font-size: 12.3px;
}

.overdue-users-table thead th {
    padding: 7px 8px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #b9c6d1 !important;
    background: #edf2f6;
    color: #2d4055 !important;
    font-size: 10.8px;
    font-weight: 800;
    white-space: nowrap;
}

.overdue-users-table tbody td {
    padding: 7px 8px !important;
    border-top: 1px solid #e0e6eb !important;
    color: #34465b;
    vertical-align: middle;
}

.overdue-users-status,
.overdue-contract-suspended,
.overdue-no-action {
    display: inline-flex;
    align-items: center;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 9.8px;
    font-weight: 750;
    white-space: nowrap;
}

.overdue-users-status-paid {
    background: #def2e7;
    color: #106a3d;
}

.overdue-users-status-pending {
    background: #fff0c9;
    color: #8b5a00;
}

.overdue-users-status-other {
    background: #e8edf1;
    color: #465568;
}

.overdue-contract-suspended {
    background: #f9dcda;
    color: #9e211d;
}

.overdue-no-action {
    background: #e7edf2;
    color: #526273;
}

.overdue-users-footer {
    display: flex;
    justify-content: flex-end;
    padding: 8px 13px 11px;
    border-top: 1px solid #d7e0e7;
    background: #edf2f6;
}

.overdue-users-close-btn {
    min-width: 120px;
    border: 0;
    border-radius: 7px;
    background: #dce4eb;
    color: #34465b;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .overdue-summary {
        grid-template-columns: 1fr 1fr;
    }

    .overdue-summary-actions {
        grid-column: 1 / -1;
    }

    .overdue-cut-client-grid {
        grid-template-columns: 1fr 1fr;
    }

    .overdue-cut-client-grid > :last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .overdue-report-head,
    .overdue-section-head,
    .overdue-users-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .overdue-summary,
    .overdue-cut-client-grid,
    .overdue-cut-form-grid {
        grid-template-columns: 1fr;
    }

    .overdue-summary-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .overdue-period-badge {
        width: 100%;
    }
}
/* =========================================================
   CableTV Colombia V2 - Reportes / Usuarios Suspendidos
   PEGAR AL FINAL de public/cangrejoLayout/css/cabletv-v2.css
   ========================================================= */

.suspended-report-v2 { padding-top: 2px; }

.suspended-report-card {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(31, 41, 55, .08);
}

.suspended-report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    border-bottom: 1px solid #c6d2dc;
    background: #f2f6fa;
}

.suspended-report-kicker {
    margin-bottom: 2px;
    color: #3d5065;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
}

.suspended-report-kicker i {
    margin-right: 5px;
    color: #9d2f2a;
}

.suspended-report-head h4 {
    margin: 0;
    color: #132238;
    font-size: 22px;
    font-weight: 800;
}

.suspended-report-head p {
    margin: 3px 0 0;
    color: #34465b;
    font-size: 13px;
    font-weight: 600;
}

.suspended-print-btn {
    min-height: 36px;
    padding: 7px 12px;
    border: 0;
    border-radius: 7px;
    background: #334a60;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.suspended-print-btn:hover {
    background: #263b4e;
    color: #fff;
}

.suspended-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    padding: 11px 18px;
    border-bottom: 1px solid #d7e0e7;
    background: #edf2f6;
}

.suspended-summary-card {
    min-height: 82px;
    padding: 9px 11px;
    border: 1px solid #b9c6d1;
    border-radius: 9px;
}

.suspended-summary-card span,
.suspended-summary-card strong,
.suspended-summary-card small {
    display: block;
}

.suspended-summary-card span {
    color: #405167;
    font-size: 10.5px;
    font-weight: 750;
}

.suspended-summary-card strong {
    margin: 1px 0;
    color: #132238;
    font-size: 20px;
    font-weight: 800;
}

.suspended-summary-card small {
    color: #526273;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.suspended-summary-contracts {
    background: #fbe5e3;
    border-color: #dfa9a5;
}

.suspended-summary-records {
    background: #e5eef7;
    border-color: #abc0d4;
}

.suspended-summary-debt {
    background: #fff0c9;
    border-color: #e1bd63;
}

.suspended-summary-ready {
    background: #e2f3e9;
    border-color: #9fcfb2;
}

.suspended-report-body {
    padding: 13px 18px 17px;
}

.suspended-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.suspended-section-head span {
    display: block;
    color: #46586d;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.suspended-section-head h5 {
    margin: 1px 0 0;
    color: #132238;
    font-size: 15px;
    font-weight: 800;
}

.suspended-section-head small {
    max-width: 620px;
    color: #405167;
    font-size: 10.5px;
    font-weight: 600;
    text-align: right;
}

.suspended-table {
    margin-bottom: 6px !important;
    font-size: 13px;
}

.suspended-table thead th {
    padding: 8px 9px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #b8c5d1 !important;
    background: #e8eff5;
    color: #26384d !important;
    font-size: 11.5px;
    font-weight: 800;
    vertical-align: middle !important;
    white-space: nowrap;
}

.suspended-table tbody td {
    padding: 8px 9px !important;
    border-top: 1px solid #dce4ea !important;
    color: #263445;
    vertical-align: middle !important;
}

.suspended-table tbody tr:hover { background: #f8fafc; }

.suspended-document,
.suspended-address,
.suspended-date {
    color: #405167;
    font-size: 12px;
    font-weight: 600;
}

.suspended-client {
    color: #17283d;
    font-weight: 750;
}

.suspended-invoice {
    color: #1769aa;
    font-weight: 800;
    white-space: nowrap;
}

.suspended-invoice-status {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.suspended-invoice-paid {
    background: #def2e7;
    color: #106a3d;
}

.suspended-invoice-pending {
    background: #fff0c9;
    color: #8b5a00;
}

.suspended-debt {
    color: #9f2824;
    font-weight: 800;
    white-space: nowrap;
}

.suspended-debt-zero { color: #147044; }

.suspended-reconnect-btn {
    min-height: 31px;
    padding: 5px 9px;
    border: 0;
    border-radius: 6px;
    background: #dcecf9;
    color: #0e5f99;
    font-size: 10.5px;
    font-weight: 750;
}

.suspended-reconnect-btn:hover {
    background: #cce1f2;
    color: #0b4c79;
}

.suspended-report-v2 .dataTables_wrapper .dataTables_length,
.suspended-report-v2 .dataTables_wrapper .dataTables_filter,
.suspended-report-v2 .dataTables_wrapper .dataTables_info {
    color: #3f4d5d !important;
    font-size: 12px;
    font-weight: 600;
}

.suspended-report-v2 .dataTables_wrapper .dataTables_length select,
.suspended-report-v2 .dataTables_wrapper .dataTables_filter input {
    border: 1px solid #b9c6d1;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
}

.suspended-reconnect-modal .modal-dialog { max-width: 650px; }

.suspended-reconnect-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(25, 39, 52, .26);
}

.suspended-reconnect-modal .modal-header {
    align-items: center;
    padding: 13px 17px;
    border-bottom: 1px solid #c7d2dc;
    background: #edf2f6;
}

.suspended-reconnect-kicker {
    display: block;
    color: #52667b;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.suspended-reconnect-modal .modal-title {
    margin: 1px 0 0;
    color: #132238;
    font-size: 18px;
    font-weight: 800;
}

.suspended-reconnect-modal .modal-body {
    padding: 16px 17px;
    text-align: center;
}

.suspended-reconnect-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #dcecf9;
    color: #0e5f99;
    font-size: 18px;
}

.suspended-reconnect-modal .modal-body > h5 {
    margin: 0 0 11px;
    color: #17283d;
    font-size: 15px;
    font-weight: 800;
}

.suspended-reconnect-client {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: left;
}

.suspended-reconnect-client > div {
    padding: 8px 9px;
    border: 1px solid #c6d2dc;
    border-radius: 8px;
    background: #f8fafc;
}

.suspended-reconnect-client span,
.suspended-reconnect-client strong,
.suspended-reconnect-client small { display: block; }

.suspended-reconnect-client span {
    color: #607084;
    font-size: 9.5px;
    font-weight: 700;
}

.suspended-reconnect-client strong {
    margin: 1px 0;
    color: #17283d;
    font-size: 12.5px;
    font-weight: 800;
}

.suspended-reconnect-client small {
    color: #526273;
    font-size: 10px;
    font-weight: 600;
}

.suspended-reconnect-note {
    margin-top: 10px;
    padding: 9px 10px;
    border: 1px solid #d9b85f;
    border-radius: 8px;
    background: #fff0c9;
    text-align: left;
}

.suspended-note-row {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 3px 0;
    color: #5e4a1c;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.suspended-note-row i {
    width: 15px;
    margin-top: 2px;
    color: #9a6808;
    text-align: center;
}

.suspended-note-row strong {
    color: #49350b;
    font-weight: 800;
}

.suspended-reconnect-modal .modal-footer {
    padding: 10px 17px 13px;
    border-top: 1px solid #d7e0e7;
    background: #edf2f6;
}

.suspended-reconnect-modal .modal-footer .btn {
    min-width: 125px;
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

.suspended-reconnect-confirm {
    background: #1769aa;
    color: #fff;
}

.suspended-reconnect-confirm:hover {
    background: #12588f;
    color: #fff;
}

@media (max-width: 991.98px) {
    .suspended-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .suspended-report-head,
    .suspended-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .suspended-section-head small { text-align: left; }
}

@media (max-width: 575.98px) {
    .suspended-summary,
    .suspended-reconnect-client {
        grid-template-columns: 1fr;
    }

    .suspended-print-btn { width: 100%; }
}
/* =========================================================
   CableTV Colombia V2 - Seguridad / Administración
   PEGAR AL FINAL de public/cangrejoLayout/css/cabletv-v2.css
   ========================================================= */

.security-admin-v2 { padding-top: 2px; }

.security-admin-card {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(31, 41, 55, .09);
}

.security-admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    border-bottom: 1px solid #bfcbd6;
    background: #edf3f8;
}

.security-admin-kicker {
    margin-bottom: 2px;
    color: #40556b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.security-admin-kicker i {
    margin-right: 5px;
    color: #1769aa;
}

.security-admin-head h4 {
    margin: 0;
    color: #122239;
    font-size: 22px;
    font-weight: 800;
}

.security-admin-head p {
    margin: 3px 0 0;
    color: #35495e;
    font-size: 13px;
    font-weight: 600;
}

.security-primary-btn {
    min-height: 38px;
    padding: 7px 13px;
    border: 0;
    border-radius: 7px;
    background: #1769aa;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    box-shadow: 0 2px 6px rgba(23, 105, 170, .18);
}

.security-primary-btn:hover {
    background: #12578e;
    color: #fff;
}

.security-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    padding: 11px 18px;
    border-bottom: 1px solid #d4dee6;
    background: #e8eef3;
}

.security-summary-roles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.security-summary-card {
    min-height: 78px;
    padding: 9px 11px;
    border: 1px solid #b6c4d0;
    border-radius: 9px;
}

.security-summary-card span,
.security-summary-card strong,
.security-summary-card small {
    display: block;
}

.security-summary-card span {
    color: #405167;
    font-size: 10.5px;
    font-weight: 750;
}

.security-summary-card strong {
    margin: 1px 0;
    color: #132238;
    font-size: 20px;
    font-weight: 800;
}

.security-summary-card small {
    color: #526273;
    font-size: 10px;
    font-weight: 600;
}

.security-summary-total {
    background: #e4edf6;
    border-color: #a9bfd3;
}

.security-summary-active {
    background: #e1f1e8;
    border-color: #99c7ac;
}

.security-summary-inactive {
    background: #f8dfdd;
    border-color: #dda6a2;
}

.security-summary-transition,
.security-summary-permissions {
    background: #fff0c9;
    border-color: #dfbc62;
}

.security-admin-body {
    padding: 13px 18px 17px;
}

.security-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.security-section-head span {
    display: block;
    color: #46586d;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.security-section-head h5 {
    margin: 1px 0 0;
    color: #132238;
    font-size: 15px;
    font-weight: 800;
}

.security-section-head small {
    color: #405167;
    font-size: 10.5px;
    font-weight: 600;
}

.security-table {
    margin-bottom: 6px !important;
    font-size: 13px;
}

.security-table thead th {
    padding: 8px 9px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #b5c3cf !important;
    background: #e4ecf3;
    color: #26384d !important;
    font-size: 11.5px;
    font-weight: 800;
    vertical-align: middle !important;
    white-space: nowrap;
}

.security-table tbody td {
    padding: 8px 9px !important;
    border-top: 1px solid #d9e2e9 !important;
    color: #263445;
    vertical-align: middle !important;
}

.security-table tbody tr:hover {
    background: #f5f8fa;
}

.security-user-name,
.security-role-name {
    color: #122239;
    font-weight: 800;
}

.security-username {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 6px;
    background: #edf2f6;
    color: #334a60;
    font-weight: 700;
}

.security-role-badge,
.security-warning-badge,
.security-count-badge,
.security-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
}

.security-role-badge {
    border: 1px solid #b9cbd9;
    background: #e7eff6;
    color: #315a7b;
}

.security-warning-badge {
    background: #fff0c9;
    color: #835600;
}

.security-count-badge {
    min-width: 30px;
    justify-content: center;
    background: #e7eff6;
    color: #315a7b;
}

.security-count-permissions {
    background: #e1f1e8;
    color: #17663f;
}

.security-status-active {
    background: #daf0e3;
    color: #11683e;
}

.security-status-inactive {
    background: #f7dcda;
    color: #9b2924;
}

.security-muted {
    color: #748293;
    font-size: 11px;
    font-weight: 600;
}

.security-actions {
    white-space: nowrap;
}

.security-actions .btn {
    min-height: 31px;
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 750;
}

.security-action-edit {
    background: #dcecf9;
    color: #0e5f99;
}

.security-action-disable {
    background: #f6d8d5;
    color: #99221e;
}

.security-action-enable {
    background: #d9efe2;
    color: #11683e;
}

/* Modales y formularios */
.security-form-modal .modal-dialog {
    max-width: 920px;
}

.security-role-modal .modal-dialog {
    max-width: 1180px;
    width: calc(100% - 34px);
}

.security-form-modal .modal-content,
.security-role-modal .modal-content,
.security-state-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(25, 39, 52, .28);
}

.security-user-form-v2,
.security-role-form-v2 {
    background: #f7f9fb;
}

.security-form-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 76px;
    padding: 13px 62px 13px 16px;
    border-bottom: 1px solid #bfcbd5;
    background: #e7eff6;
}

.security-form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: #cee5f6;
    color: #0f659f;
    font-size: 16px;
}

.security-form-icon-role {
    background: #fff0c9;
    color: #956400;
}

.security-form-head span {
    display: block;
    color: #52667b;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.security-form-head h4 {
    margin: 1px 0 0;
    color: #122239;
    font-size: 20px;
    font-weight: 800;
}

.security-form-close {
    position: absolute;
    top: 15px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #bac8d4;
    border-radius: 7px;
    background: #f8fafc;
    color: #526273;
    cursor: pointer;
}

.security-form-body,
.security-role-form-body {
    padding: 13px 15px;
}

.security-form-section,
.security-password-panel,
.security-role-panel,
.security-role-definition,
.security-permission-group {
    border: 1px solid #b8c6d2;
    border-radius: 9px;
    background: #fff;
}

.security-form-section,
.security-role-definition {
    padding: 11px 12px;
}

.security-form-section-title span,
.security-role-panel-head span,
.security-permission-head span {
    display: block;
    color: #4a5f75;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.security-form-section-title strong,
.security-role-panel-head strong,
.security-permission-head strong {
    display: block;
    margin-top: 1px;
    color: #17283d;
    font-size: 13.5px;
    font-weight: 800;
}

.security-user-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 9px 10px;
    margin-top: 8px;
}

.security-user-email {
    grid-column: 1 / -1;
}

.security-user-grid .form-group,
.security-password-grid .form-group,
.security-role-definition .form-group {
    margin-bottom: 0;
}

.security-user-grid label,
.security-password-grid label,
.security-role-definition label {
    margin-bottom: 4px;
    color: #2d4055;
    font-size: 11.5px;
    font-weight: 750;
}

.security-user-grid .form-control,
.security-password-grid .form-control,
.security-role-definition .form-control {
    height: 39px;
    border: 1px solid #b5c3d0;
    border-radius: 7px;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
}

.security-user-grid small,
.security-password-panel small {
    display: block;
    margin-top: 3px;
    color: #68788a;
    font-size: 9.8px;
    font-weight: 600;
}

.security-password-panel {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 12px;
    margin-top: 10px;
    padding: 11px 12px;
    background: #eef4f8;
}

.security-password-panel > div:first-child > span {
    color: #4a5f75;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.security-password-panel > div:first-child > strong {
    display: block;
    color: #17283d;
    font-size: 13px;
    font-weight: 800;
}

.security-password-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.security-role-panel {
    margin-top: 10px;
    padding: 11px 12px;
}

.security-role-panel-head,
.security-permission-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.security-role-panel-head small {
    color: #5b6d80;
    font-size: 10px;
    font-weight: 600;
}

.security-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.security-role-option,
.security-permission-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 8px 9px;
    border: 1px solid #c7d2dc;
    border-radius: 8px;
    background: #f9fbfc;
    cursor: pointer;
}

.security-role-option:hover,
.security-permission-option:hover {
    border-color: #91aec4;
    background: #f2f7fa;
}

.security-role-option input,
.security-permission-option input {
    position: absolute;
    opacity: 0;
}

.security-role-check,
.security-permission-check {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 1px solid #aebdcc;
    border-radius: 6px;
    background: #fff;
    color: transparent;
}

.security-role-option input:checked + .security-role-check,
.security-permission-option input:checked + .security-permission-check {
    border-color: #1769aa;
    background: #1769aa;
    color: #fff;
}

.security-role-copy,
.security-permission-copy {
    min-width: 0;
}

.security-role-copy strong,
.security-role-copy small,
.security-permission-copy strong,
.security-permission-copy small,
.security-permission-copy code {
    display: block;
}

.security-role-copy strong,
.security-permission-copy strong {
    color: #17283d;
    font-size: 11.5px;
    font-weight: 800;
}

.security-role-copy small,
.security-permission-copy small {
    margin-top: 1px;
    color: #5d6e80;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.3;
}

.security-role-definition {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 10px;
}

.security-permission-head {
    margin: 11px 0 8px;
    padding: 0 2px;
}

.security-permission-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}

.security-permission-tools > span {
    color: #526273;
    font-size: 10px;
    font-weight: 600;
}

.security-permission-tools .btn,
.security-module-toggle {
    border: 1px solid #bcc9d4;
    background: #fff;
    color: #40556b;
    font-size: 9.5px;
    font-weight: 700;
}

.security-permission-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    max-height: 490px;
    overflow-y: auto;
    padding-right: 2px;
}

.security-permission-group {
    overflow: hidden;
}

.security-permission-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    padding: 7px 9px;
    border-bottom: 1px solid #c6d1da;
    background: #eaf1f6;
}

.security-permission-group-head > div {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2c4258;
    font-size: 11px;
}

.security-permission-list {
    display: grid;
    gap: 5px;
    padding: 7px;
}

.security-permission-copy code {
    margin-top: 3px;
    padding: 0;
    background: transparent;
    color: #1769aa;
    font-size: 8.5px;
}

.security-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 15px 13px;
    border-top: 1px solid #c7d2dc;
    background: #e8eef3;
}

.security-form-footer .btn {
    min-width: 130px;
    min-height: 36px;
    border: 0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 750;
}

.security-form-cancel {
    background: #d9e2e9;
    color: #34465b;
}

.security-form-save {
    background: #16814f;
    color: #fff;
}

.security-form-save:hover {
    background: #126b42;
    color: #fff;
}

.security-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 260px;
    color: #526273;
    font-size: 13px;
    font-weight: 600;
}

/* Cambio de estado */
.security-state-modal .modal-dialog {
    max-width: 550px;
}

.security-state-modal .modal-header {
    align-items: center;
    padding: 13px 16px;
    border-bottom: 1px solid #c7d2dc;
    background: #edf2f6;
}

.security-state-modal .modal-header span:first-child {
    display: block;
    color: #52667b;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.security-state-modal .modal-title {
    margin: 1px 0 0;
    color: #132238;
    font-size: 18px;
    font-weight: 800;
}

.security-state-modal .modal-body {
    padding: 17px 18px;
    text-align: center;
}

.security-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 9px;
    border-radius: 50%;
    background: #f7dcda;
    color: #9b2924;
    font-size: 18px;
}

.security-state-icon-enable {
    background: #daf0e3;
    color: #11683e;
}

.security-state-modal .modal-body h5 {
    margin: 0 0 5px;
    color: #17283d;
    font-size: 15px;
    font-weight: 800;
}

.security-state-modal .modal-body p {
    max-width: 430px;
    margin: 0 auto;
    color: #4c5e70;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
}

.security-state-modal .modal-footer {
    padding: 9px 16px 12px;
    border-top: 1px solid #d6dfe6;
    background: #edf2f6;
}

.security-state-modal .modal-footer .btn {
    min-width: 120px;
    border: 0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 750;
}

@media (max-width: 991.98px) {
    .security-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .security-permission-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .security-admin-head,
    .security-section-head,
    .security-role-panel-head,
    .security-permission-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .security-user-grid,
    .security-password-panel,
    .security-password-grid,
    .security-role-definition {
        grid-template-columns: 1fr;
    }

    .security-user-email {
        grid-column: auto;
    }
}

@media (max-width: 575.98px) {
    .security-summary,
    .security-summary-roles,
    .security-role-grid {
        grid-template-columns: 1fr;
    }

    .security-primary-btn {
        width: 100%;
    }

    .security-permission-tools {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }
}
/* =========================================================
   Seguridad V2 - Fase 3C
   Sincroniza interfaz con permisos reales.
   PEGAR AL FINAL de public/cangrejoLayout/css/cabletv-v2.css
   ========================================================= */

.security-readonly-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid #c5d1db;
    border-radius: 7px;
    background: #edf2f6;
    color: #41566b;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.security-readonly-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    padding: 10px 12px;
    border: 1px solid #b9cad8;
    border-radius: 8px;
    background: #edf4f8;
    color: #31465b;
}

.security-readonly-note > i {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #dceaf4;
    color: #1769aa;
}

.security-readonly-note strong,
.security-readonly-note span {
    display: block;
}

.security-readonly-note strong {
    margin-bottom: 1px;
    color: #17283d;
    font-size: 13px;
    font-weight: 800;
}

.security-readonly-note span {
    color: #40556b;
    font-size: 11.5px;
    font-weight: 600;
}

.security-readonly-note-billing {
    margin: 12px 0 0;
}

/* Fragmento que recibe un modal AJAX cuando alguien intenta una
   acción bloqueada desde una pestaña antigua o una interfaz desactualizada. */
.security-denied-inline {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 108px;
    padding: 18px 54px 18px 18px;
    border: 1px solid #e2b9b6;
    border-radius: 10px;
    background: #fff7f6;
    color: #6f2925;
}

.security-denied-inline-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f5d8d5;
    color: #992923;
    font-size: 16px;
}

.security-denied-inline strong,
.security-denied-inline span {
    display: block;
}

.security-denied-inline strong {
    margin-bottom: 2px;
    color: #752822;
    font-size: 14px;
    font-weight: 800;
}

.security-denied-inline span {
    color: #61413e;
    font-size: 12px;
    font-weight: 600;
}

.security-denied-inline-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border: 1px solid #d9c0bd;
    border-radius: 7px;
    background: #fff;
    color: #704640;
    cursor: pointer;
}
/* =========================================================
   Seguridad V2 - Fase 4A
   Cuenta de usuario + cambio de contraseña
   PEGAR AL FINAL de public/cangrejoLayout/css/cabletv-v2.css
   ========================================================= */

/* ---------- Menú de cuenta ---------- */
.cabletv-user-menu-v2 {
    display: flex;
    align-items: center;
}

.cabletv-user-toggle {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 5px 9px !important;
}

.cabletv-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dceaf4;
    color: #1769aa;
    font-size: 13px;
}

.cabletv-user-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 220px;
    line-height: 1.12;
}

.cabletv-user-copy strong {
    overflow: hidden;
    color: #213246;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabletv-user-copy small {
    overflow: hidden;
    margin-top: 2px;
    color: #68788a;
    font-size: 9.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabletv-user-dropdown {
    width: 295px;
    overflow: hidden;
    padding: 0;
    border: 1px solid #b9c7d3;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(27, 42, 57, .18);
}

.cabletv-user-dropdown-head {
    padding: 11px 13px;
    border-bottom: 1px solid #c8d3dc;
    background: #eaf1f6;
}

.cabletv-user-dropdown-head span,
.cabletv-user-dropdown-head strong,
.cabletv-user-dropdown-head small {
    display: block;
}

.cabletv-user-dropdown-head span {
    color: #5b6d80;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
}

.cabletv-user-dropdown-head strong {
    margin-top: 2px;
    color: #17283d;
    font-size: 13px;
    font-weight: 800;
}

.cabletv-user-dropdown-head small {
    margin-top: 1px;
    color: #596b7c;
    font-size: 10px;
    font-weight: 600;
}

.cabletv-user-dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 9px;
    padding: 9px 12px !important;
    color: #2c4054 !important;
}

.cabletv-user-dropdown-item:hover {
    background: #f0f5f8 !important;
}

.cabletv-user-dropdown-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 7px;
    background: #e0edf6;
    color: #1769aa;
}

.cabletv-user-dropdown-item strong,
.cabletv-user-dropdown-item small {
    display: block;
}

.cabletv-user-dropdown-item strong {
    font-size: 11.5px;
    font-weight: 800;
}

.cabletv-user-dropdown-item small {
    margin-top: 1px;
    color: #68788a;
    font-size: 9.5px;
    font-weight: 600;
}

.cabletv-user-logout .cabletv-user-dropdown-icon {
    background: #f6dfdd;
    color: #a02b25;
}

/* ---------- Página contraseña ---------- */
.security-password-page {
    padding-top: 2px;
    padding-bottom: 18px;
}

.security-password-shell {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #b8c6d2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(29, 43, 57, .10);
}

.security-password-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border-bottom: 1px solid #bdcad5;
    background: #e7eff6;
}

.security-password-hero-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #cee5f6;
    color: #12659e;
    font-size: 18px;
}

.security-password-hero span {
    display: block;
    color: #50667c;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .05em;
}

.security-password-hero h3 {
    margin: 1px 0 2px;
    color: #14253a;
    font-size: 21px;
    font-weight: 800;
}

.security-password-hero p {
    margin: 0;
    color: #40556b;
    font-size: 11.5px;
    font-weight: 600;
}

.security-password-required {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 12px 15px 0;
    padding: 9px 11px;
    border: 1px solid #dfbd67;
    border-radius: 8px;
    background: #fff1ca;
    color: #6c510d;
}

.security-password-required > i {
    color: #a87500;
    font-size: 15px;
}

.security-password-required strong,
.security-password-required span {
    display: block;
}

.security-password-required strong {
    font-size: 11.5px;
    font-weight: 800;
}

.security-password-required span {
    margin-top: 1px;
    font-size: 10px;
    font-weight: 600;
}

.security-password-account {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr;
    gap: 8px;
    padding: 12px 15px;
}

.security-password-account > div {
    padding: 8px 9px;
    border: 1px solid #c3cfd9;
    border-radius: 8px;
    background: #f6f9fb;
}

.security-password-account span,
.security-password-account strong {
    display: block;
}

.security-password-account span {
    color: #607286;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.security-password-account strong {
    overflow: hidden;
    margin-top: 2px;
    color: #26394e;
    font-size: 11.5px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.security-password-form {
    margin: 0 15px 15px;
    padding: 13px;
    border: 1px solid #b9c7d3;
    border-radius: 9px;
    background: #f8fafb;
}

.security-password-form-title {
    margin-bottom: 10px;
}

.security-password-form-title span,
.security-password-form-title strong {
    display: block;
}

.security-password-form-title span {
    color: #50667c;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
}

.security-password-form-title strong {
    margin-top: 1px;
    color: #17283d;
    font-size: 13.5px;
    font-weight: 800;
}

.security-password-form label {
    margin-bottom: 4px;
    color: #2e4358;
    font-size: 11.5px;
    font-weight: 750;
}

.security-password-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.security-password-input {
    position: relative;
}

.security-password-input > i {
    position: absolute;
    top: 50%;
    left: 11px;
    z-index: 2;
    color: #6a7c8f;
    font-size: 12px;
    transform: translateY(-50%);
}

.security-password-input .form-control {
    height: 41px;
    padding-left: 34px;
    padding-right: 42px;
    border: 1px solid #b6c4d0;
    border-radius: 7px;
    color: #1f2e3e;
    font-size: 13px;
}

.security-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #64778b;
    cursor: pointer;
    transform: translateY(-50%);
}

.security-password-toggle:hover {
    background: #e8eff4;
    color: #1769aa;
}

.security-password-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
    padding: 9px 10px;
    border: 1px solid #c9d4dd;
    border-radius: 7px;
    background: #eef4f7;
}

.security-password-rules div {
    color: #44596e;
    font-size: 10px;
    font-weight: 650;
}

.security-password-rules i {
    margin-right: 4px;
    color: #16814f;
}

.security-password-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 11px;
}

.security-password-actions .btn {
    min-height: 36px;
    padding: 7px 13px;
    border: 0;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 750;
}

.security-password-cancel {
    background: #dce4ea;
    color: #33485c;
}

.security-password-save {
    background: #16814f;
    color: #fff;
}

.security-password-save:hover {
    background: #126b42;
    color: #fff;
}

@media (max-width: 767.98px) {
    .cabletv-user-copy small {
        display: none;
    }

    .security-password-account,
    .security-password-grid {
        grid-template-columns: 1fr;
    }

    .security-password-rules {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Seguridad V2 - Fase 4B
   Auditoría visible
   PEGAR AL FINAL de public/cangrejoLayout/css/cabletv-v2.css
   ========================================================= */

.security-audit-page {
    padding-top: 2px;
    padding-bottom: 18px;
}

.security-audit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    padding: 13px 15px;
    border: 1px solid #b9c7d3;
    border-radius: 10px;
    background: #e8f0f6;
}

.security-audit-head span {
    display: block;
    color: #557087;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
}

.security-audit-head h3 {
    margin: 1px 0 2px;
    color: #17293d;
    font-size: 20px;
    font-weight: 800;
}

.security-audit-head p {
    margin: 0;
    color: #485e73;
    font-size: 11px;
    font-weight: 600;
}

.security-audit-head-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #a9c1d4;
    border-radius: 7px;
    background: #d8e7f2;
    color: #315874;
    font-size: 10px;
    font-weight: 800;
}

.security-audit-head-badge i {
    margin-right: 4px;
}

.security-audit-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.security-audit-card {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 72px;
    padding: 10px 11px;
    border: 1px solid #bcc9d4;
    border-radius: 9px;
    background: #fff;
}

.security-audit-card-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #deebf4;
    color: #1769aa;
    font-size: 13px;
}

.security-audit-card-warning .security-audit-card-icon {
    background: #f7e3df;
    color: #a53a32;
}

.security-audit-card span,
.security-audit-card strong,
.security-audit-card small {
    display: block;
}

.security-audit-card span {
    color: #5d7083;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .03em;
}

.security-audit-card strong {
    margin-top: 1px;
    color: #1d3044;
    font-size: 18px;
    font-weight: 850;
    line-height: 1;
}

.security-audit-card small {
    margin-top: 3px;
    color: #68798a;
    font-size: 9px;
    font-weight: 600;
}

.security-audit-filter {
    margin-bottom: 10px;
    padding: 10px 11px;
    border: 1px solid #bac8d3;
    border-radius: 9px;
    background: #f7f9fb;
}

.security-audit-filter-grid {
    display: grid;
    grid-template-columns: 125px 125px 180px 210px minmax(190px, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.security-audit-filter .form-group {
    margin-bottom: 0;
}

.security-audit-filter label {
    margin-bottom: 3px;
    color: #42596e;
    font-size: 9.5px;
    font-weight: 800;
}

.security-audit-filter .form-control {
    height: 35px;
    padding: 5px 8px;
    border: 1px solid #b4c3cf;
    border-radius: 6px;
    color: #24374b;
    font-size: 10.5px;
}

.security-audit-filter-actions {
    display: flex;
    gap: 5px;
}

.security-audit-filter-actions .btn {
    height: 35px;
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 750;
    white-space: nowrap;
}

.security-audit-search-btn {
    background: #1769aa;
    color: #fff;
}

.security-audit-search-btn:hover {
    background: #125b94;
    color: #fff;
}

.security-audit-clear-btn {
    background: #dfe6ec;
    color: #334b60;
}

.security-audit-table-card {
    overflow: hidden;
    border: 1px solid #b9c7d2;
    border-radius: 10px;
    background: #fff;
}

.security-audit-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border-bottom: 1px solid #c3ced7;
    background: #edf3f7;
}

.security-audit-table-head strong,
.security-audit-table-head small {
    display: block;
}

.security-audit-table-head strong {
    color: #22384c;
    font-size: 12px;
    font-weight: 800;
}

.security-audit-table-head small {
    margin-top: 1px;
    color: #637487;
    font-size: 9.5px;
    font-weight: 600;
}

.security-audit-result-count {
    padding: 4px 7px;
    border-radius: 5px;
    background: #dce8f1;
    color: #395c75;
    font-size: 9.5px;
    font-weight: 800;
}

.security-audit-table {
    margin-bottom: 0;
}

.security-audit-table thead th {
    padding: 7px 8px;
    border-top: 0;
    border-bottom: 1px solid #aebdc8;
    background: #f4f7f9;
    color: #43586c;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    white-space: nowrap;
}

.security-audit-table tbody td {
    padding: 7px 8px;
    border-top: 1px solid #dbe2e8;
    color: #31475b;
    font-size: 10px;
    vertical-align: middle;
}

.security-audit-table tbody tr:hover {
    background: #f5f8fa;
}

.security-audit-date,
.security-audit-ip {
    white-space: nowrap;
}

.security-audit-user strong,
.security-audit-user small,
.security-audit-module strong,
.security-audit-module small {
    display: block;
}

.security-audit-user strong,
.security-audit-module strong {
    color: #263b4e;
    font-size: 10px;
    font-weight: 800;
}

.security-audit-user small,
.security-audit-module small {
    margin-top: 1px;
    color: #758493;
    font-size: 8.8px;
    font-weight: 600;
}

.security-audit-event {
    display: inline-block;
    padding: 3px 6px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 8.8px;
    font-weight: 800;
    white-space: nowrap;
}

.audit-event-ok {
    border-color: #a8d4bd;
    background: #e2f3ea;
    color: #1c6943;
}

.audit-event-danger {
    border-color: #e2b0aa;
    background: #f9e4e1;
    color: #9b3028;
}

.audit-event-password {
    border-color: #b8cceb;
    background: #e5eef9;
    color: #315f98;
}

.audit-event-admin {
    border-color: #d3c5e7;
    background: #eee8f6;
    color: #655083;
}

.security-audit-detail-cell {
    min-width: 230px;
    max-width: 390px;
}

.security-audit-detail-btn {
    width: 29px;
    height: 28px;
    padding: 0;
    border: 1px solid #b8c7d2;
    border-radius: 6px;
    background: #eef4f7;
    color: #1769aa;
    font-size: 10px;
}

.security-audit-detail-btn:hover {
    background: #dceaf3;
    color: #125a91;
}

.security-audit-empty {
    padding: 28px 10px;
    text-align: center;
}

.security-audit-empty i,
.security-audit-empty strong,
.security-audit-empty span {
    display: block;
}

.security-audit-empty i {
    margin-bottom: 6px;
    color: #7d8c9b;
    font-size: 20px;
}

.security-audit-empty strong {
    color: #31465a;
    font-size: 12px;
}

.security-audit-empty span {
    margin-top: 2px;
    color: #6b7c8c;
    font-size: 10px;
}

.security-audit-modal {
    overflow: hidden;
    border: 0;
    border-radius: 10px;
}

.security-audit-modal .modal-header {
    align-items: center;
    padding: 10px 13px;
    border-bottom: 1px solid #b9c7d2;
    background: #e8f0f6;
}

.security-audit-modal .modal-header span {
    display: block;
    color: #5c7185;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.security-audit-modal .modal-title {
    margin-top: 1px;
    color: #1c3044;
    font-size: 14px;
    font-weight: 800;
}

.security-audit-modal .modal-body {
    padding: 12px;
}

.security-audit-modal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.security-audit-modal-grid > div {
    min-height: 58px;
    padding: 7px 8px;
    border: 1px solid #c6d1da;
    border-radius: 7px;
    background: #f6f8fa;
}

.security-audit-modal-grid span,
.security-audit-modal-grid strong,
.security-audit-modal-grid small {
    display: block;
}

.security-audit-modal-grid span,
.security-audit-modal-detail > span {
    color: #687a8c;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.security-audit-modal-grid strong {
    margin-top: 2px;
    color: #2c4155;
    font-size: 10.5px;
    font-weight: 800;
    word-break: break-word;
}

.security-audit-modal-grid small {
    margin-top: 1px;
    color: #728293;
    font-size: 9px;
    font-weight: 600;
}

.security-audit-modal-detail {
    margin-top: 8px;
    padding: 8px 9px;
    border: 1px solid #c6d1da;
    border-radius: 7px;
    background: #f8fafb;
}

.security-audit-modal-detail p {
    margin: 3px 0 0;
    color: #33495e;
    font-size: 10px;
    line-height: 1.45;
    word-break: break-word;
}

@media (max-width: 1199.98px) {
    .security-audit-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .security-audit-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .security-audit-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .security-audit-cards,
    .security-audit-filter-grid,
    .security-audit-modal-grid {
        grid-template-columns: 1fr;
    }

    .security-audit-filter-actions {
        justify-content: flex-end;
    }
}
/* =========================================================
   Seguridad V2 - Fase 5A
   Auditoría operativa
   PEGAR AL FINAL de public/cangrejoLayout/css/cabletv-v2.css
   ========================================================= */

.security-audit-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.security-audit-affected {
    min-width: 120px;
    color: #27465f !important;
    font-weight: 750;
}

@media (max-width: 1399.98px) {
    .security-audit-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .security-audit-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .security-audit-cards {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   CLIENTES V2
   PEGAR AL FINAL de public/cangrejoLayout/css/cabletv-v2.css
   ========================================================= */

.clients-v2,
.client-history-v2 {
    width: 100%;
}

.clients-v2-header,
.client-history-v2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid #cbd9e4;
    border-radius: 10px;
    background: #edf5fa;
}

.clients-v2-kicker,
.client-history-v2-title > div > span,
.client-history-section-head > div > span,
.client-edit-v2-intro span {
    display: block;
    margin-bottom: 2px;
    color: #355c78;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}

.clients-v2-header h4,
.client-history-v2-header h4 {
    margin: 0;
    color: #14283a;
    font-size: 20px;
    font-weight: 800;
}

.clients-v2-header p,
.client-history-v2-header p {
    margin: 3px 0 0;
    color: #536b7d;
    font-size: 12px;
    line-height: 1.4;
}

.clients-v2-total {
    display: flex;
    align-items: center;
    min-width: 175px;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid #c5d7e5;
    border-radius: 8px;
    background: #fff;
}

.clients-v2-total-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border-radius: 8px;
    background: #e4f1f9;
    color: #1677ad;
}

.clients-v2-total small,
.client-history-v2-summary small {
    display: block;
    color: #60788a;
    font-size: 9.5px;
    font-weight: 800;
}

.clients-v2-total strong {
    display: block;
    color: #172c3d;
    font-size: 18px;
    line-height: 1.05;
}

.clients-v2-card,
.client-history-section,
.client-history-card {
    border: 1px solid #d4dee6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(25, 45, 63, .04);
}

.clients-v2-card-head,
.client-history-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #dce4ea;
    background: #f8fafc;
}

.clients-v2-card-head h5,
.client-history-section-head h5 {
    margin: 0;
    color: #193247;
    font-size: 14px;
    font-weight: 800;
}

.clients-v2-card-head small {
    display: block;
    margin-top: 2px;
    color: #708291;
    font-size: 10.5px;
}

.clients-v2-readonly {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid #c9d9e5;
    border-radius: 6px;
    background: #eef5fa;
    color: #355f7c;
    font-size: 10.5px;
    font-weight: 700;
}

.clients-v2-table-wrap {
    padding: 0 10px 8px;
}

.clients-v2-table {
    margin-bottom: 0 !important;
    font-size: 12px;
}

.clients-v2-table thead th {
    padding: 9px 8px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #cdd8e0 !important;
    color: #43596a;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    white-space: nowrap;
}

.clients-v2-table tbody td {
    padding: 7px 8px !important;
    border-top: 1px solid #edf1f4 !important;
    vertical-align: middle !important;
    color: #2b3d4c;
}

.clients-v2-document {
    color: #20394d;
    font-weight: 800;
}

.clients-v2-person {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
}

.clients-v2-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #e8f2f8;
    color: #1777ad;
    font-size: 12px;
    font-weight: 800;
}

.clients-v2-person strong {
    display: block;
    color: #173047;
    font-size: 11.8px;
    line-height: 1.15;
}

.clients-v2-person small {
    display: block;
    margin-top: 2px;
    color: #8898a5;
    font-size: 9.5px;
}

.clients-v2-contact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.clients-v2-contact i {
    color: #7894a8;
    font-size: 9px;
}

.clients-v2-email,
.clients-v2-address {
    display: block;
    max-width: 235px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clients-v2-actions {
    display: flex;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.clients-v2-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
}

.clients-v2-btn-history {
    border: 1px solid #bcd6c4;
    background: #eef8f1;
    color: #287643;
}

.clients-v2-btn-history:hover {
    background: #dff2e5;
    color: #205f36;
}

.clients-v2-btn-edit {
    border: 1px solid #bed7e7;
    background: #eef7fb;
    color: #156f9d;
}

.clients-v2-btn-edit:hover {
    background: #dfeff7;
    color: #115a7f;
}

.clients-v2-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 130px;
    color: #587184;
    font-size: 12px;
    font-weight: 700;
}

.clients-v2-loading-page {
    min-height: 280px;
}

.clients-edit-modal .modal-content {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
}

.clients-edit-modal .modal-header {
    align-items: flex-start;
    padding: 11px 15px;
    border-bottom: 1px solid #dbe4ea;
    background: #eef5fa;
}

.clients-edit-modal .modal-header span {
    display: block;
    color: #517087;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
}

.clients-edit-modal .modal-title {
    margin: 1px 0 0;
    color: #18344a;
    font-size: 15px;
    font-weight: 800;
}

.clients-edit-modal .modal-body {
    padding: 0;
}


/* Editar cliente */
.client-edit-v2 {
    padding: 14px;
}

.client-edit-v2-intro {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #d9e5ed;
    border-radius: 8px;
    background: #f7fafc;
}

.client-edit-v2-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: #e7f2f9;
    color: #187bb2;
    font-size: 16px;
}

.client-edit-v2-intro h5 {
    margin: 0;
    color: #173147;
    font-size: 14px;
    font-weight: 800;
}

.client-edit-v2-intro p {
    margin: 2px 0 0;
    color: #697e8e;
    font-size: 10.5px;
}

.client-edit-v2-section {
    margin-bottom: 10px;
    padding: 10px 12px 2px;
    border: 1px solid #e0e7ec;
    border-radius: 8px;
}

.client-edit-v2-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

.client-edit-v2-section-title > i {
    color: #2b7da8;
    font-size: 13px;
}

.client-edit-v2-section-title strong {
    display: block;
    color: #263f52;
    font-size: 11.5px;
}

.client-edit-v2-section-title small {
    display: block;
    color: #84939f;
    font-size: 9.5px;
}

.client-edit-v2 .form-group {
    margin-bottom: 9px;
}

.client-edit-v2 label {
    margin-bottom: 3px;
    color: #465f72;
    font-size: 10.5px;
    font-weight: 700;
}

.client-edit-v2 .form-control,
.client-edit-v2 .custom-select {
    height: 34px;
    border-color: #ccd9e2;
    border-radius: 6px;
    font-size: 11.5px;
}

.client-edit-v2-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid #e1e7ec;
}

.client-edit-v2-footer small {
    color: #778c9c;
    font-size: 9.8px;
}

.client-edit-v2-footer .btn {
    min-width: 110px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}


/* Historial */
.client-history-v2 {
    padding: 10px 0 4px;
}

.client-history-v2-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-history-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #bfd2df;
    border-radius: 7px;
    background: #fff;
    color: #306887;
}

.client-history-v2-summary {
    display: flex;
    gap: 7px;
}

.client-history-v2-summary > div {
    min-width: 95px;
    padding: 7px 9px;
    border: 1px solid #c7d9e5;
    border-radius: 7px;
    background: #fff;
}

.client-history-v2-summary strong {
    display: block;
    margin-top: 1px;
    color: #173044;
    font-size: 13px;
    font-weight: 800;
}

.client-history-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.client-history-card {
    padding: 12px;
}

.client-history-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.client-history-card-head > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: #eaf4fa;
    color: #227dad;
    font-size: 12px;
}

.client-history-card-head span {
    display: block;
    color: #698296;
    font-size: 9px;
    font-weight: 800;
}

.client-history-card-head strong {
    display: block;
    color: #243e52;
    font-size: 12px;
}

.client-history-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
}

.client-history-data-grid > div {
    min-width: 0;
}

.client-history-data-wide {
    grid-column: span 2;
}

.client-history-data-grid small,
.client-history-order-dates small {
    display: block;
    color: #8796a1;
    font-size: 9.5px;
    font-weight: 700;
}

.client-history-data-grid strong,
.client-history-order-dates strong {
    display: block;
    margin-top: 1px;
    color: #2c4354;
    font-size: 11px;
    font-weight: 700;
}

.client-history-section {
    margin-bottom: 10px;
    overflow: hidden;
}

.client-history-count,
.client-history-billing-mini span {
    display: inline-flex;
    align-items: center;
    padding: 4px 7px;
    border: 1px solid #d3dfe7;
    border-radius: 6px;
    background: #fff;
    color: #5f7484;
    font-size: 9.5px;
    font-weight: 700;
}

.client-history-billing-mini {
    display: flex;
    gap: 5px;
}

.client-history-orders {
    padding: 7px 10px;
}

.client-history-order {
    display: grid;
    grid-template-columns: 34px minmax(220px, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 8px 3px;
    border-bottom: 1px solid #edf1f4;
}

.client-history-order:last-child {
    border-bottom: 0;
}

.client-history-order-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    font-size: 10px;
}

.client-history-order-icon.is-done {
    background: #e8f5ec;
    color: #26804a;
}

.client-history-order-icon.is-pending {
    background: #fff2db;
    color: #a16a00;
}

.client-history-order-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.client-history-order-title strong {
    color: #294154;
    font-size: 11px;
}

.client-history-order-title span {
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 8.5px;
    font-weight: 800;
}

.client-history-order-title span.is-done {
    background: #e5f4e9;
    color: #247644;
}

.client-history-order-title span.is-pending {
    background: #fff0d0;
    color: #946100;
}

.client-history-order-main > small {
    display: block;
    margin-top: 2px;
    color: #8798a5;
    font-size: 9.5px;
}

.client-history-order-dates {
    display: flex;
    gap: 16px;
}

.client-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    color: #7d919f;
    text-align: center;
}

.client-history-empty i {
    margin-bottom: 5px;
    font-size: 22px;
}

.client-history-empty strong {
    color: #536a7b;
    font-size: 11.5px;
}

.client-history-empty span {
    font-size: 10px;
}

.client-history-table-wrap {
    padding: 0 9px 8px;
}

.client-history-table {
    margin-bottom: 0;
    font-size: 10.5px;
}

.client-history-table thead th {
    padding: 7px 6px !important;
    border-top: 0 !important;
    border-bottom: 1px solid #d0dae2 !important;
    color: #506777;
    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
}

.client-history-table td {
    padding: 6px !important;
    border-top: 1px solid #edf1f4 !important;
    vertical-align: middle !important;
}

.client-history-money {
    color: #1f3f54;
    font-weight: 800;
    white-space: nowrap;
}

.client-history-observation {
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-history-status {
    display: inline-flex;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 8.5px;
    font-weight: 800;
    white-space: nowrap;
}

.client-history-status-paid {
    background: #e3f4e8;
    color: #257244;
}

.client-history-status-pending {
    background: #e5f2f9;
    color: #216f98;
}

.client-history-status-overdue {
    background: #fde8e5;
    color: #a84235;
}

.client-history-status-suspended {
    background: #fff0d6;
    color: #8a5a00;
}

.client-history-status-neutral {
    background: #eef1f4;
    color: #667985;
}


@media (max-width: 1199.98px) {
    .clients-v2-header,
    .client-history-v2-header {
        align-items: flex-start;
    }

    .client-history-v2-header {
        flex-direction: column;
    }

    .clients-v2-email,
    .clients-v2-address {
        max-width: 165px;
    }
}

@media (max-width: 767.98px) {
    .clients-v2-header {
        flex-direction: column;
        align-items: stretch;
    }

    .clients-v2-total {
        min-width: 0;
    }

    .client-history-info-grid {
        grid-template-columns: 1fr;
    }

    .client-history-order {
        grid-template-columns: 32px 1fr;
    }

    .client-history-order-dates {
        grid-column: 2;
    }

    .client-history-v2-summary {
        flex-wrap: wrap;
    }

    .client-edit-v2-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .client-edit-v2-footer > div {
        display: flex;
        justify-content: flex-end;
        gap: 6px;
    }
}
/* =========================================================
   CLIENTES V2 - AJUSTE DE DENSIDAD Y LEGIBILIDAD
   Pegar DESPUÉS del parche CLIENTES V2 existente.
   ========================================================= */

/*
 * Objetivo:
 * - evitar que la información se riegue en monitores grandes;
 * - subir el tamaño de letra sin volver la pantalla pesada;
 * - conservar buena densidad en portátiles;
 * - aprovechar el espacio agrupando mejor la información.
 */

/* El contenido deja de estirarse indefinidamente */
.clients-v2,
.client-history-v2 {
    width: min(100%, 1380px);
    margin-left: auto;
    margin-right: auto;
}

/* ---------- CABECERAS ---------- */

.clients-v2-kicker,
.client-history-v2-title > div > span,
.client-history-section-head > div > span,
.client-edit-v2-intro span {
    font-size: 11px;
}

.clients-v2-header h4,
.client-history-v2-header h4 {
    font-size: 22px;
}

.clients-v2-header p,
.client-history-v2-header p {
    font-size: 13.5px;
    line-height: 1.35;
}

.clients-v2-total small,
.client-history-v2-summary small {
    font-size: 10.5px;
}

.clients-v2-total strong {
    font-size: 20px;
}


/* ---------- LISTADO CLIENTES ---------- */

.clients-v2-card-head h5,
.client-history-section-head h5 {
    font-size: 15px;
}

.clients-v2-card-head small {
    font-size: 11.5px;
}

.clients-v2-table {
    font-size: 13px;
}

.clients-v2-table thead th {
    font-size: 11.5px;
    padding: 9px 8px !important;
}

.clients-v2-table tbody td {
    padding: 8px !important;
}

.clients-v2-person {
    min-width: 210px;
}

.clients-v2-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 13px;
}

.clients-v2-person strong {
    font-size: 13px;
}

.clients-v2-person small {
    font-size: 10.5px;
}

.clients-v2-email,
.clients-v2-address {
    max-width: 210px;
}

.clients-v2-btn {
    font-size: 11.5px;
}


/* ---------- HISTORIAL: CABECERA ---------- */

.client-history-v2-header {
    padding: 13px 15px;
}

.client-history-v2-title {
    flex: 1 1 auto;
}

.client-history-v2-summary {
    flex: 0 0 auto;
}

.client-history-v2-summary > div {
    min-width: 118px;
    padding: 8px 10px;
}

.client-history-v2-summary > div:last-child {
    min-width: 180px;
}

.client-history-v2-summary strong {
    font-size: 15px;
}


/* ---------- CLIENTE + SERVICIO ---------- */

.client-history-info-grid {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 10px;
}

.client-history-card {
    padding: 13px 14px;
}

.client-history-card-head span {
    font-size: 10px;
}

.client-history-card-head strong {
    font-size: 13.5px;
}

.client-history-data-grid {
    gap: 7px 18px;
}

.client-history-data-grid small,
.client-history-order-dates small {
    font-size: 10.5px;
}

.client-history-data-grid strong,
.client-history-order-dates strong {
    font-size: 12.5px;
}


/* ---------- ÓRDENES ---------- */

/* Evita el hueco gigante del centro en monitores anchos */
.client-history-order {
    grid-template-columns: 34px minmax(300px, 1fr) minmax(290px, 380px);
    gap: 10px;
    padding: 9px 4px;
}

.client-history-order-title strong {
    font-size: 12.5px;
}

.client-history-order-title span {
    font-size: 9.5px;
}

.client-history-order-main > small {
    font-size: 10.5px;
}

.client-history-order-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.client-history-order-dates > div {
    min-width: 0;
}


/* ---------- FACTURACIÓN ---------- */

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

.client-history-table thead th {
    font-size: 10.5px;
    padding: 8px 7px !important;
}

.client-history-table td {
    padding: 7px !important;
}

.client-history-money {
    font-size: 12.5px;
}

.client-history-observation {
    max-width: 230px;
}

.client-history-status {
    font-size: 9.5px;
    padding: 4px 7px;
}

.client-history-count,
.client-history-billing-mini span {
    font-size: 10.5px;
}


/* ---------- EDITAR CLIENTE ---------- */

.client-edit-v2 {
    font-size: 13px;
}

.client-edit-v2-intro h5 {
    font-size: 15px;
}

.client-edit-v2-intro p {
    font-size: 11.5px;
}

.client-edit-v2-section-title strong {
    font-size: 12.5px;
}

.client-edit-v2-section-title small {
    font-size: 10.5px;
}

.client-edit-v2 label {
    font-size: 11.5px;
}

.client-edit-v2 .form-control,
.client-edit-v2 .custom-select {
    height: 36px;
    font-size: 12.5px;
}

.client-edit-v2-footer small {
    font-size: 10.5px;
}

.client-edit-v2-footer .btn {
    font-size: 12px;
}


/* ---------- LAPTOP ---------- */

@media (max-width: 1440px) {
    .clients-v2,
    .client-history-v2 {
        width: 100%;
    }

    .client-history-v2-header {
        gap: 12px;
    }

    .client-history-order {
        grid-template-columns: 32px minmax(250px, 1fr) minmax(245px, 330px);
    }

    .client-history-table {
        font-size: 11.5px;
    }
}


/* ---------- TABLET ---------- */

@media (max-width: 991.98px) {
    .client-history-info-grid {
        grid-template-columns: 1fr;
    }

    .client-history-order {
        grid-template-columns: 32px 1fr;
    }

    .client-history-order-dates {
        grid-column: 2;
    }

    .client-history-v2-summary {
        width: 100%;
        flex-wrap: wrap;
    }
}
/* =========================================================
   CLIENTES V2 - RESUMEN FINANCIERO
   Pegar al FINAL de cabletv-v2.css
   ========================================================= */

.client-history-v2-summary > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.client-history-summary-note {
    display: block;
    margin-top: 2px;
    color: #718696;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.2;
}

.client-history-v2-summary > div:nth-child(1) {
    min-width: 165px;
}

.client-history-v2-summary > div:nth-child(2) {
    min-width: 165px;
}

.client-history-v2-summary > div:nth-child(3) {
    min-width: 205px;
}

@media (max-width: 991.98px) {
    .client-history-v2-summary > div {
        min-width: 150px !important;
    }
}


/* =========================================================
   CLIENTES V2 - ESTADO DE CUENTA
   ========================================================= */
.client-history-v2-title {
    flex: 1 1 auto;
    min-width: 0;
}

.client-history-print {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    margin-left: 8px;
    padding: 7px 11px;
    border: 1px solid #8eb8d2;
    border-radius: 7px;
    background: #ffffff;
    color: #236f9a;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(25, 45, 63, .04);
}

.client-history-print:hover,
.client-history-print:focus {
    border-color: #5d9dc4;
    background: #eaf4fa;
    color: #165c83;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .client-history-v2-title {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .client-history-print {
        margin-left: 44px;
    }
}

/* =========================================================
CableTV V2 - Órdenes manuales / generales
========================================================= */
.orders-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.orders-new-btn {
    min-height: 31px;
    padding: 5px 10px;
    font-size: 10.5px;
}

.order-type-maintenance {
    background: #eee9fb;
    color: #6649a5;
}

.order-type-repair {
    background: #fdebdc;
    color: #a85b1b;
}

.order-action-general {
    background: #e8edf9;
    color: #405fa5;
}

.order-origin-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.order-origin-option {
    margin: 0;
    padding: 10px 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #dfe5e9;
    border-radius: 9px;
    background: #fafbfc;
    cursor: pointer;
    transition: .15s ease;
}

.order-origin-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.order-origin-option > span {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef2f5;
    color: #66737d;
}

.order-origin-option > div {
    display: flex;
    flex-direction: column;
}

.order-origin-option strong {
    color: #35404a;
    font-size: 11.5px;
}

.order-origin-option small {
    margin-top: 1px;
    color: #7c8790;
    font-size: 9.5px;
}

.order-origin-option.active {
    border-color: #96c9e1;
    background: #f1f9fc;
}

.order-origin-option.active > span {
    background: #dff1f8;
    color: #1682ba;
}

.order-create-section {
    margin-top: 8px;
    padding: 8px 9px 9px;
    border: 1px solid #e4e9ed;
    border-radius: 8px;
    background: #fafcfd;
}

.order-form-fields .order-plain-control,
.order-form-fields textarea.order-textarea,
.order-textarea {
    padding-left: 10px !important;
}

.order-textarea {
    min-height: 76px;
    resize: vertical;
    border: 1px solid #d8dee3;
    border-radius: 7px;
    box-shadow: none;
    font-size: 12px;
}

.order-work-description {
    margin-top: 9px;
    padding: 9px 10px;
    border: 1px solid #e3e8ec;
    border-radius: 8px;
    background: #fafbfc;
}

.order-work-description span {
    display: block;
    margin-bottom: 3px;
    color: #8a949c;
    font-size: 9.5px;
}

.order-work-description strong {
    color: #35404a;
    font-size: 11.5px;
    font-weight: 650;
}

.order-detail-grid-secondary {
    grid-template-columns: repeat(3, 1fr);
}

.order-result-card-wide {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 767.98px) {
    .orders-head-actions {
        align-items: flex-end;
        flex-direction: column;
    }

    .order-origin-switch,
    .order-result-card-wide {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   Facturación puntual de servicios + relación factura/orden
   ========================================================= */
.service-invoice-v2 { padding: 0.75rem; }
.service-invoice-card { border: 0; box-shadow: 0 3px 14px rgba(31, 50, 70, .08); }
.service-invoice-head { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; background:#fff; padding:1.35rem 1.5rem; }
.service-invoice-head h4 { margin:.15rem 0 .2rem; font-weight:700; }
.service-invoice-head p { margin:0; color:#66788a; }
.service-invoice-period { min-width:180px; border:1px solid #bfd1e2; background:#eef6fc; padding:.7rem .9rem; border-radius:.55rem; }
.service-invoice-period span,.service-value-card span,.service-client-preview span { display:block; font-size:.72rem; color:#697b8c; text-transform:uppercase; font-weight:700; }
.service-invoice-period strong { display:block; margin-top:.15rem; }
.service-invoice-body { padding:1.35rem 1.5rem; }
.service-invoice-rule { display:flex; gap:.8rem; padding:.85rem 1rem; border-radius:.55rem; background:#f4f8fb; border:1px solid #dce7ef; margin-bottom:1.1rem; }
.service-invoice-rule i { color:#2680bd; margin-top:.2rem; }
.service-invoice-rule strong,.service-invoice-rule span { display:block; }
.service-invoice-rule span { color:#657889; font-size:.86rem; margin-top:.15rem; }
.service-client-preview { display:grid; grid-template-columns:1fr .7fr 1.4fr; gap:.75rem; margin:-.25rem 0 1rem; }
.service-client-preview > div { background:#fbfcfd; border:1px solid #e0e7ed; border-radius:.45rem; padding:.6rem .75rem; }
.service-client-preview strong { display:block; margin-top:.15rem; font-size:.9rem; }
.service-value-card { height:calc(100% - 1rem); min-height:76px; background:#eaf7ef; border:1px solid #b9dfc7; border-radius:.55rem; padding:.72rem .9rem; margin-bottom:1rem; }
.service-value-card strong { display:block; font-size:1.35rem; color:#176d38; margin:.1rem 0; }
.service-value-card small { color:#587061; }
.service-invoice-footer { display:flex; justify-content:flex-end; gap:.65rem; background:#fff; padding:1rem 1.5rem; }
.payments-head-action { margin-left:auto; align-self:center; }
.payment-order-status,.order-invoice-link { display:flex; flex-direction:column; align-items:center; line-height:1.1; }
.payment-order-status small,.order-invoice-link small { margin-top:.2rem; font-size:.72rem; font-weight:700; }
.payment-order-status .is-done,.order-invoice-link .is-paid { color:#198754; }
.payment-order-status .is-open,.order-invoice-link .is-pending { color:#b77900; }
.order-service-price { display:block; margin-top:.35rem; color:#6b7d8c; font-size:.75rem; }
.order-linked-invoice { display:grid; grid-template-columns:repeat(3,1fr); gap:.75rem; margin:1rem 0; padding:.85rem; border:1px solid #cfe0ec; background:#f3f8fc; border-radius:.5rem; }
.order-linked-invoice span { display:block; color:#6c7e8c; font-size:.72rem; text-transform:uppercase; font-weight:700; }
.order-linked-invoice strong { display:block; margin-top:.15rem; }
@media (max-width: 768px) {
  .service-invoice-head { flex-direction:column; }
  .service-invoice-period { width:100%; }
  .service-client-preview,.order-linked-invoice { grid-template-columns:1fr; }
}


/* CTV V2: tablas operativas compactas. Solo las vistas marcadas, sin cambios de datos. */
.ctv-mobile-detail {display:none!important;}
.ctv-compact-table {width:100%!important;font-size:12px;line-height:1.25;border-collapse:collapse!important;}
.ctv-compact-table thead th {background:#eff4f7;color:#29465c;border-bottom:1px solid #cbd9e4!important;padding:7px 8px!important;font-size:11px;vertical-align:middle;}
.ctv-compact-table tbody td {padding:5px 8px!important;vertical-align:middle;border-color:#e2e9ef!important;line-height:1.25;}
.ctv-compact-table tbody tr:hover {background:#f2f7fb!important;}
.ctv-compact-table .btn {font-size:11px;line-height:1.2;padding:5px 8px;}
.ctv-compact-table .ctv-inline-id {display:inline!important;margin-left:4px;font-size:10px;color:#64788a;font-weight:400;}
.ctv-compact-table .order-client small {display:inline;}
.ctv-compact-table .order-client strong {display:inline;}
.ctv-compact-table .clients-v2-avatar {width:25px;height:25px;min-width:25px;font-size:11px;}
.ctv-compact-table .clients-v2-person {gap:5px;}
.dataTables_wrapper:has(.ctv-compact-table) .dataTables_length,.dataTables_wrapper:has(.ctv-compact-table) .dataTables_filter {font-size:12px;margin-bottom:5px;}
.dataTables_wrapper:has(.ctv-compact-table) .dataTables_info,.dataTables_wrapper:has(.ctv-compact-table) .dataTables_paginate {font-size:11px;margin-top:5px;}
.dataTables_wrapper:has(.ctv-compact-table) .pagination {margin:2px 0;flex-wrap:wrap;justify-content:flex-end;gap:2px;}
.dataTables_wrapper:has(.ctv-compact-table) .page-link {padding:4px 7px;font-size:11px;}
@media(max-width:767.98px){
 .ctv-compact-table {table-layout:fixed!important;min-width:0!important;max-width:100%!important;font-size:11px;}
 .ctv-compact-table th,.ctv-compact-table td {width:auto!important;min-width:0!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;}
 .ctv-compact-table thead th {padding:5px 4px!important;font-size:10px;}
 .ctv-compact-table tbody td {padding:5px 4px!important;}
 .ctv-compact-table .ctv-mobile-detail {display:block!important;font-size:10px;line-height:1.2;font-weight:400;color:#61788a;margin:1px 0;overflow-wrap:anywhere;white-space:normal!important;}
 .ctv-compact-table .ctv-inline-id {display:inline!important;margin-left:2px;}
 .ctv-compact-table .btn {min-height:30px;font-size:10px;padding:4px 5px;white-space:normal!important;max-width:100%;margin:1px 0;}
 .ctv-compact-table .order-actions,.ctv-compact-table .service-actions,.ctv-compact-table .neighborhood-actions,.ctv-compact-table .clients-v2-actions {white-space:normal!important;min-width:0!important;display:table-cell;}
 .ctv-compact-table .clients-v2-actions {display:flex;flex-direction:column;align-items:stretch;gap:2px;}
 .ctv-compact-table .clients-v2-avatar {display:none;}
 .ctv-compact-table .clients-v2-person,.ctv-compact-table .order-client,.ctv-compact-table .clients-v2-contact {display:block;min-width:0;}
 .ctv-tab-suspendidos tr>*:nth-child(1),.ctv-tab-suspendidos tr>*:nth-child(n+3):nth-child(-n+7),
 .ctv-tab-morosos tr>*:nth-child(1),.ctv-tab-morosos tr>*:nth-child(n+3):nth-child(-n+6),
 .ctv-tab-todos tr>*:nth-child(1),.ctv-tab-todos tr>*:nth-child(n+3):nth-child(-n+5),.ctv-tab-todos tr>*:nth-child(7),
 .ctv-tab-ordenes tr>*:nth-child(2),.ctv-tab-ordenes tr>*:nth-child(n+4):nth-child(-n+8),
 .ctv-tab-barrios tr>*:nth-child(1),.ctv-tab-barrios tr>*:nth-child(3),
 .ctv-tab-servicios tr>*:nth-child(1),.ctv-tab-servicios tr>*:nth-child(3),.ctv-tab-servicios tr>*:nth-child(5),
 .ctv-tab-suscriptores tr>*:nth-child(1),.ctv-tab-suscriptores tr>*:nth-child(3),
 .ctv-tab-clientes tr>*:nth-child(1),.ctv-tab-clientes tr>*:nth-child(n+3):nth-child(-n+5),
 .ctv-tab-retiros tr>*:nth-child(3) {display:none!important;}
 .ctv-tab-retiros tr>*:nth-child(5){display:none!important;}
 .ctv-tab-retiros tr>*:nth-child(1),.ctv-tab-ordenes tr>*:nth-child(1){width:16%!important;}
 .ctv-tab-suspendidos tr>*:last-child,.ctv-tab-morosos tr>*:last-child,.ctv-tab-todos tr>*:last-child {width:27%!important;}
 .ctv-tab-suspendidos tr>*:nth-child(8),.ctv-tab-morosos tr>*:nth-child(7),.ctv-tab-todos tr>*:nth-child(6){width:25%!important;}
 .ctv-tab-ordenes tr>*:last-child,.ctv-tab-clientes tr>*:last-child,.ctv-tab-barrios tr>*:last-child,.ctv-tab-servicios tr>*:last-child {width:29%!important;}
 .ctv-tab-suscriptores tr>*:nth-child(4),.ctv-tab-suscriptores tr>*:nth-child(5){width:25%!important;}
 .ctv-tab-retiros tr>*:last-child{width:20%!important;}
 .ctv-tab-retiros tr>*:nth-child(4){width:22%!important;}
 .ctv-tab-servicios tr>*:nth-child(4){width:24%!important;}
 .ctv-compact-table td[colspan]{display:table-cell!important;width:auto!important;}
 .table-responsive:has(.ctv-compact-table){overflow-x:auto;min-width:0;}
 .dataTables_wrapper:has(.ctv-compact-table) .dataTables_filter,.dataTables_wrapper:has(.ctv-compact-table) .dataTables_length {float:none;text-align:left;width:100%;margin:2px 0 5px;}
 .dataTables_wrapper:has(.ctv-compact-table) .dataTables_filter label{display:flex;gap:4px;align-items:center;width:100%;margin-bottom:0;}
 .dataTables_wrapper:has(.ctv-compact-table) .dataTables_filter input{min-width:0;flex:1;width:100%;margin:0;}
 .dataTables_wrapper:has(.ctv-compact-table) .pagination {justify-content:center;}
 .dataTables_wrapper:has(.ctv-compact-table) .dataTables_paginate .paginate_button{padding:0!important;margin:0 1px!important;}
}

@media(max-width:767.98px){
 .ctv-compact-table .order-client strong {display:block;}
 .ctv-compact-table .order-client .ctv-inline-id {margin-left:0;}
 .ctv-compact-table .btn,.ctv-compact-table .btn span,.ctv-compact-table .order-type,.ctv-compact-table .subscriber-status {overflow-wrap:anywhere;white-space:normal!important;}
 .ctv-compact-table .service-actions .btn,.ctv-compact-table .neighborhood-actions .btn {display:block;width:100%;margin:2px 0;}
 .ctv-compact-table .clients-v2-btn {min-width:0;}
 .ctv-compact-table .order-actions .btn {min-width:0;}
 .ctv-compact-table .clients-v2-person>div {min-width:0;}
 .ctv-compact-table .ctv-inline-id{white-space:normal;}
}

/* Revisión visual R2: únicamente tablas operativas marcadas. */
table.ctv-compact-table {font-size:13px!important;line-height:1.3!important;table-layout:auto;min-width:0!important;margin:0!important;border-bottom:1px solid #d5e0e9!important;}
table.ctv-compact-table thead th {padding:7px 10px!important;background:#edf3f7!important;color:#243b50!important;font-size:12px!important;font-weight:600!important;line-height:1.25!important;white-space:normal!important;border-bottom:1px solid #c6d6e2!important;}
table.ctv-compact-table thead th.sorting,table.ctv-compact-table thead th.sorting_asc,table.ctv-compact-table thead th.sorting_desc {padding-right:22px!important;}
table.ctv-compact-table tbody td {padding:5px 10px!important;font-size:12.5px!important;line-height:1.3!important;vertical-align:middle!important;white-space:normal!important;min-width:0!important;overflow-wrap:anywhere;}
table.ctv-compact-table tbody tr:nth-child(even){background:#f9fbfc;}
table.ctv-compact-table tbody tr:hover{background:#eaf3fa!important;}
table.ctv-compact-table .btn{padding:4px 7px!important;font-size:11px!important;line-height:1.25!important;min-height:27px;}
table.ctv-compact-table .order-client {display:block!important;min-width:0!important;}
table.ctv-compact-table .order-client strong,table.ctv-compact-table .order-client .ctv-inline-id{display:inline!important;}
table.ctv-compact-table .order-client .ctv-inline-id{margin-left:5px!important;white-space:nowrap;}
table.ctv-compact-table .order-address{min-width:0!important;}
table.ctv-compact-table .order-address span,table.ctv-compact-table .order-address small{display:inline!important;}
table.ctv-compact-table .order-address small:before{content:' · ';}
table.ctv-compact-table .text-right{font-variant-numeric:tabular-nums;}
.dataTables_wrapper:has(table.ctv-compact-table){padding:0!important;width:100%;min-width:0;}
.dataTables_wrapper:has(table.ctv-compact-table) .dataTables_length,.dataTables_wrapper:has(table.ctv-compact-table) .dataTables_filter{margin:0 0 7px!important;font-size:12px!important;}
.dataTables_wrapper:has(table.ctv-compact-table) .dataTables_length label,.dataTables_wrapper:has(table.ctv-compact-table) .dataTables_filter label{margin:0!important;font-size:12px!important;}
.dataTables_wrapper:has(table.ctv-compact-table) .dataTables_length select,.dataTables_wrapper:has(table.ctv-compact-table) .dataTables_filter input{height:31px!important;border:1px solid #c8d7e2!important;border-radius:5px!important;padding:3px 7px!important;background:white!important;}
.dataTables_wrapper:has(table.ctv-compact-table) .dataTables_paginate{padding-top:6px!important;}
.dataTables_wrapper:has(table.ctv-compact-table) .dataTables_paginate .paginate_button{padding:4px 7px!important;min-width:0!important;margin:0 1px!important;font-size:11px!important;border:1px solid #d6e0e9!important;border-radius:4px!important;background:#fff!important;color:#23465e!important;}
.dataTables_wrapper:has(table.ctv-compact-table) .dataTables_paginate .paginate_button.current{background:#147eae!important;color:#fff!important;border-color:#147eae!important;}
.dataTables_wrapper:has(table.ctv-compact-table) .dataTables_paginate .paginate_button.disabled{opacity:.55;}
.dataTables_wrapper:has(table.ctv-compact-table) .dataTables_paginate .paginate_button.page-item{padding:0!important;border:0!important;}
.dataTables_wrapper:has(table.ctv-compact-table) .pagination .page-link{padding:4px 7px!important;font-size:11px!important;line-height:1.4!important;}
.dataTables_wrapper:has(table.ctv-compact-table) .pagination .active .page-link{background:#147eae!important;border-color:#147eae!important;}
/* Compact panel spacing: no changes to financial or technical forms. */
.overdue-report-head,.suspended-report-head,.collections-report-head,.security-admin-head,.neighborhoods-head,.services-head,.orders-head,.clients-v2-header{padding:10px 14px!important;}
.overdue-report-head h4,.suspended-report-head h4,.collections-report-head h4,.security-admin-head h4,.neighborhoods-head h4,.services-head h4,.orders-head h4,.clients-v2-header h4{font-size:19px!important;margin:2px 0!important;}
.overdue-report-body,.suspended-report-body,.collections-body,.security-admin-body,.orders-body{padding:10px 14px!important;}
.overdue-summary,.suspended-summary,.collections-summary,.security-summary{padding:8px 14px!important;gap:8px!important;}
.overdue-summary-card,.suspended-summary-card,.collections-summary-card,.security-summary-card{padding:8px 10px!important;min-height:0!important;}
.overdue-section-head,.suspended-section-head,.collections-section-head,.security-section-head,.neighborhoods-list-head,.services-list-head{margin-bottom:7px!important;}
.subscriber-v2 .subscriber-section-title{padding:7px 10px!important;margin-bottom:6px!important;}
.subscriber-v2 .subscriber-report-link{padding:6px 10px!important;min-height:0!important;}
/* Small screens: keep identifiers, amounts and actionable controls visible. */
@media(max-width:767.98px){
 table.ctv-compact-table{table-layout:fixed!important;font-size:12px!important;max-width:100%!important;}
 table.ctv-compact-table thead th,table.ctv-compact-table tbody td{padding:6px 4px!important;font-size:11px!important;line-height:1.3!important;width:auto!important;white-space:normal!important;overflow-wrap:anywhere;}
 table.ctv-compact-table thead th.sorting,table.ctv-compact-table thead th.sorting_asc,table.ctv-compact-table thead th.sorting_desc{padding-right:12px!important;}
 table.ctv-compact-table .ctv-mobile-detail{font-size:10px!important;line-height:1.25!important;}
 table.ctv-compact-table .ctv-inline-id{white-space:normal!important;}
 table.ctv-compact-table .btn{min-height:32px!important;font-size:11px!important;max-width:100%;white-space:normal!important;}
 table.ctv-compact-table .text-right{white-space:nowrap!important;font-size:10.5px!important;}
 table.ctv-tab-morosos tr>*:nth-child(7),table.ctv-tab-suspendidos tr>*:nth-child(8),table.ctv-tab-todos tr>*:nth-child(6){width:26%!important;}
 table.ctv-tab-morosos tr>*:last-child,table.ctv-tab-suspendidos tr>*:last-child,table.ctv-tab-todos tr>*:last-child{width:28%!important;}
 table.ctv-tab-ordenes tr>*:nth-child(1),table.ctv-tab-retiros tr>*:nth-child(1){width:16%!important;}
 table.ctv-tab-ordenes tr>*:last-child,table.ctv-tab-clientes tr>*:last-child,table.ctv-tab-barrios tr>*:last-child,table.ctv-tab-servicios tr>*:last-child{width:30%!important;}
 table.ctv-tab-retiros tr>*:nth-child(4){width:24%!important;}
 table.ctv-tab-retiros tr>*:last-child{width:22%!important;}
 table.ctv-tab-servicios tr>*:nth-child(4){width:24%!important;}
 table.ctv-tab-suscriptores tr>*:nth-child(4),table.ctv-tab-suscriptores tr>*:nth-child(5){width:24%!important;}
 table.ctv-tab-roles tr>*:nth-child(n+2):nth-child(-n+5){display:none!important;}
 table.ctv-tab-roles tr>*:last-child{width:34%!important;}
 table.ctv-tab-roles .security-actions .btn{display:block;width:100%;margin:2px 0;}
 table.ctv-tab-recaudos tr>*:nth-child(3),table.ctv-tab-recaudos tr>*:nth-child(4){display:none!important;}
 table.ctv-tab-recaudos tr>*:nth-child(2){width:29%!important;}
 table.ctv-tab-recaudos tr>*:last-child{width:24%!important;}
 table.ctv-compact-table td[colspan]{display:table-cell!important;width:auto!important;white-space:normal!important;}
 .dataTables_wrapper:has(table.ctv-compact-table) .dataTables_paginate {display:flex;justify-content:center;flex-wrap:wrap;gap:2px;}
 .dataTables_wrapper:has(table.ctv-compact-table) .dataTables_paginate>span{display:flex;flex-wrap:wrap;justify-content:center;}
 .dataTables_wrapper:has(table.ctv-compact-table) .dataTables_filter input{min-width:0!important;max-width:100%!important;}
 .overdue-report-head,.suspended-report-head,.collections-report-head,.security-admin-head,.neighborhoods-head,.services-head,.orders-head,.clients-v2-header,.overdue-report-body,.suspended-report-body,.collections-body,.security-admin-body,.orders-body{padding:9px!important;}
 .overdue-summary,.suspended-summary,.collections-summary,.security-summary{padding:7px!important;gap:5px!important;}
}
@media(max-width:767.98px){
 table.ctv-compact-table .order-client strong,table.ctv-compact-table .order-client .ctv-inline-id{white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important;}
}
