/* WitGestor staged visual theme, enabled explicitly by each reviewed section. */
body.wit-expedientes-pilot {
    --wit-navy: #102f60;
    --wit-navy-hover: #0a244b;
    --wit-red: #bd2030;
    --wit-text: #25364d;
    --wit-muted: #53657b;
    --wit-line: #dce4ee;
    --wit-surface: #f5f7fa;
    --wit-focus: #7298c4;
    background: #fff;
    color: var(--wit-text);
    font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.wit-expedientes-pilot #wrapper { background: #fff; }
body.wit-expedientes-pilot #page-wrapper { background: var(--wit-surface); padding: 0 28px 90px; min-width: 0; }
body.wit-expedientes-pilot a { color: var(--wit-navy); }
body.wit-expedientes-pilot a:hover { color: var(--wit-navy-hover); }
body.wit-expedientes-pilot :is(a, button, input, select, [tabindex]):focus-visible {
    outline: 3px solid var(--wit-focus) !important; outline-offset: 3px;
}
body.wit-expedientes-pilot .navbar-static-side { border-right: 1px solid var(--wit-line); }
body.wit-expedientes-pilot #side-menu > li { border: 0 !important; }
body.wit-expedientes-pilot #side-menu > .nav-header { padding: 28px 16px 24px; margin-bottom: 6px; }
body.wit-expedientes-pilot .profile-element img { width: 168px !important; height: 78px !important; object-fit: contain; }
body.wit-expedientes-pilot #side-menu > li > a {
    margin: 4px 10px; padding: 13px 12px; border-radius: 7px; border-left: 3px solid transparent;
    color: #465a73; font-size: 14px; font-weight: 500; line-height: 1.4; text-transform: none;
}
body.wit-expedientes-pilot #side-menu > li > a > .fa { width: 20px; margin-right: 8px; font-size: 17px; text-align: center; color: #64778e; }
body.wit-expedientes-pilot #side-menu > li > a:hover,
body.wit-expedientes-pilot #side-menu > li.active > a { background: #edf2f8; color: var(--wit-navy); }
body.wit-expedientes-pilot[data-wit-section="expedientes"] #side-menu > li > a[href$="expedientes/expedientes.php"] {
    background: #eaf0f8; border-left-color: var(--wit-red); color: var(--wit-navy); font-weight: 600;
}
body.wit-expedientes-pilot[data-wit-section="expedientes"] #side-menu > li > a[href$="expedientes/expedientes.php"] .fa { color: var(--wit-navy); }
body.wit-expedientes-pilot #side-menu .nav-second-level li a { font-size: 14px; color: #465a73; padding: 9px 18px 9px 42px; }
body.wit-expedientes-pilot #side-menu :is(.nav-second-level,.nav-third-level) a:hover,
body.wit-expedientes-pilot #side-menu :is(.nav-second-level,.nav-third-level) a:focus-visible,
body.wit-expedientes-pilot #side-menu :is(.nav-second-level,.nav-third-level) li.active > a { background: var(--wit-navy) !important; color: #fff !important; }
body.wit-expedientes-pilot #side-menu :is(.nav-second-level,.nav-third-level) a:hover .fa { color: inherit !important; }
body.wit-expedientes-pilot.mini-navbar:not(.body-small) #side-menu > li > a { margin: 4px 5px; padding: 13px 10px; }
body.wit-expedientes-pilot.mini-navbar:not(.body-small) #side-menu > li > a > .fa { margin: 0; }
body.wit-expedientes-pilot.mini-navbar:not(.body-small) #side-menu > .nav-header { padding: 12px 7px; }
body.wit-expedientes-pilot .logo-element { min-height: 54px; background: url('../img/logo.png') center/54px auto no-repeat; }
body.wit-expedientes-pilot .logo-element > span { visibility: hidden; }

body.wit-expedientes-pilot .page-header {
    height: 68px; margin: 0 -28px; background: #fff; box-shadow: none; border-bottom: 1px solid var(--wit-line) !important;
}

/* Stage 3: participant lists/forms and task sections. */
body.wit-workspace-theme[data-wit-section="intervinientes"] .navbar-top-links a[href$="implicados/implicados.php"],
body.wit-workspace-theme[data-wit-section="tareas"] .navbar-top-links a[href$="tareas/"] { background: #eaf0f8; border-radius: 6px; }
body.wit-workspace-theme :is(.tabs-menu1,.tabs-container) .panel-tabs > li > a { display: block; font-size: 14px; padding: 11px 16px !important; border-radius: 6px; color: var(--wit-muted); border: 1px solid transparent; }
body.wit-workspace-theme :is(.tabs-menu1,.tabs-container) .panel-tabs > li > a:hover { background: #f1f5fa; color: var(--wit-navy); }
body.wit-workspace-theme .wit-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
body.wit-workspace-theme .wit-table-scroll .table { margin-bottom: 0; }
body.wit-workspace-theme[data-wit-screen="participant-list"] #page-wrapper > .panel > .inline { float: none !important; display: flex; justify-content: flex-end; margin-bottom: 18px; padding: 0 !important; }
body.wit-workspace-theme[data-wit-screen="participant-list"] #page-wrapper > .panel > .inline .btn { margin: 0 !important; min-height: 44px; }
body.wit-workspace-theme[data-wit-screen="participant-list"] #form_implicados { padding: 0; }
body.wit-workspace-theme[data-wit-screen="participant-list"] #form_implicados > .form-group { padding: 0 !important; }
body.wit-workspace-theme[data-wit-screen="participant-list"] #form_implicados > .form-group .row { gap: 16px; }
body.wit-workspace-theme[data-wit-screen="participant-list"] #form_implicados .row > .col-lg-3 { flex: 1 1 200px; max-width: none; padding: 0 !important; }
body.wit-workspace-theme[data-wit-screen="participant-list"] #form_implicados label { display: block; margin-bottom: 7px; font-weight: 600; }
body.wit-workspace-theme[data-wit-screen="participant-list"] #div_tabla .table { min-width: 760px; }
body.wit-workspace-theme[data-wit-screen="participant-list"] #div_tabla :is(td,th) { padding: 12px !important; }
body.wit-workspace-theme[data-wit-screen="participant-list"] #nro_implicados { background: #e6edf6; color: var(--wit-navy); border-radius: 6px; padding: 3px 10px; font-size: 14px; }
body.wit-workspace-theme[data-wit-screen="participant-new"] #page-wrapper > .panel h2 { font-size: 20px; font-weight: 600; color: var(--wit-navy); }
body.wit-workspace-theme[data-wit-section="intervinientes"] #page-wrapper > .panel > .col-md-12 { padding: 0 !important; }
body.wit-workspace-theme[data-wit-section="intervinientes"] .tabs-menu-body { padding: 20px 0; }
body.wit-workspace-theme[data-wit-section="intervinientes"] #form_alta_implicado { padding: 0; }
body.wit-workspace-theme[data-wit-section="intervinientes"] #form_alta_implicado .form-group { margin-bottom: 18px; }
body.wit-workspace-theme .wit-inline-selector { flex-wrap: nowrap; gap: 8px; align-items: flex-start; }
body.wit-workspace-theme .wit-inline-selector > :is(.select2-container,select) { flex: 1 1 0%; width: 1% !important; min-width: 0; }
body.wit-workspace-theme .wit-inline-selector > .btn { flex: 0 0 auto; min-height: 44px; }
body.wit-workspace-theme[data-wit-screen="tasks"] .wit-table-scroll .dropdown-menu.show { position: static !important; transform: none !important; float: none; margin-top: 8px; }
body.wit-workspace-theme[data-wit-screen="tasks"] #grupo_btn { display: flex; align-items: center; gap: 6px; padding: 0 !important; margin-left: auto; }
body.wit-workspace-theme[data-wit-screen="tasks"] #div_tabla .tab-content > .tab-pane { min-width: 0; }
body.wit-workspace-theme[data-wit-screen="tasks"] #div_tabla .table { min-width: 600px; }
body.wit-workspace-theme[data-wit-screen="tasks"] .modal .table th { background: transparent; }
body.wit-workspace-theme[data-wit-screen="tasks"] .modal-dialog { max-width: 720px; }
body.wit-workspace-theme[data-wit-screen="tasks"] :is(#modal_categoria_tareas,#modal_categoria_modificar,#modal_categoria_eliminar,#modal_categoria_principal,#modal_eliminar_tarea) .modal-dialog { max-width: 600px; }
@media (max-width: 767px) {
    body.wit-workspace-theme[data-wit-screen="tasks"] .modal :is(.modal-body,.modal-footer) { padding: 16px; }
    body.wit-workspace-theme[data-wit-screen="tasks"] .modal .table:not(.wit-keep-columns) > tbody > tr { display: block; margin-bottom: 16px; }
    body.wit-workspace-theme[data-wit-screen="tasks"] .modal .table:not(.wit-keep-columns) > tbody > tr > td { display: block; width: 100% !important; padding: 5px 0; border: 0 !important; text-align: left !important; }
    body.wit-workspace-theme[data-wit-screen="tasks"] #grupo_btn { margin-left: 0; }
}
body.wit-expedientes-pilot .page-header > .navbar { width: 100%; min-height: 68px; padding: 0 20px; justify-content: space-between; }
body.wit-expedientes-pilot .navbar-top-links { display: flex; align-items: center; margin: 0; }
body.wit-expedientes-pilot .navbar-top-links > li > a { min-height: 44px; padding: 12px; font-size: 14px; color: var(--wit-navy); }
body.wit-expedientes-pilot .page-header .fablanco { color: var(--wit-navy) !important; }
body.wit-expedientes-pilot .navbar-minimalize { min-width: 42px; min-height: 42px; margin: 0; padding: 10px; box-shadow: none !important; border-color: var(--wit-line) !important; border-radius: 7px; }
body.wit-expedientes-pilot .navbar-minimalize .fa { color: var(--wit-navy) !important; font-size: 18px; }
body.wit-expedientes-pilot .dropdown-menu { max-width: calc(100vw - 32px); border: 1px solid var(--wit-line); border-radius: 8px; box-shadow: 0 8px 28px #102f6014; font-size: 14px; }
body.wit-expedientes-pilot .dropdown-menu a { color: var(--wit-text); }

body.wit-expedientes-pilot .wit-case-breadcrumb { display: flex; align-items: center; gap: 10px; padding-top: 24px; color: var(--wit-muted); font-size: 13px; }
body.wit-expedientes-pilot .wit-case-breadcrumb a { color: var(--wit-muted); }
body.wit-expedientes-pilot .wit-case-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 14px 0 28px; }
body.wit-expedientes-pilot .wit-title-row { display: flex; align-items: center; gap: 12px; }
body.wit-expedientes-pilot h1 { color: var(--wit-navy); font-size: 32px; line-height: 1.2; font-weight: 650; margin: 0; letter-spacing: -.65px; }
body.wit-expedientes-pilot .wit-case-heading p { margin: 9px 0 0; color: var(--wit-muted); font-size: 15px; }
body.wit-expedientes-pilot .wit-case-count { padding: 3px 10px; background: #e6edf6; border-radius: 6px; color: var(--wit-navy); font-size: 14px; font-weight: 600; }
body.wit-expedientes-pilot .wit-case-count:empty { display: none; }
body.wit-expedientes-pilot .wit-heading-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
body.wit-expedientes-pilot .btn { font: 600 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; border-radius: 7px; }
body.wit-expedientes-pilot .wit-heading-actions .btn { min-height: 44px; padding: 11px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
body.wit-expedientes-pilot .btn-primary {
    background: var(--wit-navy) !important; border-color: var(--wit-navy) !important; color: #fff !important; box-shadow: none !important;
}
body.wit-expedientes-pilot .btn-primary:hover,
body.wit-expedientes-pilot .btn-primary:active { background: var(--wit-navy-hover) !important; border-color: var(--wit-navy-hover) !important; }
body.wit-expedientes-pilot .btn-primary:focus { box-shadow: 0 0 0 3px #7298c455 !important; }
body.wit-expedientes-pilot .wit-cases-link { background: #fff; border: 1px solid #c9d5e4; color: var(--wit-navy); box-shadow: none; }
body.wit-expedientes-pilot .wit-cases-link:hover { background: #eaf0f8; border-color: #9bafca; }
body.wit-expedientes-pilot .wit-cases-link .fa { color: var(--wit-red); }
body.wit-expedientes-pilot .text-primary { color: var(--wit-navy) !important; }
body.wit-expedientes-pilot :is(.bg-primary,.badge-primary,.label-primary) { background: var(--wit-navy) !important; color: #fff !important; }

body.wit-expedientes-pilot .wit-case-panel { border: 1px solid var(--wit-line); border-radius: 12px; background: #fff; box-shadow: 0 3px 14px #102f6005; margin-bottom: 26px; }
body.wit-expedientes-pilot .wit-filter-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px 0; background: transparent; border: 0; }
body.wit-expedientes-pilot .wit-filter-heading h2 { font-size: 18px; font-weight: 600; color: var(--wit-text); margin: 0; }
body.wit-expedientes-pilot .wit-filter-heading p { color: var(--wit-muted); font-size: 14px; margin: 5px 0 0; }
body.wit-expedientes-pilot .wit-help-link { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 500; padding: 8px 0 8px 8px; white-space: nowrap; }
body.wit-expedientes-pilot .wit-header-help { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
body.wit-expedientes-pilot button.wit-help-link { background: transparent; border: 0; font-family: inherit; color: var(--wit-navy); cursor: pointer; }
body.wit-expedientes-pilot .wit-case-panel > .panel-body { padding: 22px 24px 24px; }
body.wit-expedientes-pilot .wit-filter-grid { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
body.wit-expedientes-pilot .wit-filter { min-width: 0; }
body.wit-expedientes-pilot .wit-filter label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--wit-text); }
body.wit-expedientes-pilot :is(.form-control,.custom-select,.select2-selection) {
    background-color: #fff; border: 1px solid #bccada; color: var(--wit-text); border-radius: 6px; min-height: 44px; font-size: 16px; font-family: inherit; box-shadow: none;
}
body.wit-expedientes-pilot :is(.form-control,.custom-select) { width: 100%; padding: 10px 12px; }
/* A grouped field shares its row with the attached button or label. */
body.wit-expedientes-pilot .input-group > .form-control { flex: 1 1 0%; width: 1%; min-width: 0; margin-bottom: 0; }
body.wit-expedientes-pilot .input-group > .select2-container { flex: 1 1 0%; width: 1% !important; min-width: 0; }
body.wit-expedientes-pilot .custom-select { padding-right: 30px; background-position: right 12px center; }
body.wit-expedientes-pilot :is(.form-control,.custom-select):focus { border-color: #37669c; box-shadow: 0 0 0 3px #7298c42b; }
body.wit-expedientes-pilot input::placeholder { color: #62738a; opacity: 1; }
body.wit-expedientes-pilot .wit-search-control { position: relative; }
body.wit-expedientes-pilot .wit-search-control > .fa { position: absolute; left: 13px; top: 15px; color: #61738a; font-size: 15px; pointer-events: none; }
body.wit-expedientes-pilot #buscar_texto { padding-left: 38px; }
body.wit-expedientes-pilot .wit-case-panel > .panel-body > .ibox { border-radius: 7px; margin-bottom: 20px !important; box-shadow: none; }
body.wit-expedientes-pilot .wit-advanced-toggle { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; padding: 12px 15px; background: #f6f8fb; border: 1px solid var(--wit-line); border-radius: 7px; color: var(--wit-navy); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: left; cursor: pointer; }
body.wit-expedientes-pilot .wit-advanced-toggle:hover { background: #edf2f8; }
body.wit-expedientes-pilot .wit-advanced-toggle .fa { font-size: 12px; color: #536b8a; }
body.wit-expedientes-pilot .wit-advanced-toggle[aria-expanded="false"] .fa::before { content: '\f078' !important; }
body.wit-expedientes-pilot .wit-advanced-toggle[aria-expanded="true"] .fa::before { content: '\f077' !important; }
body.wit-expedientes-pilot #wit-advanced-content { border: 1px solid var(--wit-line); border-top: 0; border-radius: 0 0 7px 7px; padding: 16px !important; }
body.wit-expedientes-pilot #wit-advanced-content .table { margin: 0; border: 0; }
body.wit-expedientes-pilot #wit-advanced-content tr { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
body.wit-expedientes-pilot #wit-advanced-content td { display: block; border: 0 !important; padding: 0 !important; min-width: 0; background: #fff; }
body.wit-expedientes-pilot #wit-advanced-content [hidden] { display: none !important; }
body.wit-expedientes-pilot .select2-container { max-width: 100%; }
body.wit-expedientes-pilot .select2-selection__rendered { line-height: 42px !important; color: var(--wit-text) !important; font-size: 16px; }
body.wit-expedientes-pilot .select2-results__option--highlighted[aria-selected] { background: var(--wit-navy) !important; }

body.wit-expedientes-pilot #tabla_expedientes { border: 1px solid var(--wit-line); border-radius: 8px; background: #fff; transition: opacity .15s; }
body.wit-expedientes-pilot #tabla_expedientes[aria-busy="true"] { opacity: .55; }
body.wit-expedientes-pilot #tabla_expedientes .table { width: 100%; min-width: 1000px; border: 0; margin: 0; border-collapse: collapse; font-size: 14px; line-height: 1.5; color: var(--wit-text); }
body.wit-expedientes-pilot #tabla_expedientes .table > thead > tr > th { background: #f1f5fa; color: #465a73; font-size: 14px; font-weight: 600; padding: 14px 12px !important; border: 0 !important; border-bottom: 1px solid var(--wit-line) !important; white-space: nowrap; vertical-align: middle !important; }
body.wit-expedientes-pilot #tabla_expedientes .table > tbody > tr > td { padding: 14px 12px !important; border: 0 !important; border-bottom: 1px solid #e6ecf3 !important; vertical-align: top !important; overflow-wrap: anywhere; }
body.wit-expedientes-pilot #tabla_expedientes .table > tbody > tr:nth-child(even) { background: #fafbfd; }
body.wit-expedientes-pilot #tabla_expedientes .table > tbody > tr:hover { background: #edf3fa; }
body.wit-expedientes-pilot #tabla_expedientes .table > tbody > tr:last-child > td { border-bottom: 0 !important; }
body.wit-expedientes-pilot #tabla_expedientes td:first-child { min-width: 125px; width: 17%; }
body.wit-expedientes-pilot #tabla_expedientes td:nth-child(2) { width: 30%; min-width: 230px; }
body.wit-expedientes-pilot #tabla_expedientes td:nth-child(2) > a { font-weight: 600; }
body.wit-expedientes-pilot #tabla_expedientes td:nth-child(3) { min-width: 132px; }
body.wit-expedientes-pilot #tabla_expedientes td:nth-child(4) { min-width: 140px; }
body.wit-expedientes-pilot #tabla_expedientes td:nth-child(5) { min-width: 105px; }
body.wit-expedientes-pilot #tabla_expedientes td:nth-child(6) { min-width: 135px; }
body.wit-expedientes-pilot #tabla_expedientes td:first-child .fa { color: #72859d; margin-right: 4px; }
body.wit-expedientes-pilot #tabla_expedientes small { color: var(--wit-muted); font-size: 13px; display: inline-block; margin-top: 4px; }
body.wit-expedientes-pilot #tabla_expedientes a:hover { text-decoration: underline; }
body.wit-expedientes-pilot #tabla_expedientes a.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; border-radius: 6px; text-decoration: none; }
body.wit-expedientes-pilot #tabla_expedientes .barra_cuerpo_datos { color: var(--wit-muted); text-align: center; padding: 46px 20px; min-height: 150px; font-size: 16px; }
body.wit-expedientes-pilot #tabla_expedientes .barra_cuerpo_datos::before { content: '\f002'; display: block; font: 24px FontAwesome; color: #617996; margin-bottom: 14px; }
body.wit-expedientes-pilot #pagination { height: auto; margin: 20px 0 0 !important; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
body.wit-expedientes-pilot #pagination .tui-page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; margin: 0; border: 1px solid #c9d5e4; border-radius: 6px; background: #fff; color: var(--wit-navy); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; }
body.wit-expedientes-pilot #pagination .tui-is-selected { background: var(--wit-navy); border-color: var(--wit-navy); color: #fff; }
body.wit-expedientes-pilot #pagination .tui-is-disabled { opacity: .5; }
body.wit-expedientes-pilot .footer { position: relative; margin: 0 -28px; padding: 16px 28px; border-top: 1px solid var(--wit-line); color: var(--wit-muted); background: transparent; font-size: 12px; }
body.wit-expedientes-pilot .footer span { float: none !important; display: flex; justify-content: flex-end; align-items: center; gap: 6px; flex-wrap: wrap; }
body.wit-expedientes-pilot .footer a { margin-left: 18px !important; color: var(--wit-muted) !important; }
body.wit-expedientes-pilot > div[style*="z-index:2147483647"] { font: 500 12px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important; padding: 8px 14px !important; background: #9b1c1c !important; }
/* The existing service remains available as an inline button, away from the filters. */
body.wit-expedientes-pilot > div[onclick="jivo_api.open()"] { display: none !important; }
body.wit-expedientes-pilot .modal-dialog { min-width: 0 !important; width: calc(100% - 32px); max-width: 1100px; margin: 24px auto; }
body.wit-expedientes-pilot .modal-content { border: 1px solid var(--wit-line); border-radius: 12px; color: var(--wit-text); }
body.wit-expedientes-pilot .modal .nav-link.active { color: var(--wit-navy); border-color: var(--wit-line); border-top: 2px solid var(--wit-navy); }
body.wit-expedientes-pilot .modal .nav-tabs .nav-link { font-size: 14px; }
@media (max-width: 1199px) {
    body.wit-expedientes-pilot .wit-case-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
    body.wit-expedientes-pilot .wit-heading-actions { justify-content: flex-start; }
    body.wit-expedientes-pilot .wit-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
    body.wit-expedientes-pilot #page-wrapper { padding: 0 16px 110px; }
    body.wit-expedientes-pilot .page-header { margin: 0 -16px; }
    body.wit-expedientes-pilot .page-header > .navbar { padding: 0 12px; flex-wrap: nowrap; }
    body.wit-expedientes-pilot .navbar-top-links > li > a { padding: 12px 10px; }
    body.wit-expedientes-pilot .wit-case-breadcrumb { padding-top: 20px; }
    body.wit-expedientes-pilot h1 { font-size: 28px; }
    body.wit-expedientes-pilot .wit-case-heading { margin-bottom: 22px; }
    body.wit-expedientes-pilot .wit-heading-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
    body.wit-expedientes-pilot .wit-new-case { order: -1; }
    body.wit-expedientes-pilot .wit-filter-heading { padding: 20px 16px 0; align-items: flex-start; }
    body.wit-expedientes-pilot .wit-filter-heading p { max-width: 230px; }
    body.wit-expedientes-pilot .wit-header-help { flex-direction: column; gap: 0; }
    body.wit-expedientes-pilot .wit-header-help .wit-help-link { font-size: 14px; }
    body.wit-expedientes-pilot .wit-case-panel > .panel-body { padding: 20px 16px; }
    body.wit-expedientes-pilot .wit-filter-grid,
    body.wit-expedientes-pilot #wit-advanced-content tr { grid-template-columns: 1fr; }
    body.wit-expedientes-pilot .wit-case-panel { border-radius: 10px; }
    body.wit-expedientes-pilot .footer { margin: 0 -16px; padding: 16px; }
    body.wit-expedientes-pilot .footer span { justify-content: flex-start; }
    body.wit-expedientes-pilot .footer a { margin: 0 !important; }
    body.wit-expedientes-pilot .modal-dialog { width: calc(100% - 24px); margin: 16px auto 80px; }
}
@media (prefers-reduced-motion: reduce) {
    body.wit-expedientes-pilot *,body.wit-expedientes-pilot *::before,body.wit-expedientes-pilot *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Stage 2: workspace forms, calendar and all their embedded or AJAX dialogs. */
body.wit-workspace-theme input[type="checkbox"],body.wit-workspace-theme input[type="radio"] { accent-color: var(--wit-navy); }
body.wit-workspace-theme .row > [class*="col"] { min-width: 0; }
body.wit-workspace-theme .page-content { display: flex; align-items: center; gap: 16px 24px; margin: 24px 0 20px; }
body.wit-workspace-theme .page-content > .col-lg-12 { flex: 1 1 auto; width: auto; min-width: 0; max-width: none; }
body.wit-workspace-theme .page-content h2 { font-size: 30px; font-weight: 650; color: var(--wit-navy); line-height: 1.25; overflow-wrap: anywhere; }
body.wit-workspace-theme .page-content h2 .fa { color: #6c829e; font-size: 23px; }
body.wit-workspace-theme .page-content .breadcrumb { font-size: 13px; color: var(--wit-muted); padding-left: 0; }
body.wit-workspace-theme #page-wrapper > .panel { background: #fff; border: 1px solid var(--wit-line); border-radius: 12px; padding: 24px; box-shadow: 0 3px 14px #102f6005; }
body.wit-workspace-theme #page-wrapper > .panel > .row { margin: 0; padding: 0; border: 0; }
body.wit-workspace-theme .dashboard-header { border: 0; }
body.wit-workspace-theme .tab-menu-heading { padding: 0 0 18px; border: 0; }
body.wit-workspace-theme .tabs-menu-body { padding: 22px 0; border: 0; }
body.wit-workspace-theme :is(.tabs-menu1,.tabs-container) > .nav,
body.wit-workspace-theme .nav-tabs { display: flex; flex-wrap: wrap; gap: 4px; border: 0; border-bottom: 1px solid var(--wit-line); padding: 0 0 8px; }
body.wit-workspace-theme :is(.tabs-menu1,.tabs-container) .nav-link { font-size: 14px; font-weight: 500; padding: 11px 16px !important; color: var(--wit-muted); border: 1px solid transparent; background: transparent; border-radius: 6px; }
body.wit-workspace-theme :is(.tabs-menu1,.tabs-container) .nav-link.active,
body.wit-workspace-theme .tabs-menu1 ul li .active { color: var(--wit-navy) !important; background: #eaf0f8 !important; border: 1px solid #c6d4e6 !important; font-weight: 600; }
body.wit-workspace-theme :is(.tabs-menu1,.tabs-container) .nav-link:hover { background: #f1f5fa; color: var(--wit-navy); }
body.wit-workspace-theme :is(.label-form-control,.form-label,label) { color: var(--wit-text); font-size: 14px; line-height: 1.5; }
body.wit-workspace-theme .label-form-control { font-weight: 600; }
body.wit-workspace-theme textarea.form-control { min-height: 100px; resize: vertical; }
body.wit-workspace-theme .input-group > .form-control { min-width: 0; }
body.wit-workspace-theme #cont_select_implicado { min-width: 0 !important; }
body.wit-workspace-theme .input-group-addon { display: inline-flex; align-items: center; justify-content: center; background: #f1f5fa; border-color: #bccada; color: var(--wit-navy); font-size: 14px; }
body.wit-workspace-theme :is(.btn-primary,.btn-info,.btn-default,.btn-light,.btn-success,.btn-danger,.btn-warning) { font-size: 14px !important; border-radius: 6px; box-shadow: none !important; }
body.wit-workspace-theme a:is(.btn-primary,.btn-info,.btn-default,.btn-success) { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 7px 10px !important; line-height: 1.4; }
body.wit-workspace-theme .btn-info { background: #eaf1f9 !important; border-color: #bfcee1 !important; color: var(--wit-navy) !important; }
body.wit-workspace-theme .btn-info:hover { background: #dbe7f5 !important; }
body.wit-workspace-theme .btn-outline-primary { color: var(--wit-navy) !important; border-color: var(--wit-navy) !important; background: #fff !important; }
body.wit-workspace-theme .btn-outline-primary:hover { background: var(--wit-navy) !important; color: #fff !important; }
body.wit-workspace-theme :is(.btn-default,.btn-light) { color: var(--wit-text) !important; border: 1px solid #bccada !important; background: #fff !important; }
body.wit-workspace-theme .btn-success { background: #17684a !important; border-color: #17684a !important; color: #fff !important; }
body.wit-workspace-theme .btn-danger { background: #b42332 !important; border-color: #b42332 !important; color: #fff !important; }
body.wit-workspace-theme .btn-warning { background: #f8d17b !important; border-color: #d4aa51 !important; color: #493609 !important; }
body.wit-workspace-theme .table { font-size: 14px; color: var(--wit-text); }
body.wit-workspace-theme .table th { color: #465a73; background: #f1f5fa; font-size: 14px; }
body.wit-workspace-theme .table :is(td,th) { border-color: #e0e7f0 !important; }
body.wit-workspace-theme .table-responsive { overscroll-behavior-x: contain; }
body.wit-workspace-theme .select2-container { min-width: 0; max-width: 100%; }
body.wit-workspace-theme .select2-container--open { z-index: 6000; }
body.wit-workspace-theme .select2-dropdown { border-color: #b3c4da; border-radius: 6px; box-shadow: 0 8px 28px #102f601c; }
body.wit-workspace-theme .select2-results__option { font-size: 14px; padding: 9px 12px; }
body.wit-workspace-theme .select2-selection__arrow { top: 9px !important; }
body.wit-workspace-theme .select2-selection--multiple .select2-selection__rendered { line-height: 1.5 !important; padding: 4px 8px; white-space: normal; }
body.wit-workspace-theme .select2-selection__choice { background: #eaf0f8 !important; color: var(--wit-navy); border-color: #c5d3e4 !important; font-size: 14px; }
body.wit-workspace-theme .toast-info { background: var(--wit-navy) !important; }
body.wit-workspace-theme .toast-success { background: #17684a !important; }
body.wit-workspace-theme .tooltip-inner { background: var(--wit-navy); font-size: 13px; padding: 8px 11px; }
body.wit-workspace-theme :is(.tooltip,.popover) { z-index: 6200; }
body.wit-workspace-theme .popover { border-color: var(--wit-line); border-radius: 8px; box-shadow: 0 6px 24px #102f6018; }
body.wit-workspace-theme .popover-header { background: #f1f5fa; color: var(--wit-navy); }

body.wit-workspace-theme .modal { overscroll-behavior: contain; }
body.wit-workspace-theme .modal-dialog { width: calc(100% - 40px); min-width: 0 !important; max-width: 920px; margin: 24px auto 70px; }
body.wit-workspace-theme :is(#modal_correo,#modal_alta_implicado,#modal_global) .modal-dialog { max-width: 1100px; }
body.wit-workspace-theme #modal_alta_aviso .modal-dialog { max-width: 1000px; }
body.wit-workspace-theme #modal_archivar_expediente .modal-dialog { max-width: 620px; }
body.wit-workspace-theme .modal-content { box-shadow: 0 18px 60px #102f6033; background: #fff; }
body.wit-workspace-theme :is(.modal-header,.wit-modal-heading) { position: relative; padding: 24px 24px 18px; background: #fff; border-bottom: 1px solid var(--wit-line); border-radius: 12px 12px 0 0; }
body.wit-workspace-theme .wit-modal-heading > hr { display: none; }
body.wit-workspace-theme .modal-title { color: var(--wit-navy); font-size: 20px; font-weight: 600; line-height: 1.35; padding-right: 44px; margin: 0; }
body.wit-workspace-theme .modal .close { position: absolute; right: 12px; top: 12px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0; padding: 0; border-radius: 7px; color: #53657b; opacity: 1; font-size: 26px; text-shadow: none; }
body.wit-workspace-theme .modal .close:hover { color: var(--wit-navy); background: #eaf0f8; }
body.wit-workspace-theme .modal :is(.modal-body,.panel-body) { padding: 20px; }
body.wit-workspace-theme .modal .modal-footer { padding: 16px 20px; gap: 8px; background: #f8fafc; border-top: 1px solid var(--wit-line); border-radius: 0 0 12px 12px; }
body.wit-workspace-theme .modal .modal-footer .btn { min-height: 42px; margin: 0; padding: 9px 16px; }
body.wit-workspace-theme .modal .tabs-container { padding-top: 14px; }
body.wit-workspace-theme .modal .form-group { margin-bottom: 18px; }
body.wit-workspace-theme .modal .table-responsive { max-width: 100%; }
body.wit-workspace-theme .ui-datepicker { z-index: 6100 !important; background: #fff; border: 1px solid #bccada; border-radius: 8px; box-shadow: 0 10px 28px #102f6026; font-size: 14px; padding: 10px; }
body.wit-workspace-theme .ui-datepicker .ui-datepicker-header { background: #f1f5fa; border: 0; color: var(--wit-navy); }
body.wit-workspace-theme .ui-datepicker .ui-state-active { background: var(--wit-navy); color: #fff; border-color: var(--wit-navy); }
body.wit-workspace-theme :is(.mce-panel,.mce-menubar) { background: #fff; border-color: #c7d3e2; }
body.wit-workspace-theme :is(.mce-window,.mce-menu) { border: 1px solid #c7d3e2; box-shadow: 0 12px 36px #102f602b; border-radius: 8px; }
body.wit-workspace-theme .mce-primary button { background: var(--wit-navy); color: #fff; text-shadow: none; }
body.wit-workspace-theme .mce-primary { background: var(--wit-navy); border-color: var(--wit-navy); }
body.wit-workspace-theme .mce-window-head { background: #fff; padding: 18px; border-bottom: 1px solid var(--wit-line); }
body.wit-workspace-theme .mce-title { color: var(--wit-navy); font: 600 18px/1.4 "Segoe UI",Arial,sans-serif; }
body.wit-workspace-theme .mce-toolbar .mce-btn-group { white-space: normal; }

/* Stage 4: personal mail and shared document tools. */
/* Keep the native select hidden by Select2 out of the styled field layout. */
body.wit-workspace-theme select.select2-hidden-accessible { width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; }
body.wit-workspace-theme :is(#modal_eliminar,#modal_eliminar_carpeta,#modal_ocr,#modal_gestionar_directorio,#modal_mover_copiar_mensajes) :is(.alert,td) { overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-section="correo"] .navbar-top-links a[href$="mi_perfil/correo.php"],
body.wit-workspace-theme[data-wit-section="documentos"] #side-menu a[aria-current="page"] { background: #eaf0f8; color: var(--wit-navy); border-radius: 6px; font-weight: 600; }
body.wit-workspace-theme .wit-mail-layout { margin-left: -10px; margin-right: -10px; }
body.wit-workspace-theme .wit-mail-layout > [class*="col"] { padding-left: 10px; padding-right: 10px; }
body.wit-workspace-theme .wit-mail-layout .panel { border: 1px solid var(--wit-line); border-radius: 12px; background: #fff; box-shadow: 0 3px 14px #102f6005; }
body.wit-workspace-theme .mail-inbox { padding: 8px; }
body.wit-workspace-theme .mail-inbox > .text-center { margin: 12px 8px !important; }
body.wit-workspace-theme .mail-inbox .list-group-item { border: 0; border-radius: 6px; margin: 2px 0; padding: 12px; color: var(--wit-muted); font-size: 14px; overflow-wrap: anywhere; }
body.wit-workspace-theme .mail-inbox .list-group-item:hover { background: #f1f5fa; color: var(--wit-navy); }
body.wit-workspace-theme .mail-inbox .list-group-item.active { background: #eaf0f8 !important; color: var(--wit-navy) !important; font-weight: 600; border-left: 3px solid var(--wit-red); }
body.wit-workspace-theme .mail-inbox .list-group-item .icon { color: inherit; }
body.wit-workspace-theme .mail-inbox .btn { min-height: 44px !important; }
body.wit-workspace-theme .inbox-body { margin: 20px !important; min-width: 0; }
body.wit-workspace-theme .mail-option { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; float: none; width: 100%; padding-bottom: 16px; border-bottom: 1px solid var(--wit-line); }
body.wit-workspace-theme .mail-option > :is(.chk-all,.btn-group) { float: none; margin: 0; flex: 0 0 auto; }
body.wit-workspace-theme .mail-option .btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px !important; border-radius: 6px; }
body.wit-workspace-theme .mail-option > .wit-mail-search { display: flex; flex: 1 1 220px; min-width: 140px; max-width: 100%; }
body.wit-workspace-theme .wit-mail-search > .input-group-addon { flex: 0 0 38px; border: 1px solid #bccada; border-right: 0; border-radius: 6px 0 0 6px; }
body.wit-workspace-theme .wit-mail-search > .form-control { flex: 1 1 0%; width: 1%; min-width: 0; border-radius: 0 6px 6px 0; }
body.wit-workspace-theme #select_opcion { width: auto; min-width: 155px; }
body.wit-workspace-theme .table-inbox { min-width: 620px; }
body.wit-workspace-theme .table-inbox td { padding: 13px 10px; background: #fff; }
body.wit-workspace-theme .table-inbox .unread td { background: #f0f5fb; color: var(--wit-navy); font-weight: 600; }
body.wit-workspace-theme .table-inbox tr:hover td { background: #e8eff8; }
body.wit-workspace-theme .mail-option .dropdown-menu { min-width: 210px; }
body.wit-workspace-theme #modal_correo .wit-mail-recipients { align-items: flex-start; }
body.wit-workspace-theme #modal_correo .wit-mail-recipients > div:nth-child(2) { flex: 1 1 0%; width: 1%; min-width: 0; max-width: none; padding-right: 8px !important; }
body.wit-workspace-theme #modal_correo .wit-mail-recipients > div:nth-child(3) { flex: 0 0 auto; width: auto; max-width: none; }
body.wit-workspace-theme #modal_correo .wit-mail-recipients button { min-height: 44px; }
body.wit-workspace-theme #modal_correo .tab-content { padding-top: 16px; }
body.wit-workspace-theme #modal_correo .ibox-content { border: 0; }
body.wit-workspace-theme #modal_correo .mce-tinymce { width: 100% !important; box-sizing: border-box; }
body.wit-workspace-theme #modal_correo .select2-search--inline { max-width: 100%; }
body.wit-workspace-theme #modal_correo .select2-search__field { max-width: 100%; box-sizing: border-box; }
body.wit-workspace-theme :is(#modal_gestionar_directorio,#modal_mover_copiar_mensajes) .modal-dialog { max-width: 850px; }
body.wit-workspace-theme #modal_gestionar_directorio .input-group { flex-wrap: nowrap; gap: 8px; }
body.wit-workspace-theme #modal_gestionar_directorio .input-group > div:first-child { flex: 1 1 0%; width: 1%; min-width: 0; max-width: none; }
body.wit-workspace-theme #modal_gestionar_directorio .input-group > div:last-child { flex: 0 0 auto; width: auto; max-width: none; }
body.wit-workspace-theme :is(#modal_eliminar_correo,#modal_eliminar_correos_seleccionados,#modal_eliminar,#modal_eliminar_carpeta,#modal_ocr) .modal-dialog { max-width: 600px; }
body.wit-workspace-theme .wit-document-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; float: none !important; padding: 0 !important; }
body.wit-workspace-theme .wit-document-toolbar > .btn { min-height: 44px; border-radius: 6px !important; }
body.wit-workspace-theme .wit-document-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
body.wit-workspace-theme .wit-document-scroll table { min-width: 620px; }
body.wit-workspace-theme .wit-document-scroll .dropdown-menu.show { position: static !important; transform: none !important; float: none; margin-top: 8px; max-width: 100%; }
body.wit-workspace-theme .doc-opciones { display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border-radius: 6px; color: var(--wit-navy); }
body.wit-workspace-theme .doc-opciones:hover { background: var(--wit-navy); color: #fff; }
body.wit-workspace-theme .wit-document-form table { width: 100%; }
body.wit-workspace-theme .wit-document-form td { padding: 8px; }
body.wit-workspace-theme .wit-document-form td:first-child { color: var(--wit-muted); font-size: 14px; }
body.wit-workspace-theme input[type="file"].form-control { height: auto; min-height: 44px; max-width: 100%; padding: 8px; }
body.wit-workspace-theme[data-wit-section="documentos"] .dataTables_wrapper .row { margin: 0; gap: 10px 0; }
body.wit-workspace-theme[data-wit-section="documentos"] .dataTables_wrapper :is(.dataTables_filter,.dataTables_length) label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.wit-workspace-theme[data-wit-section="documentos"] .dataTables_filter input { width: 180px; max-width: 100%; margin-left: 0 !important; }
@media (max-width: 767px) {
    body.wit-workspace-theme .inbox-body { margin: 16px !important; }
    body.wit-workspace-theme .mail-option > .wit-mail-search { flex-basis: 100%; }
    body.wit-workspace-theme .wit-document-toolbar { justify-content: flex-start; }
    body.wit-workspace-theme .wit-document-form :is(table,tbody,tr,td) { display: block; width: 100% !important; }
    body.wit-workspace-theme .wit-document-form td { padding: 4px 0; text-align: left !important; }
    body.wit-workspace-theme .wit-document-form tr { margin-bottom: 14px; }
    body.wit-workspace-theme #modal_correo > .modal-dialog > .modal-content > .col-lg-12 { padding-left: 12px; padding-right: 12px; }
    body.wit-workspace-theme #modal_correo .panel-body > .col-lg-12 { padding: 0; }
    body.wit-workspace-theme #modal_correo .panel-body .form-group.row { margin-left: 0; margin-right: 0; }
    body.wit-workspace-theme #modal_correo .mce-toolbar .mce-btn-group { display: block; }
    body.wit-workspace-theme #modal_gestionar_directorio .row { margin-left: 0; margin-right: 0; }
    body.wit-workspace-theme #modal_gestionar_directorio .row > [class*="col"] { flex: 0 0 100%; max-width: 100%; padding: 4px 0; }
}

body.wit-workspace-theme[data-wit-screen="case-detail"] .row.justify-content-between { gap: 12px; margin: 16px 0 22px; padding: 16px; background: #f1f5fa; border: 1px solid var(--wit-line); border-radius: 8px; }
body.wit-workspace-theme[data-wit-screen="case-detail"] .row.justify-content-between > .col { flex: 1 1 190px; padding: 0; overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-screen="case-detail"] .row.justify-content-between > .col:nth-child(2) { font-size: 18px !important; color: var(--wit-navy); font-weight: 600; }
body.wit-workspace-theme[data-wit-screen="case-detail"] .div-Floating { color: var(--wit-navy); border-color: var(--wit-navy); border-radius: 8px; }
body.wit-workspace-theme[data-wit-section="agenda"] .navbar-top-links a[href$="agenda/"] { background: #eaf0f8; border-radius: 6px; }
body.wit-workspace-theme[data-wit-section="agenda"] #calendar { padding-top: 18px; }
body.wit-workspace-theme[data-wit-section="agenda"] .ibox { margin-bottom: 18px !important; }
body.wit-workspace-theme[data-wit-section="agenda"] .form-inline.float-right { float: none !important; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; width: 100%; }
body.wit-workspace-theme[data-wit-section="agenda"] .form-inline.float-right > .breadcrumb { padding: 0 !important; margin: 0; }
body.wit-workspace-theme[data-wit-section="agenda"] .form-inline.float-right > .form-group { position: relative; margin: 0; padding: 0 !important; min-width: 160px; }
body.wit-workspace-theme[data-wit-section="agenda"] .has-search .form-control-feedback { left: 10px; top: 13px !important; width: 18px; height: 18px; line-height: 18px; color: var(--wit-muted); pointer-events: none; }
body.wit-workspace-theme[data-wit-section="agenda"] .has-search :is(input,select) { padding-left: 34px !important; }
body.wit-workspace-theme[data-wit-section="agenda"] :is(#buscador_aviso,#select_id_tipo_aviso) { max-width: 240px !important; font-size: 16px !important; }
body.wit-workspace-theme[data-wit-section="agenda"] .fc-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 14px; }
body.wit-workspace-theme[data-wit-section="agenda"] .fc-toolbar > :is(.fc-left,.fc-right,.fc-center) { float: none; }
body.wit-workspace-theme[data-wit-section="agenda"] .fc-toolbar h2 { color: var(--wit-navy); font-size: 24px; font-weight: 600; }
body.wit-workspace-theme[data-wit-section="agenda"] .fc button { color: var(--wit-navy); background: #fff; border: 1px solid #b7c8dd; box-shadow: none; text-shadow: none; height: 40px; padding: 8px 13px; font-size: 14px; }
body.wit-workspace-theme[data-wit-section="agenda"] .fc button.fc-state-active { background: var(--wit-navy) !important; color: #fff !important; }
body.wit-workspace-theme[data-wit-section="agenda"] .fc .fc-today { background: #edf3fa; }
body.wit-workspace-theme[data-wit-section="agenda"] .fc th { background: #f1f5fa; color: #465a73; padding: 10px 4px; font-size: 14px; }
body.wit-workspace-theme[data-wit-section="agenda"] .fc :is(td,th) { border-color: var(--wit-line); }
body.wit-workspace-theme[data-wit-section="agenda"] .fc-event { border-radius: 4px; font-size: 13px; padding: 2px; }
body.wit-workspace-theme[data-wit-section="agenda"] .fc-day-number { color: var(--wit-muted); font-size: 14px; padding: 5px; }
@media (max-width: 767px) {
    body.wit-workspace-theme #page-wrapper > .panel { padding: 16px; }
    body.wit-workspace-theme .page-content { flex-wrap: wrap; gap: 12px; }
    body.wit-workspace-theme .page-content > .col-lg-12 { flex-basis: 180px; }
    body.wit-workspace-theme .page-content h2 { font-size: 26px; }
    body.wit-workspace-theme .tabs-menu-body { padding: 18px 0; }
    body.wit-workspace-theme .modal-dialog { width: calc(100% - 24px); margin: 12px auto 90px; }
    body.wit-workspace-theme :is(.modal-header,.wit-modal-heading) { padding: 20px 16px 16px; }
    body.wit-workspace-theme .modal :is(.modal-body,.panel-body) { padding: 16px; }
    body.wit-workspace-theme .modal .nav-link { padding: 9px 10px !important; }
    body.wit-workspace-theme .modal .modal-footer { padding: 12px 16px; flex-wrap: wrap; }
    body.wit-workspace-theme[data-wit-screen="case-detail"] .row.justify-content-between > .col { text-align: left !important; }
    body.wit-workspace-theme[data-wit-screen="case-detail"] .row.mb-2 .col > a { margin-bottom: 8px; }
    body.wit-workspace-theme[data-wit-section="agenda"] .fc-toolbar { justify-content: center; }
    body.wit-workspace-theme[data-wit-section="agenda"] .fc-toolbar .fc-center { order: -1; width: 100%; }
    body.wit-workspace-theme[data-wit-section="agenda"] .fc-toolbar h2 { font-size: 21px; float: none; }
    body.wit-workspace-theme[data-wit-section="agenda"] .fc button { padding: 7px 9px; }
    body.wit-workspace-theme[data-wit-section="agenda"] .fc th { font-size: 12px; }
}

/* Stage 5: expenses, estimates and invoices. */
body.wit-workspace-theme[data-wit-section="facturacion"] .table { font-size: 14px !important; }
body.wit-workspace-theme[data-wit-section="facturacion"] #side-menu a[aria-current="page"] { background: #eaf0f8; color: var(--wit-navy); border-left: 3px solid var(--wit-red); font-weight: 600; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#nro_gastos,#nro_presupuestos,#nro_facturas) { display: inline-block; padding: 3px 10px; margin-left: 8px; border-radius: 6px; background: #e6edf6; color: var(--wit-navy); font-size: 14px; vertical-align: middle; }
body.wit-workspace-theme[data-wit-section="facturacion"] #page-wrapper > .panel > .inline { display: flex; justify-content: flex-end; float: none !important; padding: 0 !important; margin-bottom: 18px; }
body.wit-workspace-theme[data-wit-section="facturacion"] #page-wrapper > .panel > .inline .btn { margin: 0 !important; min-height: 44px; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_gastos,#form_presupuestos,#form_facturas) { padding: 0 !important; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_gastos,#form_presupuestos,#form_facturas) > .row { margin: 0; padding: 0 !important; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_gastos,#form_presupuestos,#form_facturas) > .row > .col-lg-12 { padding: 0; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_gastos,#form_presupuestos,#form_facturas) .col-lg-3 { padding: 0 8px !important; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_gastos,#form_presupuestos,#form_facturas) label { display: block; margin-bottom: 7px; font-weight: 600; }
body.wit-workspace-theme[data-wit-section="facturacion"] #form_gastos .inline { padding-top: 28px; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#tabla_gastos,#cuerpo_tabla) { margin-top: 18px; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#tabla_gastos,#cuerpo_tabla) table { min-width: 850px; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(.table-responsive,.wit-finance-scroll) { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
body.wit-workspace-theme[data-wit-section="facturacion"] .wit-finance-scroll table { min-width: 600px; }
body.wit-workspace-theme[data-wit-section="facturacion"] .table :is(th,td) { padding: 12px; }
body.wit-workspace-theme[data-wit-section="facturacion"] .table td[align="right"] { font-variant-numeric: tabular-nums; }
body.wit-workspace-theme[data-wit-section="facturacion"] .dataTables_wrapper { min-width: 0; }
body.wit-workspace-theme[data-wit-section="facturacion"] .dataTables_wrapper > .row { margin: 0; gap: 10px 0; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(.dataTables_filter,.dataTables_length) label { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
body.wit-workspace-theme[data-wit-section="facturacion"] .dataTables_filter input { width: 180px; max-width: 100%; margin-left: 0 !important; }
body.wit-workspace-theme[data-wit-section="facturacion"] #page-wrapper > .panel > .col-md-12 { padding: 0 !important; }
body.wit-workspace-theme[data-wit-section="facturacion"] #tab_datos_presupuesto > .panel-body { padding: 20px 0 !important; }
body.wit-workspace-theme[data-wit-section="facturacion"] h3 { color: var(--wit-navy); font-size: 20px; font-weight: 600; }
body.wit-workspace-theme[data-wit-section="facturacion"] .input-group-btn { display: flex; gap: 4px; flex: 0 0 auto; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(.input-group-btn,.input-group-append) > .btn { min-height: 44px; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#tabla_concepto,#tabla_detalles,#tabla_cobros) table { min-width: 780px; }
body.wit-workspace-theme[data-wit-section="facturacion"] .btn-secondary { color: var(--wit-navy) !important; background: #edf2f8 !important; border-color: #c4d0e0 !important; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#modal_detalle_gastos,#modal_emisor_perceptor,#modal_empresa_emisora,#modal_actualizar_cliente,#modal_alta_empresa,#modal_concepto_categoria) .modal-dialog { max-width: 1050px; }
body.wit-workspace-theme[data-wit-section="facturacion"] #modal_detalle_gastos .div-ajustealtura { max-height: none; overflow: visible; }
body.wit-workspace-theme[data-wit-section="facturacion"] .modal .alert { overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-section="facturacion"] .modal .wit-finance-scroll .dropdown-menu.show { position: static !important; transform: none !important; float: none; }
@media (max-width: 767px) {
    body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_datos_factura,#form_datos_presupuesto) > .form-group.row { margin-left: 0; margin-right: 0; }
    body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_datos_factura,#form_datos_presupuesto) > .form-group.row > label { flex: 0 0 100%; width: 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
    body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_datos_factura,#form_datos_presupuesto) > .form-group.row > div { padding-left: 0; padding-right: 0; }
    body.wit-workspace-theme[data-wit-section="facturacion"] #form_datos_factura > .form-group.row > .col-6.col-md-2 { flex: 0 0 100%; max-width: 100%; }
    body.wit-workspace-theme[data-wit-section="facturacion"] #modal_detalle_gastos .form-group.row { margin-left: 0; margin-right: 0; }
    body.wit-workspace-theme[data-wit-section="facturacion"] #modal_detalle_gastos .form-group.row > label { flex: 0 0 100%; width: 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
    body.wit-workspace-theme[data-wit-section="facturacion"] #modal_detalle_gastos .form-group.row > div { max-width: 100%; padding-left: 0 !important; padding-right: 0 !important; }
    body.wit-workspace-theme[data-wit-section="facturacion"] .wit-finance-fields :is(tbody,tr,td) { display: block; width: 100% !important; text-align: left !important; }
    body.wit-workspace-theme[data-wit-section="facturacion"] .wit-finance-fields { display: block; width: 100% !important; max-width: 100%; min-width: 0; }
    body.wit-workspace-theme[data-wit-section="facturacion"] .wit-finance-fields .select2-container { width: 100% !important; }
    body.wit-workspace-theme[data-wit-section="facturacion"] .wit-finance-fields td { padding: 5px 0; }
    body.wit-workspace-theme[data-wit-section="facturacion"] .wit-finance-fields tr { margin-bottom: 14px; }
    body.wit-workspace-theme[data-wit-section="facturacion"] .modal .form-inline { display: flex; flex-wrap: wrap; gap: 8px; }
    body.wit-workspace-theme[data-wit-section="facturacion"] .modal .btn { max-width: 100% !important; white-space: normal; overflow-wrap: anywhere; }
}

/* Stage 6: retainers and remittances. */
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#nro_igualas,#nro_remesas) { display: inline-block; padding: 3px 10px; margin-left: 8px; border-radius: 6px; background: #e6edf6; color: var(--wit-navy); font-size: 14px; vertical-align: middle; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_igualas,#form_remesas) { padding: 0 !important; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_igualas,#form_remesas) > .row { margin: 0; padding: 0 !important; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_igualas,#form_remesas) > .row > .col-lg-12 { padding: 0; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_igualas,#form_remesas) .col-lg-3 { padding: 0 8px !important; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_igualas,#form_remesas) label { display: block; margin-bottom: 7px; font-weight: 600; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_igualas,#form_remesas) .inline { display: flex; justify-content: flex-end; float: none !important; padding-top: 28px; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_igualas,#form_remesas) .inline .btn { min-height: 44px; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#tabla_igualas,#tabla_remesas) { margin-top: 18px; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#tabla_igualas,#tabla_remesas) table { min-width: 850px; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#modal_iguala,#modal_facturar_iguala,#modal_remesa,#modal_factura_remesa) .modal-dialog { max-width: 1050px; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#modal_iguala,#modal_facturar_iguala,#modal_remesa,#modal_factura_remesa) .panel-body { padding: 18px 8px !important; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#tabla_facturas_igualas,#tabla_recibos_remesa) table { min-width: 600px; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#tab_conten_igualas_incluidas,#tab_facturas_incluir) table { min-width: 700px; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#modal_iguala,#modal_facturar_iguala,#modal_remesa,#modal_factura_remesa) input[readonly] { background: #f1f5fa; }
body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_iguala,#form_remesa,#form_factura_iguala,#form_factura_remesa) label { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 767px) {
    body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_igualas,#form_remesas) .inline { justify-content: flex-start; padding-top: 0; }
    body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_iguala,#form_remesa,#form_factura_iguala,#form_factura_remesa) .form-group.row { margin-left: 0; margin-right: 0; }
    body.wit-workspace-theme[data-wit-section="facturacion"] :is(#form_iguala,#form_remesa,#form_factura_iguala,#form_factura_remesa) .form-group.row > :is(label,div) { flex: 0 0 100%; width: 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
    body.wit-workspace-theme[data-wit-section="facturacion"] :is(#modal_iguala,#modal_facturar_iguala,#modal_remesa,#modal_factura_remesa) .nav-tabs { flex-wrap: wrap; }
}

/* Stage 7: parameters and billing settings. */
body.wit-workspace-theme[data-wit-section="configuracion"] #side-menu a[aria-current="page"] { background: #eaf0f8; color: var(--wit-navy); border-left: 3px solid var(--wit-red); font-weight: 600; }
body.wit-workspace-theme[data-wit-section="configuracion"] h3 { color: var(--wit-navy); font-size: 20px; font-weight: 600; }
body.wit-workspace-theme[data-wit-section="configuracion"] #page-wrapper > .panel > .col-md-12 { padding: 0 !important; }
body.wit-workspace-theme[data-wit-screen="settings-parameters"] .tabs-menu-body { padding: 20px 0 0; }
body.wit-workspace-theme[data-wit-screen="settings-parameters"] #tab_expedientes > .panel-body { padding: 0; }
body.wit-workspace-theme[data-wit-screen="settings-parameters"] #form_expedientes .form-group.row { align-items: center; padding: 16px 0; margin: 0; border-bottom: 1px solid var(--wit-line); }
body.wit-workspace-theme[data-wit-screen="settings-parameters"] #form_expedientes .label-form-control { margin-bottom: 0; }
body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-toolbar > :is(a,button) { float: none !important; margin: 0 !important; min-height: 44px; }
body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-toolbar > a { margin-left: auto !important; }
body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin-top: 16px; }
body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-scroll table { width: 100%; min-width: 700px; font-size: 14px; }
body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-scroll :is(th,td) { padding: 12px; vertical-align: middle; }
body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-scroll th { background: #f1f5fa; color: #465a73; font-weight: 600; }
body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-actions { white-space: nowrap; }
body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-actions > a { display: inline-flex; float: none !important; align-items: center; min-height: 38px; padding: 8px 12px; border-radius: 5px; margin: 3px !important; }
body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-form label { color: var(--wit-muted); font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-section="configuracion"] :is(.form-control,.btn) { max-width: 100%; }
body.wit-workspace-theme[data-wit-section="configuracion"] :is(#modal_editar_empresa,#modal_secuencia,#modal_dato_bancario,#modal_impuesto) .modal-dialog { max-width: 1050px; }
body.wit-workspace-theme[data-wit-section="configuracion"] #modal_visualizador .modal-dialog { max-width: 950px; }
body.wit-workspace-theme[data-wit-section="configuracion"] #modal_editar_empresa .modal-content > .col-md-12 { height: auto !important; max-height: none; overflow: visible !important; }
body.wit-workspace-theme[data-wit-section="configuracion"] .modal .panel-body { padding: 18px 8px; }
body.wit-workspace-theme[data-wit-section="configuracion"] .modal .modal-content { overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-section="configuracion"] .modal .btn { white-space: normal; overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-section="configuracion"] #modal_dato_bancario #botones { display: flex; flex-wrap: wrap; gap: 6px; }
body.wit-workspace-theme[data-wit-section="configuracion"] #modal_dato_bancario #botones[style*="display: none"] { display: none; }
body.wit-workspace-theme[data-wit-section="configuracion"] #modal_visualizador embed { display: block; max-width: 100%; min-height: 300px; }
@media (min-width: 768px) {
    body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-scroll :is(th,td).d-md-block { display: table-cell !important; }
}
@media (max-width: 767px) {
    body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-form .form-group.row { margin-left: 0; margin-right: 0; gap: 8px 0; }
    body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-form .form-group.row > :is(label,div) { flex: 0 0 100%; width: 100%; max-width: 100%; padding-left: 0 !important; padding-right: 0 !important; text-align: left !important; }
    body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-form .form-group.row > .form-control { flex: 0 0 100%; width: 100% !important; margin: 0 !important; }
    body.wit-workspace-theme[data-wit-section="configuracion"] #form_iva .form-group.row > .btn { width: 100%; margin-top: 8px; }
    body.wit-workspace-theme[data-wit-section="configuracion"] .wit-settings-toolbar > a { flex-basis: 100%; margin-left: 0 !important; justify-content: center; }
    body.wit-workspace-theme[data-wit-section="configuracion"] :is(#modal_impuesto,#modal_secuencia,#modal_dato_bancario) .modal-content > [class*="col-"] { padding-left: 12px !important; padding-right: 12px !important; }
    body.wit-workspace-theme[data-wit-section="configuracion"] #form_gestionar_serie .panel-body > [class*="col-"] { padding: 0; }
}

/* Stage 8: account management. */
body.wit-workspace-theme[data-wit-section="usuarios"] #side-menu a[aria-current="page"] { background: #eaf0f8; color: var(--wit-navy); border-left: 3px solid var(--wit-red); font-weight: 600; }
body.wit-workspace-theme[data-wit-section="usuarios"] #nro_implicados { display: inline-block; padding: 3px 10px; margin-left: 8px; border-radius: 6px; background: #e6edf6; color: var(--wit-navy); font-size: 14px; }
body.wit-workspace-theme[data-wit-section="usuarios"] .ibox { margin-bottom: 0; border: 1px solid var(--wit-line); border-radius: 10px; background: #fff; overflow: visible; box-shadow: 0 3px 14px #102f6005; }
body.wit-workspace-theme[data-wit-section="usuarios"] .ibox-title { padding: 18px 20px; border-top: 0; border-bottom: 1px solid var(--wit-line); border-radius: 10px 10px 0 0; min-height: 58px; }
body.wit-workspace-theme[data-wit-section="usuarios"] .ibox-title h5 { color: var(--wit-navy); font-size: 16px; font-weight: 600; }
body.wit-workspace-theme[data-wit-section="usuarios"] .ibox-content { padding: 24px; border: 0; border-radius: 0 0 10px 10px; }
body.wit-workspace-theme[data-wit-section="usuarios"] #page-wrapper > .wrapper-content { padding: 0; }
body.wit-workspace-theme[data-wit-section="usuarios"] #page-wrapper > .wrapper-content > .row { margin: 0; }
body.wit-workspace-theme[data-wit-section="usuarios"] #page-wrapper > .wrapper-content > .row > .col-lg-12 { padding: 0; }
body.wit-workspace-theme[data-wit-section="usuarios"] .page-heading { margin: 20px 0; padding: 20px 16px; border: 1px solid var(--wit-line); border-radius: 10px; }
body.wit-workspace-theme[data-wit-section="usuarios"] .page-heading h2 { color: var(--wit-navy); font-size: 28px; margin: 0; }
body.wit-workspace-theme[data-wit-section="usuarios"] .wit-user-form > .form-group { display: flex; flex-wrap: wrap; align-items: flex-start; margin: 0 0 20px; gap: 8px 0; }
body.wit-workspace-theme[data-wit-section="usuarios"] .wit-user-form .control-label { padding-top: 11px; padding-left: 0; font-size: 14px; font-weight: 600; color: var(--wit-muted); overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-section="usuarios"] .wit-user-form .form-group > div { min-width: 0; padding-right: 0; }
body.wit-workspace-theme[data-wit-section="usuarios"] .wit-user-form .form-control { min-height: 44px; }
body.wit-workspace-theme[data-wit-section="usuarios"] .wit-user-form input[readonly] { background: #f1f5fa; }
body.wit-workspace-theme[data-wit-section="usuarios"] .wit-user-actions > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: 0 0 100%; max-width: 100%; padding: 0; }
body.wit-workspace-theme[data-wit-section="usuarios"] .wit-user-actions :is(a,button) { float: none !important; margin: 0 !important; min-height: 44px; white-space: normal; }
body.wit-workspace-theme[data-wit-section="usuarios"] .wit-users-table { max-width: 100%; clear: both; overflow-x: auto; overscroll-behavior-x: contain; }
body.wit-workspace-theme[data-wit-section="usuarios"] .wit-users-table table { min-width: 900px; font-size: 14px; }
body.wit-workspace-theme[data-wit-section="usuarios"] .wit-users-table td:last-child { white-space: nowrap; }
body.wit-workspace-theme[data-wit-section="usuarios"] .wit-users-table td:last-child > :is(a,button) { display: inline-flex; align-items: center; justify-content: center; float: none !important; min-width: 38px; min-height: 38px; border-radius: 5px; }
body.wit-workspace-theme[data-wit-section="usuarios"] .dataTables_wrapper > .row { margin: 0; gap: 10px 0; }
body.wit-workspace-theme[data-wit-section="usuarios"] :is(.dataTables_filter,.dataTables_length) label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
body.wit-workspace-theme[data-wit-section="usuarios"] .dataTables_filter input { width: 180px; max-width: 100%; margin-left: 0 !important; }
body.wit-workspace-theme[data-wit-section="usuarios"] .dataTables_length select { width: auto; }
body.wit-workspace-theme[data-wit-section="usuarios"] #modal_usuario_eliminar .modal-dialog { max-width: 560px; }
body.wit-workspace-theme[data-wit-section="usuarios"] #modal_usuario_eliminar .modal-content { animation: none; }
body.wit-workspace-theme[data-wit-section="usuarios"] #modal_usuario_eliminar button[onclick="eliminar()"] { background: var(--wit-red) !important; border-color: var(--wit-red) !important; color: #fff !important; }
body.wit-workspace-theme[data-wit-section="usuarios"] #modal_usuario_eliminar button[onclick="eliminar()"]:hover { background: #9e1827 !important; }
@media (max-width: 767px) {
    body.wit-workspace-theme[data-wit-section="usuarios"] .ibox-content { padding: 16px; }
    body.wit-workspace-theme[data-wit-section="usuarios"] .wit-user-form .form-group > :is(label,div) { flex: 0 0 100%; width: 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
    body.wit-workspace-theme[data-wit-section="usuarios"] .wit-user-form .control-label { padding-top: 0; margin-bottom: 0; }
    body.wit-workspace-theme[data-wit-section="usuarios"] .wit-user-actions :is(a,button) { max-width: 100%; }
}

/* Stage 9: home workspace and personal profile. */
body.wit-workspace-theme[data-wit-section="inicio"] #side-menu a[aria-current="page"] { background: #eaf0f8; border-left: 3px solid var(--wit-red); color: var(--wit-navy); font-weight: 600; }
body.wit-workspace-theme[data-wit-section="perfil"] .navbar-top-links a[aria-current="page"] { background: #eaf0f8; border-radius: 6px; }
body.wit-workspace-theme[data-wit-section="inicio"] .row-cards { margin: 0 -8px; gap: 0; }
body.wit-workspace-theme[data-wit-section="inicio"] .row-cards > div { padding-left: 8px; padding-right: 8px; min-width: 0; }
body.wit-workspace-theme[data-wit-section="inicio"] .row-cards > div > :is(.panel,.card) { height: auto; border: 1px solid var(--wit-line); border-radius: 10px; background: #fff; box-shadow: 0 3px 14px #102f6005; margin-bottom: 18px; overflow: visible; }
body.wit-workspace-theme[data-wit-section="inicio"] .sales-relative { min-height: 136px; padding: 22px 70px 22px 20px !important; }
body.wit-workspace-theme[data-wit-section="inicio"] .sales-relative h5 { color: var(--wit-muted) !important; font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
body.wit-workspace-theme[data-wit-section="inicio"] .sales-relative a { color: var(--wit-navy) !important; font-size: 13px; font-weight: 600; line-height: 1.5; border: 0 !important; text-transform: none; }
body.wit-workspace-theme[data-wit-section="inicio"] .sales-relative a:hover { text-decoration: underline; }
body.wit-workspace-theme[data-wit-section="inicio"] .sales-relative .icon-absolute { position: absolute; top: 22px; right: 18px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #eaf0f8 !important; color: var(--wit-navy) !important; font-size: 21px; }
body.wit-workspace-theme[data-wit-section="inicio"] #wit-home-search { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,260px) auto; align-items: end; gap: 16px; margin: 0 !important; padding: 24px; }
body.wit-workspace-theme[data-wit-section="inicio"] #wit-home-search > :is(h3,p) { grid-column: 1 / -1; margin: 0; }
body.wit-workspace-theme[data-wit-section="inicio"] #wit-home-search > div { width: auto; max-width: none; padding: 0; min-width: 0; }
body.wit-workspace-theme[data-wit-section="inicio"] #wit-home-search h3 { font-size: 18px; color: var(--wit-navy); }
body.wit-workspace-theme[data-wit-section="inicio"] #wit-home-search label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
body.wit-workspace-theme[data-wit-section="inicio"] #wit-home-search :is(input,select,button) { min-height: 44px; }
body.wit-workspace-theme[data-wit-section="inicio"] #wit-home-search p { color: var(--wit-muted); font-size: 14px; }
body.wit-workspace-theme[data-wit-section="inicio"] #wit-home-status:empty { display: none; }
body.wit-workspace-theme[data-wit-section="inicio"] .card-header { padding: 18px 20px; border-bottom: 1px solid var(--wit-line); background: #fff; border-radius: 10px 10px 0 0; }
body.wit-workspace-theme[data-wit-section="inicio"] #titulo_tabla { color: var(--wit-navy); font-size: 18px; margin: 0; }
body.wit-workspace-theme[data-wit-section="inicio"] #tabla { max-width: 100%; min-height: 80px; overscroll-behavior-x: contain; }
body.wit-workspace-theme[data-wit-section="inicio"] #tabla table { min-width: 800px; font-size: 14px; margin: 0; }
body.wit-workspace-theme[data-wit-section="inicio"] #tabla :is(th,td) { padding: 12px !important; vertical-align: middle; }
body.wit-workspace-theme[data-wit-section="inicio"] #tabla th { background: #f1f5fa; color: var(--wit-muted); font-weight: 600; }
body.wit-workspace-theme[data-wit-section="inicio"] #tabla .barra_cuerpo_datos { padding: 24px; font-size: 14px; color: var(--wit-muted); }
body.wit-workspace-theme[data-wit-section="inicio"] #pagination { max-width: 100%; height: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; margin: 16px 0 !important; }
body.wit-workspace-theme[data-wit-section="inicio"] #pagination :is(a,span) { border-radius: 5px; }
body.wit-workspace-theme[data-wit-section="inicio"] #pagination .tui-is-selected { background: var(--wit-navy); border-color: var(--wit-navy); color: #fff; }
body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-panel { border: 1px solid var(--wit-line); border-radius: 10px; background: #fff; box-shadow: 0 3px 14px #102f6005; padding: 0; }
body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-panel > .dashboard-header { margin: 0; padding: 0 !important; border: 0; border-radius: 10px; }
body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-panel > .dashboard-header > div { padding: 0; min-width: 0; }
body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-panel > .dashboard-header > div > .tabs-container > .nav-tabs { display: flex; flex-wrap: wrap; padding: 16px 16px 0; gap: 6px; border-bottom: 1px solid var(--wit-line); }
body.wit-workspace-theme[data-wit-section="perfil"] .nav-tabs .nav-link { font-size: 14px; color: var(--wit-muted); white-space: normal; padding: 12px 16px; border-radius: 7px 7px 0 0; }
body.wit-workspace-theme[data-wit-section="perfil"] .nav-tabs .nav-link.active { color: var(--wit-navy); background: #eaf0f8; border-color: var(--wit-line); font-weight: 600; }
body.wit-workspace-theme[data-wit-section="perfil"] .nav-tabs .nav-link:hover { background: #f1f5fa; color: var(--wit-navy); }
body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-panel .tab-pane > .panel-body { padding: 24px !important; border: 0; background: #fff; border-radius: 0 0 10px 10px; }
body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-panel .form-group { margin-bottom: 22px; }
body.wit-workspace-theme[data-wit-section="perfil"] :is(.label-form-control,.form-label) { color: var(--wit-muted); font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-panel .form-control { min-height: 44px; }
body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-panel .row > :is(div,label) { min-width: 0; }
body.wit-workspace-theme[data-wit-section="perfil"] :is(#google_calendar_estado,#avisos_email_estado) { color: var(--wit-muted); background: #f1f5fa; padding: 14px 16px; border-radius: 7px; font-size: 14px; overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-section="perfil"] :is(#google_calendar_estado,#avisos_email_estado):empty { display: none; }
body.wit-workspace-theme[data-wit-section="perfil"] #avisos_por_email p { font-size: 14px; line-height: 1.7; }
body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-mail-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-mail-scroll table { min-width: 700px; font-size: 14px; margin: 0; }
body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-mail-scroll :is(td,th) { padding: 12px; vertical-align: middle; }
body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-mail-scroll td.d-none { display: table-cell !important; }
body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-mail-scroll thead { background: #f1f5fa; color: var(--wit-muted); font-weight: 600; }
body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-mail-scroll td > a[onclick] { display: inline-flex; min-height: 38px; min-width: 38px; align-items: center; justify-content: center; float: none !important; border-radius: 5px; }
body.wit-workspace-theme[data-wit-section="perfil"] :is(#modal_gestionar_cuenta_correo,#modal_gestionar_cuenta_correo_editar) .modal-dialog { min-width: 0 !important; max-width: 1050px; }
body.wit-workspace-theme[data-wit-section="perfil"] :is(#modal_gestionar_cuenta_correo,#modal_gestionar_cuenta_correo_editar) .modal-content { padding-top: 20px; animation: none; }
body.wit-workspace-theme[data-wit-section="perfil"] :is(#form_cuenta_correo,#form_modificar_cuenta_correo) .panel-body > .row { margin-bottom: 18px; align-items: center; }
body.wit-workspace-theme[data-wit-section="perfil"] :is(#form_cuenta_correo,#form_modificar_cuenta_correo) .panel-body > br { display: none; }
body.wit-workspace-theme[data-wit-section="perfil"] :is(#form_cuenta_correo,#form_modificar_cuenta_correo) .form-control { min-height: 44px; }
body.wit-workspace-theme[data-wit-section="perfil"] #modal_seleccionar_calendario .modal-dialog { max-width: 850px; }
body.wit-workspace-theme[data-wit-section="perfil"] #lista_calendarios .grupo-etiqueta-campos { padding: 16px 0; border-bottom: 1px solid var(--wit-line); gap: 12px 0; }
body.wit-workspace-theme[data-wit-section="perfil"] #lista_calendarios label { overflow-wrap: anywhere; font-size: 14px; }
body.wit-workspace-theme[data-wit-section="perfil"] #lista_calendarios select { min-height: 44px; }
body.wit-workspace-theme[data-wit-section="perfil"] #modal_gestionar_cuenta_correo_editar :is(.mce-toolbar-grp,.mce-menubar) { max-width: 100%; overflow-x: auto; }
body.wit-workspace-theme[data-wit-section="perfil"] #modal_gestionar_cuenta_correo_editar .mce-container { max-width: 100%; }
@media (max-width: 1100px) {
    body.wit-workspace-theme[data-wit-section="inicio"] #wit-home-search { grid-template-columns: minmax(0,1fr) minmax(160px,240px); }
    body.wit-workspace-theme[data-wit-section="inicio"] #wit-home-search > .wit-home-search-action { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 767px) {
    body.wit-workspace-theme[data-wit-section="inicio"] #wit-home-search { grid-template-columns: minmax(0,1fr); padding: 18px; }
    body.wit-workspace-theme[data-wit-section="inicio"] #wit-home-search > .wit-home-search-action { justify-self: stretch; }
    body.wit-workspace-theme[data-wit-section="inicio"] #wit-home-search-button { width: 100%; }
    body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-panel .tab-pane > .panel-body { padding: 18px !important; }
    body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-panel .form-group.row > :is(label,div) { width: 100%; flex: 0 0 100%; max-width: 100%; }
    body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-panel .nav-tabs > li { max-width: 100%; }
    body.wit-workspace-theme[data-wit-section="perfil"] .wit-profile-panel .nav-tabs .nav-link { padding: 10px; }
    body.wit-workspace-theme[data-wit-section="perfil"] #recuperar_calendarios_google { white-space: normal; max-width: 100%; }
    body.wit-workspace-theme[data-wit-section="perfil"] :is(#form_cuenta_correo,#form_modificar_cuenta_correo) .panel-body > .row > div { width: 100%; flex: 0 0 100%; max-width: 100%; padding: 0 15px !important; }
    body.wit-workspace-theme[data-wit-section="perfil"] :is(#form_cuenta_correo,#form_modificar_cuenta_correo) .panel-body > .row { gap: 7px; }
    body.wit-workspace-theme[data-wit-section="perfil"] :is(#guardar_aviso,#actualizar_datos,#guardar_estado_sincronizar) { white-space: normal; max-width: 100%; }
    body.wit-workspace-theme[data-wit-section="perfil"] #avisos_por_email .offset-lg-10 { margin: 0; padding: 0; width: auto; }
}

/* Stage 10: legal aid shifts, assistance and case files. */
body.wit-workspace-theme[data-wit-section="oficio"] #side-menu a[aria-current="page"] { background: #eaf0f8; color: var(--wit-navy); border-left: 3px solid var(--wit-red); font-weight: 600; }
body.wit-workspace-theme[data-wit-section="oficio"] .wit-duty-panel { background: #fff; border: 1px solid var(--wit-line); border-radius: 10px; box-shadow: 0 3px 14px #102f6005; padding: 20px; }
body.wit-workspace-theme[data-wit-section="oficio"] .panel-main > .panel-body { padding: 0; }
body.wit-workspace-theme[data-wit-section="oficio"] #page-wrapper > .row.col-lg-12 { width: auto; max-width: none; margin: 0 -8px; }
body.wit-workspace-theme[data-wit-section="oficio"] #page-wrapper > .row.col-lg-12 > div { padding: 0 8px; min-width: 0; }
body.wit-workspace-theme[data-wit-section="oficio"] .wit-duty-panel > div > h3 { font-size: 18px; color: var(--wit-navy); margin-bottom: 12px; }
body.wit-workspace-theme[data-wit-section="oficio"] .wit-duty-panel > .row.white-bg { margin: 0; padding: 0 !important; border: 0; }
body.wit-workspace-theme[data-wit-section="oficio"] .wit-duty-panel > .row.white-bg > .panel-body { padding: 20px 0 0; border: 0; }
body.wit-workspace-theme[data-wit-section="oficio"] .wit-duty-panel .dashboard-header { border: 0; }
body.wit-workspace-theme[data-wit-section="oficio"] .form-group { margin-bottom: 20px; }
body.wit-workspace-theme[data-wit-section="oficio"] .label-form-control { font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--wit-muted); overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-section="oficio"] .form-control { min-height: 44px; }
body.wit-workspace-theme[data-wit-section="oficio"] .row > :is(div,label) { min-width: 0; }
body.wit-workspace-theme[data-wit-section="oficio"] .nav-tabs { display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid var(--wit-line); }
body.wit-workspace-theme[data-wit-section="oficio"] .nav-tabs :is(.nav-link,a[data-toggle="tab"]) { color: var(--wit-muted); padding: 11px 14px; border-radius: 6px 6px 0 0; font-size: 14px; white-space: normal; }
body.wit-workspace-theme[data-wit-section="oficio"] .nav-tabs a.active { background: #eaf0f8; color: var(--wit-navy); border-color: var(--wit-line); font-weight: 600; }
body.wit-workspace-theme[data-wit-section="oficio"] :is(.nav-tabs,.panel-tabs) a:hover { color: var(--wit-navy); background: #f1f5fa; }
body.wit-workspace-theme[data-wit-section="oficio"] .panel-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
body.wit-workspace-theme[data-wit-section="oficio"] .wit-duty-scroll { max-width: 100%; clear: both; overflow-x: auto; overscroll-behavior-x: contain; }
body.wit-workspace-theme[data-wit-section="oficio"] .wit-duty-scroll table { min-width: 650px; margin-bottom: 0; font-size: 14px; }
body.wit-workspace-theme[data-wit-section="oficio"] .wit-duty-scroll :is(th,td) { padding: 11px; vertical-align: middle; }
body.wit-workspace-theme[data-wit-section="oficio"] .wit-duty-scroll th { color: var(--wit-muted); background: #f1f5fa; font-weight: 600; }
body.wit-workspace-theme[data-wit-section="oficio"] .dataTables_wrapper > .row { margin: 0; gap: 8px 0; }
body.wit-workspace-theme[data-wit-section="oficio"] .dataTables_wrapper { width: 100%; min-width: 0; }
body.wit-workspace-theme[data-wit-section="oficio"] :is(.dataTables_filter,.dataTables_length) label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
body.wit-workspace-theme[data-wit-section="oficio"] .dataTables_filter input { width: 180px; max-width: 100%; margin-left: 0 !important; }
body.wit-workspace-theme[data-wit-section="oficio"] .dataTables_length select { width: auto; }
body.wit-workspace-theme[data-wit-section="oficio"] table.buscador { width: 100%; font-size: 14px; }
body.wit-workspace-theme[data-wit-section="oficio"] table.buscador td { padding: 10px 8px; vertical-align: top; }
body.wit-workspace-theme[data-wit-section="oficio"] table.buscador td:first-child { color: var(--wit-muted); font-weight: 600; width: 28%; }
body.wit-workspace-theme[data-wit-section="oficio"] .modal .modal-dialog { max-width: 1050px; min-width: 0 !important; }
body.wit-workspace-theme[data-wit-section="oficio"] #modal_alta_guardia .modal-dialog { max-width: 900px; }
body.wit-workspace-theme[data-wit-section="oficio"] .modal .modal-content { animation: none; }
body.wit-workspace-theme[data-wit-section="oficio"] .modal .panel-body { padding: 18px 0 !important; background: #fff; border: 0; }
body.wit-workspace-theme[data-wit-section="oficio"] .modal .nav-tabs li { max-width: 100%; }
body.wit-workspace-theme[data-wit-section="oficio"] #calendar { width: 100%; min-width: 0; }
body.wit-workspace-theme[data-wit-section="oficio"] #calendar .fc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; }
body.wit-workspace-theme[data-wit-section="oficio"] #calendar .fc-toolbar > div { float: none; }
body.wit-workspace-theme[data-wit-section="oficio"] #calendar .fc-toolbar h2 { font-size: 18px; line-height: 1.5; color: var(--wit-navy); }
body.wit-workspace-theme[data-wit-section="oficio"] #calendar .fc-button { background: #fff; border-color: var(--wit-line); color: var(--wit-navy); text-shadow: none; box-shadow: none; min-height: 34px; font-size: 13px; }
body.wit-workspace-theme[data-wit-section="oficio"] #calendar .fc-state-active { background: var(--wit-navy); color: #fff; }
body.wit-workspace-theme[data-wit-section="oficio"] #calendar .fc-day-header { background: #f1f5fa; font-size: 13px; padding: 6px 0; color: var(--wit-muted); }
body.wit-workspace-theme[data-wit-section="oficio"] #calendar .fc-today { background: #eef4fc; }
body.wit-workspace-theme[data-wit-section="oficio"] .leyenda { border-radius: 4px; }
body.wit-workspace-theme[data-wit-screen="duty-intro"] .page-heading { margin: 20px 0; padding: 20px; border: 1px solid var(--wit-line); border-radius: 10px; }
body.wit-workspace-theme[data-wit-screen="duty-intro"] #page-wrapper > .dashboard-header { height: auto !important; min-height: 0; margin: 0; border: 0; padding: 0; background: transparent !important; }
body.wit-workspace-theme[data-wit-screen="duty-intro"] #alerta_oculta { height: auto !important; padding: 24px; border-radius: 10px !important; background: #fff; border: 1px solid var(--wit-line); border-left: 4px solid var(--wit-red); color: var(--wit-text); }
@media (max-width: 1100px) {
    body.wit-workspace-theme[data-wit-screen="duty-guards"] #page-wrapper > .row.col-lg-12 > .col-lg-6 { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 767px) {
    body.wit-workspace-theme[data-wit-section="oficio"] .wit-duty-panel { padding: 16px; }
    body.wit-workspace-theme[data-wit-section="oficio"] .form-group.row > :is(div,label) { flex: 0 0 100%; max-width: 100%; width: 100%; margin-bottom: 7px; }
    body.wit-workspace-theme[data-wit-section="oficio"] :is(.nav-tabs,.panel-tabs) { gap: 4px; }
    body.wit-workspace-theme[data-wit-section="oficio"] table.buscador,body.wit-workspace-theme[data-wit-section="oficio"] table.buscador :is(tbody,tr,td) { display: block; width: 100% !important; }
    body.wit-workspace-theme[data-wit-section="oficio"] table.buscador td { padding: 5px 0; }
    body.wit-workspace-theme[data-wit-section="oficio"] table.buscador td:first-child { padding-top: 14px; }
    body.wit-workspace-theme[data-wit-section="oficio"] table.buscador .form-control { width: 100%; max-width: 100%; }
    body.wit-workspace-theme[data-wit-section="oficio"] .modal :is(.col-lg-12,.col-lg-10) { padding-left: 0; padding-right: 0; }
    body.wit-workspace-theme[data-wit-section="oficio"] .modal .modal-body > .col-lg-12 { padding-left: 0; padding-right: 0; }
    body.wit-workspace-theme[data-wit-section="oficio"] .modal .form-group.row { margin-left: 0; margin-right: 0; }
    body.wit-workspace-theme[data-wit-section="oficio"] #calendar .fc-toolbar { justify-content: flex-start; }
    body.wit-workspace-theme[data-wit-section="oficio"] .btn { white-space: normal; max-width: 100%; }
    body.wit-workspace-theme[data-wit-section="oficio"] .wit-duty-panel > .row.px-2 > .col { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
    body.wit-workspace-theme[data-wit-section="oficio"] .wit-duty-panel > .row.px-2 > .col > div { float: none !important; margin: 0 !important; }
}

/* Stage 11: report catalogs, filters and read-only results. */
body.wit-workspace-theme[data-wit-section="informes"] #side-menu a[aria-current="page"] { background: #eaf0f8; color: var(--wit-navy); border-left: 3px solid var(--wit-red); font-weight: 600; }
body.wit-workspace-theme[data-wit-section="informes"] .wit-report-panel { background: #fff; border: 1px solid var(--wit-line); border-radius: 10px; box-shadow: 0 3px 14px #102f6005; padding: 20px; margin-bottom: 20px; min-width: 0; }
body.wit-workspace-theme[data-wit-section="informes"] .wit-report-panel > .row.white-bg { margin: 0; padding: 0 !important; }
body.wit-workspace-theme[data-wit-section="informes"] .panel-header { background: transparent; padding: 0; border: 0; }
body.wit-workspace-theme[data-wit-section="informes"] .panel-header > .col { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
body.wit-workspace-theme[data-wit-section="informes"] .panel-header h3 { color: var(--wit-navy); font-size: 18px; line-height: 1.5; margin: 0; }
body.wit-workspace-theme[data-wit-section="informes"] .panel-body { background: transparent; padding: 20px 0 0; border: 0; }
body.wit-workspace-theme[data-wit-section="informes"] .panel-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; background: transparent; border-top: 1px solid var(--wit-line); padding: 16px 0 0; }
body.wit-workspace-theme[data-wit-section="informes"] .panel-footer .btn { float: none !important; }
body.wit-workspace-theme[data-wit-section="informes"] .row > :is(div,label) { min-width: 0; }
body.wit-workspace-theme[data-wit-section="informes"] .grupo-etiqueta-campos { margin-bottom: 18px; }
body.wit-workspace-theme[data-wit-section="informes"] .label-form-control { font-size: 14px; font-weight: 600; color: var(--wit-muted); line-height: 1.5; overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-section="informes"] .form-control { min-height: 44px; }
body.wit-workspace-theme[data-wit-section="informes"] table.buscador { width: 100%; font-size: 14px; }
body.wit-workspace-theme[data-wit-section="informes"] table.buscador td { padding: 10px 8px; vertical-align: top; }
body.wit-workspace-theme[data-wit-section="informes"] table.buscador td:first-child { width: 28%; font-weight: 600; color: var(--wit-muted); }
body.wit-workspace-theme[data-wit-section="informes"] #div_resultado .panel-header > .row > .col { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.wit-workspace-theme[data-wit-section="informes"] #div_resultado .panel-header > .row > .col > div { float: none !important; }
body.wit-workspace-theme[data-wit-section="informes"] #div_resultado .panel-header > .row > .col > div:first-child { margin-right: auto; }
body.wit-workspace-theme[data-wit-section="informes"] #imprimir_informe { clear: both; overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-section="informes"] #tabla_informe { max-width: 100%; overscroll-behavior-x: contain; }
body.wit-workspace-theme[data-wit-section="informes"] #tabla_informe table { font-size: 14px !important; margin-bottom: 0; }
body.wit-workspace-theme[data-wit-section="informes"] #tabla_informe :is(th,td) { padding: 11px; vertical-align: top; }
body.wit-workspace-theme[data-wit-section="informes"] #tabla_informe th { color: var(--wit-muted); background: #f1f5fa; font-weight: 600; }
body.wit-workspace-theme[data-wit-section="informes"] #tabla_informe:focus-visible { outline: 2px solid var(--wit-navy); outline-offset: 3px; }
body.wit-workspace-theme[data-wit-section="informes"] .ibox { border: 1px solid var(--wit-line); border-radius: 8px; overflow: hidden; margin-bottom: 14px !important; }
body.wit-workspace-theme[data-wit-section="informes"] .ibox-title { border: 0; padding: 16px; min-height: 52px; }
body.wit-workspace-theme[data-wit-section="informes"] .ibox-title h5 { font-size: 16px; line-height: 1.5; margin: 0; }
body.wit-workspace-theme[data-wit-section="informes"] .ibox-title:focus-visible { outline: 2px solid var(--wit-navy); outline-offset: 3px; }
body.wit-workspace-theme[data-wit-section="informes"] .ibox-content { border: 0; }
body.wit-workspace-theme[data-wit-section="informes"] .ibox-content .table { margin: 0; }
body.wit-workspace-theme[data-wit-section="informes"] .ibox-content .table td { padding: 0; }
body.wit-workspace-theme[data-wit-section="informes"] .ibox-content .table a { display: block; color: var(--wit-navy); font-size: 14px; padding: 14px 16px; line-height: 1.6; }
body.wit-workspace-theme[data-wit-section="informes"] .ibox-content .table a:hover { background: #eaf0f8; color: var(--wit-navy-hover); }
body.wit-workspace-theme[data-wit-section="informes"] .list-group { border-radius: 8px; overflow: hidden; }
body.wit-workspace-theme[data-wit-section="informes"] .list-group-item { padding: 14px 16px; font-size: 14px; border-color: var(--wit-line); }
body.wit-workspace-theme[data-wit-section="informes"] .list-group-item.active { background: var(--wit-navy); border-color: var(--wit-navy); color: #fff; font-weight: 600; }
@media (max-width: 767px) {
    body.wit-workspace-theme[data-wit-section="informes"] .wit-report-panel { padding: 16px; }
    body.wit-workspace-theme[data-wit-section="informes"] .grupo-etiqueta-campos > div { flex: 0 0 100%; max-width: 100%; width: 100%; margin-bottom: 7px; }
    body.wit-workspace-theme[data-wit-section="informes"] table.buscador,body.wit-workspace-theme[data-wit-section="informes"] table.buscador :is(tbody,tr,td) { display: block; width: 100% !important; }
    body.wit-workspace-theme[data-wit-section="informes"] table.buscador td { padding: 5px 0; }
    body.wit-workspace-theme[data-wit-section="informes"] table.buscador td:first-child { padding-top: 14px; }
    body.wit-workspace-theme[data-wit-section="informes"] .input-group { flex-wrap: wrap; }
    body.wit-workspace-theme[data-wit-section="informes"] .input-group > .form-control { max-width: 100% !important; }
    body.wit-workspace-theme[data-wit-section="informes"] .input-group > input[type="date"] { flex: 1 1 100%; width: 100%; border-radius: 5px !important; }
    body.wit-workspace-theme[data-wit-section="informes"] .input-group > .input-group-prepend { margin: 4px 0; }
    body.wit-workspace-theme[data-wit-section="informes"] .btn { white-space: normal; max-width: 100%; }
    body.wit-workspace-theme[data-wit-section="informes"] .panel-header > .col { padding: 0; }
}

/* Stage 12: reusable forms, document preview and standalone template editor. */
body.wit-workspace-theme[data-wit-section="formularios"] #side-menu a[aria-current="page"] { background: #eaf0f8; color: var(--wit-navy); border-left: 3px solid var(--wit-red); font-weight: 600; }
body.wit-workspace-theme[data-wit-section="formularios"] .wit-form-panel { background: #fff; border: 1px solid var(--wit-line); border-radius: 10px; padding: 20px; box-shadow: 0 3px 14px #102f6005; }
body.wit-workspace-theme[data-wit-section="formularios"] .wit-form-panel > .row.white-bg { margin: 0; padding: 0 !important; }
body.wit-workspace-theme[data-wit-section="formularios"] :is(.nav-tabs,.panel-tabs) { display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid var(--wit-line); }
body.wit-workspace-theme[data-wit-section="formularios"] :is(.nav-tabs,.panel-tabs) a { color: var(--wit-muted); font-size: 14px; padding: 11px 14px; white-space: normal; overflow-wrap: anywhere; border-radius: 6px 6px 0 0; }
body.wit-workspace-theme[data-wit-section="formularios"] :is(.nav-tabs,.panel-tabs) a.active { background: #eaf0f8; color: var(--wit-navy); border-color: var(--wit-line); font-weight: 600; }
body.wit-workspace-theme[data-wit-section="formularios"] :is(.nav-tabs,.panel-tabs) a:hover { background: #f1f5fa; color: var(--wit-navy); }
body.wit-workspace-theme[data-wit-section="formularios"] #grupo_btn { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; align-items: center; }
body.wit-workspace-theme[data-wit-section="formularios"] #div_tabla .panel-body { padding: 20px 0 0; border: 0; }
body.wit-workspace-theme[data-wit-section="formularios"] #div_tabla input[id^="filter"] { max-width: 440px; min-height: 44px; margin-bottom: 14px; }
body.wit-workspace-theme[data-wit-section="formularios"] table.footable { table-layout: fixed; width: 100%; font-size: 14px; }
body.wit-workspace-theme[data-wit-section="formularios"] table.footable td { padding: 0; }
body.wit-workspace-theme[data-wit-section="formularios"] .wit-form-title { display: block; width: 100%; text-align: left; padding: 16px; font: inherit; line-height: 1.6; color: var(--wit-navy); background: transparent; border: 0; cursor: pointer; overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-section="formularios"] .wit-form-title:hover { background: #eaf0f8; }
body.wit-workspace-theme[data-wit-section="formularios"] #div_tabla .dropdown-menu { border-radius: 7px; max-width: calc(100vw - 40px); min-width: 220px; }
body.wit-workspace-theme[data-wit-section="formularios"] #div_tabla .dropdown-menu a { display: block; padding: 10px 14px; white-space: normal; font-size: 14px; }
body.wit-workspace-theme[data-wit-section="formularios"] .form-control { min-height: 44px; }
body.wit-workspace-theme[data-wit-section="formularios"] .label-form-control { font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--wit-muted); }
body.wit-workspace-theme[data-wit-section="formularios"] .row > :is(div,label) { min-width: 0; }
body.wit-workspace-theme[data-wit-section="formularios"] .form-group.row > div[style*="height"] { height: auto !important; min-height: 44px; }
body.wit-workspace-theme[data-wit-section="formularios"] :is(#cliente_expediente,#abogado_expediente,#procurador_expediente,#contrario_expediente,#actuacion_expediente) { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 0 !important; padding: 0 !important; }
body.wit-workspace-theme[data-wit-section="formularios"] :is(#cliente_expediente,#abogado_expediente,#procurador_expediente,#contrario_expediente,#actuacion_expediente) > :is(select,.select2-container) { flex: 1 1 180px; min-width: 0; width: auto !important; max-width: 100%; }
body.wit-workspace-theme[data-wit-section="formularios"] .page-heading { margin: 20px 0; padding: 20px; border: 1px solid var(--wit-line); border-radius: 10px; }
body.wit-workspace-theme[data-wit-section="formularios"] .page-heading h2 { color: var(--wit-navy); font-size: 22px; line-height: 1.5; overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-screen="form-fill"] #page-wrapper > .row.border-bottom { margin: 0; border: 1px solid var(--wit-line) !important; border-radius: 10px; padding: 20px !important; }
body.wit-workspace-theme[data-wit-screen="form-fill"] .panel-body { background: transparent; border: 0; padding: 20px 0 !important; }
body.wit-workspace-theme[data-wit-screen="form-fill"] .row.flex > div { flex-wrap: wrap; gap: 8px; }
body.wit-workspace-theme[data-wit-section="formularios"] #formulario_cargado { max-width: 100%; min-height: 180px; padding: 24px; border: 1px solid var(--wit-line); border-radius: 8px; background: #fff; overflow: auto; }
body.wit-workspace-theme[data-wit-section="formularios"] #formulario_cargado:empty::before { content: "La vista previa se mostrará aquí."; color: var(--wit-muted); font-size: 14px; }
body.wit-workspace-theme[data-wit-section="formularios"] .modal table { width: 100%; font-size: 14px; }
body.wit-workspace-theme[data-wit-section="formularios"] .modal-body { overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-section="formularios"] .modal table td { padding: 6px; vertical-align: top; }
body.wit-workspace-theme[data-wit-section="formularios"] #modal_actualizar_cliente .modal-dialog { min-width: 0 !important; max-width: 1050px; }
body.wit-workspace-theme[data-wit-screen="form-editor"] { padding: 20px; background: var(--wit-surface); }
body.wit-workspace-theme[data-wit-screen="form-editor"] .wit-editor-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 0 auto 18px; max-width: 1460px; }
body.wit-workspace-theme[data-wit-screen="form-editor"] .wit-editor-brand img { width: 105px; height: 50px; object-fit: contain; }
body.wit-workspace-theme[data-wit-screen="form-editor"] .wit-editor-title { flex: 1 1 240px; min-width: 0; }
body.wit-workspace-theme[data-wit-screen="form-editor"] .wit-editor-title h1 { margin: 0; font-size: 20px; line-height: 1.5; color: var(--wit-navy); }
body.wit-workspace-theme[data-wit-screen="form-editor"] .wit-editor-title p { margin: 4px 0 0; color: var(--wit-muted); font-size: 14px; overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-screen="form-editor"] .wit-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.wit-workspace-theme[data-wit-screen="form-editor"] .wit-editor-stage { padding: 5px 9px; border: 1px solid #ecd5a5; border-radius: 5px; background: #fff8e8; color: #73521b; font-size: 12px; font-weight: 600; }
body.wit-workspace-theme[data-wit-screen="form-editor"] #wit-editor-status { min-height: 24px; max-width: 1460px; margin: 0 auto 10px; font-size: 14px; color: var(--wit-muted); }
body.wit-workspace-theme[data-wit-screen="form-editor"] .wit-editor-workspace { max-width: 1460px; margin: auto; background: #fff; border-radius: 8px; }
body.wit-workspace-theme[data-wit-screen="form-editor"] .mce-tinymce { width: 100% !important; box-sizing: border-box; border: 1px solid var(--wit-line); border-radius: 8px; box-shadow: 0 3px 14px #102f6005; }
body.wit-workspace-theme[data-wit-screen="form-editor"] .mce-edit-area { max-width: none !important; padding: 24px !important; box-sizing: border-box; }
body.wit-workspace-theme[data-wit-screen="form-editor"] .mce-toolbar-grp { background: #f6f8fb; border-bottom: 1px solid var(--wit-line); }
body.wit-workspace-theme[data-wit-screen="form-editor"] .mce-toolbar-grp .mce-container-body { white-space: normal; }
body.wit-workspace-theme[data-wit-screen="form-editor"] .mce-primary { background: var(--wit-navy); border-color: var(--wit-navy); }
body.wit-workspace-theme[data-wit-screen="form-editor"] .mce-primary:hover { background: var(--wit-navy-hover); }
body.wit-workspace-theme[data-wit-screen="form-editor"] .mce-window { border: 1px solid var(--wit-line); border-radius: 8px; }
body.wit-workspace-theme[data-wit-screen="form-editor"] #modal_addcampos .modal-dialog { max-width: 1100px; }
body.wit-workspace-theme[data-wit-screen="form-editor"] #modal_addcampos .list-group-item { padding: 9px 12px !important; font-size: 14px; overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-screen="form-editor"] #modal_addcampos h5.list-group-item { color: var(--wit-navy); background: #f1f5fa; font-weight: 600; }
@media (max-width: 767px) {
    body.wit-workspace-theme[data-wit-section="formularios"] .wit-form-panel { padding: 16px; }
    body.wit-workspace-theme[data-wit-section="formularios"] :is(.nav-tabs,.panel-tabs) li { max-width: 100%; }
    body.wit-workspace-theme[data-wit-section="formularios"] #grupo_btn { margin-left: 0; }
    body.wit-workspace-theme[data-wit-section="formularios"] .form-group.row > :is(div,label) { flex: 0 0 100%; width: 100%; max-width: 100%; margin-bottom: 7px; }
    body.wit-workspace-theme[data-wit-section="formularios"] .form-group.row { margin-left: 0; margin-right: 0; }
    body.wit-workspace-theme[data-wit-section="formularios"] .modal table,body.wit-workspace-theme[data-wit-section="formularios"] .modal table :is(tbody,tr,td) { display: block; width: 100%; }
    body.wit-workspace-theme[data-wit-section="formularios"] .modal table td { padding: 5px 0; text-align: left !important; }
    body.wit-workspace-theme[data-wit-section="formularios"] .btn { max-width: 100%; white-space: normal; }
    body.wit-workspace-theme[data-wit-screen="form-fill"] #page-wrapper > .row.border-bottom { padding: 16px !important; }
    body.wit-workspace-theme[data-wit-section="formularios"] #formulario_cargado { padding: 16px; }
    body.wit-workspace-theme[data-wit-screen="form-editor"] { padding: 12px; }
    body.wit-workspace-theme[data-wit-screen="form-editor"] .wit-editor-top { gap: 10px; }
    body.wit-workspace-theme[data-wit-screen="form-editor"] .wit-editor-actions { width: 100%; }
    body.wit-workspace-theme[data-wit-screen="form-editor"] .mce-edit-area { padding: 8px !important; }
    body.wit-workspace-theme[data-wit-screen="form-editor"] .mce-toolbar .mce-btn-group { display: inline-block; float: none; }
    body.wit-workspace-theme[data-wit-screen="form-editor"] .mce-window { box-sizing: border-box; max-width: calc(100vw - 24px) !important; left: 12px !important; }
    body.wit-workspace-theme[data-wit-screen="form-editor"] .mce-window > .mce-reset { max-width: 100%; overflow: auto; max-height: calc(100vh - 40px); }
}

/* Stage 13: access, active client portal and support. */
body.wit-access { background: #f5f7fa; min-height: 100vh; }
body.wit-access .wit-access-layout { width: min(1120px,100%); margin: auto; padding: 64px 32px 32px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; min-height: calc(100vh - 60px); }
body.wit-access .wit-access-logo { width: 230px; max-width: 100%; height: auto; margin-bottom: 40px; }
body.wit-access .wit-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--wit-muted); }
body.wit-access h1 { font-size: clamp(30px,4vw,48px); line-height: 1.15; font-weight: 700; color: var(--wit-navy); margin: 14px 0 24px; }
body.wit-access .wit-access-intro > p:not(.wit-eyebrow) { max-width: 440px; color: var(--wit-muted); font-size: 18px; }
body.wit-access .wit-access-features { padding-left: 20px; margin-top: 24px; color: var(--wit-muted); }
body.wit-access .wit-access-features li { margin: 10px 0; padding-left: 6px; }
body.wit-access .wit-access-features li::marker { color: var(--wit-red); }
body.wit-access .wit-access-card { background: #fff; padding: 36px; border: 1px solid var(--wit-line); border-top: 4px solid var(--wit-navy); border-radius: 16px; box-shadow: 0 12px 40px #102f600a; min-width: 0; }
body.wit-access .wit-access-badge { display: inline-block; padding: 6px 10px; border-radius: 6px; background: #fcebed; color: #941b2c; font-size: 12px; font-weight: 650; }
body.wit-access h2 { margin: 24px 0 10px; font-size: 25px; font-weight: 650; color: var(--wit-navy); }
body.wit-access .wit-access-card > p { color: var(--wit-muted); }
body.wit-access .wit-access-form { margin-top: 28px; }
body.wit-access label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
body.wit-access .wit-access-form .form-control { min-height: 48px; border: 1px solid #bccbdc; border-radius: 7px; background: #fff; font-size: 16px; color: var(--wit-text); width: 100%; }
body.wit-access .wit-access-form .btn { width: 100%; min-height: 48px; margin-top: 8px; font-size: 16px; }
body.wit-access .wit-access-note { font-size: 12px; margin: 24px 0 0; }
body.wit-access .wit-access-footer { padding: 16px; text-align: center; color: var(--wit-muted); font-size: 12px; }
body.wit-workspace-theme[data-wit-section="soporte"] .wit-support-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(220px,1fr); gap: 24px; }
body.wit-workspace-theme[data-wit-section="soporte"] .wit-support-card { background: #fff; border: 1px solid var(--wit-line); border-radius: 12px; overflow: hidden; }
body.wit-workspace-theme[data-wit-section="soporte"] .panel-header { padding: 24px 24px 8px; background: #fff; }
body.wit-workspace-theme[data-wit-section="soporte"] h3 { font-size: 21px; color: var(--wit-navy); font-weight: 650; }
body.wit-workspace-theme[data-wit-section="soporte"] .panel-header p { color: var(--wit-muted); margin-bottom: 0; }
body.wit-workspace-theme[data-wit-section="soporte"] .panel-body { padding: 20px 24px; }
body.wit-workspace-theme[data-wit-section="soporte"] .panel-footer { background: #f8fafc; padding: 16px 24px; text-align: right; border-top: 1px solid var(--wit-line); }
body.wit-workspace-theme[data-wit-section="soporte"] input[type="file"] { height: auto; min-height: 44px; padding: 8px; white-space: normal; max-width: 100%; }
body.wit-workspace-theme[data-wit-section="soporte"] textarea { resize: vertical; min-height: 150px; }
body.wit-workspace-theme[data-wit-section="soporte"] .wit-support-help { padding: 28px; border: 1px solid var(--wit-line); border-radius: 12px; align-self: start; background: #edf2f8; min-width: 0; }
body.wit-workspace-theme[data-wit-section="soporte"] .wit-support-help > .fa { color: var(--wit-navy); font-size: 28px; margin-bottom: 18px; }
body.wit-workspace-theme[data-wit-section="soporte"] .wit-support-help p { color: var(--wit-muted); }
body.wit-workspace-theme[data-wit-section="soporte"] .wit-support-help .btn { white-space: normal; }
body.wit-workspace-theme[data-wit-section="extranet"] .card { border: 1px solid var(--wit-line); border-radius: 12px; margin-bottom: 20px; overflow: visible; background: #fff; }
body.wit-workspace-theme[data-wit-section="extranet"] .card-header { border-bottom: 1px solid var(--wit-line); border-radius: 12px 12px 0 0; background: #fff; padding: 20px; }
body.wit-workspace-theme[data-wit-section="extranet"] .card-header > .col { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0; }
body.wit-workspace-theme[data-wit-section="extranet"] .card-title { color: var(--wit-navy); font-size: 23px; font-weight: 650; line-height: 1.35; margin: 0 0 16px; overflow-wrap: anywhere; }
body.wit-workspace-theme[data-wit-section="extranet"] .card-header .card-title { font-size: 17px; margin: 0; }
body.wit-workspace-theme[data-wit-section="extranet"] .card-body { padding: 24px; min-width: 0; }
body.wit-workspace-theme[data-wit-section="extranet"] #side-menu a[aria-current="page"] { background: #eaf0f8; border-left-color: var(--wit-red); color: var(--wit-navy); }
body.wit-workspace-theme[data-wit-section="extranet"] #side-menu a[hidden],
body.wit-workspace-theme[data-wit-section="extranet"] .wit-client-quicklink a[hidden] { display: none !important; }
body.wit-workspace-theme[data-wit-section="extranet"] .wit-client-quicklink { border: 1px solid var(--wit-line); border-radius: 12px; background: #fff; }
body.wit-workspace-theme[data-wit-section="extranet"] .wit-client-quicklink .sales-relative { padding: 24px !important; }
body.wit-workspace-theme[data-wit-section="extranet"] .wit-client-quicklink .icon-absolute { display: none; }
body.wit-workspace-theme[data-wit-section="extranet"] .barra_busqueda { display: flex; justify-content: flex-end; }
body.wit-workspace-theme[data-wit-section="extranet"] .barra_busqueda .alineado_derecha { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
body.wit-workspace-theme[data-wit-section="extranet"] .barra_busqueda .btn { white-space: normal; }
body.wit-workspace-theme[data-wit-section="extranet"] #div_tabla_documentos { min-width: 0; }
body.wit-workspace-theme[data-wit-section="extranet"] .modal-dialog { max-width: 640px; }
body.wit-workspace-theme[data-wit-section="extranet"] .modal input[type="file"] { max-width: 100%; min-width: 0; height: auto; white-space: normal; }
@media(max-width:900px) {
    body.wit-access .wit-access-layout { gap: 32px; padding: 32px 24px; }
    body.wit-workspace-theme[data-wit-section="soporte"] .wit-support-layout { grid-template-columns: 1fr; }
}
@media(max-width:600px) {
    body.wit-access .wit-access-layout { grid-template-columns: 1fr; padding: 24px 16px; gap: 24px; min-height: 0; }
    body.wit-access .wit-access-logo { width: 170px; margin-bottom: 20px; }
    body.wit-access .wit-access-intro h1 { margin: 10px 0; }
    body.wit-access .wit-access-intro > p:not(.wit-eyebrow) { font-size: 16px; }
    body.wit-access .wit-access-features { display: none; }
    body.wit-access .wit-access-card { padding: 24px 20px; }
    body.wit-workspace-theme[data-wit-section="soporte"] :is(.panel-header,.panel-body,.wit-support-help) { padding: 20px 16px; }
    body.wit-workspace-theme[data-wit-section="extranet"] .card-body { padding: 16px; }
    body.wit-workspace-theme[data-wit-section="extranet"] .row-cards > .col-sm-12 { padding-left: 0; padding-right: 0; }
}

/* Sidebar correction: keep active text readable and cover pointer/keyboard focus. */
body.wit-expedientes-pilot #side-menu > li.active > a {
    color: var(--wit-navy) !important;
}
body.wit-expedientes-pilot #side-menu > li > a:is(:hover,:focus,:focus-visible),
body.wit-expedientes-pilot #side-menu :is(.nav-second-level,.nav-third-level) a:is(:hover,:focus,:focus-visible) {
    background: var(--wit-navy) !important;
    color: #fff !important;
}
body.wit-expedientes-pilot #side-menu a:is(:hover,:focus,:focus-visible) :is(.nav-label,.fa) {
    color: inherit !important;
}

/* Final visual review: shared navigation and remaining active administration pages. */
body.wit-expedientes-pilot .navbar-static-side { flex-shrink: 0; }
body.wit-expedientes-pilot .wit-skip-link { position: fixed; top: 12px; left: 16px; z-index: 2147483646; padding: 12px 18px; border-radius: 6px; background: var(--wit-navy); color: #fff !important; font-size: 16px; font-weight: 600; transform: translateY(-180%); }
body.wit-expedientes-pilot .wit-skip-link:focus { transform: translateY(0); }
body.wit-expedientes-pilot #wit-main-heading { scroll-margin-top: 16px; }
body.wit-workspace-theme[data-wit-section="perfiles"] #side-menu a[aria-current="page"],
body.wit-workspace-theme[data-wit-section="actividad"] #side-menu a[aria-current="page"],
body.wit-workspace-theme[data-wit-section="legalpartner"] #side-menu a[aria-current="page"] { background: #eaf0f8; color: var(--wit-navy); border-left-color: var(--wit-red); font-weight: 600; }
body.wit-workspace-theme[data-wit-section="perfiles"] :is(.page-heading,.page-heading > .col-lg-12) { margin: 0; padding: 0 !important; border: 0 !important; background: transparent !important; }
body.wit-workspace-theme[data-wit-section="perfiles"] .page-heading > .col-lg-12 > .form-group { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 24px 0 20px !important; }
body.wit-workspace-theme[data-wit-section="perfiles"] .page-heading h2 { font-size: 30px; line-height: 1.3; color: var(--wit-navy); font-weight: 650; margin: 0; }
body.wit-workspace-theme[data-wit-section="perfiles"] .wit-role-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; float: none !important; }
body.wit-workspace-theme[data-wit-section="perfiles"] .wit-role-actions .btn { float: none !important; margin: 0 !important; }
body.wit-workspace-theme[data-wit-section="perfiles"] #page-wrapper > .row.border-bottom { margin: 0; padding: 24px !important; background: #fff; border: 1px solid var(--wit-line) !important; border-radius: 12px; }
body.wit-workspace-theme[data-wit-section="perfiles"] #formulario > .form-group.row { display: flex; flex-wrap: wrap; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--wit-line); align-items: flex-start; }
body.wit-workspace-theme[data-wit-section="perfiles"] #formulario > .form-group.row > :first-child { flex: 0 0 30%; max-width: 30%; padding: 0 12px 0 0; }
body.wit-workspace-theme[data-wit-section="perfiles"] #formulario .form-horizontal { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; gap: 8px 20px; padding: 0 !important; }
body.wit-workspace-theme[data-wit-section="perfiles"] #formulario .form-horizontal > .inline { display: block; margin: 0 !important; }
body.wit-workspace-theme[data-wit-section="perfiles"] .wit-role-option { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; cursor: pointer; font-size: 14px; font-weight: 400; }
body.wit-workspace-theme[data-wit-section="perfiles"] input[type="radio"] { accent-color: var(--wit-navy); width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
body.wit-workspace-theme[data-wit-section="perfiles"] #tabla_gastos table { min-width: 560px; }
body.wit-workspace-theme[data-wit-section="actividad"] .wit-activity-panel > p { color: var(--wit-muted); }
body.wit-workspace-theme[data-wit-section="actividad"] .table-responsive { max-width: 100%; }
body.wit-workspace-theme[data-wit-section="actividad"] table { min-width: 760px; font-size: 14px; }
body.wit-workspace-theme[data-wit-section="agenda"] #modal_gestionar_tipo_aviso .modal-content > .col-lg-12 { min-width: 0; max-width: 100%; }
body.wit-workspace-theme[data-wit-section="agenda"] #tabla_tipos_aviso { max-width: 100%; overflow-x: auto; }
@media(max-width:767px) {
    body.wit-workspace-theme[data-wit-section="perfiles"] #page-wrapper > .row.border-bottom { padding: 20px 14px !important; }
    body.wit-workspace-theme[data-wit-section="perfiles"] #formulario > .form-group.row { flex-direction: column; align-items: stretch; }
    body.wit-workspace-theme[data-wit-section="perfiles"] #formulario > .form-group.row > :first-child { flex: 0 0 100%; max-width: 100%; padding: 0 0 10px; }
    body.wit-workspace-theme[data-wit-section="perfiles"] #formulario .form-horizontal { flex: none; width: 100%; max-width: 100%; }
    body.wit-workspace-theme[data-wit-section="perfiles"] .wit-role-option { max-width: 100%; white-space: normal; }
    body.wit-workspace-theme[data-wit-section="perfiles"] .page-heading h2 { font-size: 25px; }
}
@media(prefers-reduced-motion:reduce) {
    body.wit-expedientes-pilot *,body.wit-expedientes-pilot *::before,body.wit-expedientes-pilot *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
