:root {
    --wf-font-sans: 'Roboto', Arial, Helvetica, sans-serif;
}

html,
body {
    font-family: var(--wf-font-sans);
}

button,
input,
select,
textarea,
.button,
.input,
.select,
.dataTables_wrapper {
    font-family: var(--wf-font-sans);
}

.divtabladinamica {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}
.table-component {
    overflow-x: auto;
}
table.dataTable tr.odd {
    background-color: #e8e7e7 !important;
    border: 1px black;
}
table.dataTable tr.even {
    background-color: white;
    border: 1px black;
}
table thead th {
    height: 35px !important; /* Ajusta la altura según necesites */
    vertical-align: middle; /* Centra el texto verticalmente */
}
.window-content {
    overflow-y: auto;
    overflow-x: hidden;
}

.dialog.wf-popup-dialog {
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 32px) !important;
    height: auto !important;
    overflow: hidden !important;
    border: 0 !important;
    background: transparent !important;
}

.dialog.wf-popup-dialog .dialog-content {
    display: flex;
    width: 100%;
    min-height: 0;
    max-height: calc(100vh - 32px) !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.wf-dialog-window,
.wf-dialog-window.window,
.wf-dialog-panel {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 120px);
}

.wf-dialog-window.window {
    display: flex;
    flex-direction: column;
}

.dialog.wf-popup-dialog .wf-dialog-window,
.dialog.wf-popup-dialog .wf-dialog-window.window {
    max-height: calc(100vh - 32px) !important;
    min-height: 0 !important;
}

.wf-dialog-window .window-caption {
    flex: 0 0 auto;
}

.wf-dialog-window .window-content,
.wf-dialog-window__content {
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    overflow-x: hidden;
}

.dialog.wf-popup-dialog .wf-dialog-window .window-content,
.dialog.wf-popup-dialog .wf-dialog-window__content {
    flex: 1 1 auto;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
}

.dialog.wf-popup-dialog .select.active-container {
    z-index: 3200;
}

.select .drop-container.wf-select-portal {
    position: fixed !important;
    z-index: 9000 !important;
    right: auto !important;
    bottom: auto !important;
    margin-left: 0 !important;
    max-width: calc(100vw - 16px);
    overflow: hidden !important;
    border: 1px solid var(--wf-crm-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.select .drop-container.wf-select-portal .option-list {
    overflow-y: auto !important;
    overscroll-behavior: contain;
}

.select .drop-container.wf-select-portal .option-list li a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-dialog-panel {
    overflow-y: auto;
    overflow-x: hidden;
}

.wf-dialog-window .row:last-child,
.wf-dialog-window__content .row:last-child,
.wf-dialog-panel .row:last-child {
    margin-bottom: 0;
}

/* CRM visual standard */
:root {
    --wf-crm-surface: #ffffff;
    --wf-crm-surface-soft: #f8fafc;
    --wf-crm-border: #dbe4ee;
    --wf-crm-border-soft: #e2e8f0;
    --wf-crm-title: #0f172a;
    --wf-crm-muted: #64748b;
    --wf-crm-primary: #0f6cbd;
    --wf-crm-success: #16a34a;
    --wf-crm-teal: #0f766e;
    --wf-crm-warning: #f59e0b;
    --wf-crm-danger: #dc2626;
    --wf-crm-dark: #111827;
}

.input,
.select,
.textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.input input,
.input textarea,
.select select,
.select .select-input,
.textarea textarea {
    min-width: 0;
    box-sizing: border-box;
}

.select .select-input {
    overflow: hidden;
    padding-right: 24px !important;
    font-size: 0.87rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.input.wf-input-has-clear > .button-group {
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    overflow: hidden;
    transition: width 0.15s ease, flex-basis 0.15s ease;
}

.input.wf-input-has-clear.wf-input-has-value > .button-group {
    flex-basis: 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    overflow: visible;
}

.input.wf-input-has-clear .button-group .button.input-clear-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 0 !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.input.wf-input-has-clear.wf-input-has-value .button-group .button.input-clear-button {
    width: 32px !important;
    min-width: 32px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.input.wf-input-has-clear .button-group .button.input-clear-button .default-icon-cross {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
}

.input.wf-input-has-clear .button-group .button.input-clear-button .default-icon-cross::before,
.input.wf-input-has-clear .button-group .button.input-clear-button .default-icon-cross::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 1px;
    width: 12px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.input.wf-input-has-clear .button-group .button.input-clear-button .default-icon-cross::before {
    transform: rotate(45deg);
}

.input.wf-input-has-clear .button-group .button.input-clear-button .default-icon-cross::after {
    transform: rotate(-45deg);
}

.input.wf-input-has-clear .button-group .button.input-clear-button:hover {
    color: var(--wf-crm-danger) !important;
}

a.wf-related-link,
a.wf-related-link:visited,
a.wf-related-link:focus,
a.wf-related-link:active,
.wf-clientes-plain-link,
.wf-clientes-plain-link:visited,
.wf-clientes-plain-link:focus,
.wf-clientes-plain-link:active {
    color: inherit !important;
    text-decoration: none !important;
}

a.wf-related-link:hover,
.wf-clientes-plain-link:hover {
    color: inherit !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.wf-exp-field .input,
.wf-exp-field .select,
.wf-exp-field .textarea,
.wf-exp-field input,
.wf-exp-field select,
.wf-settings-field .input,
.wf-settings-field .select,
.wf-settings-field .textarea {
    width: 100% !important;
    max-width: 100% !important;
}

.wf-exp-field .select .dropdown-toggle,
.wf-settings-field .select .dropdown-toggle {
    flex: 0 0 28px !important;
    width: 28px !important;
}

.wf-exp-field .select .select-input,
.wf-settings-field .select .select-input {
    width: calc(100% - 28px) !important;
    padding-right: 6px !important;
    font-size: 0.82rem !important;
}

.wf-exp-billing-config-main-grid {
    grid-template-columns: minmax(520px, 1.25fr) minmax(300px, 0.7fr) minmax(390px, 0.9fr) !important;
}

.wf-exp-billing-config-block .wf-exp-form-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)) !important;
}

.wf-exp-billing-config-block .wf-exp-field--span-3 {
    grid-column: 1 / -1 !important;
}

@media screen and (max-width: 1320px) {
    .wf-exp-billing-config-main-grid {
        grid-template-columns: 1fr !important;
    }
}

.wf-page-title,
.wf-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    margin: 0 0 10px;
    padding: 0 2px;
}

.wf-page-heading--breadcrumbs-only {
    justify-content: flex-end;
}

.wf-page-heading__title {
    flex: 1 1 auto;
    min-width: 0;
}

.wf-page-heading__breadcrumbs {
    flex: 0 1 auto;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.wf-page-heading__breadcrumbs .breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    background: transparent !important;
}

.wf-page-heading__breadcrumbs .page-link {
    font-size: 0.88rem;
    line-height: 1.1;
}

.wf-page-title h1,
.wf-page-heading h1 {
    margin: 0;
    color: var(--wf-crm-title);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-crud-panel,
.wf-standard-page,
.wf-crm-surface {
    width: 100%;
    max-width: none;
    border: 1px solid var(--wf-crm-border);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--wf-crm-surface) 0%, var(--wf-crm-surface-soft) 100%);
    box-shadow: none !important;
}

.wf-crud-panel.panel,
.wf-standard-page.panel {
    padding: 12px;
}

.wf-crud-panel.panel > .panel-title,
.wf-standard-page.panel > .panel-title,
.wf-crud-panel.panel > .panel-title-secondary,
.wf-standard-page.panel > .panel-title-secondary {
    display: none !important;
}

.wf-crud-panel.panel > .panel-content,
.wf-standard-page.panel > .panel-content {
    padding: 0 !important;
    background: transparent !important;
}

.wf-module-header,
.wf-crm-section__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--wf-crm-border-soft);
}

.wf-module-header__title,
.wf-crm-section__title-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--wf-crm-title);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wf-module-header__title i,
.wf-module-header__title [class^="mif-"],
.wf-module-header__title [class*=" mif-"],
.wf-crm-section__title-text i,
.wf-crm-section__title-text [class^="mif-"],
.wf-crm-section__title-text [class*=" mif-"] {
    color: var(--wf-crm-teal);
}

.wf-module-header__actions,
.wf-crm-section__title-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.wf-crm-tab-content .wf-module-header {
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 0;
}

.wf-crm-tab-content .wf-module-header__actions {
    align-items: center;
}

.wf-crm-tab-content .wf-module-header__actions .cycle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.wf-crud-actions,
.wf-standard-toolbar,
.wf-dt-toolbar {
    gap: 8px;
    margin-bottom: 10px;
}

.wf-crud-action-button,
.wf-standard-toolbar__button,
.wf-dt-button,
.wf-dt-toolbar .dt-button,
.wf-standard-toolbar .dt-button,
.dialog.wf-popup-dialog .button {
    min-height: 34px;
    border-radius: 8px !important;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.button.bg-green,
.button.bg-darkGreen {
    background: var(--wf-crm-success) !important;
    border-color: var(--wf-crm-success) !important;
    color: #ffffff !important;
}

.button.bg-darkCyan,
.button.bg-teal,
.button.bg-darkTeal {
    background: var(--wf-crm-teal) !important;
    border-color: var(--wf-crm-teal) !important;
    color: #ffffff !important;
}

.button.bg-blue,
.button.bg-darkBlue,
.button.bg-cyan {
    background: var(--wf-crm-primary) !important;
    border-color: var(--wf-crm-primary) !important;
    color: #ffffff !important;
}

.button.bg-amber,
.button.bg-orange {
    background: var(--wf-crm-warning) !important;
    border-color: var(--wf-crm-warning) !important;
    color: #ffffff !important;
}

.button.bg-red {
    background: var(--wf-crm-danger) !important;
    border-color: var(--wf-crm-danger) !important;
    color: #ffffff !important;
}

.button.bg-dark,
.button.bg-darkSteel {
    background: var(--wf-crm-dark) !important;
    border-color: var(--wf-crm-dark) !important;
    color: #ffffff !important;
}

.button.bg-mauve {
    background: #6d28d9 !important;
    border-color: #6d28d9 !important;
    color: #ffffff !important;
}

.wf-table-actions {
    gap: 4px;
}

.wf-table-actions .button,
.wf-icon-action {
    min-width: 30px;
    min-height: 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px !important;
}

.wf-badge-pill,
.wf-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.wf-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
}

.wf-status-badge::before {
    content: none;
    display: none;
}

.wf-status-badge--green {
    background: #16a34a;
}

.wf-status-badge--amber,
.wf-status-badge--orange {
    background: #f59e0b;
}

.wf-status-badge--crimson,
.wf-status-badge--red {
    background: #dc2626;
}

.wf-status-badge--teal {
    background: #0f766e;
}

.wf-status-badge--dark,
.wf-status-badge--gray {
    background: #64748b;
}

.wf-exp-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.wf-exp-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    border: 0;
    border-radius: 7px;
    color: #fff !important;
    cursor: pointer;
    box-shadow: none;
    padding: 0;
    text-decoration: none !important;
}

.wf-exp-icon-action i {
    margin: 0 !important;
    font-size: 12px;
    line-height: 1;
}

.wf-exp-icon-action--edit {
    background: #1d4ed8;
}

.wf-exp-icon-action--delete {
    background: #dc2626;
}

.wf-exp-icon-action--void {
    background: #111827;
}

.wf-exp-icon-action--success {
    background: #16a34a;
}

.wf-exp-icon-action--info {
    background: #0f766e;
}

.wf-exp-icon-action--warning {
    background: #f59e0b;
}

.wf-exp-icon-action--pdf {
    background: #d93025;
}

.wf-exp-icon-action--disabled {
    background: #94a3b8;
    opacity: 0.45;
    cursor: not-allowed;
}

.wf-crm-tabs.tab-title {
    margin: 0 !important;
    border: 1px solid var(--wf-crm-border) !important;
    border-bottom: 0 !important;
    border-radius: 12px 12px 0 0 !important;
    overflow: hidden;
    background: var(--wf-crm-dark) !important;
    position: relative;
    z-index: 2;
}

.wf-crm-tabs.tab-title li,
.wf-crm-tabs.tab-title li.bg-dark {
    background: transparent !important;
}

.wf-crm-tabs.tab-title li a {
    min-height: 38px;
    padding: 10px 14px !important;
    color: #ffffff !important;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0;
}

.wf-crm-tabs.tab-title .active a {
    background: #ffffff !important;
    color: var(--wf-crm-title) !important;
}

.wf-crm-tab-content {
    width: 100%;
    margin-top: 0 !important;
    padding: 0 12px 12px !important;
    border: 1px solid var(--wf-crm-border) !important;
    border-top: 0 !important;
    border-radius: 12px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

.wf-crm-tab-content > [id] {
    min-width: 0;
}

.wf-crm-tab-content > [id]:not(:first-child):not([style*="display: block"]) {
    display: none;
}

.tab-title.bg-dark.border.border-radius + .border.bd-radius.no-border-top,
.tabs-list.bg-dark.border.border-radius + .border.bd-radius.no-border-top,
.wf-crm-tabs.tab-title + .wf-crm-tab-content,
.wf-crm-tabs.tabs-list + .wf-crm-tab-content,
.wf-exp-billing-tabs + .wf-exp-billing-panel,
.expediente-page__tabs + .expediente-page__panel {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.tab-title.bg-dark.border.border-radius,
.tabs-list.bg-dark.border.border-radius,
.wf-exp-billing-tabs,
.expediente-page__tabs {
    margin-bottom: -1px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    position: relative;
    z-index: 2;
}

.wf-new-client-page {
    padding: 12px;
}

.wf-new-client-header {
    align-items: center;
}

.wf-new-client-steps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.wf-new-client-step-button {
    min-height: 34px;
    border: 1px solid var(--wf-crm-border) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wf-new-client-step-button.active {
    border-color: var(--wf-crm-primary) !important;
    background: #e0f2fe !important;
    color: var(--wf-crm-title) !important;
}

.wf-new-client-step-button__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--wf-crm-dark);
    color: #ffffff;
    font-size: 0.74rem;
}

.wf-new-client-step-button.active .wf-new-client-step-button__number {
    background: var(--wf-crm-primary);
}

.wf-new-client-step {
    width: 100%;
}

.wf-new-client-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.wf-new-client-section {
    border: 1px solid var(--wf-crm-border);
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
    min-width: 0;
}

.wf-new-client-section--portal,
.wf-new-client-section--personal,
.wf-new-client-section--location,
.wf-new-client-section--contact {
    grid-column: span 3;
}

.wf-new-client-section--template,
.wf-new-client-section--taxes {
    grid-column: 1 / span 12 !important;
    width: 100%;
    justify-self: stretch;
}

.wf-new-client-section--billing,
.wf-new-client-section--notifications {
    grid-column: span 6;
}

.wf-new-client-section__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--wf-crm-title);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wf-new-client-section__title [class^="mif-"],
.wf-new-client-section__title [class*=" mif-"] {
    color: var(--wf-crm-teal);
}

.wf-new-client-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wf-new-client-fields--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wf-new-client-fields--template {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
    align-items: end;
}

.wf-new-client-section--portal .wf-new-client-fields,
.wf-new-client-section--personal .wf-new-client-fields,
.wf-new-client-section--location .wf-new-client-fields,
.wf-new-client-section--contact .wf-new-client-fields {
    grid-template-columns: 1fr;
}

.wf-new-client-field {
    min-width: 0;
}

.wf-new-client-field--full {
    grid-column: 1 / -1;
}

.wf-new-client-field--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid var(--wf-crm-border-soft);
    border-radius: 10px;
    background: #f8fafc;
}

.wf-new-client-field label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.wf-new-client-page input,
.wf-new-client-page select,
.wf-new-client-page textarea,
.wf-new-client-page .input,
.wf-new-client-page .select,
.wf-new-client-page .textarea {
    width: 100% !important;
}

.wf-new-client-id-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wf-new-client-id-row .input,
.wf-new-client-id-row input {
    min-width: 0;
}

.wf-new-client-helper,
.wf-new-client-template-note {
    display: block;
    margin-top: 4px;
    color: #475569;
    font-size: 11px;
    line-height: 1.35;
}

.wf-new-client-template-note {
    padding: 10px 12px;
    border: 1px solid var(--wf-crm-border-soft);
    border-radius: 10px;
    background: #f8fafc;
}

.wf-new-client-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--wf-crm-border-soft);
}

.wf-crm-form-grid,
.wf-dialog-window__content > .row,
.wf-ticket-section > .row,
.dialog.wf-popup-dialog [data-role="accordion"] .content .row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px !important;
    width: 100%;
    margin: 0 !important;
}

.wf-dialog-window__content > .row > [class*="cell-"],
.wf-ticket-section > .row > [class*="cell-"],
.wf-crm-form-grid > [class*="cell-"],
.dialog.wf-popup-dialog [data-role="accordion"] .content .row > [class*="cell-"] {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
}

.wf-dialog-window__content > .row > .cell-md-12,
.wf-dialog-window__content > .row > .cell-sm-12,
.wf-ticket-section > .row > .cell-md-12,
.wf-ticket-section > .row > .cell-sm-12,
.wf-crm-form-grid > .cell-md-12,
.wf-crm-form-grid > .cell-sm-12,
.dialog.wf-popup-dialog [data-role="accordion"] .content .row > .cell-md-12,
.dialog.wf-popup-dialog [data-role="accordion"] .content .row > .cell-sm-12 {
    grid-column: 1 / -1;
}

.wf-dialog-window__content label,
.wf-dialog-window__content b,
.wf-ticket-section label,
.wf-ticket-section b,
.wf-crm-form-grid label,
.wf-crm-form-grid b {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.wf-dialog-window__content input,
.wf-dialog-window__content textarea,
.wf-dialog-window__content select,
.wf-dialog-window__content .input,
.wf-dialog-window__content .select,
.wf-dialog-window__content .textarea,
.wf-ticket-section input,
.wf-ticket-section textarea,
.wf-ticket-section select,
.wf-ticket-section .input,
.wf-ticket-section .select,
.wf-ticket-section .textarea {
    width: 100% !important;
}

.wf-dialog-window__content .cell-md-12 > .place-right,
.wf-dialog-window__content .text-right,
.wf-ticket-section .text-right {
    justify-content: flex-end;
}

.wf-dialog-window__content > .row > .cell-md-12:last-child,
.wf-dialog-window__content > .row > .cell-sm-12:last-child,
.wf-ticket-section > .row > .cell-md-12:last-child,
.wf-ticket-section > .row > .cell-sm-12:last-child {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 10px !important;
    border-top: 1px solid var(--wf-crm-border-soft);
}

.wf-dialog-window__content .row .row,
.wf-ticket-section .row .row {
    margin: 0 !important;
}

.dialog.wf-popup-dialog [data-role="accordion"],
.dialog.wf-popup-dialog .accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dialog.wf-popup-dialog [data-role="accordion"] .frame,
.dialog.wf-popup-dialog .accordion .frame {
    border: 1px solid var(--wf-crm-border);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.dialog.wf-popup-dialog [data-role="accordion"] .heading,
.dialog.wf-popup-dialog .accordion .heading {
    min-height: 34px;
    padding: 9px 12px !important;
    border-bottom: 1px solid var(--wf-crm-border-soft);
    background: #ffffff !important;
    color: var(--wf-crm-title) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dialog.wf-popup-dialog [data-role="accordion"] .content,
.dialog.wf-popup-dialog .accordion .content {
    padding: 12px !important;
}

.wf-settings-card,
.wf-ticket-subpanel,
.wf-router-card,
.wf-service-config-card {
    border: 1px solid var(--wf-crm-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none !important;
}

.wf-ticket-subpanel::before,
.wf-router-card::before,
.wf-service-config-card::before {
    content: attr(data-title-caption);
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 12px 12px 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wf-ticket-subpanel.panel > .panel-title,
.wf-router-card.panel > .panel-title,
.wf-service-config-card.panel > .panel-title {
    display: none !important;
}

.wf-ticket-subpanel.panel > .panel-content,
.wf-router-card.panel > .panel-content,
.wf-service-config-card.panel > .panel-content {
    padding: 12px !important;
}

.wf-ticket-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wf-ticket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.wf-ticket-header__copy {
    min-width: 0;
}

.wf-ticket-header__eyebrow,
.wf-ticket-thread-heading__label,
.wf-client-ticket-card__number,
.wf-ticket-info-card__title {
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wf-ticket-header__title {
    margin: 2px 0 6px;
    color: var(--wf-crm-title, #0f172a);
    font-size: 22px;
    line-height: 1.15;
}

.wf-ticket-header__meta,
.wf-client-ticket-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #475569;
    font-size: 12px;
}

.wf-ticket-header__actions,
.wf-module-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.wf-ticket-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.wf-ticket-header-details {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 12px;
}

.wf-ticket-info-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--wf-crm-border, #d5dfeb);
    border-radius: 8px;
    background: #ffffff;
}

.wf-ticket-info-card__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: #0f172a;
}

.wf-ticket-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.wf-ticket-info-grid > div {
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--wf-crm-border-soft, #e5edf5);
    border-radius: 8px;
    background: #f8fafc;
}

.wf-ticket-info-grid__wide {
    grid-column: 1 / -1;
}

.wf-ticket-info-grid span {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wf-ticket-info-grid strong {
    display: block;
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.3;
}

.wf-ticket-switcher {
    margin-top: 0;
}

.wf-ticket-conversation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.38fr);
    gap: 12px;
    align-items: start;
}

.wf-ticket-thread-shell,
.wf-ticket-reply-panel,
.wf-client-ticket-reply {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--wf-crm-border, #d5dfeb);
    border-radius: 8px;
    background: #ffffff;
}

.wf-ticket-thread-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #475569;
    font-size: 12px;
}

.wf-ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wf-ticket-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    max-width: 86%;
}

.wf-ticket-message--staff {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.wf-ticket-message--note {
    max-width: 100%;
}

.wf-ticket-message__avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.wf-ticket-message--client .wf-ticket-message__avatar {
    background: #0f766e;
}

.wf-ticket-message--note .wf-ticket-message__avatar {
    background: #7c3aed;
}

.wf-ticket-message__body {
    min-width: 0;
    max-width: 100%;
    padding: 10px;
    border: 1px solid var(--wf-crm-border-soft, #e5edf5);
    border-radius: 8px;
    background: #f8fafc;
}

.wf-ticket-message--staff .wf-ticket-message__body {
    background: #eff6ff;
}

.wf-ticket-message--note .wf-ticket-message__body {
    background: #f5f3ff;
}

.wf-ticket-message__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
}

.wf-ticket-message__meta strong {
    color: #0f172a;
}

.wf-ticket-message__role,
.wf-ticket-message__tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 18px;
    margin-left: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wf-ticket-message__role--client,
.wf-ticket-message__tag--reply {
    background: #0f766e;
}

.wf-ticket-message__role--staff {
    background: #1d4ed8;
}

.wf-ticket-message__tag--note {
    background: #7c3aed;
}

.wf-ticket-message__tags {
    margin-bottom: 6px;
}

.wf-ticket-message__tag {
    margin-left: 0;
}

.wf-ticket-message__content {
    color: #0f172a;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.wf-ticket-message__content p:last-child {
    margin-bottom: 0;
}

.wf-ticket-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.wf-ticket-attachment {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid var(--wf-crm-border-soft, #e5edf5);
    border-radius: 999px;
    color: #0f172a;
    font-size: 11px;
    text-decoration: none;
}

.wf-ticket-attachment:hover {
    text-decoration: underline;
}

.wf-ticket-editor-shell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wf-ticket-editor-shell__label,
.wf-client-ticket-reply label {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.wf-ticket-editor,
.wf-client-ticket-reply textarea {
    width: 100%;
    min-height: 94px;
    resize: vertical;
}

.wf-client-ticket-table-shell {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--wf-crm-border, #d5dfeb);
    border-radius: 8px;
    background: #ffffff;
}

.wf-client-ticket-table {
    min-width: 980px;
    margin-bottom: 0;
}

.wf-client-ticket-table th,
.wf-client-ticket-table td {
    vertical-align: middle;
    white-space: nowrap;
}

.wf-client-ticket-table td:nth-child(2) {
    min-width: 260px;
    white-space: normal;
}

.wf-client-ticket-actions-cell {
    width: 1%;
    white-space: nowrap !important;
}

.wf-client-ticket-actions {
    --wf-client-ticket-view-button-width: 104px;
    --wf-client-ticket-close-button-width: 86px;
    display: inline-grid;
    grid-template-columns: var(--wf-client-ticket-view-button-width) var(--wf-client-ticket-close-button-width);
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: max-content;
    white-space: nowrap;
}

.wf-client-ticket-actions .button {
    width: 100%;
    min-width: 0;
}

.wf-client-ticket-actions__placeholder {
    display: block;
    width: var(--wf-client-ticket-close-button-width);
    min-width: var(--wf-client-ticket-close-button-width);
    height: 32px;
    visibility: hidden;
}

.wf-client-invoice-actions-cell {
    width: 1%;
    white-space: nowrap !important;
}

.wf-client-invoice-actions {
    --wf-client-invoice-pay-width: 76px;
    --wf-client-invoice-view-width: 76px;
    --wf-client-invoice-pdf-width: 64px;
    display: inline-grid;
    grid-template-columns: var(--wf-client-invoice-pay-width) var(--wf-client-invoice-view-width) var(--wf-client-invoice-pdf-width);
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: max-content;
    white-space: nowrap;
}

.wf-client-invoice-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 28px;
    padding: 0 8px !important;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
}

.wf-client-invoice-action--pay,
.wf-client-invoice-action-placeholder {
    grid-column: 1;
}

.wf-client-invoice-action--view {
    grid-column: 2;
}

.wf-client-invoice-action--pdf {
    grid-column: 3;
}

.wf-client-invoice-action-placeholder {
    display: block;
    width: var(--wf-client-invoice-pay-width);
    height: 28px;
    visibility: hidden;
}

.wf-client-invoice-action i {
    font-size: 12px;
    line-height: 1;
}

.wf-client-ticket-subject {
    color: #0f172a !important;
    font-weight: 700;
    text-decoration: none !important;
}

.wf-client-ticket-subject:hover {
    color: #0f172a !important;
    text-decoration: underline !important;
}

.wf-client-ticket-row--active td {
    background: #eaf3ff !important;
}

.wf-client-ticket-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--wf-crm-border, #d5dfeb);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.wf-client-ticket-detail-header__copy {
    min-width: 0;
}

.wf-client-ticket-detail-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    color: var(--wf-crm-title, #0f172a);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wf-client-ticket-detail-header__eyebrow [class^="mif-"],
.wf-client-ticket-detail-header__eyebrow [class*=" mif-"] {
    color: var(--wf-crm-teal, #009688);
}

.wf-client-ticket-detail-header__title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wf-client-ticket-detail-header h2 {
    margin: 3px 0 5px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.15;
}

.wf-client-ticket-detail {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.wf-client-ticket-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--wf-crm-border, #d5dfeb);
    border-radius: 8px;
    background: #ffffff;
}

.wf-client-ticket-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.wf-client-ticket-card h2 {
    margin: 2px 0 5px;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.2;
}

.wf-client-ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--wf-crm-border-soft, #e5edf5);
    border-radius: 8px;
    background: #f8fafc;
}

.wf-client-ticket-detail__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.wf-client-ticket-reply {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wf-client-ticket-close-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--wf-crm-border-soft, #e5edf5);
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
}

.wf-client-ticket-close-copy strong {
    color: #0f172a;
    font-size: 14px;
}

.wf-client-ticket-close-copy,
.wf-client-ticket-close-copy * {
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .wf-ticket-header-details,
    .wf-ticket-conversation-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .wf-ticket-header,
    .wf-client-ticket-card__header,
    .wf-client-ticket-detail-header,
    .wf-ticket-thread-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .wf-client-ticket-detail-header__title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .wf-client-ticket-detail__actions .button {
        width: 100%;
    }

    .wf-ticket-info-grid {
        grid-template-columns: 1fr;
    }

    .wf-ticket-message {
        width: 100%;
        max-width: 100%;
    }

    .wf-client-ticket-thread {
        overflow-x: hidden;
        padding: 8px;
    }

    .wf-ticket-message__body {
        overflow-x: hidden;
        width: min(100%, calc(100vw - 112px)) !important;
        max-width: calc(100vw - 112px) !important;
    }

    .wf-ticket-message__content,
    .wf-ticket-message__content * {
        max-width: 100%;
        white-space: normal !important;
        word-break: break-word;
    }

    .wf-ticket-message__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

}

.wf-router-settings-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.75fr) minmax(0, 1.1fr);
    gap: 12px !important;
    margin: 0 !important;
}

.wf-router-settings-grid > [class*="cell-"] {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wf-router-settings-grid > .cell-md-12,
.wf-router-settings-grid > .cell-sm-12 {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    padding-top: 10px !important;
    border-top: 1px solid var(--wf-crm-border-soft);
}

.wf-router-settings-grid > .cell-md-12 .place-right,
.wf-router-settings-grid > .cell-sm-12 .place-right {
    float: none !important;
}

.wf-router-settings-grid .panel {
    height: auto !important;
}

.swal2-popup.wf-crm-notify {
    width: min(440px, calc(100vw - 28px)) !important;
    padding: 0 !important;
    border: 1px solid #dbe5f0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.28) !important;
    overflow: hidden !important;
}

.swal2-popup.wf-crm-notify .swal2-icon {
    margin: 24px auto 10px !important;
    transform: scale(0.82);
}

.wf-crm-notify__title {
    margin: 0 !important;
    padding: 0 24px !important;
    color: #0f172a !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.wf-crm-notify__html {
    margin: 8px 0 0 !important;
    padding: 0 28px 24px !important;
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.wf-crm-notify__html ul {
    margin: 0;
    padding-left: 18px;
    text-align: left;
}

.wf-crm-notify__timer {
    background: #0f766e !important;
}

/* Portal cliente: botones y chips con el mismo estándar visual del panel administrativo. */
.client-navview .button,
.wf-client-payment-dialog .button,
.wf-client-impersonation-bar .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px !important;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    text-decoration: none !important;
}

.client-navview .button.small,
.client-navview .wf-client-invoice-action,
.client-navview .wf-client-ticket-actions .button {
    min-height: 28px;
    height: 28px;
    padding: 0 8px !important;
    border-radius: 7px !important;
    font-size: 0.82rem;
    font-weight: 800;
}

.client-navview .wf-client-invoice-actions {
    --wf-client-invoice-pay-width: 76px;
    --wf-client-invoice-view-width: 76px;
    --wf-client-invoice-pdf-width: 64px;
    gap: 5px;
}

.client-navview .wf-client-ticket-actions {
    --wf-client-ticket-view-button-width: 100px;
    --wf-client-ticket-close-button-width: 82px;
    gap: 5px;
}

.client-navview .wf-client-ticket-actions__placeholder {
    height: 28px;
}

.client-navview .button.cycle {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0 !important;
    border-radius: 8px !important;
}

.client-navview .wf-exp-icon-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 8px !important;
}

.client-navview .wf-client-pay-option {
    appearance: none;
    border-radius: 8px !important;
}

.client-navview .wf-client-status-chip,
.client-navview .wf-client-status-badge,
.client-navview .wf-ticket-status,
.client-navview .wf-ticket-message__role,
.client-navview .wf-ticket-message__tag {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: fit-content;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 7px !important;
    color: #ffffff !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.client-navview .wf-client-status-badge {
    min-height: 28px;
    padding: 0 10px;
}

.client-navview .wf-client-status-chip.bg-yellow {
    background-color: #facc15 !important;
    color: #111827 !important;
}

.client-navview .wf-ticket-header .wf-ticket-status {
    min-height: 34px;
    padding: 0 12px;
}

.client-navview .wf-ticket-message__role--client,
.client-navview .wf-ticket-message__tag--reply {
    background: var(--wf-crm-teal, #0f766e) !important;
}

.client-navview .wf-ticket-message__role--staff {
    background: var(--wf-crm-primary, #0f6cbd) !important;
}

.client-navview .wf-ticket-message__tag--note {
    background: #7c3aed !important;
}

.client-navview .divtabladinamica table.table.subcompact,
.client-navview .wf-client-ticket-table {
    font-size: 0.91rem;
    min-width: 920px;
    table-layout: auto !important;
}

.client-navview .divtabladinamica table.table.subcompact thead th,
.client-navview .wf-client-ticket-table thead th {
    padding: 7px 8px !important;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    vertical-align: middle;
    white-space: nowrap;
}

.client-navview .divtabladinamica table.table.subcompact tbody td,
.client-navview .wf-client-ticket-table tbody td {
    height: 34px;
    padding: 4px 8px !important;
    font-size: 0.91rem;
    line-height: 1.22;
    vertical-align: middle;
    white-space: nowrap;
}

.client-navview .wf-client-ticket-table tbody td:nth-child(2) {
    white-space: normal;
}
.wf-client-dashboard,
.wf-client-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wf-client-dashboard {
    gap: 12px;
}

.wf-client-home {
    gap: 8px;
    min-height: var(--wf-client-home-visible-height, 0);
}

.wf-client-section {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--wf-crm-border, #d5dfeb);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.wf-client-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
    gap: 12px;
    align-items: stretch;
}

.wf-client-dashboard-grid--home {
    grid-template-columns: minmax(0, 2.4fr) minmax(280px, 0.85fr);
}

.wf-client-account-summary {
    gap: 8px;
}

.wf-client-section-header {
    min-height: 36px;
}

.wf-client-account-kpis {
    display: grid;
    grid-template-columns:
        minmax(115px, 0.6fr)
        minmax(130px, 0.65fr)
        minmax(290px, 1.35fr)
        minmax(300px, 1.4fr)
        minmax(145px, 0.7fr)
        minmax(155px, 0.75fr);
    gap: 8px;
}

.wf-client-account-kpi {
    display: grid;
    align-content: start;
    gap: 3px;
    min-height: 68px;
    padding: 8px 10px;
    border: 1px solid var(--wf-crm-border-soft, #e2e8f0);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.wf-client-account-kpi span {
    color: #475569;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wf-client-account-kpi strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.16;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-client-account-kpi__secondary {
    margin-top: -3px;
}

.wf-client-contact-line {
    display: flex !important;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.wf-client-contact-line > span:last-child {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
    line-height: inherit;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.wf-client-country-flag {
    position: relative;
    display: inline-flex;
    flex: 0 0 22px;
    width: 22px;
    height: 14px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.wf-client-country-flag > span {
    display: block;
    width: 100%;
    height: 100%;
}

.wf-client-country-flag--mx > span {
    background: linear-gradient(90deg, #006847 0 33.33%, #ffffff 33.33% 66.66%, #ce1126 66.66% 100%);
}

.wf-client-country-flag--us > span {
    background: repeating-linear-gradient(to bottom, #b22234 0 2px, #ffffff 2px 4px);
}

.wf-client-country-flag--us::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 11px;
    height: 8px;
    background: #3c3b6e;
}

.wf-client-contact-icon {
    display: inline-flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0369a1;
}

.wf-client-account-kpi .wf-client-contact-icon span {
    color: inherit;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.wf-client-account-kpi small {
    display: block;
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-client-account-kpi__inline-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.wf-client-account-kpi__inline-value strong {
    flex: 0 0 auto;
}

.wf-client-account-kpi__inline-value small {
    min-width: 0;
}

.wf-client-account-kpi__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
}

.wf-client-account-kpi__button:hover {
    background: #1e293b;
}

.wf-client-account-kpi__button span {
    color: inherit;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.wf-client-status-chip--account {
    align-items: center;
    display: inline-flex !important;
    width: max-content;
    max-width: 100%;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.wf-client-service-kpi {
    border-left: 3px solid #94a3b8;
}

.wf-client-service-kpi--online {
    border-left-color: #16a34a;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.wf-client-service-kpi--offline {
    border-left-color: #dc2626;
    background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
}

.wf-client-service-kpi--unknown {
    border-left-color: #f59e0b;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.wf-client-service-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    max-width: 100%;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    color: #ffffff !important;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.wf-client-service-kpi--online .wf-client-service-state {
    background: #16a34a;
}

.wf-client-service-kpi--offline .wf-client-service-state {
    background: #dc2626;
}

.wf-client-service-kpi--unknown .wf-client-service-state {
    background: #f59e0b;
    color: #111827 !important;
}

.wf-client-account-kpi .wf-client-service-state span {
    color: inherit;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.wf-client-service-kpi small {
    white-space: normal;
}

.wf-client-service-status-select {
    width: 100%;
    min-width: 0;
    height: 28px;
    padding: 0 8px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
}

.wf-client-account {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(380px, 1.6fr) auto;
    gap: 12px;
    align-items: center;
    border-left-width: 6px;
}

.wf-client-account--vencido {
    border-left-color: #dc2626;
    background: linear-gradient(90deg, #fff1f2 0%, #ffffff 42%);
}

.wf-client-account--pendiente {
    border-left-color: #f59e0b;
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 42%);
}

.wf-client-account--sin-deuda {
    border-left-color: #16a34a;
    background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 42%);
}

.wf-client-account__main,
.wf-client-account__metrics,
.wf-client-account__actions {
    min-width: 0;
}

.wf-client-account__main {
    display: grid;
    gap: 5px;
}

.wf-client-account__main strong {
    color: var(--wf-crm-title, #0f172a);
    font-size: 30px;
    line-height: 1.05;
}

.wf-client-account__main p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.35;
}

.wf-client-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wf-client-account--vencido .wf-client-status-badge {
    background: #dc2626;
}

.wf-client-account--pendiente .wf-client-status-badge {
    background: #d97706;
}

.wf-client-account--sin-deuda .wf-client-status-badge {
    background: #16a34a;
}

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

.wf-client-account__metrics > div,
.wf-client-service-summary__body > div {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--wf-crm-border-soft, #e2e8f0);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.wf-client-account__metrics span,
.wf-client-service-summary__body span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wf-client-account__metrics strong,
.wf-client-service-summary__body strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-client-account__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.wf-client-service-summary__body {
    display: grid;
    gap: 8px;
}

.wf-client-service-summary__body small {
    display: block;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-client-kpis,
.wf-client-payment-grid,
.wf-client-shortcuts,
.wf-client-form-grid {
    display: grid;
    gap: 10px;
}

.wf-client-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wf-client-kpi,
.wf-client-payment-card,
.wf-client-shortcut,
.wf-client-support-form {
    border: 1px solid var(--wf-crm-border-soft, #e2e8f0);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.wf-client-kpi {
    min-height: 82px;
    padding: 10px 12px;
}

.wf-client-kpi__label,
.wf-client-payment-card__label {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wf-client-kpi strong,
.wf-client-payment-card strong {
    display: block;
    color: var(--wf-crm-title, #0f172a);
    font-size: 18px;
    line-height: 1.25;
}

.wf-client-kpi small,
.wf-client-payment-card small {
    color: #64748b;
    font-size: 12px;
}

.wf-client-payment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wf-client-payment-section {
    gap: 12px;
    border-left-width: 6px;
}

.wf-client-payment-section--vencido {
    border-left-color: #dc2626;
    background: linear-gradient(90deg, #fff1f2 0%, #ffffff 38%);
}

.wf-client-payment-section--pendiente {
    border-left-color: #facc15;
    background: linear-gradient(90deg, #fffbeb 0%, #ffffff 38%);
}

.wf-client-payment-section--sin-deuda {
    border-left-color: #16a34a;
    background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 38%);
}

.wf-client-payment-section__header {
    align-items: center;
}

.wf-client-payment-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.wf-client-payment-header-button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.wf-client-payment-section--vencido .wf-client-payment-state {
    background: #dc2626;
}

.wf-client-payment-section--pendiente .wf-client-payment-state {
    background: #facc15;
    color: #111827;
}

.wf-client-payment-section--sin-deuda .wf-client-payment-state {
    background: #16a34a;
}

.wf-client-payment-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 98px;
    padding: 12px;
}

.wf-client-payment-card__actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.wf-client-pay-inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.wf-client-pay-mini-action,
.wf-client-payment-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    font-size: 17px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.wf-client-pay-mini-action {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 16px;
}

.wf-client-pay-mini-action--copy {
    color: #0f766e;
}

.wf-client-pay-mini-action--share {
    color: #1d4ed8;
}

.wf-client-pay-mini-action:hover,
.wf-client-payment-info-button:hover {
    border-color: #94a3b8;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.wf-client-payment-info-button--transfer {
    color: #0f766e;
}

.wf-client-payment-info-button--oxxo {
    color: #dc2626;
}

.wf-client-payment-card--oxxo {
    border-left: 4px solid #dc2626;
}

.wf-client-payment-card--transfer {
    border-left: 4px solid #16a34a;
}

.wf-client-payment-card--card {
    border-left: 4px solid #1d4ed8;
}

.wf-client-payment-card > div:nth-child(2) {
    min-width: 0;
    flex: 1 1 auto;
}

.wf-client-payment-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-client-payment-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 64px;
    min-width: 72px;
    border-radius: 8px;
    font-size: 25px;
}

.wf-client-payment-card__visual {
    display: grid;
    place-items: center;
    gap: 2px;
    width: 72px;
    min-width: 72px;
    height: 64px;
    overflow: hidden;
    border-radius: 8px;
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.wf-client-payment-card__visual span {
    font-size: 25px;
    line-height: 1;
}

.wf-client-payment-card__visual em {
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
}

.wf-client-payment-card__visual--cash {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 48%, #f97316 100%);
}

.wf-client-payment-card__visual--spei {
    background: linear-gradient(135deg, #047857 0%, #0d9488 48%, #2563eb 100%);
}

.wf-client-payment-card__visual--bbva {
    background: linear-gradient(135deg, #043263 0%, #1464a5 52%, #49a5e6 100%);
}

.wf-client-info-dialog .dialog-title {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.2;
}

.wf-client-info-dialog .dialog-title > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0 !important;
    line-height: 1;
}

.wf-client-info-dialog .dialog-content {
    padding: 18px 18px 8px;
}

.wf-client-info-dialog__hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.wf-client-info-dialog__hero > span {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
}

.wf-client-info-dialog__hero > div {
    min-width: 0;
}

.wf-client-info-dialog__hero strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.2;
}

.wf-client-info-dialog__hero p {
    margin: 4px 0 0;
    color: #475569;
    line-height: 1.35;
}

.wf-client-info-dialog__hero--transfer {
    background: #ecfdf5;
}

.wf-client-info-dialog__hero--transfer > span {
    background: #0f766e;
}

.wf-client-info-dialog__hero--oxxo {
    background: #fff7ed;
}

.wf-client-info-dialog__hero--oxxo > span {
    background: #dc2626;
}

.wf-client-info-data {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
}

.wf-client-info-data > div {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 6px;
    align-items: center;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.wf-client-info-data dt {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wf-client-info-data dd {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.wf-client-info-data__amount {
    background: #f8fafc;
}

.wf-client-info-data__amount dd {
    color: #0f766e;
    font-size: 20px;
}

.wf-client-info-data .wf-client-pay-inline-actions {
    justify-self: end;
    justify-content: flex-end;
}

.wf-client-info-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wf-client-info-steps li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.wf-client-info-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.wf-client-info-steps p {
    margin: 0;
    color: #334155;
    line-height: 1.35;
}

.wf-client-info-note {
    margin: 16px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 700;
}

.wf-client-payment-exact-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 13px;
    font-weight: 900;
}

.wf-client-banners {
    width: 100%;
    margin-top: auto;
}

.wf-client-banner-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 2135 / 313;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--wf-crm-border, #d5dfeb);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.wf-client-banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease;
}

.wf-client-banner {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
}

.wf-client-banner--text-only {
    grid-template-columns: 1fr;
}

.wf-client-banner--image-only {
    grid-template-columns: 1fr;
}

.wf-client-banner__media {
    position: relative;
    min-width: 0;
    height: 100%;
    min-height: 0;
    background: #f8fafc;
}

.wf-client-banner__media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    display: block;
}

.wf-client-banner__content {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 3;
    display: grid;
    justify-items: start;
    gap: 8px;
    max-width: min(520px, calc(100% - 32px));
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.84);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.wf-client-banner--text-only .wf-client-banner__content {
    position: static;
    max-width: none;
    min-height: 0;
    align-content: center;
    padding: 18px 22px;
    border-color: transparent;
    background: #ffffff;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.wf-client-banner:hover .wf-client-banner__content,
.wf-client-banner:focus-within .wf-client-banner__content {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.wf-client-banner__content strong {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.18;
}

.wf-client-banner__content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 1.35;
}

.wf-client-banner--text-only .wf-client-banner__content strong {
    color: #0f172a;
}

.wf-client-banner--text-only .wf-client-banner__content p {
    color: #475569;
}

.wf-client-banner-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.42);
    color: #ffffff;
    cursor: pointer;
    opacity: 0.72;
    transform: translateY(-50%);
    transition: background 0.18s ease, opacity 0.18s ease;
}

.wf-client-banner-arrow:hover,
.wf-client-banner-arrow:focus {
    background: rgba(15, 23, 42, 0.72);
    opacity: 1;
}

.wf-client-banner-arrow--prev {
    left: 12px;
}

.wf-client-banner-arrow--next {
    right: 12px;
}

.wf-client-banner-arrow span {
    font-size: 22px;
    line-height: 1;
}

.wf-client-shortcuts {
    grid-template-columns: 1fr;
}

.wf-client-shortcut {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px;
    color: var(--wf-crm-title, #0f172a) !important;
    text-decoration: none !important;
}

.wf-client-shortcut:hover strong {
    text-decoration: underline;
}

.wf-client-shortcut > span {
    color: var(--wf-crm-teal, #008c89);
    font-size: 18px;
}

.wf-client-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.wf-client-inline-form label {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.wf-client-native-select {
    min-height: 34px;
    padding: 0 30px 0 10px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-weight: 700;
}

.wf-client-results {
    position: relative;
}

.wf-client-results.is-loading {
    min-height: 120px;
}

.wf-client-results.is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.74);
}

.wf-client-results.is-loading::after {
    content: "Actualizando comprobantes...";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    transform: translate(-50%, -50%);
    padding: 8px 12px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    font-size: 12px;
    font-weight: 800;
}

.wf-client-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wf-client-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wf-client-field--span-2 {
    grid-column: span 2;
}

.wf-client-field--span-3,
.wf-client-form-actions {
    grid-column: 1 / -1;
}

.wf-client-field label,
.wf-client-subsection-title {
    color: var(--wf-crm-title, #0f172a);
    font-size: 12px;
    font-weight: 800;
}

.wf-client-subsection-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wf-client-field input,
.wf-client-field select,
.wf-client-field textarea,
.wf-client-country-select {
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #d3dbe6;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
}

.wf-client-field input.is-valid {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12) !important;
}

.wf-client-field input.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.wf-client-country-select {
    appearance: auto;
    background: #ffffff;
    font-weight: 700;
}

.wf-client-country-picker {
    position: relative;
}

.wf-client-combobox {
    position: relative;
    width: 100%;
}

.wf-client-combobox.is-open {
    z-index: 9001;
}

.wf-client-field .wf-client-combobox input {
    padding-right: 44px;
}

.wf-client-combobox__toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-height: 36px;
    border: 0;
    border-left: 1px solid #d3dbe6;
    border-radius: 0 8px 8px 0;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
}

.wf-client-combobox__toggle:hover,
.wf-client-combobox__toggle:focus {
    background: #e8eef6;
    outline: none;
}

.wf-client-combobox__menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 9002;
    display: none;
    max-height: min(360px, 48vh);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #c8d4e2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.wf-client-combobox.is-open .wf-client-combobox__menu {
    display: grid;
    gap: 3px;
}

.wf-client-combobox__option {
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.wf-client-combobox__option:hover,
.wf-client-combobox__option:focus {
    background: #eef4fb;
    outline: none;
}

.wf-client-country-button,
.wf-client-country-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #d3dbe6;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.wf-client-country-button .mif-chevron-down {
    margin-left: auto;
    color: #64748b;
}

.wf-client-country-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 60;
    display: none;
    width: 100%;
    padding: 4px;
    border: 1px solid #d3dbe6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.wf-client-country-picker.is-open .wf-client-country-menu {
    display: grid;
    gap: 4px;
}

.wf-client-country-option {
    border-color: transparent;
    border-radius: 6px;
}

.wf-client-country-option:hover,
.wf-client-country-option.is-active {
    background: #edf6ff;
    border-color: #bfdbfe;
}

.wf-country-flag {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 16px;
    min-width: 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.08);
}

.wf-country-flag--mx {
    background: linear-gradient(90deg, #006847 0 33.33%, #ffffff 33.33% 66.66%, #ce1126 66.66% 100%);
}

.wf-country-flag--mx::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #9f7a2f;
}

.wf-country-flag--us {
    background: repeating-linear-gradient(to bottom, #b22234 0 1.23px, #ffffff 1.23px 2.46px);
}

.wf-country-flag--us::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 8.6px;
    background: #3c3b6e;
}

.wf-client-field-help {
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
}

.wf-client-field-help--whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0f766e;
    font-weight: 800;
}

.wf-client-field-help--whatsapp .mif-whatsapp {
    color: #16a34a;
    font-size: 13px;
}

.wf-client-password-input {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.wf-client-password-input input {
    min-width: 0;
    border-radius: 8px 0 0 8px;
}

.wf-client-password-input button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    border: 1px solid #d3dbe6;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
}

.wf-client-password-input button:hover {
    background: #edf6ff;
}

.wf-client-field textarea {
    min-height: 108px;
    resize: vertical;
}

.wf-client-field--readonly input,
.wf-client-field input[readonly] {
    background: #f8fafc;
    color: #475569;
}

.wf-client-field--hint {
    justify-content: end;
    color: #64748b;
    font-size: 12px;
}

.wf-client-verification-card {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #0ea5e9;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.wf-client-verification-card__header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #0f172a;
}

.wf-client-verification-card__header > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #0f766e;
    color: #ffffff;
    flex: 0 0 34px;
}

.wf-client-verification-card__header strong,
.wf-client-verification-item strong {
    display: block;
    color: #0f172a;
    font-weight: 900;
}

.wf-client-verification-card__header small,
.wf-client-verification-item small {
    display: block;
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
}

.wf-client-verification-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wf-client-verification-item {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.wf-client-verification-item__label {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wf-client-verification-item input {
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.wf-client-verification-error {
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
}

.wf-client-verification-card__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.wf-client-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.wf-client-support-form {
    padding: 12px;
}

body.wf-client-modal-open {
    overflow: hidden;
}

.swal2-container {
    z-index: 20000 !important;
}

.wf-client-modal {
    position: fixed;
    inset: 0;
    z-index: 7000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.wf-client-modal,
.wf-client-modal * {
    box-sizing: border-box;
}

.wf-client-modal.is-open {
    display: flex;
}

.wf-client-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
}

.wf-client-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(760px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    border: 1px solid var(--wf-crm-border, #d5dfeb);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.38);
}

.wf-client-modal__header,
.wf-client-modal__footer {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: #0f172a;
    color: #ffffff;
}

.wf-client-modal__header {
    position: relative;
}

.wf-client-modal__header h2 {
    display: inline-flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 8px;
    margin: 0;
    min-width: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.wf-client-modal__header > .button.square {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    margin-left: auto;
    position: static;
    z-index: 2;
    color: #ffffff !important;
}

.wf-client-modal__header > .button.square [class^="mif-"],
.wf-client-modal__header > .button.square [class*=" mif-"] {
    display: none;
}

.wf-client-modal__header > .button.square::after {
    content: "\00d7";
    color: #ffffff;
    font-family: var(--wf-font-sans);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.wf-client-modal__body {
    align-self: stretch;
    width: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px;
}

.wf-client-modal .wf-client-form-grid,
.wf-client-modal .wf-client-field,
.wf-client-modal input,
.wf-client-modal select,
.wf-client-modal textarea,
.wf-client-modal .ck-editor {
    min-width: 0;
    max-width: 100%;
}

.wf-client-modal input[type="file"] {
    overflow: hidden;
}

.wf-client-modal .ck.ck-editor,
.wf-client-modal .ck.ck-editor__main,
.wf-client-modal .ck.ck-editor__editable {
    width: 100%;
}

.wf-client-modal .ck.ck-toolbar,
.wf-client-modal .ck.ck-toolbar > .ck-toolbar__items {
    flex-wrap: wrap;
    white-space: normal;
}

.wf-client-modal .ck.ck-editor__editable_inline {
    min-height: 150px;
}

.wf-client-modal__footer {
    justify-content: flex-end;
    background: #f8fafc;
}

@media (max-width: 720px) {
    .wf-client-modal {
        align-items: flex-start;
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
        padding: 8px;
    }

    .wf-client-modal__dialog {
        width: calc(100vw - 16px) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 16px);
        border-radius: 8px;
    }

    .wf-client-modal__header,
    .wf-client-modal__footer {
        padding: 9px;
    }

    .wf-client-modal__header > .button.square {
        position: static !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .wf-client-modal__footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .wf-client-modal__footer .button {
        width: 100%;
    }
}

.wf-client-notifications {
    display: grid;
    gap: 8px;
}

.wf-client-notification {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--wf-crm-border-soft, #e2e8f0);
    border-radius: 8px;
    background: #ffffff;
}

.wf-client-notification.is-unread {
    background: #f8fbff;
    border-color: #bfdbfe;
}

.wf-client-notification__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #e7eef7;
    color: var(--wf-crm-teal, #008c89);
    font-size: 18px;
}

.wf-client-notification__title {
    color: var(--wf-crm-title, #0f172a);
    font-weight: 800;
}

.wf-client-notification__body {
    min-width: 0;
    color: #334155;
}

.wf-client-notification__body small {
    color: #64748b;
}

.wf-client-payment-dialog {
    max-width: min(900px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 40px);
}

.wf-client-payment-dialog .dialog-title {
    background: #111827;
    color: #ffffff;
    font-weight: 900;
}

.wf-client-payment-dialog .dialog-content {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    background: #f8fafc;
}

.wf-client-pay-shell {
    display: grid;
    grid-template-columns: minmax(190px, 0.75fr) minmax(220px, 1fr) minmax(280px, 1.25fr);
    gap: 12px;
    align-items: stretch;
}

.wf-client-pay-summary,
.wf-client-pay-option,
.wf-client-pay-detail {
    border: 1px solid #d7e1ed;
    border-radius: 8px;
    background: #ffffff;
}

.wf-client-pay-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 14px;
}

.wf-client-pay-summary span,
.wf-client-pay-option small,
.wf-client-pay-detail p,
.wf-client-pay-list dt {
    color: #64748b;
}

.wf-client-pay-summary span,
.wf-client-pay-list dt {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wf-client-pay-summary strong {
    color: #0f172a;
    font-size: 30px;
    line-height: 1.05;
}

.wf-client-pay-summary small,
.wf-client-pay-option small {
    font-size: 12px;
}

.wf-client-pay-options {
    display: grid;
    gap: 8px;
}

.wf-client-pay-option {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 10px;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}

.wf-client-pay-option:hover,
.wf-client-pay-option.is-active {
    border-color: #0f766e;
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.14);
}

.wf-client-pay-option img {
    grid-row: 1 / 3;
    width: 104px;
    max-width: 104px;
    max-height: 42px;
    object-fit: contain;
}

.wf-client-pay-option span {
    display: block;
    overflow: hidden;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-client-pay-detail {
    min-height: 238px;
    padding: 14px;
}

.wf-client-pay-detail h5 {
    margin: 0 0 8px;
    color: #0f172a;
    font-weight: 900;
}

.wf-client-pay-reference {
    margin: 10px 0;
    padding: 12px;
    border: 1px dashed #16a34a;
    border-radius: 8px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
}

.wf-client-pay-value-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

.wf-client-pay-value-row .wf-client-pay-reference {
    min-width: 0;
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.03em;
}

.wf-client-pay-value-row .wf-client-pay-inline-actions {
    flex: 0 0 auto;
}

.wf-client-pay-brand {
    display: block;
    max-height: 58px;
    margin: 12px auto 0;
    object-fit: contain;
}

.wf-client-pay-list {
    display: grid;
    gap: 7px;
    margin: 10px 0;
}

.wf-client-pay-list > div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.wf-client-pay-list dd {
    margin: 0;
    color: #0f172a;
    word-break: break-word;
}

.wf-client-pay-list dd.wf-client-pay-list-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.wf-client-pay-card-icon {
    margin: 12px 0;
}

.wf-client-pay-secure-button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 12px 0 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    white-space: normal;
}

.wf-client-comprobante-page {
    width: 100%;
    max-width: none;
    margin: 0;
}

.wf-client-comprobante-toolbar {
    align-items: center;
}

.wf-client-comprobante-toolbar .text-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.wf-client-comprobante-toolbar .button {
    justify-content: center;
    white-space: nowrap;
}

.wf-client-comprobante-printable {
    display: block;
    align-self: stretch;
    width: 100%;
    max-width: none;
}

.wf-client-comprobante-card {
    display: grid;
    gap: 14px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--wf-crm-border, #d5dfeb);
    border-radius: 8px;
    background: #ffffff;
    padding: 16px;
    box-shadow: none;
}

.wf-client-comprobante-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(250px, .9fr);
    gap: 12px;
    align-items: stretch;
}

.wf-client-comprobante-info {
    min-width: 0;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px;
}

.wf-client-comprobante-info span,
.wf-client-comprobante-block-title {
    display: block;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.wf-client-comprobante-info strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.25;
    margin: 4px 0 6px;
}

.wf-client-comprobante-info p {
    color: #334155;
    font-size: 12px;
    line-height: 1.35;
    margin: 2px 0 0;
}

.wf-client-comprobante-info--invoice {
    text-align: right;
}

.wf-client-comprobante-date,
.wf-client-comprobante-folio {
    font-size: 20px !important;
    font-weight: 800;
}

.wf-client-comprobante-block {
    min-width: 0;
    border-top: 1px solid #e2eaf3;
    padding-top: 14px;
}

.wf-client-comprobante-table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.wf-client-comprobante-items-table,
.wf-client-comprobante-operations-table {
    width: 100%;
    margin: 8px 0 0;
    table-layout: fixed;
}

.wf-client-comprobante-items-table {
    min-width: 980px;
}

.wf-client-comprobante-operations-table {
    min-width: 620px;
}

.wf-client-comprobante-items-table th,
.wf-client-comprobante-items-table td,
.wf-client-comprobante-operations-table th,
.wf-client-comprobante-operations-table td {
    border-color: #e2e8f0 !important;
    font-size: 13px;
    padding: 8px 10px !important;
    vertical-align: top !important;
}

.wf-client-comprobante-items-table th,
.wf-client-comprobante-operations-table th {
    color: #ffffff !important;
    background-color: #111827 !important;
    font-weight: 800 !important;
    white-space: nowrap;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.wf-client-comprobante-items-table td:not(.wf-client-comprobante-description):not(.wf-client-comprobante-install-address),
.wf-client-comprobante-operations-table td {
    white-space: nowrap;
}

.wf-client-comprobante-col-description,
.wf-client-comprobante-items-table th:nth-child(1),
.wf-client-comprobante-items-table td:nth-child(1) {
    width: 34%;
}

.wf-client-comprobante-col-install-address,
.wf-client-comprobante-items-table th:nth-child(2),
.wf-client-comprobante-items-table td:nth-child(2) {
    width: 25%;
}

.wf-client-comprobante-col-price,
.wf-client-comprobante-items-table th:nth-child(3),
.wf-client-comprobante-items-table td:nth-child(3) {
    width: 10%;
}

.wf-client-comprobante-col-quantity,
.wf-client-comprobante-items-table th:nth-child(4),
.wf-client-comprobante-items-table td:nth-child(4) {
    width: 7%;
}

.wf-client-comprobante-col-tax,
.wf-client-comprobante-items-table th:nth-child(5),
.wf-client-comprobante-items-table td:nth-child(5) {
    width: 8%;
}

.wf-client-comprobante-col-total,
.wf-client-comprobante-items-table th:nth-child(6),
.wf-client-comprobante-items-table td:nth-child(6) {
    width: 16%;
}

.wf-client-comprobante-description {
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.wf-client-comprobante-install-address {
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.wf-client-comprobante-description span {
    display: block;
    margin: 0;
    line-height: 1.35;
}

.wf-client-comprobante-operations-table td:last-child {
    white-space: normal;
    overflow-wrap: anywhere;
}

.wf-client-comprobante-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 12px;
    align-items: start;
    margin-top: 8px;
}

.wf-client-comprobante-payment-summary {
    border-top: 1px solid #e2eaf3;
    padding-top: 14px;
}

.wf-client-comprobante-operations {
    min-width: 0;
}

.wf-client-comprobante-operations-table th:nth-child(1) {
    width: 170px;
}

.wf-client-comprobante-operations-table th:nth-child(2) {
    width: 160px;
}

.wf-client-comprobante-operations-table th:nth-child(3) {
    width: 120px;
}

.wf-client-comprobante-empty {
    color: #64748b;
    font-size: 13px;
    margin: 8px 0 0;
}

.wf-client-comprobante-totals {
    width: 100%;
    align-self: start;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 8px;
}

.wf-client-comprobante-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #334155;
    font-size: 13px;
    padding: 8px 10px;
}

.wf-client-comprobante-total-row + .wf-client-comprobante-total-row {
    border-top: 1px solid #e2e8f0;
}

.wf-client-comprobante-total-row--grand {
    border-radius: 6px;
    color: #ffffff;
    background: #0f172a;
    margin-top: 6px;
}

.wf-client-comprobante-total-row strong {
    color: inherit;
    font-size: 14px;
}

.wf-client-comprobante-total-row--grand strong {
    font-size: 18px;
}

@media print {
    @page {
        margin: 12mm;
    }

    html,
    body {
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    body * {
        visibility: hidden !important;
    }

    .wf-client-comprobante-printable,
    .wf-client-comprobante-printable * {
        visibility: visible !important;
    }

    .wf-client-comprobante-printable {
        position: static !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .wf-client-comprobante-toolbar,
    .wf-client-comprobante-toolbar *,
    .wf-client-payment-dialog,
    .wf-client-payment-dialog *,
    #dlgRedirect,
    #dlgRedirect * {
        display: none !important;
        visibility: hidden !important;
    }

    .client-navview,
    .client-navview .navview-content,
    #content-wrapper {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    .client-navview .navview-pane,
    .wf-admin-appbar,
    #content-wrapper > :not(.wf-client-comprobante-page) {
        display: none !important;
        visibility: hidden !important;
    }

    .wf-client-comprobante-page {
        display: block !important;
        min-height: 0 !important;
        margin: 0 !important;
    }

    .wf-client-comprobante-card {
        page-break-inside: avoid;
        break-inside: avoid;
        margin: 0 !important;
        padding: 8px !important;
        border: 1px solid #d7dee8 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .wf-client-comprobante-summary {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(220px, .85fr) !important;
        gap: 8px !important;
        align-items: stretch !important;
    }

    .wf-client-comprobante-info {
        padding: 8px !important;
    }

    .wf-client-comprobante-info--invoice {
        text-align: right !important;
    }

    .wf-client-comprobante-info strong {
        font-size: 13px !important;
    }

    .wf-client-comprobante-date,
    .wf-client-comprobante-folio {
        font-size: 18px !important;
    }

    .wf-client-comprobante-info p,
    .wf-client-comprobante-items-table th,
    .wf-client-comprobante-items-table td,
    .wf-client-comprobante-operations-table th,
    .wf-client-comprobante-operations-table td {
        font-size: 11px !important;
        line-height: 1.22 !important;
    }

    .wf-client-comprobante-block,
    .wf-client-comprobante-payment-summary {
        padding-top: 8px !important;
    }

    .wf-client-comprobante-items-table th,
    .wf-client-comprobante-items-table td,
    .wf-client-comprobante-operations-table th,
    .wf-client-comprobante-operations-table td {
        padding: 5px 6px !important;
    }

    .wf-client-comprobante-table-scroll {
        overflow: visible !important;
    }

    .wf-client-comprobante-bottom-grid {
        grid-template-columns: minmax(0, 1fr) 210px !important;
        gap: 8px !important;
        align-items: start !important;
    }

    .wf-client-comprobante-totals {
        padding: 7px !important;
    }

    .wf-client-comprobante-total-row {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }

    .wf-client-comprobante-total-row--grand strong {
        font-size: 16px !important;
    }

    .wf-client-comprobante-printable table {
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 900px) {
    .wf-client-comprobante-toolbar {
        flex-direction: column;
        gap: 10px;
        margin-left: 0;
        margin-right: 0;
    }

    .wf-client-comprobante-toolbar > [class*="cell"] {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .wf-client-comprobante-toolbar .text-right {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
        width: 100%;
    }

    .wf-client-comprobante-toolbar .button {
        width: 100%;
        min-width: 0;
    }

    .wf-client-comprobante-summary,
    .wf-client-comprobante-bottom-grid {
        grid-template-columns: 1fr;
    }

    .wf-client-comprobante-info--invoice {
        text-align: left;
    }

    .wf-client-comprobante-description {
        min-width: 260px;
    }

    .wf-client-comprobante-install-address {
        min-width: 220px;
    }
}

.wf-client-documents-page {
    gap: 12px;
}

.wf-client-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.wf-client-document-card {
    display: flex;
    min-width: 0;
    min-height: 320px;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--wf-crm-border-soft, #e2e8f0);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.wf-client-document-card__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    padding: 18px;
    overflow: hidden;
    border-bottom: 1px solid var(--wf-crm-border-soft, #e2e8f0);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(37, 99, 235, 0.08)),
        #f8fbff;
    color: #0f172a !important;
    text-decoration: none !important;
}

.wf-client-document-card__preview:hover {
    text-decoration: none !important;
}

.wf-client-document-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 8px;
    background: #ffffff;
}

.wf-client-document-thumb {
    position: relative;
    display: flex;
    width: 118px;
    height: 140px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 9px;
    padding: 38px 16px 20px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.wf-client-document-thumb::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 36px;
    height: 36px;
    border-left: 1px solid rgba(148, 163, 184, 0.7);
    border-bottom: 1px solid rgba(148, 163, 184, 0.7);
    border-radius: 0 8px 0 8px;
    background: linear-gradient(135deg, #e2e8f0 0 50%, #ffffff 50% 100%);
}

.wf-client-document-thumb__badge {
    position: absolute;
    top: 18px;
    left: 16px;
    max-width: 58px;
    overflow: hidden;
    color: #dc2626;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.wf-client-document-thumb--file .wf-client-document-thumb__badge {
    color: #0f766e;
}

.wf-client-document-thumb__line {
    display: block;
    width: 66%;
    height: 6px;
    border-radius: 999px;
    background: #dbe5f0;
}

.wf-client-document-thumb__line--wide {
    width: 100%;
}

.wf-client-document-thumb__line--short {
    width: 46%;
}

.wf-client-document-thumb__seal {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 17px;
}

.wf-client-document-thumb--file .wf-client-document-thumb__seal {
    background: #ccfbf1;
    color: #0f766e;
}

.wf-client-document-card__body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    padding: 12px 14px 8px;
}

.wf-client-document-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wf-client-document-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a8a;
}

.wf-client-document-card__meta time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-client-document-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

.wf-client-document-card p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.42;
}

.wf-client-document-card__filename {
    overflow-wrap: anywhere;
}

.wf-client-document-card__actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 14px 14px;
}

.wf-client-document-card__actions .button {
    min-width: 98px;
    border-radius: 8px !important;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .wf-client-dashboard-grid,
    .wf-client-payment-grid,
    .wf-client-kpis,
    .wf-client-account-kpis,
    .wf-client-account,
    .wf-client-account__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wf-client-account__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .wf-client-pay-shell {
        grid-template-columns: 1fr 1fr;
    }

    .wf-client-pay-detail {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .wf-client-dashboard-grid,
    .wf-client-payment-grid,
    .wf-client-kpis,
    .wf-client-account,
    .wf-client-account__metrics,
    .wf-client-form-grid {
        grid-template-columns: 1fr;
    }

    .wf-client-account-summary {
        gap: 6px;
    }

    .wf-client-account-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .wf-client-account-kpi {
        min-height: 58px;
        padding: 7px 8px;
        gap: 2px;
    }

    .wf-client-account-kpis .wf-client-account-kpi:nth-child(3),
    .wf-client-account-kpis .wf-client-account-kpi:nth-child(4) {
        grid-column: 1 / -1;
    }

    .wf-client-account-kpi strong {
        font-size: 15px;
    }

    .wf-client-account-kpi small {
        font-size: 10.5px;
    }

    .wf-client-account-kpi__inline-value {
        display: grid;
        align-items: start;
        gap: 0;
    }

    .wf-client-banner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .wf-client-banner-carousel {
        min-height: auto;
    }

    .wf-client-banner__media,
    .wf-client-banner__media img {
        min-height: 0;
        height: 100%;
    }

    .wf-client-banner__content {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
        padding: 10px 12px;
    }

    .wf-client-banner--text-only .wf-client-banner__content {
        min-height: 0;
        padding: 14px 16px;
    }

    .wf-client-banner-arrow {
        width: 32px;
        height: 42px;
    }

    .wf-client-banner-arrow--prev {
        left: 8px;
    }

    .wf-client-banner-arrow--next {
        right: 8px;
    }

    .wf-client-payment-section {
        overflow: hidden;
    }

    .wf-client-payment-section__header {
        align-items: flex-start;
    }

    .wf-client-payment-section__header .wf-module-header__actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
    }

    .wf-client-payment-grid {
        min-width: 0;
    }

    .wf-client-payment-card {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: center;
        width: 100%;
        min-width: 0;
        column-gap: 12px;
        row-gap: 10px;
    }

    .wf-client-payment-card > div:nth-child(2) {
        min-width: 0;
    }

    .wf-client-payment-card strong {
        max-width: 100%;
    }

    .wf-client-payment-card__actions,
    .wf-client-payment-card > .button {
        grid-column: 2;
        justify-self: start;
        margin-left: 0;
    }

    .wf-client-payment-card__actions {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .wf-client-documents-grid {
        grid-template-columns: 1fr;
    }

    .wf-client-document-card {
        min-height: 0;
    }

    .wf-client-document-card__preview {
        height: 138px;
    }

    .wf-client-document-thumb {
        width: 102px;
        height: 118px;
        padding: 32px 14px 16px;
    }

    .wf-client-document-card__actions {
        justify-content: stretch;
    }

    .wf-client-document-card__actions .button {
        width: 100%;
    }

    .wf-client-field--span-2,
    .wf-client-field--span-3 {
        grid-column: span 1;
    }

    .wf-client-verification-grid {
        grid-template-columns: 1fr;
    }

    .wf-client-verification-card__actions {
        justify-content: stretch;
    }

    .wf-client-verification-card__actions .button {
        width: 100%;
    }

    .wf-client-pay-shell {
        grid-template-columns: 1fr;
    }

    .wf-client-pay-detail {
        grid-column: auto;
    }

    .wf-client-info-data > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .wf-client-pay-value-row {
        grid-template-columns: 1fr;
    }

    .wf-client-info-data .wf-client-pay-inline-actions {
        justify-self: start;
        justify-content: flex-start;
    }
}

.wf-map-picker-toolbar {
    margin-bottom: 8px;
}

.wf-map-empty {
    min-height: 260px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--wf-crm-border);
    border-radius: 12px;
    background: var(--wf-crm-surface-soft);
    color: var(--wf-crm-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    font-weight: 700;
}

/* Compact date controls across CRM forms and filters. */
:root {
    --wf-date-control-width: 150px;
    --wf-date-input-width: 106px;
    --wf-date-button-width: 38px;
    --wf-date-clearable-control-width: 188px;
    --wf-date-clearable-buttons-width: 76px;
}

input[type="date"],
input[data-role*="calendarpicker"],
input[data-role-calendarpicker="true"] {
    width: var(--wf-date-control-width) !important;
    min-width: var(--wf-date-control-width) !important;
    max-width: 100% !important;
    cursor: pointer;
}

.input.calendar-picker,
.calendar-picker,
.calendarpicker,
.wf-crud-filter .input.calendar-picker,
.wf-settings-field .calendarpicker,
.wf-settings-field .calendar-picker {
    width: var(--wf-date-control-width) !important;
    min-width: var(--wf-date-control-width) !important;
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: stretch;
    cursor: pointer;
    vertical-align: top;
}

.input.calendar-picker > input,
.calendar-picker > input,
.wf-crud-filter .input.calendar-picker > input,
.wf-settings-field .calendar-picker > input {
    width: var(--wf-date-input-width) !important;
    min-width: var(--wf-date-input-width) !important;
    max-width: var(--wf-date-input-width) !important;
    flex: 0 0 var(--wf-date-input-width) !important;
    cursor: pointer;
}

.input.calendar-picker > .button-group,
.calendar-picker > .button-group {
    width: var(--wf-date-button-width) !important;
    min-width: var(--wf-date-button-width) !important;
    flex: 0 0 var(--wf-date-button-width) !important;
}

.input.calendar-picker > .button-group > .button,
.calendar-picker > .button-group > .button {
    width: var(--wf-date-button-width) !important;
    min-width: var(--wf-date-button-width) !important;
    padding: 0 !important;
}

.input.calendar-picker.wf-date-clearable,
.calendar-picker.wf-date-clearable {
    width: var(--wf-date-clearable-control-width) !important;
    min-width: var(--wf-date-clearable-control-width) !important;
}

.input.calendar-picker.wf-date-clearable > .button-group,
.calendar-picker.wf-date-clearable > .button-group {
    width: var(--wf-date-clearable-buttons-width) !important;
    min-width: var(--wf-date-clearable-buttons-width) !important;
    flex-basis: var(--wf-date-clearable-buttons-width) !important;
}

.wf-router-settings-grid .row,
.wf-service-settings .row {
    margin: 0 !important;
}

.wf-router-settings-grid .row > [class*="cell-"],
.wf-service-settings .row > [class*="cell-"] {
    margin-bottom: 8px;
}

.wf-map-page {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wf-map-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-map-toolbar .input,
.wf-map-toolbar input {
    width: 100%;
}

.wf-map-legend-panel.panel {
    border: 1px solid var(--wf-crm-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none !important;
}

.wf-map-legend-panel.panel > .panel-title {
    min-height: 36px !important;
    border-bottom: 1px solid var(--wf-crm-border-soft);
    background: #ffffff !important;
    color: var(--wf-crm-title) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wf-map-legend-panel.panel > .panel-content {
    padding: 12px !important;
}

@media screen and (max-width: 1100px) {
    .wf-router-settings-grid,
    .wf-dialog-window__content > .row,
    .wf-ticket-section > .row,
    .wf-crm-form-grid,
    .dialog.wf-popup-dialog [data-role="accordion"] .content .row {
        grid-template-columns: 1fr;
    }

    .wf-crud-actions,
    .wf-standard-toolbar,
    .wf-module-header,
    .wf-crm-section__title {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .wf-crud-actions__group,
    .wf-standard-toolbar__group,
    .wf-module-header__actions,
    .wf-crm-section__title-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .wf-new-client-grid,
    .wf-new-client-fields,
    .wf-new-client-fields--three,
    .wf-new-client-fields--template {
        grid-template-columns: 1fr;
    }

    .wf-new-client-section--portal,
    .wf-new-client-section--personal,
    .wf-new-client-section--location,
    .wf-new-client-section--contact,
    .wf-new-client-section--template,
    .wf-new-client-section--billing,
    .wf-new-client-section--notifications,
    .wf-new-client-section--taxes {
        grid-column: 1 / -1 !important;
    }

    .wf-new-client-steps {
        width: 100%;
        margin-left: 0;
    }
}
/**Estilos para registros por página de datatables*/
.dataTables_length {
    float: left;
    align-items: center;
    padding-bottom: 10px;
}
.dataTables_length select {
    text-align: left !important; /* Asegura la alineación */
    text-align-last: left !important; /* En navegadores modernos */
    width: auto !important; /* Ajuste de tamaño */
    min-width: 80px; /* Hace más grande el select */
    border-color: gray; 
    border-width: 1.5px !important; 
    border-style: solid; 
    text-align: left !important; /* Asegura que el texto esté alineado a la izquierda */
    padding-left: 10px; /* Espaciado interno */
    font-size: 16px; /* Tamaño de letra similar */
}

.dataTables_length label{
    width: 260px !important;
}
.dataTables_length .select-input {
    height: 40px !important;
    font-size: 16px;
    padding: 5px 10px;
    box-sizing: border-box;
    text-align: left !important;
}

/* Estilos para móviles de select de registros por página*/
/* En móvil (menos de 768px), se fuerza al 100% */
@media (max-width: 768px) {
    .dataTables_length label {
        width: 100% !important; /* Ocupa todo el ancho disponible */
        min-width: 100% !important; /* Anula el min-width anterior */
        max-width: 100% !important; /* Evita desbordamiento */
    }

    /* Opcional: Ajusta el contenedor para mejor visualización */
    .dataTables_length {
        width: 100%;
        padding: 0 10px; /* Pequeño margen lateral */
        margin-bottom: 10px; /* Espacio debajo del select */
    }
}


/*Estilos para buscar de datatables*/
.dataTables_filter label input[type="search"] {
    width: 260px !important; 
    height: 40px !important; 
    border-color: gray; 
    border-width: 1.5px !important; 
    border-style: solid; 
}
/* Estilos para móviles del search de las tablas */
@media (max-width: 768px) {
    .dataTables_filter label input[type="search"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
    }
    
    /* Opcional: Ajustar el contenedor del filtro si es necesario */
    .dataTables_filter {
        width: 100%;
        padding: 0 10px; /* Pequeño padding a los lados */
    }
}
.dataTables_filter {
    float: right; /* Alinea el contenedor del input de búsqueda a la derecha */
}
/* En móviles, que los inputs sean del 100% */
@media screen and (max-width: 768px) {
    .dataTables_filter {
        float: left; /* Alinea el contenedor del input de búsqueda a la derecha */
    }
}
.dataTables_filter label {
    display: flex;
    justify-content: flex-end; /* Empuja el input a la derecha */
    align-items: center;
}
/* Contenedor de la paginación */
.dataTables_paginate {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Botones de paginación */
.paginate_button {
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
}

/* Botón de la página actual */
.paginate_button.current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Botones deshabilitados (anterior/siguiente) */
.paginate_button.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Efecto hover en botones */
.paginate_button:hover:not(.disabled) {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}
/*Botones de columna*/

/* Estilo general para los botones de ColVis */
.dt-button.buttons-columnVisibility {
    background-color: gray !important;  /* Amarillo */
    color: white !important;
    padding: 5px 10px;
    border: none;
    margin: 2px;
    font-size: .7em;
}

/* Cuando están activos (columna visible) */
.dt-button.buttons-columnVisibility.active {
    background-color: #229954 !important;  /* Verde */
}

/* Cuando están desactivados (columna oculta) */
.dt-button.buttons-columnVisibility:not(.active) {
    background-color: #cb4335 !important;  /* Rojo */
}
.circle {  
    display: inline-flex; /* Usar flex para centrar el contenido */  
    justify-content: center; /* Centrar horizontalmente */  
    align-items: center; /* Centrar verticalmente */  
    width: 50px; /* Ancho del círculo */  
    height: 50px; /* Alto del círculo */  
    border-radius: 50%; /* Bordes redondeados para hacer un círculo */  
    background-color: #0078D7; /* Color de fondo (puedes cambiarlo) */  
    color: white; /* Color del texto */  
    font-weight: bold; /* Negrita para las letras */  
    padding: 5px; /* Padding interno */  
    text-align: center; /* Alinear texto al centro */  
}  
/* Cambios de color para las pestañas */  
.tab-title .active a {  
    background-color: white !important; /* Color de fondo de la pestaña activa */  
    color: black !important; /* Color del texto de la pestaña activa */  
}  

.tab-title li a {  
    color: #fff !important; /* Color del texto de las pestañas */  
    transition: background-color 0.2s !important; /* Suaviza la transición de color */  
}  

.tab-title li a:hover {  
    background-color: #43505B !important; /* Color de fondo al pasar el mouse por encima */  
    color: lightgray !important; /* Color del texto al pasar el mouse por encima */  
}  

.wf-crud-panel .panel-content {
    padding: 12px;
}

.wf-crud-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 10px;
}

.wf-crud-actions__group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    min-width: 0;
}

.wf-crud-actions__group--actions {
    flex: 1 1 auto;
}

.wf-crud-actions__group--filters {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.wf-crud-actions__dt,
.wf-crud-actions__filters-shell {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    min-width: 0;
}

.wf-crud-actions__dt .dt-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    margin: 0;
}

.wf-crud-action-button {
    min-height: 32px;
    padding: 0.34rem 0.62rem;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
    width: auto !important;
    max-width: max-content;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.wf-crud-actions__group > .button,
.wf-crud-actions__group > a.button {
    width: auto !important;
    flex: 0 0 auto;
}

.wf-crud-filter {
    min-width: 122px;
}

.wf-crud-filter--compact {
    min-width: 90px;
}

.wf-crud-filter--search {
    min-width: 180px;
}

.wf-crud-filter__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #51606f;
}

.wf-crud-filter .input,
.wf-crud-filter .input input,
.wf-crud-filter .input .button-group,
.wf-crud-filter .select-input,
.wf-crud-filter select,
.wf-crud-filter input[type="text"],
.wf-crud-filter input[type="search"],
.wf-crud-filter input[type="date"] {
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
}

.wf-dt-wrapper {
    margin-top: 0;
}

.divtabladinamica {
    width: 100%;
    overflow-x: auto;
}

.wf-dt-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 10px;
}

.wf-dt-toolbar__group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    min-width: 0;
}

.wf-dt-toolbar__group--actions {
    flex: 1 1 auto;
}

.wf-dt-toolbar__group--filters {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.wf-dt-toolbar .dt-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    margin: 0;
}

.wf-standard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 10px;
}

.wf-standard-toolbar__group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    min-width: 0;
}

.wf-standard-toolbar__group--actions {
    flex: 1 1 auto;
}

.wf-standard-toolbar__group--filters {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.wf-standard-toolbar__dt,
.wf-standard-toolbar__filters-shell {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.wf-standard-toolbar__dt .dt-buttons,
.wf-standard-toolbar__filters-shell .dt-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    margin: 0;
}

.wf-dt-toolbar .dt-button,
.wf-dt-button,
.wf-standard-toolbar__button,
.wf-standard-toolbar .dt-button {
    min-height: 32px;
    margin: 0 !important;
    padding: 0.34rem 0.58rem;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    flex: 0 0 auto;
}

.wf-dt-icon-button {
    min-width: 32px;
    width: 32px;
    padding: 0 !important;
    justify-content: center;
}

.wf-dt-icon-button i {
    margin: 0 !important;
    font-size: 0.9rem;
}

.wf-dt-icon-button.custom-excel,
.usuarios-toolbar-btn.custom-excel {
    background: #217346 !important;
    border-color: #217346 !important;
    color: #ffffff !important;
}

.wf-dt-icon-button.custom-pdf,
.usuarios-toolbar-btn.custom-pdf,
.dt-button.buttons-pdf,
.dt-button.buttons-pdf.buttons-html5,
.dt-button.buttons-pdf.buttons-flash {
    background: #d93025 !important;
    border-color: #d93025 !important;
    color: #ffffff !important;
}

.wf-dt-icon-button.custom-print,
.usuarios-toolbar-btn.custom-print {
    background: #1f2937 !important;
    border-color: #1f2937 !important;
    color: #ffffff !important;
}

.wf-dt-control-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 2px 7px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 18px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}

.wf-dt-control-card--clickable {
    cursor: pointer;
}

.wf-dt-control-card--select {
    padding-right: 20px;
}

.wf-dt-control-card--select::after {
    content: '';
    position: absolute;
    right: 9px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.wf-dt-control-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    min-width: 24px;
    width: 24px;
    padding: 0;
    border-radius: 6px;
    background: #e7eef7;
    color: #3d5874;
    font-size: 0.78rem;
}

.wf-dt-control-chip i {
    font-size: 0.88rem;
}

.wf-dt-control-slot {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.wf-dt-native-field {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    min-height: 28px;
    height: 28px;
    padding: 0 2px !important;
    margin: 0 !important;
    color: #243342;
    font-size: 0.88rem !important;
    font-weight: 600;
    line-height: 1.1;
}

.wf-dt-native-field::placeholder {
    color: #8a99ab;
}

.wf-dt-native-field:focus {
    outline: none !important;
    box-shadow: none !important;
}

.wf-dt-native-field--length {
    width: 56px;
    min-width: 56px;
}

.wf-dt-native-field--search {
    width: 112px;
    min-width: 112px;
}

.wf-dt-native-field::-ms-expand {
    display: none;
}

.wf-dt-wrapper .dataTables_info {
    padding-top: 8px;
    color: #475569;
    font-size: 0.9rem;
    margin: 0;
    flex: 1 1 auto;
    text-align: left;
}

.wf-dt-wrapper .dataTables_paginate {
    margin-top: 16px;
    margin-bottom: 4px;
    margin-left: auto;
}

.wf-dt-wrapper .paginate_button {
    min-height: 32px;
    padding: 0.38rem 0.74rem;
    border-radius: 8px;
}

.wf-dt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    margin-top: 12px;
}

.wf-dt-footer .dataTables_info {
    order: 1;
}

.wf-dt-footer .dataTables_paginate {
    order: 2;
    margin-top: 0;
    margin-bottom: 0;
    text-align: right;
}

.wf-server-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.wf-server-pagination__meta {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.wf-server-pagination__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wf-server-pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
    cursor: pointer;
}

.wf-server-pagination__item:hover {
    color: #0f6cbd;
    border-color: #93c5fd;
    text-decoration: none;
}

.wf-server-pagination__item.is-active {
    background: #0f6cbd;
    border-color: #0f6cbd;
    color: #ffffff;
}

.wf-server-pagination__item.is-disabled,
.wf-server-pagination__item.is-ellipsis {
    background: #f8fafc;
    color: #94a3b8;
    box-shadow: none;
    pointer-events: none;
    cursor: default;
}

.wf-server-sortable {
    cursor: pointer;
    user-select: none;
}

.wf-server-sortable:hover {
    color: #ffffff;
    background-color: rgba(15, 108, 189, 0.18);
}

.wf-server-sortable:focus {
    outline: 2px solid rgba(14, 165, 233, 0.45);
    outline-offset: -2px;
}

.wf-server-sort-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
}

.wf-server-sort-asc .wf-server-sort-indicator,
.wf-server-sort-desc .wf-server-sort-indicator {
    color: #ffffff;
}

.wf-table-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.wf-table-sort-link:hover,
.wf-table-sort-link:focus {
    color: inherit;
    text-decoration: none;
}

.wf-table-sort-link .wf-server-sort-indicator {
    color: currentColor;
    opacity: 0.68;
}

.wf-table-sort-link.is-active .wf-server-sort-indicator {
    color: currentColor;
    opacity: 1;
}

.wf-server-table-loading {
    position: relative;
}

.wf-server-table-loading .divtabladinamica {
    position: relative;
}

.wf-server-table-loading table tbody {
    opacity: 0.42;
    transition: opacity 0.16s ease;
}

.wf-server-table-loading .wf-server-pagination {
    opacity: 0.58;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.wf-server-table-loading .divtabladinamica::after {
    content: "Actualizando registros...";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    transform: translate(-50%, -50%);
    padding: 8px 14px;
    border: 1px solid var(--wf-crm-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--wf-crm-title);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.wf-dt-wrapper .filter-row th {
    padding: 6px;
    background: #eef2f6;
    border-bottom: 1px solid #d7dee8;
}

.wf-dt-wrapper .filter-row input {
    width: 100%;
    min-height: 34px;
    height: 34px;
    padding: 0 10px !important;
    border: 1px solid #d3dbe6;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
    color: #243342;
    font-size: 0.9rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.wf-dt-wrapper table.dataTable thead th {
    font-size: 0.92rem;
    line-height: 1.25;
    font-weight: 700;
    vertical-align: middle;
    white-space: nowrap;
}

.wf-dt-wrapper table.dataTable tbody td {
    font-size: 0.91rem;
    line-height: 1.22;
    vertical-align: middle;
    white-space: nowrap;
}

.wf-dt-wrapper table.dataTable {
    width: 100% !important;
    table-layout: auto !important;
}

.wf-dt-wrapper table.dataTable.wf-dt-initializing tbody tr:nth-child(n+11) {
    display: none;
}

.wf-dt-wrapper table.dataTable .wfdt-main,
.wf-dt-wrapper table.dataTable th.wfdt-main,
.wf-dt-wrapper table.dataTable td.wfdt-main {
    width: auto;
    min-width: 260px;
}

.wf-dt-wrapper table.dataTable .wfdt-compact,
.wf-dt-wrapper table.dataTable th.wfdt-compact,
.wf-dt-wrapper table.dataTable td.wfdt-compact {
    width: 1%;
    white-space: nowrap;
}

.wf-dt-wrapper table.dataTable .wfdt-actions,
.wf-dt-wrapper table.dataTable th.wfdt-actions,
.wf-dt-wrapper table.dataTable td.wfdt-actions {
    width: 1%;
    min-width: 104px;
    white-space: nowrap;
}

.wf-dt-wrapper table.dataTable .wfdt-wrap,
.wf-dt-wrapper table.dataTable th.wfdt-wrap,
.wf-dt-wrapper table.dataTable td.wfdt-wrap {
    white-space: normal;
}

.wf-row-text {
    display: inline-block;
    max-width: min(58vw, 720px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.wf-dt-wrapper .filter-row input::placeholder {
    color: #94a3b8;
}

.wf-dt-wrapper .filter-row input:focus {
    border-color: #0f6cbd;
    box-shadow: 0 0 0 3px rgba(15, 108, 189, 0.14);
    background: #ffffff;
    outline: none;
}

.wf-table-actions {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.wf-table-actions .button,
.wf-icon-action {
    min-width: 28px;
    min-height: 28px;
    width: 28px;
    height: 28px;
    padding: 0 !important;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}

.wf-table-actions .button i,
.wf-icon-action i {
    margin: 0 !important;
    font-size: 12px;
    line-height: 1;
}

.wf-badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
}

.wf-column-config-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    text-align: left;
}

.wf-column-config-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.wf-column-config-item--fixed {
    opacity: 0.85;
}

.wf-column-config-item__main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.wf-column-config-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #e7eef7;
    color: #3d5874;
}

.wf-column-config-item__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #243342;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wf-column-config-item__meta {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wf-column-config-item__toggle {
    flex: 0 0 auto;
}

.wf-column-config-order {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.wf-column-config-order .button {
    min-width: 28px;
    width: 28px;
    height: 28px;
    padding: 0 !important;
    border-radius: 8px;
}

@media screen and (max-width: 1024px) {
    .wf-dt-toolbar,
    .wf-crud-actions {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .wf-dt-toolbar__group,
    .wf-crud-actions__group {
        width: 100%;
        flex-wrap: wrap;
    }

    .wf-dt-toolbar__group--filters,
    .wf-crud-actions__group--filters {
        justify-content: flex-start;
    }

    .wf-crud-actions__dt,
    .wf-crud-actions__filters-shell,
    .wf-dt-toolbar .dt-buttons {
        flex-wrap: wrap;
    }

    .wf-dt-native-field--search {
        width: 100%;
        min-width: 0;
    }

    .wf-dt-footer {
        flex-wrap: wrap;
    }

    .wf-dt-footer .dataTables_info,
    .wf-dt-footer .dataTables_paginate {
        width: 100%;
    }

    .wf-dt-footer .dataTables_paginate {
        margin-left: 0;
        text-align: left;
    }
}

.wf-sidebar-brand-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
}

.wf-sidebar-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.wf-sidebar-logo--full {
    width: clamp(154px, 100%, 268px);
    max-height: 54px;
}

.wf-sidebar-logo--appbar {
    width: auto;
    max-width: 188px;
    max-height: 42px;
}

.wf-sidebar-logo--mark {
    width: 34px;
    height: 34px;
}

.wf-appbar-brand {
    display: none !important;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px !important;
    margin-right: 8px;
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
}

.wf-admin-appbar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap !important;
    min-height: 56px;
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
    padding-top: env(safe-area-inset-top);
    overflow: visible;
}

.wf-admin-appbar > .app-bar-item,
.wf-admin-appbar > .app-bar-container {
    flex: 0 0 auto;
}

.wf-admin-appbar > .app-bar-container.ml-auto {
    margin-left: auto !important;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    min-width: 0;
}

.wf-admin-appbar .app-bar-item {
    min-height: 44px;
}

.wf-admin-appbar #paneToggle {
    padding: 0 10px !important;
}

.wf-admin-client-search {
    position: relative;
    flex: 1 1 420px;
    max-width: 480px;
    min-width: 240px;
    margin: 0 12px;
    z-index: 2600;
}

.wf-admin-client-search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    pointer-events: none;
}

.wf-admin-client-search__input {
    width: 100%;
    height: 34px;
    padding: 0 36px 0 34px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 600;
    outline: none;
    box-shadow: none;
}

.wf-admin-client-search__input:focus {
    border-color: #38bdf8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.wf-admin-client-search__input::placeholder {
    color: #64748b;
    font-weight: 600;
}

.wf-admin-client-search__clear {
    position: absolute;
    right: 4px;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transform: translateY(-50%);
}

.wf-admin-client-search__clear:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.wf-admin-client-search__results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: min(430px, calc(100vh - 76px));
    overflow-y: auto;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
    padding: 6px;
    color: #0f172a;
}

.wf-admin-client-search__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #0f172a !important;
    text-decoration: none !important;
}

.wf-admin-client-search__item:hover {
    background: #eef6ff;
    color: #0f172a !important;
}

.wf-admin-client-search__name {
    min-width: 0;
    overflow: hidden;
    font-size: 0.86rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-admin-client-search__meta {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
}

.wf-admin-client-search__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 22px;
    padding: 0 8px;
    border-radius: 7px;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.wf-admin-client-search__status.is-active {
    background: #16a34a;
}

.wf-admin-client-search__status.is-suspended {
    background: #f59e0b;
}

.wf-admin-client-search__empty {
    padding: 12px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.wf-admin-appbar .app-bar-item .badge {
    right: 2px;
}

.wf-admin-appbar #panel-usuario .app-bar-item {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.wf-admin-appbar #panel-usuario .app-bar-name {
    white-space: nowrap;
}

.admin-navview.compacted .sidebar-brand-title,
.client-navview.compacted .sidebar-brand-title {
    display: none;
}

.admin-navview.compacted .sidebar-brand,
.client-navview.compacted .sidebar-brand {
    justify-content: center;
}

.admin-navview.compacted .wf-appbar-brand,
.client-navview.compacted .wf-appbar-brand {
    display: inline-flex !important;
}

.admin-navview.expanded .wf-appbar-brand,
.client-navview.expanded .wf-appbar-brand {
    display: none !important;
}

@media (max-width: 991.98px) {
    .wf-appbar-brand {
        display: inline-flex !important;
        max-width: 176px;
        padding: 0 10px !important;
        margin-right: 4px;
    }

    .admin-navview .navview-content,
    .client-navview .navview-content,
    .admin-navview.expanded .navview-content,
    .client-navview.expanded .navview-content {
        margin-left: 0 !important;
    }

    .admin-navview.expanded .wf-appbar-brand,
    .client-navview.expanded .wf-appbar-brand {
        display: none !important;
    }

    .wf-sidebar-logo--appbar {
        max-width: 166px;
        max-height: 36px;
        width: 100%;
        object-fit: contain;
    }

    .wf-admin-appbar {
        min-height: 52px;
    }

    .wf-admin-client-search {
        flex-basis: 260px;
        min-width: 170px;
        max-width: 340px;
        margin: 0 6px;
    }

    .wf-admin-appbar > .app-bar-container.ml-auto {
        gap: 0;
    }

    .wf-admin-appbar .app-bar-item {
        min-height: 40px;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .wf-admin-appbar #panel-usuario .app-bar-name {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .wf-appbar-brand {
        max-width: 150px;
        padding: 0 7px !important;
        margin-right: 2px;
    }

    .wf-sidebar-logo--appbar {
        max-width: 144px;
        max-height: 34px;
    }

    .wf-admin-appbar {
        min-height: 48px;
        padding-left: max(6px, env(safe-area-inset-left));
        padding-right: max(6px, env(safe-area-inset-right));
    }

    .wf-admin-client-search {
        min-width: 132px;
        margin: 0 4px;
    }

    .wf-admin-client-search__input {
        height: 32px;
        padding-left: 30px;
        font-size: 0.8rem;
    }

    .wf-admin-client-search__results {
        position: fixed;
        left: 8px;
        right: 8px;
        top: 52px;
        width: auto;
    }

    .wf-admin-appbar #paneToggle {
        padding: 0 8px !important;
    }

    .wf-admin-appbar .app-bar-item {
        min-height: 38px;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .wf-admin-appbar .app-bar-item img.avatar {
        width: 32px;
        height: 32px;
    }
}

.wf-ticket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 16px 18px 0;
}

.wf-ticket-header__copy {
    flex: 1 1 420px;
    min-width: 0;
}

.wf-ticket-header__eyebrow {
    margin-bottom: 6px;
    color: #60758a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wf-ticket-header__title {
    margin: 0;
    color: #142434;
    font-size: 1.7rem;
    line-height: 1.15;
    word-break: break-word;
}

.wf-ticket-header__meta {
    display: flex;
    align-items: center;
    gap: 8px 14px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: #5a6d80;
    font-size: 0.87rem;
}

.wf-ticket-header__actions {
    flex: 0 0 auto;
}

.wf-ticket-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.wf-ticket-content {
    padding: 0 18px 18px;
}

.wf-ticket-switcher {
    padding: 0 18px;
    margin-bottom: 14px;
}

.wf-ticket-switcher__button.active {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

.wf-ticket-editor-shell {
    margin-bottom: 14px;
}

.wf-ticket-editor-shell__label {
    display: inline-block;
    margin-bottom: 8px;
    color: #23384d;
    font-size: 0.9rem;
    font-weight: 700;
}

.wf-ticket-editor {
    width: 100%;
    min-height: 220px;
    padding: 14px;
    border: 1px solid #d6dfe8;
    border-radius: 12px;
    background: #fff;
    color: #223142;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
    resize: vertical;
}

.wf-ticket-actions {
    margin-bottom: 14px;
}

.wf-ticket-subpanel {
    margin-bottom: 14px;
}

.wf-ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.wf-ticket-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wf-ticket-message__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #0f6cbd;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.wf-ticket-message__body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #d7e0ea;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.wf-ticket-message__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: #60758a;
    font-size: 0.82rem;
}

.wf-ticket-message__role {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.wf-ticket-message__role--client {
    color: #1c9a51;
}

.wf-ticket-message__role--staff {
    color: #0f6cbd;
}

.wf-ticket-message__tags {
    margin-bottom: 10px;
}

.wf-ticket-message__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.wf-ticket-message__content {
    color: #223142;
    line-height: 1.6;
    word-break: break-word;
}

.wf-ticket-message__content p:last-child {
    margin-bottom: 0;
}

.wf-ticket-content .ck.ck-editor__main > .ck-editor__editable {
    min-height: 220px;
}

@media screen and (max-width: 768px) {
    .wf-ticket-header,
    .wf-ticket-content,
    .wf-ticket-switcher {
        padding-left: 12px;
        padding-right: 12px;
    }

    .wf-ticket-header__title {
        font-size: 1.35rem;
    }

    .wf-ticket-message {
        gap: 10px;
    }

    .wf-ticket-message__avatar {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 0.72rem;
    }

    .wf-ticket-message__body {
        padding: 12px;
    }
}

/* Tickets: detalle compacto y estirado al ancho disponible */
.wf-ticket-detail {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    padding: 16px 18px 18px;
    align-items: stretch;
}

.wf-ticket-detail > * {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.wf-ticket-header {
    align-items: center;
    gap: 10px 14px;
    flex-wrap: nowrap;
    margin-bottom: 0;
    padding: 0;
}

.wf-ticket-header__copy {
    display: flex;
    align-items: center;
    gap: 8px 12px;
    flex: 1 1 auto;
    flex-wrap: wrap;
    min-width: 0;
}

.wf-ticket-header__eyebrow,
.wf-ticket-header__title,
.wf-ticket-header__meta {
    margin: 0;
}

.wf-ticket-header__eyebrow {
    flex: 0 0 auto;
}

.wf-ticket-header__title {
    flex: 0 1 auto;
    max-width: min(38vw, 520px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.32rem;
    line-height: 1.2;
}

.wf-ticket-header__meta {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px 12px;
}

.wf-ticket-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.wf-ticket-header__client {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #243447;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
}

.wf-ticket-header__client .wf-related-link {
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 900;
}

.wf-ticket-header__date {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-height: 34px;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
    white-space: nowrap;
}

.wf-ticket-header__date strong {
    margin-top: 2px;
    color: #142434;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.wf-ticket-header__print {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
}

.wf-ticket-header .wf-ticket-status {
    min-height: 36px;
    padding: 0 12px;
}

.wf-ticket-header-details {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
    gap: 14px;
    align-items: stretch;
    justify-items: stretch;
}

.wf-ticket-info-card,
.wf-ticket-thread-shell,
.wf-ticket-reply-panel {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.wf-ticket-info-card {
    display: flex;
    flex-direction: column;
}

.wf-ticket-info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: start;
    flex: 1 1 auto;
}

.wf-ticket-info-card:not(.wf-ticket-info-card--client) .wf-ticket-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wf-ticket-info-card--client .wf-ticket-info-grid__wide {
    grid-column: span 2;
}

.wf-ticket-info-card--client .wf-ticket-info-grid__full {
    grid-column: 1 / -1;
}

.wf-ticket-switcher {
    padding: 0;
    margin-bottom: 0;
}

.wf-ticket-switcher .wf-crud-actions__group--actions {
    flex-wrap: wrap;
}

.wf-ticket-content {
    padding: 0;
}

.wf-ticket-conversation-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    gap: 14px;
    align-items: start;
    justify-items: stretch;
    width: 100% !important;
    max-width: none !important;
}

.wf-ticket-thread {
    margin-top: 0;
}

.wf-ticket-conversation-layout .wf-ticket-message__avatar,
.wf-client-ticket-thread .wf-ticket-message__avatar,
.wf-ticket-message__tag--reply {
    display: none !important;
}

.wf-ticket-message__role--client {
    background: #0f766e !important;
    color: #ffffff !important;
}

.wf-ticket-message__role--staff {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

.wf-client-ticket-thread .wf-ticket-message {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.wf-client-ticket-thread .wf-ticket-message__body {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.wf-client-ticket-thread .wf-ticket-message__content,
.wf-client-ticket-thread .wf-ticket-message__content * {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal !important;
    word-break: break-word;
}

@media screen and (max-width: 768px) {
    .wf-client-support-page {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        overflow-x: hidden;
    }

    .wf-client-ticket-detail-header,
    .wf-client-ticket-detail,
    .wf-client-ticket-thread {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .wf-client-ticket-thread {
        width: 100%;
        max-width: calc(100vw - 38px);
        overflow-x: hidden;
    }

    .wf-client-ticket-thread .wf-ticket-message__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.wf-ticket-file-input,
.wf-client-ticket-reply input[type="file"],
.wf-client-support-form input[type="file"] {
    width: 100%;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid var(--wf-crm-border, #d5dfeb);
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
}

.wf-ticket-attachments {
    gap: 8px;
    margin-top: 10px;
}

.wf-ticket-attachment-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 220px;
    padding: 6px 8px;
    border: 1px solid var(--wf-crm-border-soft, #e5edf5);
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
}

.wf-ticket-attachment-preview:hover .wf-ticket-attachment-preview__name {
    text-decoration: underline;
}

.wf-ticket-attachment-preview__thumb {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 7px;
    background: #e5edf5;
    color: #0f172a;
    font-size: 18px;
}

.wf-ticket-attachment-preview__thumb--missing {
    background: #fff7ed;
    color: #c2410c;
}

.wf-ticket-attachment-preview__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wf-ticket-attachment-modal__empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #334155;
    text-align: center;
}

.wf-ticket-attachment-modal__empty i {
    color: #f59e0b;
    font-size: 34px;
}

.wf-ticket-attachment-preview__name {
    min-width: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-ticket-attachment-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wf-ticket-attachment-modal.is-open {
    display: flex;
}

.wf-ticket-attachment-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.wf-ticket-attachment-modal__window {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(1120px, 96vw);
    max-height: 92vh;
    overflow: hidden;
    border: 1px solid var(--wf-crm-border, #d5dfeb);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.3);
}

.wf-ticket-attachment-modal__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--wf-crm-border-soft, #e5edf5);
    background: #0f172a;
    color: #ffffff;
}

.wf-ticket-attachment-modal__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-ticket-attachment-modal__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.wf-ticket-attachment-modal__content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    max-height: calc(92vh - 58px);
    padding: 12px;
    background: #0b1120;
}

.wf-ticket-attachment-modal__media,
.wf-ticket-attachment-modal__frame {
    width: 100%;
    max-height: calc(92vh - 82px);
    border: 0;
    border-radius: 8px;
    background: #ffffff;
}

.wf-ticket-attachment-modal__media {
    object-fit: contain;
}

.wf-ticket-attachment-modal__frame {
    min-height: calc(92vh - 100px);
}

.wf-ticket-attachment-modal__audio {
    width: min(680px, 90vw);
}

@media screen and (max-width: 1180px) {
    .wf-ticket-header-details,
    .wf-ticket-conversation-layout {
        grid-template-columns: 1fr;
    }

    .wf-ticket-info-grid,
    .wf-ticket-info-card:not(.wf-ticket-info-card--client) .wf-ticket-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 980px) {
    .wf-ticket-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .wf-ticket-header__title {
        max-width: 100%;
        white-space: normal;
    }

    .wf-ticket-header__actions {
        justify-content: flex-start;
        width: 100%;
    }
}

@media screen and (max-width: 720px) {
    .wf-ticket-detail {
        padding: 12px;
    }

    .wf-ticket-info-grid,
    .wf-ticket-info-card:not(.wf-ticket-info-card--client) .wf-ticket-info-grid {
        grid-template-columns: 1fr;
    }

    .wf-ticket-info-card--client .wf-ticket-info-grid__wide {
        grid-column: 1 / -1;
    }
}

.wf-settings-page .panel-content {
    padding: 12px;
}

.wf-settings-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wf-settings-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}

.wf-settings-col-12 {
    grid-column: span 12;
}

.wf-settings-col-8 {
    grid-column: span 8;
}

.wf-settings-col-7 {
    grid-column: span 7;
}

.wf-settings-col-6 {
    grid-column: span 6;
}

.wf-settings-col-5 {
    grid-column: span 5;
}

.wf-settings-col-4 {
    grid-column: span 4;
}

.wf-settings-col-3 {
    grid-column: span 3;
}

.wf-settings-card {
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.wf-settings-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #111827;
    color: #fff;
}

.wf-settings-card__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.wf-settings-card__title i,
.wf-settings-card__title span {
    font-size: 0.95rem;
}

.wf-settings-card__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wf-settings-card__body {
    padding: 12px 14px;
}

.wf-settings-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 14px 14px;
}

.wf-settings-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.wf-settings-toolbar__group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wf-settings-toolbar__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
    font-size: 0.84rem;
    font-weight: 700;
}

.wf-settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.wf-settings-form-grid--single {
    grid-template-columns: 1fr;
}

.wf-settings-form-grid--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wf-settings-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.wf-settings-field--span-2 {
    grid-column: span 2;
}

.wf-settings-field--span-3 {
    grid-column: span 3;
}

.wf-settings-field label,
.wf-settings-field__label {
    color: #243342;
    font-size: 0.77rem;
    font-weight: 700;
}

.wf-settings-field small,
.wf-settings-note {
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.45;
}

.wf-settings-field input,
.wf-settings-field select,
.wf-settings-field textarea,
.wf-settings-field .input input,
.wf-settings-field .input select,
.wf-settings-field .select-input,
.wf-settings-field .calendarpicker {
    width: 100%;
    min-height: 38px;
    border-radius: 8px !important;
    font-size: 0.87rem !important;
    color: #1f2937;
    box-sizing: border-box;
}

.wf-settings-field textarea,
.wf-settings-field .textarea,
.wf-settings-field .textarea textarea {
    min-height: 86px;
}

.wf-settings-field .input,
.wf-settings-field .select,
.wf-settings-field .select-input,
.wf-settings-field .textarea,
.wf-settings-field .calendarpicker {
    margin: 0 !important;
}

.wf-settings-field .checkbox,
.wf-settings-field .switch {
    margin-top: 4px;
}

.wf-settings-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.wf-settings-box {
    border: 1px solid #d7e0ea;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 10px 12px;
}

.wf-settings-box--mono {
    background: #0f172a;
    border-color: #0f172a;
    color: #f8fafc;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.78rem;
}

.wf-settings-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 12px;
}

.wf-settings-home-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: 154px;
    padding: 16px 14px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.wf-settings-home-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
    border-color: #cbd8e6;
}

.wf-settings-home-card.is-disabled {
    opacity: 0.7;
}

.wf-settings-home-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-size: 1.5rem;
}

.wf-settings-home-card__title {
    color: #17212b;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.3;
}

.wf-settings-home-card__meta {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.45;
}

.wf-settings-table-wrap {
    overflow-x: auto;
}

.wf-settings-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 180px;
    color: #64748b;
    text-align: center;
}

.wf-settings-empty i {
    font-size: 2.2rem;
    color: #94a3b8;
}

.wf-settings-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.wf-settings-page .button,
.wf-settings-page .dt-button {
    border-radius: 8px;
}

@media screen and (max-width: 1180px) {
    .wf-standard-toolbar {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .wf-standard-toolbar__group,
    .wf-standard-toolbar__group--filters {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .wf-standard-toolbar__dt,
    .wf-standard-toolbar__filters-shell {
        flex-wrap: wrap;
    }

    .wf-settings-col-8,
    .wf-settings-col-7,
    .wf-settings-col-6,
    .wf-settings-col-5,
    .wf-settings-col-4,
    .wf-settings-col-3 {
        grid-column: span 12;
    }
}

@media screen and (max-width: 820px) {
    .wf-page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .wf-page-heading__breadcrumbs {
        justify-content: flex-start;
        width: 100%;
    }

    .wf-page-heading__breadcrumbs .breadcrumbs {
        justify-content: flex-start;
    }

    .wf-page-heading h1 {
        white-space: normal;
    }

    .wf-settings-form-grid,
    .wf-settings-form-grid--triple {
        grid-template-columns: 1fr;
    }

    .wf-settings-field--span-2,
    .wf-settings-field--span-3 {
        grid-column: span 1;
    }
}

/* Portal cliente: Mis servicios */
.wf-client-services-page {
    gap: 12px;
}

.wf-client-services-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #f8fbff;
}

.wf-client-services-toolbar label,
.wf-client-services-single span,
.wf-client-mini-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wf-client-service-selector {
    flex: 1 1 auto;
    min-width: 0;
}

.wf-client-services-single {
    display: grid;
    gap: 3px;
}

.wf-client-services-single strong {
    color: #0f172a;
    font-size: 15px;
}

.wf-client-service-panel {
    display: grid;
    gap: 12px;
}

.wf-client-service-summary {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) repeat(2, minmax(150px, 0.55fr));
    gap: 10px;
}

.wf-client-service-main,
.wf-client-service-kpi,
.wf-client-wifi-box,
.wf-client-service-notice {
    min-width: 0;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.wf-client-service-main {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 14px;
}

.wf-client-service-main h2 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.05;
}

.wf-client-service-main p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.35;
}

.wf-client-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 5px 8px;
    border-radius: 7px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.wf-client-service-badge.is-online {
    background: #16a34a;
}

.wf-client-service-badge.is-offline {
    background: #dc2626;
}

.wf-client-service-badge.is-unknown {
    background: #64748b;
}

.wf-client-service-kpi {
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 13px;
}

.wf-client-service-kpi span {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wf-client-service-kpi strong {
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.1;
}

.wf-client-service-kpi small {
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
}

.wf-client-wifi-box {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.wf-client-wifi-box__intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.wf-client-wifi-box__intro h3 {
    margin: 3px 0 3px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.08;
}

.wf-client-wifi-box__intro p {
    max-width: 720px;
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.35;
}

.wf-client-wifi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 22px;
}

.wf-client-ssid-grid,
.wf-client-wifi-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wf-client-ssid-chip {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    background: #ffffff;
}

.wf-client-ssid-chip span {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.wf-client-ssid-chip strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wf-client-wifi-checklist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.wf-client-wifi-checklist span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.wf-client-wifi-checklist span i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #ffffff;
    font-size: 10px;
}

.wf-client-wifi-checklist span.is-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.wf-client-wifi-checklist span.is-ok i {
    background: #16a34a;
}

.wf-client-wifi-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.wf-client-wifi-actions .button,
.wf-client-wifi-countdown .button {
    border-radius: 8px;
    font-weight: 800;
}

.wf-client-wifi-countdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #fecaca;
    border-left: 5px solid #dc2626;
    border-radius: 8px;
    background: #fff1f2;
    color: #7f1d1d;
}

.wf-client-wifi-countdown strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.wf-client-wifi-countdown p {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
}

.wf-client-wifi-countdown__timer {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    min-width: 70px;
    color: #dc2626;
    font-size: 18px;
    font-weight: 900;
}

.wf-client-wifi-countdown__timer span {
    font-size: 32px;
    line-height: 1;
}

.wf-client-service-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.wf-client-service-notice > span {
    margin-top: 2px;
    font-size: 20px;
}

.wf-client-service-notice strong {
    display: block;
    margin-bottom: 3px;
}

.wf-client-service-notice p {
    margin: 0;
    color: #92400e;
    font-size: 13px;
}

@media (max-width: 1200px) {
    .wf-client-service-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wf-client-service-main {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .wf-client-services-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .wf-client-service-summary,
    .wf-client-ssid-grid,
    .wf-client-wifi-form,
    .wf-client-wifi-checklist,
    .wf-client-wifi-countdown {
        grid-template-columns: 1fr;
    }

    .wf-client-service-main h2,
    .wf-client-wifi-box__intro h3 {
        font-size: 20px;
    }

    .wf-client-wifi-box__intro {
        align-items: flex-start;
    }

    .wf-client-wifi-actions {
        justify-content: stretch;
    }

    .wf-client-wifi-actions .button,
    .wf-client-wifi-countdown .button {
        width: 100%;
    }
}

/* CRM visual standard final overrides */
.wf-crud-panel.panel,
.wf-standard-page.panel {
    width: 100%;
    max-width: none;
    padding: 12px;
    border: 1px solid var(--wf-crm-border);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--wf-crm-surface) 0%, var(--wf-crm-surface-soft) 100%);
    box-shadow: none !important;
}

.wf-crud-panel.panel > .panel-title,
.wf-standard-page.panel > .panel-title {
    display: none !important;
}

.wf-crud-panel.panel > .panel-content,
.wf-standard-page.panel > .panel-content {
    padding: 0 !important;
    background: transparent !important;
}

.wf-crud-action-button,
.wf-standard-toolbar__button,
.wf-dt-button,
.wf-dt-toolbar .dt-button,
.wf-standard-toolbar .dt-button,
.dialog.wf-popup-dialog .button {
    min-height: 34px;
    border-radius: 8px !important;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.wf-table-actions .button,
.wf-icon-action {
    min-width: 30px;
    min-height: 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px !important;
}

.wf-ticket-subpanel.panel > .panel-title,
.wf-router-card.panel > .panel-title,
.wf-service-config-card.panel > .panel-title {
    display: none !important;
}

.wf-router-settings-grid .panel {
    height: auto !important;
}
