:root {
    --pbs-primary: #22A2DC;
    --pbs-primary-dark: #147BAA;
    --pbs-primary-hover: #126D98;
    --pbs-primary-light: #EAF7FD;
    --pbs-white: #FFFFFF;
    /* Superficie de tarjetas, paneles y formularios; --pbs-white queda para texto sobre colores de marca. */
    --pbs-surface: #FFFFFF;
    /* Fondos de botones primarios y del menú lateral; equivalen a la marca en el tema claro. */
    --pbs-accion: var(--pbs-primary-dark);
    --pbs-accion-hover: var(--pbs-primary-hover);
    --pbs-sidebar-bg: var(--pbs-primary-dark);
    --pbs-sidebar-hover-bg: var(--pbs-primary-hover);
    --pbs-background: #F7FAFC;
    --pbs-text: #1F2937;
    --pbs-text-muted: #64748B;
    --pbs-border: #E5E7EB;
    --pbs-input-border: #7D8D9F;
    --pbs-danger: #b32121;
    --pbs-validation-error: #e50000;
    --pbs-success: #26b050;
    --pbs-warning-background: lightyellow;
    --pbs-focus-ring: 0 0 0 .2rem rgb(34 162 220 / 25%);
    --pbs-shadow: 0 .5rem 2rem rgb(31 41 55 / 6%);
    /* Colores semánticos de indicadores y gráficos (Dashboard). Cada estado conserva el mismo color en
       tarjetas, barras y leyendas; el tema oscuro los redefine más abajo. */
    --pbs-estado-proceso: #1f78b0;
    --pbs-estado-pausado: #c27a12;
    --pbs-estado-aprobado: #1e8a5a;
    --pbs-estado-cancelado: #b9444f;
    --pbs-grafico-principal: var(--pbs-primary-dark);
    --pbs-grafico-rechazo: #c4505b;
    --pbs-grafico-reenvio: #23919c;
    --pbs-grafico-pista: #e7eef3;
    --bs-body-font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --bs-body-color: var(--pbs-text);
    --bs-body-bg: var(--pbs-background);
}

html, body {
    font-family: var(--bs-body-font-family);
    color: var(--pbs-text);
    background: var(--pbs-background);
}

.pbs-shell h1 {
    margin-bottom: 1rem;
    font-size: clamp(1.625rem, 2.5vw, 2.25rem);
    font-weight: 650;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.pbs-shell h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.pbs-shell p {
    line-height: 1.65;
}

a, .btn-link {
    color: var(--pbs-primary-dark);
}

a:hover, .btn-link:hover {
    color: var(--pbs-primary-hover);
}

.btn-primary {
    --bs-btn-color: var(--pbs-white);
    --bs-btn-bg: var(--pbs-accion);
    --bs-btn-border-color: var(--pbs-accion);
    --bs-btn-hover-color: var(--pbs-white);
    --bs-btn-hover-bg: var(--pbs-accion-hover);
    --bs-btn-hover-border-color: var(--pbs-accion-hover);
    --bs-btn-active-color: var(--pbs-white);
    --bs-btn-active-bg: var(--pbs-accion-hover);
    --bs-btn-active-border-color: var(--pbs-accion-hover);
    --bs-btn-disabled-color: var(--pbs-white);
    --bs-btn-disabled-bg: var(--pbs-accion);
    --bs-btn-disabled-border-color: var(--pbs-accion);
}

.btn-outline-primary {
    --bs-btn-color: var(--pbs-primary-dark);
    --bs-btn-border-color: var(--pbs-primary-dark);
    --bs-btn-hover-color: var(--pbs-white);
    --bs-btn-hover-bg: var(--pbs-accion);
    --bs-btn-hover-border-color: var(--pbs-accion);
    --bs-btn-active-color: var(--pbs-white);
    --bs-btn-active-bg: var(--pbs-accion-hover);
    --bs-btn-active-border-color: var(--pbs-accion-hover);
    --bs-btn-disabled-color: var(--pbs-primary-dark);
    --bs-btn-disabled-border-color: var(--pbs-primary-dark);
}

.pbs-shell .btn {
    border-radius: .5rem;
}

.btn:focus-visible,
.btn:active:focus-visible,
.btn-link.nav-link:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: 2px solid var(--pbs-primary-dark);
    outline-offset: 2px;
    box-shadow: var(--pbs-focus-ring);
}

.pbs-shell .form-control,
.pbs-shell .form-select {
    padding: .625rem .875rem;
    border-color: var(--pbs-input-border);
    border-radius: .5rem;
    color: var(--pbs-text);
    background-color: var(--pbs-surface);
}

.pbs-shell .form-control:focus,
.pbs-shell .form-select:focus {
    border-color: var(--pbs-primary-dark);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--pbs-success);
}

.invalid {
    outline: 1px solid var(--pbs-validation-error);
}

.validation-message {
    color: var(--pbs-validation-error);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, var(--pbs-danger);
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--pbs-white);
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


.darker-border-checkbox.form-check-input {
    border-color: var(--pbs-input-border);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.auth-card {
    width: 100%;
    max-width: 32rem;
    margin: 1rem auto;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--pbs-border);
    border-radius: 1rem;
    background: var(--pbs-surface);
    box-shadow: var(--pbs-shadow);
}

.auth-card label,
.security-panel label {
    display: block;
    margin-top: 1rem;
    margin-bottom: .375rem;
    font-size: .9375rem;
    font-weight: 600;
}

.security-panel {
    margin: 1.25rem 0;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--pbs-border);
    border-radius: .75rem;
    background: var(--pbs-surface);
}

.role-picker {
    position: relative;
    max-width: 34rem;
}

.role-picker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    min-height: 2.75rem;
    padding: .625rem .875rem;
    border: 1px solid var(--pbs-input-border);
    border-radius: .375rem;
    background: var(--pbs-surface);
    text-align: left;
}

.role-picker-trigger:focus-visible,
.role-picker-options button:focus-visible {
    outline: 2px solid var(--pbs-primary-dark);
    outline-offset: 2px;
}

.role-picker-options {
    position: absolute;
    z-index: 10;
    inset: calc(100% + .25rem) 0 auto;
    display: grid;
    gap: .25rem;
    max-height: 15rem;
    overflow-y: auto;
    padding: .375rem;
    border: 1px solid var(--pbs-border);
    border-radius: .375rem;
    background: var(--pbs-surface);
    box-shadow: var(--pbs-shadow);
}

.role-picker-options button {
    min-height: 2.5rem;
    padding: .5rem .75rem;
    border: 0;
    border-radius: .25rem;
    color: var(--pbs-text);
    background: transparent;
    text-align: left;
}

.role-picker-options button:hover,
.role-picker-options button[aria-selected="true"] {
    color: var(--pbs-primary-hover);
    background: var(--pbs-primary-light);
}

.security-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
}

.security-actions > label {
    flex-basis: 100%;
    font-weight: 600;
}

.security-actions > .form-control {
    flex: 1 1 15rem;
    width: auto;
    min-width: 0;
}

.security-table-container {
    border: 1px solid var(--pbs-border);
    border-radius: .75rem;
    background: var(--pbs-surface);
}

.security-table {
    width: 100%;
    min-width: 32rem;
    margin-bottom: 0;
}

.security-table th,
.security-table td {
    padding: .875rem 1rem;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.security-table th {
    background: var(--pbs-primary-light);
    font-size: .875rem;
    font-weight: 600;
}

.temporary-password {
    padding: .375rem .5rem;
    border-radius: .375rem;
    background: var(--pbs-primary-light);
    color: var(--pbs-text);
    overflow-wrap: anywhere;
    user-select: all;
}

/* Solicitudes, cotizaciones y notificaciones. */
.logistica-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem; }
.logistica-facts { display: grid; grid-template-columns: minmax(6rem, 9rem) 1fr; gap: .35rem 1rem; }
.logistica-facts dd { overflow-wrap: anywhere; margin-bottom: .5rem; }
.logistica-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.solicitud-state { display: inline-block; padding: .3rem .75rem; border-radius: 1rem; color: var(--pbs-primary-dark); background: var(--pbs-primary-light); font-weight: 600; }
.quotation-table { min-width: 75rem; }
.quotation-table caption { padding: .75rem 1rem; caption-side: top; color: var(--pbs-text); font-weight: 600; }
.quotation-version { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--pbs-border); }
.solicitud-timeline { list-style: none; margin: 1rem 0; padding-left: 1rem; border-left: 2px solid var(--pbs-primary); }
.solicitud-timeline > li { padding: .5rem 0 1.5rem 1rem; }
.solicitud-timeline time { color: var(--pbs-text-muted); font-size: .875rem; margin-left: .5rem; }
.attachment-picker { padding-block: .5rem; }
.attachment-picker input { display: block; margin-top: .5rem; max-width: 100%; }
.document-slot { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; padding-block: .65rem; border-bottom: 1px solid var(--pbs-border); }
.document-slot > label { flex: 0 0 13rem; margin: 0; }
.company-manager-facts { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: .25rem .75rem; margin: .75rem 0 0; }
.company-manager-facts dd { overflow-wrap: anywhere; margin: 0; }
.attachment-links { padding-left: 1.25rem; }
.decision-dialog-backdrop { position: fixed; inset: 0; z-index: 1050; display: grid; place-items: center; overflow-y: auto; padding: 1rem; background: rgb(15 23 42 / 55%); }
.decision-dialog { width: min(100%, 38rem); max-height: min(90vh, 52rem); overflow-y: auto; border-radius: 8px; box-shadow: 0 1rem 3rem rgb(0 0 0 / 20%); }
.decision-dialog label { margin-block: .4rem; }
.decision-dialog textarea { min-height: 6rem; margin-top: .35rem; }
.bitacora-filters .logistica-facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem 1rem; }
.bitacora-filters label { display: grid; gap: .3rem; }
.bitacora-event { border-bottom: 1px solid var(--border-color, var(--pbs-t-border, #d7dde2)); padding-block: .6rem; }
.bitacora-event pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 40rem) { .decision-dialog-backdrop { align-items: end; padding: .5rem; } .decision-dialog { max-height: 92vh; } }
.audit-data { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 35rem; }
.notification-unread { border-left: 4px solid var(--pbs-primary); }
.notification-bell { position: relative; }
.notification-bell > summary { cursor: pointer; padding: .35rem .6rem; border-radius: .5rem; list-style: none; color: var(--pbs-primary-dark); background: var(--pbs-primary-light); }
.notification-popover { position: absolute; right: 0; top: 100%; z-index: 20; width: min(22rem, 80vw); padding: 1rem; background: var(--pbs-surface); border: 1px solid var(--pbs-border); border-radius: .75rem; box-shadow: var(--pbs-shadow); white-space: normal; }
.notification-preview { padding: .6rem 0; border-bottom: 1px solid var(--pbs-border); }
.notification-preview small { display: block; color: var(--pbs-text-muted); }
.notification-preview .btn-link { padding: 0; text-align: left; }
.notification-bell summary:focus-visible { outline: 2px solid var(--pbs-primary-dark); outline-offset: 2px; }
.ticket-popup-backdrop { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 1rem; background: rgb(15 23 42 / 58%); }
.ticket-popup { width: min(100%, 32rem); max-height: 90dvh; overflow-y: auto; padding: 2rem; border: 1px solid var(--pbs-border); border-radius: .5rem; background: var(--pbs-surface); box-shadow: 0 1.25rem 4rem rgb(15 23 42 / 28%); text-align: center; }
.ticket-popup:focus { outline: none; }
.ticket-popup-icon { display: grid; width: 4rem; height: 4rem; place-items: center; margin: 0 auto 1rem; border: 3px solid currentColor; border-radius: 50%; font-size: 2.5rem; font-weight: 700; line-height: 1; }
.ticket-popup h2 { margin: 0 0 .65rem; font-size: 1.35rem; overflow-wrap: anywhere; }
.ticket-popup p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-popup-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.ticket-popup-details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem 1rem; margin: 1.25rem 0 0; text-align: left; }
.ticket-popup-details dt { color: var(--pbs-text-muted); font-weight: 500; }
.ticket-popup-details dd { margin: 0; overflow-wrap: anywhere; }
.ticket-result-visual { position: relative; width: 9rem; max-width: 100%; aspect-ratio: 1; margin: 0 auto 1rem; }
.ticket-result-animation { position: absolute; inset: 0; visibility: hidden; }
.ticket-result-animation svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ticket-result-fallback { position: absolute; inset: 1.5rem; display: grid; place-items: center; border: 3px solid currentColor; border-radius: 50%; font-size: 3rem; line-height: 1; }
.ticket-result-check { color: var(--pbs-t-success-text, #238344); }
.ticket-result-reject { color: var(--pbs-t-danger-text, #b42332); }
.ticket-result-visual[data-animation-state="ready"] .ticket-result-animation { visibility: visible; }
.ticket-result-visual[data-animation-state="ready"] .ticket-result-fallback { display: none; }
.ticket-popup-exito .ticket-popup-icon {
    position: relative;
    color: transparent;
    animation: ticket-success-circle .48s cubic-bezier(.2, .8, .2, 1) both;
}
.ticket-popup-exito .ticket-popup-icon::after {
    width: .75rem;
    height: 1.25rem;
    border-right: 3px solid var(--pbs-t-success-accent, #238344);
    border-bottom: 3px solid var(--pbs-t-success-accent, #238344);
    content: "";
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    animation: ticket-success-check .24s .2s ease-out forwards;
}
@keyframes ticket-success-circle {
    0% { opacity: 0; transform: scale(.45); }
    70% { opacity: 1; transform: scale(1.12); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes ticket-success-check {
    to { transform: rotate(45deg) scale(1); }
}
.ticket-popup-error .ticket-popup-icon { color: var(--pbs-t-danger-text, #b42332); }
.ticket-popup-advertencia .ticket-popup-icon { color: var(--pbs-t-warning-text, #a56a08); }
.ticket-popup-confirmacion .ticket-popup-icon { color: var(--pbs-primary-dark); }
.field-invalid { border-color: var(--pbs-t-danger-accent, #b42332) !important; box-shadow: 0 0 0 .15rem rgb(180 35 50 / 14%) !important; }
.form-control.invalid, .form-select.invalid { border-color: var(--pbs-t-danger-accent, #b42332); }
.field-error { display: block; margin-top: .25rem; color: var(--pbs-t-danger-text, #9f1d2b); font-size: .875rem; }
.revision-rechazada-vigente { border-left: 4px solid var(--pbs-t-danger-accent, #b42332); background: var(--pbs-t-danger-bg, #fff8f7); }
.revision-rechazada-vigente .rejection-summary { margin-top: 1rem; padding: 1rem; border: 1px solid var(--pbs-t-danger-border, #e8a5a9); border-left: 5px solid var(--pbs-t-danger-accent, #b42332); background: var(--pbs-t-danger-bg, #fff0ef); color: var(--pbs-t-danger-text, #5f1720); }
.revision-rechazada-vigente .rejection-summary h3 { margin-top: .5rem; color: var(--pbs-t-danger-text, #8f1d2c); }
.rework-status { display: inline-block; padding: .25rem .5rem; border: 1px solid var(--pbs-t-danger-accent, #b42332); color: var(--pbs-t-danger-text, #8f1d2c); font-size: .8rem; font-weight: 700; }
/* Correcciones de Preventa: hermano verde del recuadro rojo de rechazo, con los mismos tokens de tema. */
.correction-summary { margin-top: 1rem; padding: 1rem; border: 1px solid var(--pbs-t-success-border, #a9d3b4); border-left: 5px solid var(--pbs-t-success-accent, #1f7a3d); background: var(--pbs-t-success-bg, #f1f9f3); color: var(--pbs-t-success-text, #14532a); }
.correction-summary h3 { margin-top: 0; color: var(--pbs-t-success-text, #14532a); }
.correction-summary .correction-author { margin-bottom: .5rem; font-size: .875rem; }
.correction-summary ul { margin-bottom: 0; }
/* Numero de Orden de Compra: acento azul, para no confundirlo con el rojo de rechazo ni el verde de correcciones. */
.order-number-highlight { display: inline-flex; flex-direction: column; gap: .15rem; max-width: 100%; margin: .25rem 0 .75rem; padding: .7rem 1.1rem; border: 1px solid var(--pbs-t-info-border, #a8c7e7); border-left: 5px solid var(--pbs-t-info-text, #0b4f8a); border-radius: .35rem; background: var(--pbs-t-info-bg, #eef5fc); color: var(--pbs-t-info-text, #0b4f8a); }
.order-number-label { font-size: .8rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.order-number-value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .order-number-highlight { display: flex; } .order-number-value { font-size: 1.5rem; } }
#motivo-rechazo, #mensajes, #numero-orden-compra { scroll-margin-top: 1rem; }
.document-current { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .4rem 0; overflow-wrap: anywhere; }
.document-current-links { display: inline-flex; gap: .75rem; }
.attachment-invalid { border-left: 4px solid var(--pbs-t-danger-accent, #b42332); padding-left: .75rem; }
.last-use-actions { display: grid; gap: .45rem; max-width: 54rem; margin-block: 1rem; }
.last-use-picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; align-items: center; }
@media (max-width: 575.98px) { .last-use-picker { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .ticket-popup { padding: 1.5rem 1.1rem; } }
@media (prefers-reduced-motion: reduce) {
    .ticket-popup-exito .ticket-popup-icon,
    .ticket-popup-exito .ticket-popup-icon::after { animation: none; }
    .ticket-popup-exito .ticket-popup-icon::after { transform: rotate(45deg) scale(1); }
}

.pbs-shell .admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0 0 1rem;
    border-bottom: 1px solid var(--pbs-border, var(--pbs-t-border, #d4dde2));
}

.pbs-shell .admin-tab {
    display: inline-flex;
    align-items: center;
    min-height: 2.65rem;
    padding: .55rem .9rem;
    border-bottom: 3px solid transparent;
    color: var(--pbs-text, var(--pbs-t-heading, #254451));
    font-weight: 600;
    text-decoration: none;
}

.pbs-shell .admin-tab:hover { background: rgb(28 105 113 / 7%); }
.pbs-shell .admin-tab:focus-visible { outline: 2px solid var(--pbs-primary, var(--pbs-t-accent, #176a72)); outline-offset: 2px; }
.pbs-shell .admin-tab.active { border-bottom-color: var(--pbs-primary, var(--pbs-t-accent, #176a72)); color: var(--pbs-primary, var(--pbs-t-info-text, #176a72)); }
.pbs-shell .users-result-count { margin: .65rem 0; color: var(--pbs-text-muted, var(--pbs-t-muted, #5b6d75)); font-size: .9rem; }
.pbs-shell .users-load-state { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.pbs-shell .users-load-state p { margin: 0; }
.pbs-shell .user-row-selected { background: rgb(25 135 84 / 9%); }
.pbs-shell .users-pagination { display: flex; align-items: center; justify-content: flex-end; gap: .8rem; margin-top: .85rem; }

@media (max-width: 575.98px) {
    .pbs-shell .users-pagination { justify-content: space-between; gap: .45rem; }
    .pbs-shell .users-pagination span { text-align: center; }
}
.quotation-editor { min-width: 120rem; margin-block: 1rem; } .quotation-editor td { min-width: 8rem; } .quotation-editor td:nth-child(4) { min-width: 18rem; } .quotation-editor small { display: block; margin-top: .3rem; }
@media (max-width: 767.98px) { .notification-popover { left: 0; right: auto; } }

/* Tablero de Logística. */
.logistica-hero { margin-bottom: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--pbs-t-info-border, #c9eaf8); border-radius: 1rem; background: linear-gradient(120deg, var(--pbs-t-surface, #fff) 0%, var(--pbs-primary-light) 100%); box-shadow: var(--pbs-shadow); }
.logistica-company { margin: 0 0 .4rem; color: var(--pbs-primary-dark); font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.logistica-hero-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.logistica-hero-heading h1 { margin-bottom: .35rem; }
.logistica-hero-heading p { margin: 0; color: var(--pbs-text-muted); }
.logistica-tabs { display: flex; gap: .3rem; margin: 0 0 1.25rem; border-bottom: 1px solid var(--pbs-border); overflow-x: auto; }
.logistica-tabs button { flex: 0 0 auto; padding: .7rem 1rem; border: 0; border-bottom: 3px solid transparent; color: var(--pbs-text-muted); background: transparent; font-weight: 600; }
.logistica-tabs button:hover { color: var(--pbs-primary-dark); background: var(--pbs-primary-light); }
.logistica-tabs button.active { border-bottom-color: var(--pbs-primary-dark); color: var(--pbs-primary-dark); }
.logistica-tabs button:focus-visible { outline: 2px solid var(--pbs-primary-dark); outline-offset: -2px; }
.logistica-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.logistica-kpi { min-height: 9.5rem; padding: 1.1rem; border: 1px solid var(--pbs-border); border-top: 4px solid var(--pbs-primary); border-radius: .85rem; background: var(--pbs-surface); box-shadow: 0 .25rem 1rem rgb(31 41 55 / 5%); }
.logistica-kpi span, .logistica-kpi small { display: block; color: var(--pbs-text-muted); }
.logistica-kpi span { font-weight: 600; }
.logistica-kpi strong { display: block; margin: .35rem 0; color: var(--pbs-text); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; }
.logistica-kpi--orange { border-top-color: var(--pbs-t-warning-accent, #ea8a1f); }.logistica-kpi--yellow { border-top-color: var(--pbs-t-warning-accent, #c6a112); }.logistica-kpi--green { border-top-color: var(--pbs-success); }
.logistica-filters { margin-bottom: 1.25rem; }
.logistica-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .85rem 1rem; align-items: end; }
.logistica-filter-grid label { display: block; margin-bottom: .35rem; }
.logistica-filters .security-actions { margin-top: 1rem; }
.logistica-table { min-width: 66rem; }.logistica-table tbody tr { cursor: default; }.logistica-table tbody tr:hover { background: var(--pbs-t-surface-muted, #f7fbfe); }
.solicitud-state { border: 1px solid transparent; white-space: nowrap; }
.estado-borrador { color: var(--pbs-t-muted, #566273); background: var(--pbs-t-surface-muted, #eef1f5); border-color: var(--pbs-t-border, #d9e0e7); }.estado-pendiente { color: var(--pbs-t-warning-text, #956313); background: var(--pbs-t-warning-bg, #fff4db); border-color: var(--pbs-t-warning-border, #f2d08c); }.estado-revision { color: var(--pbs-t-info-text, #126b91); background: var(--pbs-t-info-bg, #e5f5fc); border-color: var(--pbs-t-info-border, #a9dcec); }.estado-ajuste { color: var(--pbs-t-warning-text, #925a08); background: var(--pbs-t-warning-bg, #fff0db); border-color: var(--pbs-t-warning-border, #f2ce91); }.estado-aceptada { color: var(--pbs-t-success-text, #176b32); background: var(--pbs-t-success-bg, #e6f6eb); border-color: var(--pbs-t-success-border, #a9dfb9); }.estado-rechazada, .estado-cancelada { color: var(--pbs-t-danger-text, #9d2632); background: var(--pbs-t-danger-bg, #fbeaec); border-color: var(--pbs-t-danger-border, #efc0c5); }
.logistica-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.logistica-request-card { padding: 1.1rem; border: 1px solid var(--pbs-border); border-radius: .85rem; background: var(--pbs-surface); box-shadow: 0 .25rem 1rem rgb(31 41 55 / 5%); }
.logistica-card-top { display: flex; align-items: start; justify-content: space-between; gap: .6rem; }.logistica-card-top a { font-weight: 700; }.logistica-request-card h2 { margin: 1rem 0 .25rem; font-size: 1.1rem; }.logistica-request-card p { min-height: 3.25rem; color: var(--pbs-text-muted); }.logistica-request-card dl { display: grid; grid-template-columns: 5.5rem 1fr; gap: .35rem .5rem; margin: 0; font-size: .875rem; }.logistica-request-card dd { margin: 0; overflow-wrap: anywhere; }.logistica-request-card dt { color: var(--pbs-text-muted); font-weight: 600; }
.logistica-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: var(--pbs-text-muted); }.logistica-pagination div { display: flex; gap: .5rem; }.logistica-empty { padding: 1.5rem; border: 1px dashed var(--pbs-border); border-radius: .75rem; color: var(--pbs-text-muted); text-align: center; }
.timeline-type { display: inline-block; margin-left: .4rem; padding: .08rem .4rem; border-radius: .35rem; color: var(--pbs-primary-dark); background: var(--pbs-primary-light); font-size: .75rem; font-weight: 600; }.timeline-quotation { display: inline-block; margin-top: .35rem; font-size: .875rem; }
@media (max-width: 991.98px) { .logistica-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .logistica-hero-heading, .logistica-pagination { align-items: stretch; flex-direction: column; }.logistica-hero-heading .security-actions { width: 100%; }.logistica-hero-heading .btn { flex: 1 1 auto; }.logistica-kpis { grid-template-columns: 1fr; }.logistica-pagination div { width: 100%; }.logistica-pagination .btn { flex: 1 1 50%; } }

/* Bitacora ejecutiva. */
.bitacora-page { display: grid; gap: 1.15rem; min-width: 0; }
.bitacora-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem 1.5rem; border: 1px solid var(--pbs-t-border, #DFE6ED); border-left: 5px solid var(--pbs-t-accent, #16749D); border-radius: 6px; background: var(--pbs-t-surface, #FFFFFF); }
.bitacora-brand { margin: 0 0 .3rem; color: var(--pbs-t-info-text, #16749D); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.bitacora-hero h1 { margin: 0; color: var(--pbs-t-heading, #163D59); font-size: 1.8rem; }
.bitacora-hero p:last-child { margin: .3rem 0 0; color: var(--pbs-t-muted, #526777); }
.bitacora-hero-mark { display: grid; width: 3.5rem; aspect-ratio: 1; place-items: center; border: 1px solid var(--pbs-t-border, #DFE6ED); border-radius: 6px; color: var(--pbs-t-info-text, #16749D); font-weight: 800; }
.bitacora-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.bitacora-kpi { position: relative; min-width: 0; min-height: 8.5rem; padding: .9rem; border: 1px solid var(--pbs-t-border, #DFE6ED); border-top: 3px solid var(--pbs-t-accent, #16749D); border-radius: 6px; background: var(--pbs-t-surface, #FFFFFF); }
.bitacora-kpi h2 { margin: .2rem 0 0; color: var(--pbs-t-muted, #526777); font-size: .8rem; font-weight: 650; }
.bitacora-kpi strong { display: block; margin: .45rem 0 .2rem; color: var(--pbs-t-heading, #163D59); font-size: 1.55rem; line-height: 1.15; overflow-wrap: anywhere; }
.bitacora-kpi small { color: var(--pbs-t-muted, #526777); line-height: 1.35; }
.bitacora-kpi-icon { display: inline-grid; width: 1.5rem; height: 1.5rem; place-items: center; border-radius: 4px; color: var(--pbs-t-info-text, #16749D); background: var(--pbs-t-info-bg, #EAF3F7); font-size: 1rem; font-weight: 700; }
.bitacora-kpi--orange { border-top-color: var(--pbs-t-warning-accent, #C47B18); }.bitacora-kpi--orange .bitacora-kpi-icon { color: var(--pbs-t-warning-text, #8C570F); background: var(--pbs-t-warning-bg, #FFF3DB); }
.bitacora-kpi--green { border-top-color: var(--pbs-t-success-accent, #398153); }.bitacora-kpi--green .bitacora-kpi-icon { color: var(--pbs-t-success-text, #28663E); background: var(--pbs-t-success-bg, #E7F3EA); }
.bitacora-kpi--red { border-top-color: var(--pbs-t-danger-accent, #B75757); }.bitacora-kpi--red .bitacora-kpi-icon { color: var(--pbs-t-danger-text, #8F3434); background: var(--pbs-t-danger-bg, #F8EAEA); }
.bitacora-kpi--time { border-top-color: var(--pbs-t-neutral-accent, #677A86); }.bitacora-kpi--time .bitacora-kpi-icon { color: var(--pbs-t-muted, #465D6B); background: var(--pbs-t-surface-strong, #EDF1F3); }
.bitacora-skeleton { color: var(--pbs-t-subtle, #91A0A8) !important; }
.bitacora-tools { padding: 1rem; border: 1px solid var(--pbs-t-border, #DFE6ED); border-radius: 6px; background: var(--pbs-t-surface, #FFFFFF); }
.bitacora-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.bitacora-section-heading h2 { margin: 0; color: var(--pbs-t-heading, #163D59); font-size: 1.1rem; }
.bitacora-section-heading p { margin: .2rem 0 0; color: var(--pbs-t-muted, #526777); font-size: .9rem; }
.bitacora-result-count { color: var(--pbs-t-muted, #526777); font-size: .9rem; white-space: nowrap; }
.bitacora-filter-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; align-items: end; }
.bitacora-filter-form label { display: grid; gap: .25rem; color: var(--pbs-t-heading, #163D59); font-size: .875rem; }
.bitacora-filter-actions { display: flex; gap: .5rem; grid-column: 1 / -1; }
.bitacora-ticket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.bitacora-ticket { min-width: 0; padding: 1rem; border: 1px solid var(--pbs-t-border, #DFE6ED); border-radius: 6px; background: var(--pbs-t-surface, #FFFFFF); }
.bitacora-ticket > header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.bitacora-ticket-label { color: var(--pbs-t-muted, #526777); font-size: .75rem; font-weight: 650; text-transform: uppercase; }
.bitacora-ticket h3 { margin: .15rem 0 0; color: var(--pbs-t-heading, #163D59); font-size: 1.3rem; }
.bitacora-ticket-title { min-height: 1.5rem; margin: .65rem 0; font-weight: 650; overflow-wrap: anywhere; }
.bitacora-ticket dl { display: grid; grid-template-columns: minmax(5.5rem, .4fr) minmax(0, 1fr); gap: .35rem .6rem; margin: 0; font-size: .875rem; }
.bitacora-ticket dt { color: var(--pbs-t-muted, #526777); }.bitacora-ticket dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.bitacora-ticket footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--pbs-t-border, #DFE6ED); color: var(--pbs-t-muted, #526777); font-size: .8rem; }
.bitacora-state { display: inline-flex; align-items: center; min-height: 1.65rem; padding: .18rem .5rem; border: 1px solid transparent; border-radius: 4px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.bitacora-state--review { color: var(--pbs-t-info-text, #155E75); border-color: var(--pbs-t-info-border, #A9D3DF); background: var(--pbs-t-info-bg, #E8F4F7); }
.bitacora-state--paused { color: var(--pbs-t-warning-text, #80520D); border-color: var(--pbs-t-warning-border, #E6C98C); background: var(--pbs-t-warning-bg, #FFF5DF); }
.bitacora-state--approved { color: var(--pbs-t-success-text, #28663E); border-color: var(--pbs-t-success-border, #AED2B8); background: var(--pbs-t-success-bg, #EAF4EC); }
.bitacora-state--cancelled { color: var(--pbs-t-danger-text, #873E3E); border-color: var(--pbs-t-danger-border, #E0B5B5); background: var(--pbs-t-danger-bg, #F8ECEC); }
.bitacora-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .25rem 1rem; color: var(--pbs-t-muted, #526777); }
.bitacora-pagination > div { display: flex; gap: .5rem; }
.bitacora-empty { padding: 1.5rem; border: 1px dashed var(--pbs-t-border-strong, #B9C6CD); border-radius: 6px; color: var(--pbs-t-muted, #526777); text-align: center; background: var(--pbs-t-surface, #FFFFFF); }
@media (max-width: 1100px) { .bitacora-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .bitacora-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }.bitacora-ticket-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .bitacora-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }.bitacora-kpi { min-height: 8.2rem; padding: .7rem; }.bitacora-kpi strong { font-size: 1.35rem; }.bitacora-hero { padding: 1rem; }.bitacora-filter-form { grid-template-columns: 1fr; }.bitacora-filter-actions { flex-wrap: wrap; }.bitacora-filter-actions button { flex: 1 1 auto; }.bitacora-pagination { align-items: stretch; flex-direction: column; }.bitacora-pagination > div button { flex: 1; } }
.bitacora-detail { display: grid; gap: 1rem; min-width: 0; }
.bitacora-detail-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bitacora-detail-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem; border: 1px solid var(--pbs-t-border, #DFE6ED); border-left: 5px solid var(--pbs-t-accent, #16749D); border-radius: 6px; background: var(--pbs-t-surface, #FFFFFF); }
.bitacora-detail-hero h1 { margin: 0; color: var(--pbs-t-heading, #163D59); font-size: 1.65rem; }
.bitacora-detail-hero p:last-child { margin: .3rem 0 0; color: var(--pbs-t-muted, #526777); overflow-wrap: anywhere; }
.bitacora-overview { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(19rem, .85fr); gap: 1rem; }
.bitacora-overview-main, .bitacora-overview-next, .bitacora-detail-section { min-width: 0; padding: 1rem; border: 1px solid var(--pbs-t-border, #DFE6ED); border-radius: 6px; background: var(--pbs-t-surface, #FFFFFF); }
.bitacora-overview h2, .bitacora-detail-heading h2 { margin: 0; color: var(--pbs-t-heading, #163D59); font-size: 1.1rem; }
.bitacora-owner { margin: .75rem 0 .1rem; color: var(--pbs-t-info-text, #16749D); font-size: 1.05rem; font-weight: 700; }
.bitacora-overview-main > p:not(.bitacora-owner) { margin: 0 0 .8rem; color: var(--pbs-t-muted, #526777); }
.bitacora-facts { display: grid; grid-template-columns: minmax(7rem, .35fr) minmax(0, 1fr); gap: .4rem .7rem; margin: .5rem 0 0; }
.bitacora-facts dt { color: var(--pbs-t-muted, #526777); }.bitacora-facts dd { margin: 0; color: var(--pbs-t-heading, #163D59); overflow-wrap: anywhere; }
.bitacora-journey { display: grid; gap: .4rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.bitacora-journey li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); align-items: start; gap: .55rem; min-width: 0; }
.bitacora-journey li > span { display: grid; width: 1.65rem; aspect-ratio: 1; place-items: center; border: 1px solid var(--pbs-t-border-strong, #AFC6D0); border-radius: 50%; color: var(--pbs-t-info-text, #155E75); background: var(--pbs-t-info-bg, #E8F4F7); font-size: .8rem; font-weight: 700; }
.bitacora-journey li.is-paused > span { color: var(--pbs-t-warning-text, #80520D); border-color: var(--pbs-t-warning-border, #E6C98C); background: var(--pbs-t-warning-bg, #FFF5DF); }
.bitacora-journey li div { min-width: 0; padding: .1rem 0 .45rem; border-bottom: 1px solid var(--pbs-t-border-subtle, #EDF0F2); }
.bitacora-journey strong, .bitacora-journey small { display: block; overflow-wrap: anywhere; }.bitacora-journey small { margin-top: .15rem; color: var(--pbs-t-muted, #526777); }
.bitacora-detail-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; color: var(--pbs-t-muted, #526777); font-size: .9rem; }
.bitacora-ticket-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; }
.bitacora-ticket-metrics article { min-width: 0; padding: .75rem; border: 1px solid var(--pbs-t-border, #DFE6ED); border-radius: 5px; background: var(--pbs-t-surface-muted, #F3F6FA); }
.bitacora-ticket-metrics span, .bitacora-ticket-metrics strong { display: block; }.bitacora-ticket-metrics span { color: var(--pbs-t-muted, #526777); font-size: .82rem; }.bitacora-ticket-metrics strong { margin-top: .3rem; color: var(--pbs-t-heading, #163D59); font-size: 1rem; overflow-wrap: anywhere; }
.bitacora-period-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .75rem; }
.bitacora-period { min-width: 0; padding: .8rem; border: 1px solid var(--pbs-t-border, #DFE6ED); border-left: 4px solid var(--pbs-t-neutral-accent, #677A86); border-radius: 5px; }
.bitacora-period--complete { border-left-color: var(--pbs-t-success-accent, #398153); }.bitacora-period--cancelled { border-left-color: var(--pbs-t-danger-accent, #B75757); }.bitacora-period--open { border-left-color: var(--pbs-t-warning-accent, #C47B18); }
.bitacora-period header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }.bitacora-period h3 { margin: 0; color: var(--pbs-t-heading, #163D59); font-size: 1rem; }.bitacora-period header span { color: var(--pbs-t-muted, #526777); font-size: .78rem; text-align: right; }
.bitacora-period p { margin: .55rem 0; color: var(--pbs-t-muted, #526777); font-size: .85rem; overflow-wrap: anywhere; }.bitacora-period dl { display: grid; grid-template-columns: minmax(6rem, .5fr) minmax(0, 1fr); gap: .25rem .5rem; margin: 0; font-size: .83rem; }.bitacora-period dt { color: var(--pbs-t-muted, #526777); }.bitacora-period dd { margin: 0; overflow-wrap: anywhere; }
.bitacora-revision { margin-top: .75rem; padding: .9rem; border: 1px solid var(--pbs-t-border, #DFE6ED); border-radius: 5px; }.bitacora-revision > header { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; }.bitacora-revision h3 { margin: 0; color: var(--pbs-t-heading, #163D59); font-size: 1rem; }.bitacora-revision header p { margin: .2rem 0 .6rem; color: var(--pbs-t-muted, #526777); font-size: .85rem; }.bitacora-revision h4 { margin: .75rem 0 .4rem; font-size: .9rem; }.bitacora-reasons { margin: .35rem 0; padding-left: 1.15rem; }.bitacora-reasons li { margin: .35rem 0; }.bitacora-reasons p { margin: .25rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bitacora-document-list { display: grid; gap: .4rem; margin: .4rem 0; padding: 0; list-style: none; }.bitacora-document-list li { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--pbs-t-border-subtle, #EDF0F2); overflow-wrap: anywhere; }.bitacora-document-list li > span:first-child { min-width: 0; }.bitacora-document-list a { white-space: nowrap; }
.bitacora-timeline { position: relative; display: grid; gap: .75rem; margin: 0; padding: 0 0 0 1.55rem; list-style: none; }.bitacora-timeline::before { position: absolute; top: .5rem; bottom: .5rem; left: .49rem; width: 2px; background: var(--pbs-t-border-strong, #C8D6DC); content: ""; }
.bitacora-timeline-item { position: relative; min-width: 0; }.bitacora-timeline-marker { position: absolute; top: .65rem; left: -1.55rem; display: grid; width: 1.05rem; aspect-ratio: 1; place-items: center; border: 2px solid var(--pbs-t-accent, #16749D); border-radius: 50%; color: var(--pbs-t-info-text, #155E75); background: var(--pbs-t-surface, #FFFFFF); font-size: .7rem; font-weight: 800; }
.bitacora-timeline--approved .bitacora-timeline-marker { border-color: var(--pbs-t-success-accent, #398153); color: var(--pbs-t-success-text, #28663E); }.bitacora-timeline--rejected .bitacora-timeline-marker, .bitacora-timeline--cancelled .bitacora-timeline-marker { border-color: var(--pbs-t-danger-accent, #B75757); color: var(--pbs-t-danger-text, #873E3E); }.bitacora-timeline--resent .bitacora-timeline-marker { border-color: var(--pbs-t-warning-accent, #C47B18); color: var(--pbs-t-warning-text, #80520D); }
.bitacora-timeline-item article { min-width: 0; padding: .8rem; border: 1px solid var(--pbs-t-border, #DFE6ED); border-radius: 5px; background: var(--pbs-t-surface, #FFFFFF); }.bitacora-timeline-item header { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; }.bitacora-timeline-item h3 { margin: 0; color: var(--pbs-t-heading, #163D59); font-size: 1rem; }.bitacora-timeline-item time { color: var(--pbs-t-muted, #526777); font-size: .82rem; white-space: nowrap; }.bitacora-timeline-item p { margin: .4rem 0; overflow-wrap: anywhere; }.bitacora-event-owner { color: var(--pbs-t-muted, #526777); font-size: .84rem; }
.bitacora-timeline-item dl { display: grid; grid-template-columns: minmax(8rem, .35fr) minmax(0, 1fr); gap: .3rem .65rem; margin: .6rem 0 0; padding-top: .55rem; border-top: 1px solid var(--pbs-t-border-subtle, #EDF0F2); font-size: .88rem; }.bitacora-timeline-item dt { color: var(--pbs-t-muted, #526777); }.bitacora-timeline-item dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }.bitacora-document-link { font-size: .86rem; }
@media (max-width: 900px) { .bitacora-overview { grid-template-columns: 1fr; }.bitacora-ticket-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bitacora-detail-hero, .bitacora-detail-nav { align-items: stretch; flex-direction: column; }.bitacora-detail-hero { gap: .75rem; }.bitacora-detail-hero .bitacora-state { align-self: flex-start; }.bitacora-ticket-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }.bitacora-detail-heading { align-items: flex-start; flex-direction: column; }.bitacora-document-list li, .bitacora-timeline-item header { align-items: flex-start; flex-direction: column; }.bitacora-timeline-item time { white-space: normal; }.bitacora-timeline-item dl { grid-template-columns: 1fr; gap: .1rem; }.bitacora-timeline-item dd { margin-bottom: .35rem; }.bitacora-facts { grid-template-columns: minmax(6rem, .45fr) minmax(0, 1fr); } }
.catalog-admin-alphabet { display: flex; flex-wrap: wrap; gap: .25rem; margin: .75rem 0; }
.catalog-admin-alphabet .btn { min-width: 2rem; }

/* Shared PBS interface refinements */
:root {
    --pbs-primary: #1597c8;
    --pbs-primary-dark: #126d91;
    --pbs-primary-hover: #0f5e7e;
    --pbs-primary-light: #eaf5f9;
    --pbs-background: #f4f7f9;
    --pbs-text: #243746;
    --pbs-text-muted: #617481;
    --pbs-border: #d9e2e8;
    --pbs-input-border: #8799a5;
    --pbs-success: #28784b;
    --pbs-shadow: 0 .35rem 1.2rem rgb(25 50 65 / 8%);
}

.pbs-shell {
    min-height: 100dvh;
    color: var(--pbs-text);
    background: var(--pbs-background);
}

.pbs-shell main,
.pbs-shell .content,
.pbs-shell article.content > * {
    min-width: 0;
}

.pbs-shell article.content:has(> .dashboard-page),
.pbs-shell article.content:has(> .bitacora-page),
.pbs-shell article.content:has(> .home-dashboard),
.pbs-shell article.content:has(> .logistica-hero) {
    max-width: none;
}

.pbs-shell h1 {
    margin-bottom: .55rem;
    color: var(--pbs-t-heading, #183b50);
    font-size: 1.8rem;
    font-weight: 650;
    line-height: 1.25;
}

.pbs-shell h2 {
    color: var(--pbs-t-heading, #21485d);
    font-size: 1.15rem;
    font-weight: 650;
}

.pbs-shell p {
    line-height: 1.5;
}

.pbs-shell .security-panel,
.pbs-shell .bitacora-tools,
.pbs-shell .home-section,
.pbs-shell .logistica-request-card,
.pbs-shell .notification-item {
    border-color: var(--pbs-border);
    border-radius: .375rem;
    background: var(--pbs-t-surface, #fff);
    box-shadow: none;
}

.pbs-shell .security-panel {
    padding: 1.1rem;
}

.pbs-shell .form-control,
.pbs-shell .form-select,
.pbs-shell .role-picker-trigger {
    min-height: 2.75rem;
    border-radius: .375rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pbs-shell label {
    color: var(--pbs-t-text, #354e5d);
    font-weight: 600;
}

.pbs-shell .security-actions {
    gap: .55rem .7rem;
    margin-block: .85rem;
}

.pbs-shell .btn {
    min-height: 2.5rem;
    border-radius: .375rem;
    font-weight: 600;
}

.pbs-shell .btn-sm {
    min-height: 2.1rem;
}

.pbs-shell .table-responsive,
.pbs-shell .security-table-container {
    max-width: 100%;
    border-color: var(--pbs-border);
    border-radius: .375rem;
    background: var(--pbs-t-surface, #fff);
}

.pbs-shell .security-table {
    margin-bottom: 0;
}

.pbs-shell .security-table thead th {
    border-bottom-color: var(--pbs-t-border, #cbd8df);
    color: var(--pbs-t-heading, #29495a);
    background: var(--pbs-t-surface-strong, #edf3f6);
    font-size: .86rem;
    font-weight: 650;
    white-space: nowrap;
}

.pbs-shell .security-table td,
.pbs-shell .security-table th {
    padding: .72rem .8rem;
}

.pbs-shell .security-table tbody tr:hover > * {
    background: var(--pbs-t-surface-muted, #f5f9fb);
}

.pbs-shell .logistica-hero,
.pbs-shell .bitacora-hero {
    margin-bottom: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--pbs-border);
    border-left: 4px solid var(--pbs-primary-dark);
    border-radius: .375rem;
    background: var(--pbs-t-surface, #fff);
    box-shadow: none;
}

.pbs-shell .logistica-hero h1,
.pbs-shell .bitacora-hero h1 {
    margin-bottom: .35rem;
}

.pbs-shell .logistica-company,
.pbs-shell .bitacora-brand,
.pbs-shell .dashboard-brand {
    margin-bottom: .25rem;
    color: var(--pbs-primary-dark) !important;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.pbs-shell .bitacora-kpi,
.pbs-shell .dashboard-kpi {
    min-height: 7.25rem;
    border-color: var(--pbs-border);
    border-top-width: 3px;
    border-radius: .375rem;
    background: var(--pbs-t-surface, #fff);
    box-shadow: none;
}

.pbs-shell .bitacora-kpi h2,
.pbs-shell .dashboard-kpi h2 {
    min-height: 0;
}

.pbs-shell .bitacora-ticket,
.pbs-shell .bitacora-period,
.pbs-shell .bitacora-revision,
.pbs-shell .bitacora-timeline-item article {
    border-color: var(--pbs-border);
    border-radius: .375rem;
    background: var(--pbs-t-surface, #fff);
    box-shadow: none;
}

.pbs-shell .bitacora-ticket-grid,
.pbs-shell .logistica-cards {
    align-items: stretch;
}

.pbs-shell .bitacora-ticket footer {
    flex-wrap: wrap;
}

.pbs-shell .logistica-filters,
.pbs-shell .dashboard-filters {
    min-width: 0;
}

.pbs-shell .logistica-filter-grid,
.pbs-shell .bitacora-filter-form {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.pbs-shell .notification-item {
    margin-block: .75rem;
    padding: 1rem;
}

.pbs-shell .notification-unread {
    border-left: 3px solid var(--pbs-primary-dark);
}

.pbs-shell :where(button, a, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgb(21 151 200 / 45%);
    outline-offset: 2px;
}

.pbs-shell :where(input, select, textarea):disabled,
.pbs-shell fieldset:disabled :where(input, select, textarea) {
    color: var(--pbs-t-muted, #687b87);
    background-color: var(--pbs-t-surface-muted, #f0f3f5);
}

@media (min-width: 1500px) {
    .pbs-shell .content:has(> .dashboard-page),
    .pbs-shell .content:has(> .bitacora-page),
    .pbs-shell .content:has(> .home-dashboard),
    .pbs-shell .content:has(> .logistica-hero) {
        padding-inline: clamp(1.5rem, 2.25vw, 2.75rem);
    }
}

.pbs-shell .auth-card {
    width: min(100%, 29rem);
    margin: auto;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border-color: var(--pbs-border);
    border-top: 4px solid var(--pbs-primary-dark);
    border-radius: .5rem;
    box-shadow: 0 .75rem 2.25rem rgb(25 50 65 / 9%);
}

.pbs-shell .auth-card h1 {
    margin-bottom: .35rem;
}

.pbs-shell .auth-card > p {
    color: var(--pbs-text-muted);
}

.pbs-shell .ticket-chat,
.pbs-shell .ticket-popup,
.pbs-shell .decision-dialog {
    border-radius: .5rem;
}

.pbs-shell .ticket-popup {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.pbs-shell .decision-dialog-backdrop {
    backdrop-filter: blur(2px);
}

@media (max-width: 575.98px) {
    .pbs-shell .auth-card {
        padding: 1.35rem 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .pbs-shell h1 {
        font-size: 1.55rem;
    }

    .pbs-shell .security-panel,
    .pbs-shell .bitacora-tools,
    .pbs-shell .home-section {
        padding: .85rem;
    }

    .pbs-shell .logistica-hero,
    .pbs-shell .bitacora-hero {
        padding: .9rem 1rem;
    }

    .pbs-shell .table-responsive {
        overscroll-behavior-inline: contain;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pbs-shell *,
    .pbs-shell *::before,
    .pbs-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ===================================================================================
   Tema oscuro. Los tokens --pbs-t-* solo existen aquí: en el tema claro cada regla usa
   su color original como respaldo (var(--pbs-t-token, #color)), por lo que no cambia.
   Contraste verificado (WCAG AA): texto >= 4.5:1 y elementos gráficos >= 3:1.
   =================================================================================== */
:root { color-scheme: light; }

:root[data-theme="dark"] {
    color-scheme: dark;
    --pbs-primary: #38acde;
    --pbs-primary-dark: #62c3ec;
    --pbs-primary-hover: #93d7f3;
    --pbs-primary-light: #173a4c;
    --pbs-surface: #1a2530;
    --pbs-accion: #1c7aa3;
    --pbs-accion-hover: #15688d;
    --pbs-sidebar-bg: #0f2a39;
    --pbs-sidebar-hover-bg: rgb(255 255 255 / 12%);
    --pbs-background: #121b23;
    --pbs-text: #d4dfe7;
    --pbs-text-muted: #a5b5c1;
    --pbs-border: #344552;
    --pbs-input-border: #5b6f7d;
    --pbs-danger: #c9474f;
    --pbs-validation-error: #ff8a93;
    --pbs-success: #46b274;
    --pbs-warning-background: #352910;
    --pbs-focus-ring: 0 0 0 .2rem rgb(98 195 236 / 32%);
    --pbs-shadow: 0 .35rem 1.2rem rgb(0 0 0 / 38%);
    --pbs-estado-proceso: #4fb3e6;
    --pbs-estado-pausado: #e2a33a;
    --pbs-estado-aprobado: #46b274;
    --pbs-estado-cancelado: #e4646f;
    --pbs-grafico-principal: #45b3e0;
    --pbs-grafico-rechazo: #e4646f;
    --pbs-grafico-reenvio: #30afbc;
    --pbs-grafico-pista: #2a3a47;
    --bs-body-color: var(--pbs-text);
    --bs-body-bg: var(--pbs-background);
    --bs-border-color: var(--pbs-border);
    --bs-secondary-color: var(--pbs-text-muted);
    --bs-tertiary-bg: #202c37;
    --bs-link-color-rgb: 98, 195, 236;

    --pbs-t-surface: #1a2530;
    --pbs-t-surface-muted: #202c37;
    --pbs-t-surface-strong: #273642;
    --pbs-t-border: #344552;
    --pbs-t-border-subtle: #2a3843;
    --pbs-t-border-strong: #4a5e6c;
    --pbs-t-heading: #eaf1f6;
    --pbs-t-text: #d4dfe7;
    --pbs-t-muted: #a5b5c1;
    --pbs-t-subtle: #8394a1;
    --pbs-t-accent: #45b3e0;
    --pbs-t-info-bg: #16323f;
    --pbs-t-info-border: #2d6076;
    --pbs-t-info-text: #92d4ef;
    --pbs-t-success-bg: #15301f;
    --pbs-t-success-border: #2f6646;
    --pbs-t-success-accent: #46b274;
    --pbs-t-success-text: #8fdcab;
    --pbs-t-warning-bg: #352910;
    --pbs-t-warning-border: #7a5b20;
    --pbs-t-warning-accent: #e2a33a;
    --pbs-t-warning-text: #f3ca7d;
    --pbs-t-danger-bg: #391c22;
    --pbs-t-danger-border: #7c3742;
    --pbs-t-danger-accent: #e4646f;
    --pbs-t-danger-text: #f5aab1;
    --pbs-t-neutral-accent: #8ca0ad;
    --pbs-t-chart-success: #35b385;
    --pbs-t-chart-info: #30afbc;
    --pbs-t-chart-danger: #e4646f;
    /* Botones secundarios y de peligro con contorno. */
    --pbs-t-btn-secondary-bg: #1f2c37;
    --pbs-t-btn-secondary-border: #71889a;
    --pbs-t-btn-active-bg: #2f414f;
    --pbs-t-btn-danger-hover-bg: #b8323f;
    --pbs-t-btn-danger-active-bg: #9f2a36;
}

/* Bootstrap ya adapta sus componentes con data-bs-theme; estos ajustes mantienen la identidad PBS. */
:root[data-theme="dark"] .pbs-shell .form-control::placeholder { color: #8394a1; }
:root[data-theme="dark"] .pbs-shell :where(input, select, textarea):disabled,
:root[data-theme="dark"] .pbs-shell fieldset:disabled :where(input, select, textarea) { color: #8394a1; background-color: #202c37; }
:root[data-theme="dark"] .alert-warning { --bs-alert-color: #f3ca7d; --bs-alert-bg: #352910; --bs-alert-border-color: #7a5b20; }
:root[data-theme="dark"] .alert-danger { --bs-alert-color: #f5aab1; --bs-alert-bg: #391c22; --bs-alert-border-color: #7c3742; }
:root[data-theme="dark"] .alert-success { --bs-alert-color: #8fdcab; --bs-alert-bg: #15301f; --bs-alert-border-color: #2f6646; }
:root[data-theme="dark"] .alert-info { --bs-alert-color: #92d4ef; --bs-alert-bg: #16323f; --bs-alert-border-color: #2d6076; }
:root[data-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-color: var(--pbs-text); --bs-table-border-color: var(--pbs-border); --bs-table-hover-bg: rgb(255 255 255 / 4%); --bs-table-striped-bg: rgb(255 255 255 / 3%); }
:root[data-theme="dark"] .text-secondary { color: var(--pbs-text-muted) !important; }
:root[data-theme="dark"] .logistica-hero { background: linear-gradient(120deg, #1a2530 0%, var(--pbs-primary-light) 100%); }

/* Bootstrap fija btn-outline-secondary (#6c757d) y btn-outline-danger (#dc3545) sin variante oscura: sobre las superficies
   oscuras quedaban en ~3.3:1 y al deshabilitarse solo bajaba la opacidad, así que un botón disponible parecía inactivo.
   Habilitado: texto >= 7.6:1 y borde >= 3.8:1; hover y activo cambian fondo y borde; deshabilitado pierde fondo y borde. */
:root[data-theme="dark"] .btn-outline-secondary {
    --bs-btn-color: var(--pbs-t-text);
    --bs-btn-bg: var(--pbs-t-btn-secondary-bg);
    --bs-btn-border-color: var(--pbs-t-btn-secondary-border);
    --bs-btn-hover-color: var(--pbs-t-heading);
    --bs-btn-hover-bg: var(--pbs-t-surface-strong);
    --bs-btn-hover-border-color: var(--pbs-primary-dark);
    --bs-btn-active-color: var(--pbs-t-heading);
    --bs-btn-active-bg: var(--pbs-t-btn-active-bg);
    --bs-btn-active-border-color: var(--pbs-primary-dark);
    --bs-btn-focus-shadow-rgb: 98, 195, 236;
    --bs-btn-disabled-color: var(--pbs-t-subtle);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--pbs-t-border);
}
:root[data-theme="dark"] .btn-outline-danger {
    --bs-btn-color: var(--pbs-t-danger-text);
    --bs-btn-bg: var(--pbs-t-btn-secondary-bg);
    --bs-btn-border-color: var(--pbs-t-danger-accent);
    --bs-btn-hover-color: var(--pbs-white);
    --bs-btn-hover-bg: var(--pbs-t-btn-danger-hover-bg);
    --bs-btn-hover-border-color: var(--pbs-t-danger-accent);
    --bs-btn-active-color: var(--pbs-white);
    --bs-btn-active-bg: var(--pbs-t-btn-danger-active-bg);
    --bs-btn-active-border-color: var(--pbs-t-danger-accent);
    --bs-btn-focus-shadow-rgb: 228, 100, 111;
    --bs-btn-disabled-color: var(--pbs-t-subtle);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--pbs-t-danger-border);
}
/* El anillo de foco translúcido quedaba por debajo de 3:1 sobre el fondo oscuro; se usa el azul de marca del tema (7.8:1). */
:root[data-theme="dark"] .pbs-shell :where(button, a, input, select, textarea, summary):focus-visible,
:root[data-theme="dark"] .profile-trigger:focus-visible { outline-color: var(--pbs-primary-dark); }

/* Un botón deshabilitado mientras procesa (aria-busy) conserva sus colores normales para no confundirse con uno no
   disponible; sigue sin aceptar clics (pointer-events de Bootstrap), lo que evita envíos repetidos. */
.btn[aria-busy="true"]:disabled {
    color: var(--bs-btn-color);
    background-color: var(--bs-btn-bg);
    border-color: var(--bs-btn-border-color);
    opacity: 1;
    cursor: progress;
}

/* Menú de perfil. */
.profile-menu { position: relative; }
.profile-menu > summary { list-style: none; cursor: pointer; }
.profile-menu > summary::-webkit-details-marker { display: none; }
.profile-trigger { display: inline-grid; place-items: center; width: 2.6rem; aspect-ratio: 1; border-radius: 50%; }
.profile-trigger:focus-visible { outline: 3px solid rgb(21 151 200 / 45%); outline-offset: 2px; }
.profile-avatar {
    display: inline-grid; place-items: center; width: 2.4rem; aspect-ratio: 1; border: 1px solid var(--pbs-border);
    border-radius: 50%; color: var(--pbs-primary-dark); background: var(--pbs-primary-light);
    font-size: .875rem; font-weight: 700; letter-spacing: .02em; user-select: none;
}
.profile-menu[open] > summary .profile-avatar,
.profile-trigger:hover .profile-avatar { border-color: var(--pbs-primary-dark); }
.profile-avatar--large { flex: 0 0 auto; width: 2.75rem; font-size: 1rem; }
.profile-popover {
    position: absolute; top: calc(100% + .5rem); right: 0; z-index: 40; display: grid; gap: .2rem;
    width: min(20rem, calc(100vw - 2rem)); padding: .5rem; border: 1px solid var(--pbs-border); border-radius: .6rem;
    color: var(--pbs-text); background: var(--pbs-surface); box-shadow: 0 .75rem 2rem rgb(15 30 45 / 18%);
}
:root[data-theme="dark"] .profile-popover { box-shadow: 0 .75rem 2rem rgb(0 0 0 / 45%); }
.profile-header { display: flex; align-items: center; gap: .75rem; padding: .5rem .5rem .75rem; margin-bottom: .25rem; border-bottom: 1px solid var(--pbs-border); }
.profile-identity { display: grid; min-width: 0; line-height: 1.35; }
.profile-name { overflow-wrap: anywhere; }
.profile-email, .profile-role { color: var(--pbs-text-muted); font-size: .8125rem; overflow-wrap: anywhere; }
.profile-item {
    display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 2.5rem; padding: .45rem .6rem; border: 0; border-radius: .4rem;
    color: var(--pbs-text); background: transparent; font-weight: 600; text-align: left; text-decoration: none;
}
.profile-item:hover, .profile-item:focus-visible { color: var(--pbs-text); background: var(--pbs-primary-light); text-decoration: none; }
.profile-item--danger { color: var(--pbs-t-danger-text, #9f1d2b); }
.profile-item--danger:hover, .profile-item--danger:focus-visible { color: var(--pbs-t-danger-text, #9f1d2b); background: var(--pbs-t-danger-bg, #fbeaec); }
.profile-item-icon { display: inline-grid; place-items: center; width: 1.25rem; }
.profile-section { display: grid; gap: .35rem; padding: .5rem .6rem; border-top: 1px solid var(--pbs-border); }
.profile-section-title { color: var(--pbs-text-muted); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.profile-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
.profile-option {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.35rem; padding: .35rem .5rem;
    border: 1px solid var(--pbs-border); border-radius: .4rem; color: var(--pbs-text); background: transparent; font-weight: 600;
}
.profile-option:hover { border-color: var(--pbs-primary-dark); }
.profile-option[aria-pressed="true"] { border-color: var(--pbs-primary-dark); color: var(--pbs-primary-dark); background: var(--pbs-primary-light); box-shadow: inset 0 0 0 1px var(--pbs-primary-dark); }
.profile-option:disabled { opacity: .65; cursor: progress; }
.profile-hint { color: var(--pbs-text-muted); font-size: .75rem; }
.profile-status { margin: .25rem .6rem; padding: .45rem .6rem; border-radius: .4rem; color: var(--pbs-t-warning-text, #80520d); background: var(--pbs-t-warning-bg, #fff5df); font-size: .8125rem; }
.profile-logout { margin: 0; padding-top: .25rem; border-top: 1px solid var(--pbs-border); }
@media (max-width: 767.98px) {
    /* En móvil el panel ocupa el ancho de la barra superior para no salir de la pantalla. */
    .profile-menu { position: static; }
    .profile-popover { left: 1rem; right: 1rem; width: auto; }
}

/* Preferencias del dispositivo antes de iniciar sesión. */

/* Pestaña Tickets: filtros del Coordinador de Logística (Asignados a mí, Usuario de Logística, Usuario de Preventa). */
.tickets-coordinador-filtros { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: .7rem 1rem; align-items: end; margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--pbs-t-border, #DFE6ED); }
.tickets-coordinador-filtros > label { display: grid; gap: .25rem; color: var(--pbs-t-heading, #163D59); font-size: .875rem; }
.tickets-asignados { display: flex; align-items: center; gap: .5rem; min-height: 2.4rem; margin: 0; padding-left: 2.6em; font-weight: 600; color: var(--pbs-t-heading, #163D59); }
.tickets-asignados .form-check-input { width: 2.4em; height: 1.25em; cursor: pointer; }
.tickets-filtros-activos { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--pbs-t-muted, #5B6B7A); }
.tickets-preferencia { grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) { .tickets-coordinador-filtros { grid-template-columns: 1fr; } }
