/* Altura real del footer */
:root {
    --footer-h: 100px;
}

html,
body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    margin: 0;
    font-family: "Futura Std Medium";
    color: #3c3c3b;
    background-color: #f2f2f2;
    background-image: none;
    font-size: 16px;
    line-height: 26px;
}
#page-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.red {
    color: red;
    font-size: 18px;
    font-weight: 600;
}
.text-error {
    color: red;
    font-size: 14px;
}
.cursor-pointer {
    cursor: pointer;
}
i {
    color: #6d6e71;
}

/* Header */
header .top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background-color: #2e7de1;
}
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
header .branding-header {
    padding-top: 10px;
    grid-area: logo;
}
header .branding-header .logo {
    width: 290px;
    height: 73px;
}

header .branding-header .brand .sub {
    display: block;
    font-size: 0.7em; /* o usa directamente 12px, según diseño */
    color: #555; /* opcional para diferenciarlo */
    margin-top: 2px;
}

header .user-bar {
    display: flex;
    align-items: center;
    font-family: sans-serif;
    gap: 12px;
    cursor: pointer;
    grid-area: user;
}
header .user-bar .icon-wrapper {
    position: relative;
    font-size: 18px;
    color: #6d6e71; /* gris oscuro */
}
header .user-bar .notification-icon {
    margin-right: 5px;
}
header .user-bar .notification-count {
    position: absolute;
    top: -5px;
    left: 10px;
    color: #c62828;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 14px;
    font-weight: bold;
    min-width: 16px;
    text-align: center;
    line-height: 1 !important;
    box-shadow: 0 0 0 2px white; /* borde blanco para separarlo del icono */
}
header .user-bar .user-name {
    margin-left: 5px;
    color: #6d6e71;
    font-size: 16px;
    font-family: "Futura Std light";
    vertical-align: bottom;
}
header .user-bar .separator {
    color: #ccc;
    font-size: 16px;
}

/* AV 23/07/2025 */

.header-flex {
    display: grid;
    grid-template-areas: "logo items user";
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

header .branding-header .nav {
    grid-area: items;
}

header .branding-header .nav .nav-link {
    font-family: "Futura Std Medium";
    font-size: 16px;
    line-height: 100%;
    text-transform: uppercase;
    color: #3c3c3b;
}

header .branding-header .user-bar * {
    line-height: normal;
}

header .branding-header .user-bar .separator::before {
    content: "";
    height: 30px;
    display: block;
    width: 1px;
    background-color: #7f818b;
}

header .branding-header .user-bar .fa {
    font-size: 24px;
}

/* main */
main h1,
main h2,
main h3 {
    color: #3c3c3b;
    font-family: "Futura Std Medium";
    letter-spacing: 5px;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 20px;
    text-align: center;
}
main h1 {
    font-size: 2.5rem;
}
main h2 {
    font-size: 2rem;
}
main h3 {
    font-size: 1.5rem;
}
main a,
main a:not([href]):not([class]) {
    color: #00a98e;
    text-decoration: none;
    box-shadow: none;
}
main p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 26px;
}
main .form-catalog {
    padding: 1.5rem 3rem;
    border-radius: 0;
    background-color: #ffffff;
}

main .btn-primary {
    display: inline-block;
    max-width: 100%;
    width: auto;
    background-color: #00a98e !important;
    font-family: "Futura Std Book", sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    line-height: 14px;
    text-transform: uppercase;
    padding: 14px 24px; /* más manejable */
    margin-top: 22px;
    margin-bottom: 22px;
    border: none;
    border-radius: 0;
    transition: all 0.5s ease;
    box-shadow: none;
    text-decoration: none;
    white-space: nowrap; /* para que el texto no salte de línea */
    overflow-wrap: break-word;
    text-align: center;
}
main .btn-outline-primary {
    --bs-btn-color: #00a98e;
    --bs-btn-border-color: #00a98e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #00a98e;
    --bs-btn-hover-border-color: #00a98e;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #00a98e;
    --bs-btn-active-border-color: #00a98e;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #00a98e;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #00a98e;
    --bs-gradient: none;
}

/* Footer */
footer {
    /*position: fixed;
  left: 0;
  bottom: 0;
  */
    width: 100%;
    background-color: red;
    color: white;
    text-align: center;
    z-index: 1000;
}
footer .footer-copyright {
    background: #3c3c3b;
    padding: 20px 0;
}
footer .footer-copyright .logo-sfm-text {
    text-align: left;
    width: 100%;
}
footer .footer-copyright ul li {
    width: 33.333%;
    float: left;
    margin-bottom: 25px;
    list-style: none;
}
footer .footer-copyright ul li a {
    color: white;
    line-height: 17px;
    text-decoration: none;
}
footer .footer-copyright ul li a:hover {
    text-decoration: underline;
}
footer .footer-copyright > .container .row {
    flex-direction: row;
}

footer .footer-copyright .logo-content {
    display: grid;
}
footer .footer-copyright .logotipos .logo {
    float: left;
    margin-right: 25px;
    padding-left: 60px;
    color: white;
    font-size: 12px;
    height: 45px;
    line-height: 40px;
}

footer .footer-copyright .logotipos .logo-iso {
    background: url(/sites/oficinavirtual.sfmadrid/assets/virtual-office-theme/images/SGS-9001.png) no-repeat
        center;
    background-size: 88%;
    text-indent: -99999px;
    margin: 0;
    width: 60px;
    height: 60px;
    padding: 0;
    background-color: white;
    z-index: 2;
    position: relative;
}
footer .footer-copyright .logo:nth-child(2) {
    width: 150px;
    height: 60px;
    padding: 10px 10px;
}
footer .footer-copyright .logo:nth-child(2) svg {
    width: 100%;
    height: auto;
}
footer .footer-copyright .logo:nth-child(2) svg path,
footer .footer-copyright .logo:nth-child(2) svg polygon {
    fill: white;
}
footer .footer-copyright #block-sfm-menulegal {
    margin: 0;
}
footer .footer-copyright #block-sfm-menulegal ul {
    float: left !important;
    clear: none !important;
    margin: 18px 0 0;
}

footer .footer-copyright ul li {
    width: fit-content;
    display: inline-block;
    margin-right: 25px;
    margin-bottom: 0;
}

footer .footer-copyright ul li a {
    font-size: 12px;
    line-height: 12px;
}
footer .footer-copyright .tar {
    text-align: right;
}

footer .footer-copyright .logo-madrid {
    display: inline-block;
    background: url(/sites/oficinavirtual.sfmadrid/assets/virtual-office-theme/images/sprite-emfs.png) -20px -264px
        no-repeat;
    width: 153px;
    height: 25px;
    margin-top: 17px;
}

/* VIsta No Javascript en certlogin.sfmadrid.es */
#certlogin-no-javascript {
    text-align: center;
    padding-top: 100px;
}

/* AV 22/07/2025 */

fieldset legend {
    font-size: 20px;
}

/* INICIO */

.breadcrumb a {
    color: #321 !important;
}

.block-virtual-office-theme-content-main {
    margin-top: 48px;
    margin-bottom: 100px;
}

.block-virtual-office-theme-content-main * {
    letter-spacing: 1px;
    line-height: 140%;
}

.block-virtual-office-theme-content-main .title,
.block-virtual-office-theme-content-main > h2 {
    font-size: 2.5rem;
    font-family: "Futura Std Medium";
    margin: 0 0 3rem;
    text-transform: none;
}

.block-virtual-office-theme-content-main .title::before {
    content: "";
}

.block-virtual-office-theme-content-main .home-features .items {
    flex-wrap: wrap;
    margin: 0 auto;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 0;
}

.block-virtual-office-theme-content-main .home-features .feature {
    justify-content: center;
    height: 335px;
    box-shadow: 2px 2px 24px 1px #00000026;
    min-width: 300px;
    max-width: 400px;
    margin: 0;
    padding: 25px;
    width: 30%;
    background-color: #fff;
    border: 1px solid transparent;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.block-virtual-office-theme-content-main .home-features .feature .feature-icon {
    margin: 0;
    width: 140px;
    height: 140px;
    margin-bottom: 2rem;
    background: #e6f7f3;
    border-radius: 114px;
}

.block-virtual-office-theme-content-main
    .home-features
    .feature
    .feature-icon
    svg {
    fill: #00a98e;
    width: 70%;
}

.block-virtual-office-theme-content-main
    .home-features
    .feature
    .feature-icon-title {
    margin: 0;
    font-size: 1.5rem;
    font-family: "Futura Std Medium";
    text-transform: none;
    letter-spacing: 1px;
}

/* Nuevo trámite */
form.form-panel {
    margin-bottom: 30px;
}
form.form-panel.form-general {
    padding: 50px 60px;
}
form.form-panel *:not(i) {
    font-family: "Futura Std Medium";
}
form.form-panel .messages-list {
    display: none;
}
form.form-panel h2 {
    font-size: 23px;
    letter-spacing: 5px;
    margin-bottom: 30px;
    color: #3c3c3b;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
}
form.form-panel .subtitle {
    font-family: "Futura Std Medium";
    color: #3c3c3b;
}
form .message-required {
    font-size: 12px !important;
}
form .icon-required {
    color: red;
    font-size: 12px;
}
form.form-panel .form-item {
    min-width: 100%;
}
form.form-panel .form-item .form-control {
    border: 1px solid #f2f2f2;
    box-shadow: none;
    background-color: aliceblue;
    border-radius: 0;
    padding: 15px 30px;
    height: auto;
    width: 100%;
}
form.form-panel .form-item .form-control:disabled {
    border: 1px solid #f2f2f2;
    background-color: #f2f2f2;
}
form.form-panel .text-error {
    font-size: 16px !important;
}
form.form-panel .form-item .form-control,
.task-details input,
.task-details .custom-textarea-readonly p,
.communication-details input,
.communication-details .custom-textarea-readonly p {
    font-size: 16px;
}
.ck-editor__editable {
    font-size: 18px;
    background-color: #f2f2f2;
}
form.form-panel .form-item .form-item-file label {
    display: inline-block;
    font-size: 12px;
}
form.form-panel .form-item .form-item-legal label a {
    text-decoration: underline;
    color: #3c3c3b;
}
form.form-panel .form-item .form-item-file [type="file"] {
    background-color: #f2f2f2;
    border: none;
}
.form-item-files-fields-group {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}
.vo-files-wrapper .js-form-type-file {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}
.form-item-files-fields-group label,
.vo-files-wrapper .js-form-type-file label {
    display: none;
}
form.form-panel .form-item .form-type-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
}
form.form-panel .form-item .form-type-checkbox input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
}
form.form-panel .form-item .form-type-checkbox label {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-family: "Futura Std Book", sans-serif;
    color: #3c3c3b;
    display: inline;
}
.form-check-label{
    cursor: pointer;
}

/* ----------------------------------------------------------- */

.vo-field.vo-radios,
.vo-field.vo-checkboxes {
    border: 1px solid transparent;
    border-radius: 0.375rem;
    padding: 0;
}
.vo-field-p-10 {
    padding: 10px !important;
}
.vo-field.vo-has-error {
    border-color: var(--bs-form-invalid-border-color, #dc3545);
}
/*.vo-field.vo-has-error:focus-within {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
*/

/* Caja con fondo tipo input */
.vo-field {
    padding: 10px;
}

.vo-field .vo-options legend {
    margin-bottom: 1px;
}

.vo-field .vo-options .fieldset-wrapper {
    border: 1px solid #f2f2f2;
    box-shadow: none;
    background-color: aliceblue;
    border-radius: 0;
    padding: 15px 30px;
    height: auto;
    width: 100%;
    font-size: 18px;
}
.vo-field .vo-options .fieldset-wrapper-checkboxs-radios {
    border: none;
    box-shadow: none;
    background-color: #ffffff;
    border-radius: 0;
    padding: 15px 30px;
    height: auto;
    width: 100%;
    font-size: 18px;
}

.vo-field .vo-disabled .fieldset-wrapper {
    background-color: #f2f2f2;
}

.vo-field .vo-options .form-item {
    margin-top: 1px;
    margin-bottom: 1px;
}
.vo-field .vo-options .form-item label,
.vo-field .vo-options .form-item input {
    cursor: pointer;
}

/* Cada opción compacta, input a la izquierda del label */
.vo-field .vo-options .form-type-radio,
.vo-field .vo-options .form-type-checkbox {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.4rem !important; /* espacio entre input y texto */
    margin: 0 0.75rem 0 0 !important; /* separa SI de NO en horizontal */
    padding: 0 !important;
    width: auto !important;
}

/* Asegura que el input no se vaya a la derecha */
.vo-field .vo-options input.form-radio,
.vo-field .vo-options input.form-checkbox {
    appearance: auto !important;
    width: 1rem !important;
    height: 1rem !important;
    margin: 0 !important;
}

/* Texto pegado al input */
.vo-field .vo-options label {
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}
.vo-options label {
    cursor: pointer;
}

/* Borde rojo solo en los contenedores de grupo  */
.ck.ck-editor.vo-has-error .ck-editor__editable {
    border: 1px solid var(--vo-danger, #e53935) !important;
    border-radius: 4px;
}

.vo-radios.vo-has-error,
.vo-checkboxes.vo-has-error {
    border: transparent 1px solid !important;
}
.vo-radios.vo-has-error .fieldset-wrapper,
.vo-checkboxes.vo-has-error .fieldset-wrapper {
    border: 1px solid var(--vo-danger, #e53935) !important;
}

/* ----------------------------------------------------------- */

.custom-textarea-readonly {
    height: auto;
    white-space: normal;
    background-color: #f2f2f2 !important;
    opacity: 1;
    max-height: 300px;
    overflow-y: auto;
    min-height: 100px;
}

.form-control:disabled {
    background-color: #f2f2f2;
}

form.form-panel .btSubmit {
    width: 100%;
}

.block-virtual-office-theme-content-main
    form.form-panel:not(.form-general)
    .form-file {
    display: block;
}

.form-item-legal a {
    color: #2e7de1;
}

.block-virtual-office-theme-content-main
    form.form-panel:not(.form-general)
    input[type="submit"],
.block-virtual-office-theme-content-main
    form.form-panel:not(.form-general)
    button[type="submit"],
.block-virtual-office-theme-content-main
    form.form-panel:not(.form-general)
    .btSubmit {
    background-color: #2e7de1;
    color: white;
    border-radius: 0;
    height: 64px;
    border: none;
    text-transform: uppercase;
    font-size: 16px;
}

.block-virtual-office-theme-content-main
    form.form-panel:not(.form-general)
    input[type="submit"]:hover,
.block-virtual-office-theme-content-main
    form.form-panel:not(.form-general)
    button[type="submit"]:hover {
    background-color: #2d71cb;
}

/* Listas */
.rows-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* 1) Contenido: que nunca se salga */
.rows-card,
.rows-card * {
    overflow-wrap: anywhere; /* corta emails y URLs largas */
    word-break: break-word;
    hyphens: auto;
}
.rows-card {
    overflow: hidden;
}
.rows-list .rows-card .rows-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
    align-items: flex-start;
    gap: 10px;
}
.rows-list .rows-card .rows-header .left {
    font-size: 20px;
    color: #3c3c3b;
    font-family: "Futura Std light";
}
.rows-list .rows-card .rows-header .status {
    font-size: 16px;
    font-family: "Futura Std light";
    font-weight: 600;
    min-width: 238px;
    display: block;
    border-radius: 100px;
    text-align: center;
}

.rows-list .rows-card .rows-header .title {
    font-size: 18px;
    color: #1d1d1d;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
    margin-bottom: 10px;
}
.rows-list .rows-card .rows-toggle {
    font-size: 18px;
    color: #3c3c3b;
    cursor: pointer;
    position: relative;
    font-family: "Futura Std light";
    text-align: left;
    text-transform: none !important;
    display: flex;
    justify-content: space-between;
}
.rows-list .rows-card .rows-toggle .line:not(.line:last-child) {
    margin-bottom: 1rem;
}
.rows-list .rows-card .rows-header .left .subject,
.rows-list .rows-card .rows-toggle .subject {
    font-weight: normal;
    font-family: "Futura Std Medium";
    vertical-align: bottom;
    font-size: 18px;
}
.rows-list .rows-card .rows-toggle .toggle-arrow {
    font-size: 14px;
    margin-left: 8px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}
.rows-list .rows-card .rows-content {
    display: none;
    transition: all 0.3s ease;
    border-top: 1px solid #eeeeee;
    padding-top: 10px;
    margin-top: 50px;
}
.rows-list .rows-card .rows-content.visible {
    display: block;
}
.rows-list .rows-card .rows-content.visible ~ .rows-toggle .toggle-arrow {
    transform: rotate(180deg);
}
.rows-list .rows-card .rows-info > div {
    font-size: 15px;
    margin-bottom: 5px;
}
.rows-list .rows-card .rows-accion {
    text-align: right;
    margin-top: 15px;
}

/* 2) Botones responsivos */
.rows-communication-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

/* 4) Evitar “saltos” visuales al hover/focus */
.rows-communication-buttons .btn-review {
    font-size: 16px;
    line-height: 1;
    transition:
        background-color 0.2s,
        color 0.2s,
        border-color 0.2s;
}
.rows-communication-buttons .btn-review:hover,
.rows-communication-buttons .btn-review:focus-visible {
    background: #00a98e;
    color: #fff;
    border-color: #00a98e;
    outline: none;
}

.rows-communication-buttons .btn-review {
    min-width: 140px;
    padding: 10px 16px;
    text-align: center;
    flex: 1 1 140px; /* crecen y bajan de línea */
}
.rows-list .rows-card .btn-review {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #00a98e;
    text-decoration: none;
    color: #00a98e;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px; /* tamaño fijo */
    font-family: "Futura Std medium";
    line-height: 1; /* evita reflow por altura */
    transition:
        background-color 0.2s,
        color 0.2s,
        border-color 0.2s; /* sin transición de tamaño */
    text-decoration: none;
    height: 48px;
    width: 175px;
}
.rows-list .rows-card .btn-review:hover,
.rows-list .rows-card .btn-review:focus,
.rows-list .rows-card .btn-review:focus-visible,
.rows-list .rows-card .btn-review:active {
    background-color: #00a98e;
    color: #fff;
    border-color: #00a98e;
    outline: none; /* elimina borde azul del navegador */
    text-decoration: none;
}

.rows-list .rows-card .rows-items {
    display: flex;
    gap: 20px;
    align-items: center;
}
.rows-list .rows-card .rows-items .push-left {
    text-align: left;
}
.rows-list .rows-card .rows-items .push-right {
    margin-left: auto;
}

/* Status */
.status {
    padding: 8px 16px;
}
.status,
.status-unknown {
    background-color: #ffe5d0 !important;
    color: #984c0c;
    font-size: 16px;
}
.status-pending,
.status-waiting,
.status-assigned,
.status-inprogress {
    background-color: #fff3cd !important;
    color: #997404;
}
.status-cancelled,
.status.unread {
    background-color: #f8d7da !important;
    color: #842029;
}
.status-done,
.status-completed,
.status.read {
    background-color: #d1e7dd !important;
    color: #0f5132;
}

/* Paginación */
.pagination {
    text-align: center;
    width: 96%;
    margin: 0 auto;
    margin-top: 50px;
}
.pagination .page-link {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 5px;
    border: 1px solid #2ab287;
    text-decoration: none;
    color: #2ab287;
    background-color: transparent;
    transition: all 0.3s ease;
    font-size: 16px;
    font-family: "Futura Std Medium";
}
.pagination .page-link:hover {
    background-color: #f2f2f2;
}
.pagination .page-link.active {
    background-color: #2ab287;
    color: white;
    border-color: #2ab287;
    z-index: 0;
}
.pagination.comunicacommunications . {
    margin: 50px 0 0 0;
}
/* Detalle / Ficha */
.row-details .content-static,
.row-details .content-rendered {
    background-color: white;
    padding: 50px 60px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
    font-family: "Futura Std Book", sans-serif;
}
.row-details h2 {
    text-align: center;
    font-size: 24px;
    letter-spacing: 4px;
    color: #3c3c3b;
    margin-bottom: 40px;
    font-family: "Futura Std Medium", sans-serif;
}
.row-details .detail-line {
    margin-bottom: 16px;
    font-size: 16px;
    color: #333;
}
.row-details .detail-line strong {
    font-weight: 600;
    display: inline-block;
    min-width: 200px;
    color: #1d1d1d;
}
.row-details .doc-list {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
}
.row-details .doc-list li {
    margin-bottom: 4px;
}
.row-details .doc-link {
    color: #007bff;
    text-decoration: underline;
    font-weight: 500;
}
.row-details .doc-link:hover {
    color: #0056b3;
}

/* Tabs */
.tab-menu {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}
.tab-menu::after {
    content: "";
    width: 100%;
    height: 1px;
    background-color: #d1d5de;
    position: relative;
    top: -1px;
}
.tab-menu .tab-link {
    padding: 14px;
    font-size: 16px;
    font-family: "Futura Std Medium", sans-serif;
    text-decoration: none;
    color: #3c3c3b;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    position: relative;
    z-index: 1;
    min-width: 122px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-left: 1px solid #eee;
}
.tab-menu .tab-link.active {
    color: white;
    background-color: #00a98e;
    font-size: 16px;
    font-family: "Futura Std medium";
}
.tab-menu .tab-link.active i {
    color: white;
}
.tab-menu .tab-link-back {
    min-width: 0px;
}
.tab-menu .doc-list:hover {
    color: #007b6e;
    border-bottom: 3px solid #007b6e;
}

/* Catálogo */
.catalog-search form {
    width: 100%;
}
.catalog-search form label {
    font-family: "Futura Std Medium";
    font-size: 16px;
    color: #3c3c3b;
    letter-spacing: 1px;
    margin-right: 10px;
}
.catalog-search form input[type="text"] {
    padding: 12px 20px;
    border: none;
    background-color: #f2f2f2;
    border-radius: 0;
    min-width: 250px;
}
.catalog-search form input[type="text"]::placeholder {
    color: #6c757d; /* gris Bootstrap */
    opacity: 1; /* opcional: evita transparencia */
}
.catalog-results table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Futura Std Book", sans-serif;
    margin-top: 20px;
}
.catalog-results thead {
    background-color: #f8f8f8;
}
.catalog-results th {
    text-align: left;
    padding: 14px 12px;
    font-size: 14px;
    color: #3c3c3b;
    font-family: "Futura Std Medium";
    border-bottom: 1px solid #e0e0e0;
}
.catalog-results td {
    padding: 16px 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
    color: #1d1d1d;
}
.catalog-results td u {
    color: #007b6e;
    text-decoration: underline;
}
.catalog-results .btn-flor {
    background-color: #00a899;
    border: none;
    color: white;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
}
.catalog-results .btn-flor:hover {
    background-color: #007b6e;
}
.catalog-results .note {
    font-size: 12px;
    color: #555;
    max-width: 260px;
    display: inline-block;
}
.catalog-results tr.clickable-row {
    cursor: pointer;
}
.catalog-results tr.clickable-row:hover {
    background-color: #f9f9f9;
}

/* 23/07/2025 */

.block-virtual-office-theme-content-main .catalog-search {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 auto;
}

.block-virtual-office-theme-content-main
    .catalog-search
    .form-panel
    .input-group
    input::placeholder {
    color: #3c3c3b;
}

.block-virtual-office-theme-content-main .catalog-search .form-panel .btn {
    background-color: #2e7de1;
    color: white;
    padding: 12px 16px;
    border-radius: 0;
    border: 0;
    height: 58px;
}
.block-virtual-office-theme-content-main
    .catalog-search
    .form-panel
    .btn-clear {
    background-color: #ffffff;
    color: #3c3c3b;
    border: 1px solid #3c3c3b !important;
    padding: 12px 16px;
    border-radius: 0;
    border: 0;
    height: 58px;
}

.block-virtual-office-theme-content-main .catalog-results h3 {
    font-family: "Futura Std medium";
    font-size: 1.5rem;
    text-transform: none;
}

.block-virtual-office-theme-content-main .rows-list .rows-card {
    background: white;
    font-family: "Futura Std Book", sans-serif;
    max-width: 100%;
    padding: 24px;
    border: none;
    box-shadow: none;
}
.rows-card-communication-read {
    background: #fffefe !important;
}
.rows-card-communication-unread {
    background: #ffffff !important;
}

.block-virtual-office-theme-content-main .rows-list .rows-card .push-left {
    width: 100%;
}

.block-virtual-office-theme-content-main
    .rows-list
    .rows-card
    .push-left
    .rows-item-content:first-child {
    margin-bottom: 12px;
}

.block-virtual-office-theme-content-main
    .rows-list
    .rows-card
    .push-left
    .rows-item-content
    * {
    font-size: 18px;
    font-family: "Futura Std light";
    text-transform: none;
}

.block-virtual-office-theme-content-main
    .rows-list
    .rows-card
    .push-left
    .rows-item-content
    .rows-item-title {
    font-family: "Futura Std medium";
}

.block-virtual-office-theme-content-main .rows-list .rows-card .push-right a {
    font-family: "Futura Std medium";
    height: 48px;
    width: 145px;
    text-align: center;
}

/* Mensajes */
.alert .placeholder {
    display: inline-block;
    min-height: 1em;
    vertical-align: middle;
    cursor: wait;
    background-color: transparent;
    opacity: 1;
    font-weight: 600;
}
.alert {
    font-size: 16px !important;
}
.taskcommunications .item .label {
    font-weight: bold;
}

/* AV 22/07/2025 */

/* LOGIN */

.cssnk-login-wrapper {
    background-color: white;
}
.cssnk-login-wrapper .cssnk-login-content {
    max-width: 820px;
    margin: 0 auto;
}
.cssnk-login-wrapper .cssnk-login-content .subtitle,
.cssnk-login-wrapper .cssnk-login-content .title,
.cssnk-login-wrapper .cssnk-login-content .description {
    text-align: center;
    line-height: 140%;
}
.cssnk-login-wrapper .cssnk-login-content .title {
    font-size: 24px;
    font-family: "Futura Std Light";
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.cssnk-login-wrapper .cssnk-login-content .subtitle {
    font-size: 38px;
    font-family: "Futura Std Medium";
    margin-bottom: 1rem;
}
.cssnk-login-wrapper .cssnk-login-content .description {
    font-size: 16px;
    font-family: "Futura Std Light";
    margin-bottom: 2rem;
}
.cssnk-login-wrapper .cssnk-login-content .cssnk-login-action .description {
    font-size: 16px;
    font-family: "Futura Std Medium";
    margin-bottom: 1rem;
}
.cssnk-login-wrapper .cssnk-login-content .cssnk-login-action .btn {
    background-color: #2e7de1 !important;
    padding: 8px 32px;
    margin: 0;
    font-family: "Futura Std Medium";
    height: 64px;
    width: 250px;
    font-size: 16px;
}
.cssnk-login-wrapper .cssnk-login-content .cssnk-login-action .btn:hover {
    background-color: #1a5bb8 !important;
}
.cssnk-login-wrapper .cssnk-login-form {
    text-align: center;
}

/* MIS TRAMITES */

.block-virtual-office-theme-content-main .title.mis_tramites {
    margin-bottom: 80px;
}

.block-virtual-office-theme-content-main .rows-list.mis_tramites .left,
.block-virtual-office-theme-content-main .rows-list.taskcommunications .left {
    font-size: 24px;
    font-family: "Futura Std light";
}

.block-virtual-office-theme-content-main .rows-list.mis_tramites .left strong,
.block-virtual-office-theme-content-main
    .rows-list.task-communications
    .left
    strong {
    font-family: "Futura Std medium";
    font-weight: unset;
}

.rows-list .communication-direction-entrance {
    color: #2e7de1;
}
.rows-list .communication-direction-exit {
    color: #ec536b;
}

.block-virtual-office-theme-content-main .rows-list.mis_tramites .status,
.block-virtual-office-theme-content-main
    .rows-list.task-communications
    .status {
    width: 238px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 16px;
    font-family: "Futura Std medium";
}

.block-virtual-office-theme-content-main .rows-list.mis_tramites .rows-toggle,
.block-virtual-office-theme-content-main
    .rows-list.task-communications
    .rows-toggle {
    font-size: 18px;
    font-family: "Futura Std light";
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0;
    gap: 10px;
}

.block-virtual-office-theme-content-main
    .rows-list.mis_tramites
    .rows-toggle
    strong,
.block-virtual-office-theme-content-main
    .rows-list.task-communications
    .rows-toggle
    strong {
    font-family: "Futura Std medium";
    font-weight: unset;
}

.block-virtual-office-theme-content-main .rows-list.mis_tramites .rows-accion a,
.block-virtual-office-theme-content-main
    .rows-list.task-communications
    .rows-accion
    a {
    width: 238px;
    padding: 8px 32px;
    text-align: center;
    font-size: 16px;
    font-family: "Futura Std medium";
}
.rows-communication-buttons {
    display: flex;
    justify-content: flex-end;
}
.rows-communication-buttons a {
    margin-left: 5px;
}

/* DETALLE DEL TRÁMITE */

.block-virtual-office-theme-content-main .tab-menu {
    flex-wrap: wrap;
}

.block-virtual-office-theme-content-main .row-details .content-static,
.block-virtual-office-theme-content-main .row-details .content-rendered {
    /* margin-bottom: 100px; */
    box-shadow: 2px 2px 24px 1px #00000026;
    padding: 24px;
    border-radius: 0;
    display: grid;
    gap: 16px;
    grid-template-areas:
        "id tipo fecha estado"
        "nombre dni email email";
}

.block-virtual-office-theme-content-main .row-details .detail-line {
    margin-bottom: 0;
    font-size: 18px;
    font-family: "Futura Std light";
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.block-virtual-office-theme-content-main .row-details .detail-line strong {
    min-width: 120px;
    font-size: 18px;
    font-family: "Futura Std medium";
    font-weight: unset;
}

.block-virtual-office-theme-content-main .row-details .dl_id {
    grid-area: id;
}

.block-virtual-office-theme-content-main .row-details .dl_tipo {
    grid-area: tipo;
}

.block-virtual-office-theme-content-main .row-details .dl_fecha {
    grid-area: fecha;
}

.block-virtual-office-theme-content-main .row-details .dl_estado {
    grid-area: estado;
}

.block-virtual-office-theme-content-main .row-details .dl_estado .status {
    min-width: 150px;
}

.block-virtual-office-theme-content-main .row-details .dl_nombre {
    grid-area: nombre;
}

.block-virtual-office-theme-content-main .row-details .dl_dni {
    grid-area: dni;
}

.block-virtual-office-theme-content-main .row-details .dl_email {
    grid-area: email;
}

.block-virtual-office-theme-content-main .row-details .content-rendered {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.block-virtual-office-theme-content-main .row-details .content-rendered > * {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.block-virtual-office-theme-content-main .taskcommunications .item {
    margin-bottom: 16px;
}

.block-virtual-office-theme-content-main
    .task-communications
    .item:not(:first-child) {
    margin-bottom: 16px;
    display: block;
}

.block-virtual-office-theme-content-main .taskcommunications .item:last-child {
    margin-bottom: 0;
}

.fields-group-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 0;
}

/* Nuevo trámite */
.cssnk-virtual-office-tasks-form {
    background-color: transparent !important;
}
.cssnk-virtual-office-tasks-form .title {
    font-size: 1.875rem;
    font-weight: 500;
    text-align: left;
    text-transform: none;
    margin: 0 0 1rem !important;
}
.cssnk-virtual-office-tasks-form .user-data p {
    font-size: 16px;
    text-align: left;
}
.cssnk-virtual-office-tasks-form .user-data code {
    color: #2e7de1;
}
.cssnk-virtual-office-tasks-form .user-email-alert {
    padding: 10px;
    font-size: 14px !important;
    margin-top: 5px;
    margin-bottom: inherit;
}
.cssnk-virtual-office-tasks-form .description {
    margin-top: 10px !important;
}
.cssnk-virtual-office-tasks-form .opt-legal label {
    font-size: 16px;
}

/* Detalle del trámite */
.details-procedure-status-content {
    width: 100%;
    padding-bottom: 10px;
    text-align: right;
}
.details-procedure .rows-list .item {
    padding: 10px;
}
.details-procedure .document-list .document-meta {
    color: cadetblue;
}

.metadata {
    display: none;
    border: 1px dashed #ddd;
    padding: 10px;
    margin: 10px;
}

/* Detalle de una comunicación */
.communication-details .subject-title {
    font-size: 20px;
    font-weight: bold;
}
.communication-details .accordion-header {
    margin-top: 0 !important;
}
.communication-details .accordion-body .rows-card {
    padding: 10px;
}
.communication-details .accordion-body .rows-card .row {
    margin-bottom: 10px;
}
.communication-details .form-panel .form-item {
    margin-top: 10px;
}
.communication-details .message-content {
    font-size: 16px !important;
    width: 100%;
    min-height: 240px;
    max-height: 70vh;
    overflow: auto;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 0.5rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.communication-details .message-content p,
.communication-details .message-content div {
    font-size: 14px !important;
    margin: 0 0 0.75rem;
}
.communication-details .message-content img {
    max-width: 100%;
    height: auto;
    display: block;
}
.communication-details .message-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
}
.communication-details .message-content th,
.communication-details .message-content td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    vertical-align: top;
}
.communication-details .message-content pre,
.communication-details .message-content code {
    white-space: pre-wrap;
    word-break: break-word;
}
.communication-details .message-content a {
    text-decoration: underline;
}
.communication-details .message-content blockquote {
    margin: 0.75rem 0;
    padding: 0.5rem 0.75rem;
    border-left: 3px solid #e5e7eb;
    background: #f1f5f9;
}
.communication-details .vo-reply-form {
    margin-top: 20px;
}
.communication-details .vo-reply-form label,
.communication-details .vo-reply-form div,
.communication-details .vo-reply-form #edit-file {
    font-size: 16px;
}
.communication-details .vo-reply-form label {
    font-size: 16px;
    display: block;
}
.communication-details .vo-reply-form .form-item {
    margin-top: 20px;
    margin-bottom: 30px;
    min-width: 100%;
}
.communication-details .vo-reply-form .ck-label {
    display: none;
}
.communication-details .vo-reply-form .form-item .description {
    margin-top: 10px !important;
}
.communication-details .vo-reply-form .js-form-type-file {
    margin-top: 10px;
    margin-bottom: 10px;
}
.communication-details .vo-reply-form .js-form-type-file label {
    display: none;
}
.communication-details .vo-reply-form input[type="submit"],
.communication-details .vo-reply-form button[type="submit"] {
    background-color: #2e7de1;
    color: white;
    border-radius: 0;
    height: 64px;
    border: none;
    text-transform: uppercase;
    font-size: 16px;
    margin-top: 2rem;
    margin-bottom: 3rem;
}
.communication-details .vo-reply-form .btSubmit {
    width: 100%;
}

/* =========================================================
   Communication details - Task header (asunto / mensaje / fecha)
   ========================================================= */

.communication-details .vo-task-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    padding:18px 22px;
    background:#fff;
    border:1px solid #dee2e6;
    border-radius:6px;
}

.communication-details .vo-task-header__left{
    flex: 1 1 auto;
    min-width: 0;
}

/* Label base */
.communication-details .vo-task-header__label{
    display:block;
    font-size:1rem;
    color:#111827;
    margin-bottom:6px;
}

/* Value base */
.communication-details .vo-task-header__value{
    color:#374151;
}
.communication-details .vo-task-header__value--muted{
    color:#6b7280;
}

/* FECHA en línea */
.communication-details .vo-task-header__date{
    display:flex;
    align-items:baseline;
    gap:8px;
    margin-bottom:10px;
}

.communication-details .vo-task-header__date .vo-task-header__label{
    display:inline;
    margin:0;
}

.communication-details .vo-task-header__date .vo-task-header__value{
    display:inline;
}

/* =========================
   ASUNTO en línea
   (igual que fecha, pero con wrap/clamp opcional)
   ========================= */
.communication-details .vo-task-header__title{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin:0;
  min-width:0; /* necesario para que el texto pueda truncarse/ajustarse */
}

.communication-details .vo-task-header__title .vo-task-header__label{
  display:inline;
  margin:0;
  white-space:nowrap;
}

.communication-details .vo-task-header__title .vo-task-header__value{
  display:inline;
  min-width:0;
}

/* Si el asunto puede ser muy largo, puedes truncarlo en 1 línea */
.communication-details .vo-task-header__title .vo-task-header__value{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* =========================
   MENSAJE (label arriba + extracto debajo)
   ========================= */
.communication-details .vo-task-header__meta{
  margin-top:10px;
}

/* clamp solo para mensaje */
.communication-details .vo-task-header__meta .vo-task-header__value--muted{
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Responsive */
@media (max-width: 768px){
  .communication-details .vo-task-header{
    padding:14px 16px;
  }
}



/* =========================================================
   Badge status tipo “pill
   ========================================================= */
.communication-details .vo-badge-status{
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  border-radius:999px;
  background:#fde7d6; /* similar a tu referencia */
  color:#8a4b2b;
  font-weight:600;
  font-size:.95rem;
  white-space:nowrap;
}

/* Botón compacto */
.communication-details .vo-btn-compact{
  padding:10px 18px;
  border-radius:10px;
  font-weight:600;
}

/* Mobile: apila derecha debajo */
@media (max-width: 768px){
  .communication-details .vo-task-header{
    flex-direction:column;
    align-items:stretch;
  }
  .communication-details .vo-task-header__right{
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
  }
}







/* Pantala de confirmación de proceso */
.vo-success {
    max-width: 700px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}
.vo-success h1 {
    font-size: 16px;
}

/* Mensajes personalozados de los form*/
#vo-inline-error-wrapper,
#vo-inline-error-wrapper li {
    font-size: 16px !important;
}

.task-details .item {
    padding-top: 10px;
}
.task-details .document-meta {
    font-size: 10px;
}

/* Contenedor del formulario: evita “formularios gigantes” en pantallas muy anchas */
.vo-form-container {
    margin: 1rem auto;
    border-radius: 1rem;
}

/* Ajustes menores */
.vo-options .form-check-inline {
    margin-right: 0.75rem;
}

/* Tooltip accesible (si no cargas JS de Bootstrap) */
[data-bs-toggle="tooltip"] {
    cursor: help;
}

.trumbowyg-editor-box,
.trumbowyg-button-pane {
    background-color: aliceblue !important;
}

/* Nunca dibujar borde en .form-item “sueltas” (como legal) */
.form-item.vo-has-error {
    border: 0 !important;
}
/* Estados de error simples */
.form-item.vo-has-error .form-control,
.form-item.vo-has-error .form-select,
.form-item.vo-has-error .form-check-input,
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* Botón cargando */
.vo-submit-btn {
    position: relative;
    min-width: 12rem;
}
.vo-submit-btn .vo-btn-spinner,
.vo-submit-btn .vo-btn-wait-text {
    display: none;
}
.vo-submit-btn.vo-loading {
    pointer-events: none;
    opacity: 0.85;
}
.vo-submit-btn.vo-loading .vo-btn-text {
    visibility: hidden;
}
.vo-submit-btn.vo-loading .vo-btn-spinner,
.vo-submit-btn.vo-loading .vo-btn-wait-text {
    display: inline-block;
}

/* Spinner */
.vo-btn-spinner {
    width: 1rem;
    height: 1rem;
    border: 0.2rem solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: -2px;
    animation: vo-spin 0.6s linear infinite;
}
.vo-btn-wait-text {
    font-weight: 500;
}

/* Alert dinámico si no existe */
#vo-inline-error-wrapper {
    scroll-margin-top: 100px;
}

@keyframes vo-spin {
    to {
        transform: rotate(360deg);
    }
}

.rows-communication-body {
    padding-right: 16px;
}

/* Selects multiples */
.vo-multi-as-checks {
    display: none;
}
.vo-multi-wrap .form-check {
    margin-bottom: 0.25rem;
}

/* Mis notificaciones */
.my-notifications .rows-communication-buttons{
    min-width: 368px;
}

table thead tr th,
table tbody tr td{
    color: #3c3c3b !important;
}