:root {
    --ecc-primary: #1f4e79;
    --ecc-primary-dark: #163a5a;
    --ecc-soft-bg: #f4f6f9;
    --ecc-border: #dee2e6;
}

body {
    font-size: 14px;
}

.brand-link {
    display: flex;
    align-items: center;
}

.app-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ecc-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.55rem;
    margin-right: 0.5rem;
    float: none;
    max-height: none;
}

.app-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #343a40;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-clock {
    font-weight: 600;
    color: #495057;
}

.content-header h1 {
    font-size: 1.45rem;
    font-weight: 600;
}

.small-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

.card-title {
    font-weight: 600;
}

.app-dashboard-card {
    border-radius: 0.45rem;
}

.app-dashboard-card .icon {
    top: 8px;
}

.app-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.app-status-ok {
    color: #155724;
    background: #d4edda;
}

.app-status-warning {
    color: #856404;
    background: #fff3cd;
}

.empty-state-box {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #eef2f7;
    color: var(--ecc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.app-loading-layer {
    position: fixed;
    z-index: 3000;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
}

.app-loading-box {
    background: #ffffff;
    border: 1px solid var(--ecc-border);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
    font-weight: 600;
    color: #343a40;
}

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

.btn {
    border-radius: 0.35rem;
}

.form-control,
.custom-select {
    border-radius: 0.35rem;
}

@media (max-width: 767.98px) {
    .content-header h1 {
        font-size: 1.2rem;
    }

    .small-box h3 {
        font-size: 1.4rem;
    }
}

.app-table-wrapper {
    background: #ffffff;
    border: 1px solid var(--ecc-border);
    border-radius: 0.45rem;
    padding: 0.75rem;
}

.app-table-top,
.app-table-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-table-top {
    margin-bottom: 0.75rem;
}

.app-table-bottom {
    margin-top: 0.75rem;
}

.app-table-length,
.app-table-search {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.app-table-page-length {
    width: auto;
    min-width: 74px;
}

.app-table-search-input {
    min-width: 220px;
}

.app-table-info {
    color: #6c757d;
    font-size: 0.875rem;
}

.app-table-pagination .pagination {
    flex-wrap: wrap;
}

.app-table-pagination .page-link {
    color: var(--ecc-primary);
}

.app-table-pagination .page-item.active .page-link {
    background-color: var(--ecc-primary);
    border-color: var(--ecc-primary);
    color: #ffffff;
}

.app-table-pagination .page-item.disabled .page-link {
    color: #adb5bd;
}

.app-table-empty-row td {
    background: #ffffff;
}

.app-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.app-empty-state-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #eef2f7;
    color: var(--ecc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 0.85rem;
}

.app-empty-state h5 {
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #343a40;
}

.app-empty-state p {
    margin-bottom: 0;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.app-badge-soft-primary {
    color: #0c3f66;
    background: #dceeff;
}

.app-badge-soft-success {
    color: #155724;
    background: #d4edda;
}

.app-badge-soft-warning {
    color: #856404;
    background: #fff3cd;
}

.app-badge-soft-danger {
    color: #721c24;
    background: #f8d7da;
}

.app-badge-soft-secondary {
    color: #383d41;
    background: #e2e3e5;
}

.app-action-buttons {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.app-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.app-char-counter {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #8a8f94;
    margin-top: 0.2rem;
}

.modal {
    padding-right: 0 !important;
}

.modal-content {
    border-radius: 0.45rem;
}

.modal-header {
    align-items: center;
}

.modal-title {
    font-weight: 600;
}

.toast {
    opacity: 1 !important;
}

.toast-close-button {
    font-weight: 700;
}

.app-form-help {
    color: #6c757d;
    font-size: 0.82rem;
}

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

.app-auth-page {
    font-family: "Lato", "Segoe UI", Tahoma, Arial, sans-serif;
    background: #f8f9fd;
    color: #6c757d;
}

.app-auth-section {
    min-height: 100vh;
    padding: 4.5rem 0 2.5rem;
    display: flex;
    align-items: center;
}

.app-auth-heading {
    color: #102a5a;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.app-auth-subheading {
    margin-bottom: 0;
    color: #657182;
}

.app-auth-wrap {
    width: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 34px -15px rgba(0, 0, 0, 0.24);
}

.app-auth-cover {
    min-height: 180px;
    padding: 1.4rem;
    background: linear-gradient(145deg, #0e2d63 0%, #16408d 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.app-auth-cover h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.02rem;
}

.app-auth-cover-register {
    background: linear-gradient(145deg, #1a4f8f 0%, #0e2d63 100%);
}

.app-auth-cover-mark {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
    font-size: 1.35rem;
}

.app-auth-form {
    background: #fff;
}

.app-auth-form h4 {
    color: #1f2d3d;
    font-weight: 500;
}

.app-auth-label {
    color: #4f5b67;
    margin-bottom: 0.45rem;
    font-weight: 600;
}

.app-auth-control {
    height: 48px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
    color: #000;
    font-size: 0.98rem;
}

.app-auth-control:focus,
.app-auth-control:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: #0e2d63;
}

.app-auth-eye {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.35);
    text-decoration: none !important;
    box-shadow: none !important;
    padding: 0.2rem 0.25rem;
}

.app-auth-eye:hover,
.app-auth-eye:focus {
    color: #0e2d63;
}

.app-auth-btn.btn-primary {
    background: #0e2d63 !important;
    border: 1px solid #0e2d63 !important;
    color: #fff !important;
    font-size: 0.98rem;
    font-weight: 600;
}

.app-auth-btn.btn-primary:hover,
.app-auth-btn.btn-primary:focus {
    background: #0b2450 !important;
    border-color: #0b2450 !important;
}

.app-auth-link {
    color: #0e2d63;
    text-decoration: none;
    font-weight: 600;
}

.app-auth-link:hover {
    color: #0b2450;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .app-table-top,
    .app-table-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .app-table-length,
    .app-table-search {
        width: 100%;
        justify-content: space-between;
    }

    .app-table-search-input {
        min-width: 100%;
        margin-top: 0.4rem;
    }

    .app-table-pagination {
        width: 100%;
    }

    .app-table-pagination .pagination {
        justify-content: center;
    }
}

.cs-resumen-cliente {
    display: grid;
    gap: 0.35rem;
}

.cs-resumen-cliente strong {
    color: #343a40;
}

.cs-etiquetas-linea {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.cs-servicio-descripcion {
    color: #6c757d;
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

.cs-timeline-resumen {
    border: 1px solid var(--ecc-border);
    border-radius: 0.45rem;
    background: #f8f9fa;
    padding: 0.75rem;
}

.cs-timeline-cliente {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.cs-timeline-totales {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.cs-timeline-total-item {
    border: 1px solid var(--ecc-border);
    border-radius: 0.35rem;
    background: #ffffff;
    padding: 0.55rem 0.6rem;
    display: grid;
    gap: 0.2rem;
}

.cs-timeline-total-item span {
    color: #6c757d;
    font-size: 0.82rem;
}

.cs-timeline-total-item strong {
    color: #343a40;
}

.cs-timeline-vertical .timeline-item {
    border-radius: 0.35rem;
}

#servicioEtiquetas {
    min-height: 110px;
}

#detalleClienteContenido .card {
    margin-bottom: 0;
}

#modalDetalleCliente .modal-body {
    background: #f4f6f9;
}

#modalServicioCliente textarea {
    resize: vertical;
}

#catalogoServiciosTablaContainer .table td,
#catalogoServiciosTablaContainer .table th {
    vertical-align: top;
}

#servicioBaseEtiquetas {
    min-height: 110px;
}

@media (max-width: 767.98px) {
    #modalDetalleCliente .modal-dialog,
    #modalServicioCliente .modal-dialog,
    #modalCliente .modal-dialog {
        margin: 0.5rem;
    }

    .cs-timeline-totales {
        grid-template-columns: 1fr;
    }
}

.pz-preview-card {
    border: 1px solid var(--ecc-border);
    border-radius: 0.5rem;
    overflow: hidden;
    background: #ffffff;
}

.pz-preview-header {
    background: var(--ecc-primary);
    color: #ffffff;
    padding: 1rem;
}

.pz-preview-header h5 {
    margin: 0;
    font-weight: 700;
}

.pz-preview-header p {
    margin: 0.25rem 0 0;
    opacity: 0.9;
}

.pz-preview-body {
    padding: 1rem;
}

.pz-preview-body p {
    margin-bottom: 0.45rem;
}

.pz-preview-footer {
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.85rem;
    border-top: 1px solid var(--ecc-border);
    min-height: 42px;
}

.pz-preview-logo-box {
    background: #f4f6f9;
    border-bottom: 1px solid var(--ecc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pz-logo-cuadrado {
    height: 160px;
}

.pz-logo-rectangular {
    height: 120px;
}

.pz-logo-banner {
    height: 90px;
}

.pz-preview-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
}

.pz-preview-logo-placeholder {
    color: #8a8f94;
    text-align: center;
    display: grid;
    gap: 0.3rem;
}

.pz-preview-logo-placeholder i {
    font-size: 2rem;
}

.metodo-campo-celular {
    display: none;
}

#metodoNumeroCuenta,
#metodoCci,
#metodoNumeroCelular {
    letter-spacing: 0.04rem;
}

.pl-metodos-check-list {
    display: grid;
    gap: 0.5rem;
}

.pl-metodo-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    border: 1px solid var(--ecc-border);
    border-radius: 0.45rem;
    padding: 0.65rem;
    cursor: pointer;
    background: #ffffff;
}

.pl-metodo-check-item:hover {
    background: #f8f9fa;
}

.pl-metodo-check-item input {
    margin-top: 0.25rem;
}

.pl-metodo-check-item span {
    display: grid;
}

.pl-metodo-check-item small {
    color: #6c757d;
}

.pl-preview-shell {
    background: #f4f6f9;
    padding: 1rem;
    overflow-x: auto;
}

.pl-documento-preview {
    background: #ffffff;
    border: 1px solid var(--ecc-border);
    border-radius: 0.45rem;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.pl-orientacion-vertical {
    max-width: 760px;
}

.pl-orientacion-horizontal {
    max-width: 1020px;
}

.pl-doc-header {
    color: #ffffff;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pl-doc-logo {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.pl-logo-cuadrado {
    width: 90px;
    height: 90px;
}

.pl-logo-rectangular {
    width: 150px;
    height: 80px;
}

.pl-logo-banner {
    width: 220px;
    height: 65px;
}

.pl-doc-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pl-doc-logo-empty {
    display: grid;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.9;
}

.pl-doc-logo-empty i {
    font-size: 1.5rem;
}

.pl-doc-empresa h4 {
    margin: 0;
    font-weight: 700;
}

.pl-doc-empresa p {
    margin: 0.15rem 0 0;
    opacity: 0.95;
}

.pl-doc-body {
    padding: 1rem;
}

.pl-doc-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--ecc-border);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.pl-doc-title h5 {
    margin: 0;
    font-weight: 700;
}

.pl-doc-title span {
    color: #6c757d;
}

.pl-doc-cliente {
    background: #f8f9fa;
    border: 1px solid var(--ecc-border);
    border-radius: 0.35rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.pl-doc-cliente span {
    color: #6c757d;
}

.pl-doc-nota {
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 0.35rem;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.pl-doc-bloque {
    margin-bottom: 0.85rem;
}

.pl-doc-bloque h6 {
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0.4rem;
}

.pl-doc-bloque table {
    width: 100%;
    border-collapse: collapse;
}

.pl-doc-bloque td {
    border: 1px solid var(--ecc-border);
    padding: 0.45rem 0.55rem;
}

.pl-doc-total {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 2px solid var(--ecc-border);
    padding-top: 0.75rem;
    margin-top: 1rem;
    font-size: 1rem;
}

.pl-doc-metodos {
    margin-top: 1rem;
    border: 1px solid var(--ecc-border);
    border-radius: 0.35rem;
    padding: 0.75rem;
    background: #f8f9fa;
}

.pl-doc-metodos h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pl-doc-metodo-item {
    display: grid;
    border-top: 1px solid var(--ecc-border);
    padding-top: 0.45rem;
    margin-top: 0.45rem;
}

.pl-doc-metodo-item:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.pl-doc-metodo-item span {
    color: #6c757d;
    font-size: 0.85rem;
}

.pl-doc-footer {
    margin-top: 1rem;
    color: #6c757d;
    background: #f8f9fa;
    border-top: 1px solid var(--ecc-border);
    padding: 0.75rem;
    font-size: 0.85rem;
}

@media (max-width: 767.98px) {
    .pl-doc-header,
    .pl-doc-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .pl-logo-banner,
    .pl-logo-rectangular {
        width: 100%;
    }
}

.pf-servicios-lista {
    display: grid;
    gap: 0.5rem;
}

.pf-servicio-item {
    border: 1px solid var(--ecc-border);
    border-radius: 0.45rem;
    padding: 0.65rem;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.pf-servicio-item label {
    display: flex;
    gap: 0.55rem;
    cursor: pointer;
}

.pf-servicio-item input {
    margin-top: 0.25rem;
}

.pf-servicio-item span {
    display: grid;
}

.pf-servicio-item small {
    color: #6c757d;
}

.pf-items-container {
    min-height: 190px;
}

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

.pf-bloques-box {
    border: 1px solid var(--ecc-border);
    border-radius: 0.45rem;
    background: #f3f6fb;
    padding: 0.65rem 0.75rem;
}

.pf-bloques-box > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.pf-bloques-box > div:last-child {
    margin-bottom: 0;
}

.pf-total-box {
    border: 1px solid var(--ecc-border);
    border-radius: 0.45rem;
    background: #f8f9fa;
    padding: 0.75rem;
}

.pf-total-box > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.pf-total-box > div:last-child {
    margin-bottom: 0;
}

.pf-total-box input {
    max-width: 130px;
    text-align: right;
}

.pf-total-final {
    border-top: 1px solid var(--ecc-border);
    padding-top: 0.55rem;
    font-size: 1.1rem;
}

.pf-documento-body {
    background: #f4f6f9;
}

.pf-documento-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
}

.pf-documento-page {
    padding: 0 1rem 1rem;
}

.pf-documento {
    background: #ffffff;
    border: 1px solid var(--ecc-border);
    border-radius: 0.45rem;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.pf-documento-vertical {
    max-width: 820px;
}

.pf-documento-horizontal {
    max-width: 1100px;
}

.pf-documento-horizontal .pf-doc-body {
    padding: 1.1rem 1.2rem;
}

.pf-doc-header {
    color: #ffffff;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pf-doc-logo {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.pf-logo-cuadrado {
    width: 90px;
    height: 90px;
}

.pf-logo-rectangular {
    width: 150px;
    height: 80px;
}

.pf-logo-banner {
    width: 220px;
    height: 65px;
}

.pf-doc-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pf-doc-logo-empty {
    display: grid;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.9;
}

.pf-doc-logo-empty i {
    font-size: 1.5rem;
}

.pf-doc-empresa {
    flex: 1;
}

.pf-doc-empresa h3 {
    margin: 0;
    font-weight: 700;
}

.pf-doc-empresa p {
    margin: 0.15rem 0 0;
    opacity: 0.95;
}

.pf-doc-codigo {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 0.45rem;
    padding: 0.75rem;
    text-align: right;
    min-width: 160px;
}

.pf-doc-codigo span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

.pf-doc-codigo strong {
    display: block;
    font-size: 1.2rem;
}

.pf-doc-body {
    padding: 1rem;
}

.pf-doc-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--ecc-border);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.pf-doc-cliente {
    background: #f8f9fa;
    border: 1px solid var(--ecc-border);
    border-radius: 0.35rem;
    padding: 0.75rem;
    margin-bottom: 0.9rem;
}

.pf-doc-cliente h5,
.pf-doc-cliente p {
    margin-bottom: 0.2rem;
}

.pf-doc-bloque {
    margin-bottom: 1rem;
}

.pf-doc-bloque h5 {
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.pf-doc-bloque table {
    width: 100%;
    border-collapse: collapse;
}

.pf-doc-bloque th,
.pf-doc-bloque td {
    border: 1px solid var(--ecc-border);
    padding: 0.5rem;
}

.pf-doc-bloque th {
    background: #f8f9fa;
}

.pf-doc-bloque-total {
    margin-top: 0.35rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.9rem;
    font-size: 0.92rem;
    color: #495057;
}

.pf-doc-bloque-total strong {
    color: #1f4e79;
}

.pf-doc-totales {
    display: grid;
    gap: 0.35rem;
    max-width: 320px;
    margin-left: auto;
    border-top: 2px solid var(--ecc-border);
    padding-top: 0.75rem;
}

.pf-doc-totales > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.pf-doc-total-final {
    font-size: 1.15rem;
}

.pf-doc-metodos {
    margin-top: 1rem;
    border: 1px solid var(--ecc-border);
    border-radius: 0.35rem;
    padding: 0.75rem;
    background: #f8f9fa;
}

.pf-doc-metodos h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pf-doc-metodo {
    display: grid;
    border-top: 1px solid var(--ecc-border);
    padding-top: 0.45rem;
    margin-top: 0.45rem;
}

.pf-doc-metodo:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.pf-doc-metodo span {
    color: #6c757d;
    font-size: 0.85rem;
}

.pf-doc-footer {
    margin-top: 1rem;
    color: #6c757d;
    background: #f8f9fa;
    border-top: 1px solid var(--ecc-border);
    padding: 0.75rem;
    font-size: 0.85rem;
}

@media print {
    .pf-documento-actions {
        display: none;
    }

    .pf-documento-page {
        padding: 0;
    }

    .pf-documento {
        border: 0;
        box-shadow: none;
        border-radius: 0;
        max-width: none;
    }

    body {
        background: #ffffff;
    }
}

@media (max-width: 767.98px) {
    .pf-doc-header,
    .pf-doc-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .pf-doc-codigo {
        text-align: left;
        width: 100%;
    }

    .pf-logo-banner,
    .pf-logo-rectangular {
        width: 100%;
    }
}

.rb-items-lista {
    display: grid;
    gap: 0.5rem;
}

.rb-item-pago {
    border: 1px solid var(--ecc-border);
    border-radius: 0.45rem;
    padding: 0.65rem;
    background: #ffffff;
    display: grid;
    gap: 0.5rem;
}

.rb-item-pago label {
    display: flex;
    gap: 0.55rem;
    cursor: pointer;
    margin-bottom: 0;
}

.rb-item-pago input[type="checkbox"] {
    margin-top: 0.25rem;
}

.rb-item-pago span {
    display: grid;
}

.rb-item-pago small {
    color: #6c757d;
}

.rb-item-pago .rbServicioAdicionalBloque {
    max-width: 320px;
}

.rb-item-pagado {
    opacity: 0.65;
    background: #f8f9fa;
}

.rb-items-container {
    min-height: 190px;
}

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

.rb-total-box {
    border: 1px solid var(--ecc-border);
    border-radius: 0.45rem;
    background: #f8f9fa;
    padding: 0.75rem;
    max-width: 380px;
    margin-left: auto;
}

.rb-total-box > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.rb-total-box > div:last-child {
    margin-bottom: 0;
}

.rb-bloque-line {
    font-size: 0.86rem;
}

.rb-bloque-line span {
    color: #495057;
    margin-right: 0.5rem;
}

.rb-total-final {
    border-top: 1px solid var(--ecc-border);
    padding-top: 0.55rem;
    font-size: 1.1rem;
}

.rb-documento-body {
    background: #f4f6f9;
}

.rb-documento-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
}

.rb-documento-page {
    padding: 0 1rem 1rem;
}

.rb-documento {
    background: #ffffff;
    border: 1px solid var(--ecc-border);
    border-radius: 0.45rem;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.rb-documento-vertical {
    max-width: 820px;
}

.rb-documento-horizontal {
    max-width: 1100px;
}

.rb-documento-horizontal .rb-doc-body {
    padding: 1.1rem 1.2rem;
}

.rb-doc-header {
    color: #ffffff;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rb-doc-logo {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.rb-logo-cuadrado {
    width: 90px;
    height: 90px;
}

.rb-logo-rectangular {
    width: 150px;
    height: 80px;
}

.rb-logo-banner {
    width: 220px;
    height: 65px;
}

.rb-doc-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rb-doc-logo-empty {
    display: grid;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.9;
}

.rb-doc-logo-empty i {
    font-size: 1.5rem;
}

.rb-doc-empresa {
    flex: 1;
}

.rb-doc-empresa h3 {
    margin: 0;
    font-weight: 700;
}

.rb-doc-empresa p {
    margin: 0.15rem 0 0;
    opacity: 0.95;
}

.rb-doc-codigo {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 0.45rem;
    padding: 0.75rem;
    text-align: right;
    min-width: 160px;
}

.rb-doc-codigo span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

.rb-doc-codigo strong {
    display: block;
    font-size: 1.2rem;
}

.rb-doc-body {
    padding: 1rem;
}

.rb-doc-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--ecc-border);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.rb-doc-cliente {
    background: #f8f9fa;
    border: 1px solid var(--ecc-border);
    border-radius: 0.35rem;
    padding: 0.75rem;
    margin-bottom: 0.9rem;
}

.rb-doc-cliente h5,
.rb-doc-cliente p {
    margin-bottom: 0.2rem;
}

.rb-doc-bloque {
    margin-bottom: 1rem;
}

.rb-doc-bloque h5 {
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.rb-doc-bloque table {
    width: 100%;
    border-collapse: collapse;
}

.rb-doc-bloque th,
.rb-doc-bloque td {
    border: 1px solid var(--ecc-border);
    padding: 0.5rem;
}

.rb-doc-bloque th {
    background: #f8f9fa;
}

.rb-doc-bloque-total {
    margin-top: 0.35rem;
    display: grid;
    gap: 0.2rem;
}

.rb-doc-bloque-total > div {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #495057;
}

.rb-doc-bloque-total strong {
    color: #1f4e79;
}

.rb-doc-totales {
    display: grid;
    gap: 0.35rem;
    max-width: 320px;
    margin-left: auto;
    border-top: 2px solid var(--ecc-border);
    padding-top: 0.75rem;
}

.rb-doc-totales > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.rb-doc-total-final {
    font-size: 1.15rem;
}

.rb-doc-metodos {
    margin-top: 1rem;
    border: 1px solid var(--ecc-border);
    border-radius: 0.35rem;
    padding: 0.75rem;
    background: #f8f9fa;
}

.rb-doc-metodos h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rb-doc-metodo {
    display: grid;
    border-top: 1px solid var(--ecc-border);
    padding-top: 0.45rem;
    margin-top: 0.45rem;
}

.rb-doc-metodo:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.rb-doc-metodo span {
    color: #6c757d;
    font-size: 0.85rem;
}

.rb-doc-metodo-pago {
    margin-top: 1rem;
    border: 1px solid var(--ecc-border);
    border-radius: 0.35rem;
    padding: 0.75rem;
    background: #f8f9fa;
    display: grid;
    gap: 0.25rem;
}

.rb-doc-metodo-pago h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.rb-doc-metodo-pago span {
    color: #6c757d;
    font-size: 0.85rem;
}

.rb-doc-footer {
    margin-top: 1rem;
    color: #6c757d;
    background: #f8f9fa;
    border-top: 1px solid var(--ecc-border);
    padding: 0.75rem;
    font-size: 0.85rem;
}

@media print {
    .rb-documento-actions {
        display: none;
    }

    .rb-documento-page {
        padding: 0;
    }

    .rb-documento {
        border: 0;
        box-shadow: none;
        border-radius: 0;
        max-width: none;
    }

    body {
        background: #ffffff;
    }
}

@media (max-width: 767.98px) {
    .rb-doc-header,
    .rb-doc-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .rb-doc-codigo {
        text-align: left;
        width: 100%;
    }

    .rb-logo-banner,
    .rb-logo-rectangular {
        width: 100%;
    }

    .rb-total-box {
        max-width: 100%;
    }
}

.app-export-wrapper {
    position: fixed;
    left: -100000px;
    top: 0;
    width: auto;
    min-width: 900px;
    background: #ffffff;
    z-index: -1;
    opacity: 1;
    pointer-events: none;
}

.app-export-wrapper .modal,
.app-export-wrapper .modal-dialog,
.app-export-wrapper .modal-content,
.app-export-wrapper .modal-body {
    display: block;
    position: static;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
}

.app-export-documento {
    background: #ffffff;
    color: #212529;
    transform: none;
    opacity: 1;
}

.app-export-documento img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.app-export-documento .pf-doc-header,
.app-export-documento .rb-doc-header {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

@media print {
    .main-header,
    .main-sidebar,
    .main-footer,
    .control-sidebar,
    .content-header,
    .app-action-buttons,
    .btn,
    .modal-header,
    .modal-footer,
    .pf-documento-actions,
    .rb-documento-actions {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    .content-wrapper {
        margin-left: 0 !important;
        background: #ffffff !important;
    }

    .pf-documento,
    .rb-documento,
    #pfDocumentoExportable,
    #rbDocumentoExportable {
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        max-width: none !important;
    }
}

.dash-list {
    display: grid;
}

.dash-list-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--ecc-border);
    background: #ffffff;
}

.dash-list-item:last-child {
    border-bottom: 0;
}

.dash-list-item strong {
    display: block;
    color: #343a40;
}

.dash-list-item small {
    display: block;
    color: #6c757d;
}

.dash-list-item-danger {
    background: #fff5f5;
}

.timeline.timeline-sm {
    margin: 0;
}

.timeline.timeline-sm::before {
    left: 15px;
}

.timeline.timeline-sm > div {
    margin-bottom: 0.75rem;
}

.timeline.timeline-sm > div > .fa,
.timeline.timeline-sm > div > .fas,
.timeline.timeline-sm > div > .far {
    left: 3px;
    width: 26px;
    height: 26px;
    font-size: 12px;
    line-height: 26px;
}

.timeline.timeline-sm .timeline-item {
    margin-left: 42px;
}

#auditoriaTablaContainer td {
    vertical-align: top;
}

@media (max-width: 767.98px) {
    .dash-list-item {
        flex-direction: column;
    }
}
