:root {
    --ecs-color-primary: #CE3269;
    --ecs-color-primary-border: #B52A5C;
    --ecs-color-secondary: #F2F2F3;
    --ecs-color-surface: #ffffff;
    --ecs-color-surface-alt: #F2F2F3;
    --ecs-color-surface-soft: #E6E5E7;
    --ecs-color-background: #ffffff;
    --ecs-color-link: var(--ecs-color-primary);
    --ecs-color-focus: rgba(206, 50, 105, 0.22);
    --ecs-color-border: #D6D4D8;
    --ecs-color-text: #262429;
    --ecs-color-input-bg: #ffffff;
    --ecs-color-placeholder: #8E8992;
    --ecs-color-tertiary: #6c757d;
    --ecs-color-tertiary-border: #5a6268;
    --ecs-shadow-soft: 0 0.25rem 0.75rem rgba(38, 36, 41, 0.08);
    --ecs-font-sans: 'Canva Sans', 'Montserrat', 'Aptos', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ecs-font-serif: 'Playfair Display', Georgia, serif;
    --ecs-font-mono: 'IBM Plex Mono', 'Cascadia Code', Consolas, monospace;
    --ecs-page-max: 1240px;
    --bs-primary: var(--ecs-color-primary);
    --bs-primary-rgb: 206, 50, 105;
    --bs-primary-bg-subtle: #fbe1ea;
    --bs-primary-border-subtle: #f2b7ca;
    --bs-secondary: var(--ecs-color-secondary);
    --bs-secondary-rgb: 242, 242, 243;
    --bs-link-color: var(--ecs-color-link);
    --bs-link-hover-color: var(--ecs-color-primary-border);
}

.font-title {
    font-family: 'Montserrat', var(--ecs-font-sans);
    font-weight: 600;
    line-height: 1.02;
    color: var(--ecs-color-text);
}

/* Main hero heading broken into two parts: sans label + serif name */
.title-heading {
    font-family: var(--ecs-font-sans);
    font-weight: 500;
    line-height: 1.02;
    color: var(--ecs-color-text);
}

.title-sans {
font-family: 'Montserrat', var(--ecs-font-sans);
font-weight: 600; /* Montserrat Semi-Bold */
}

.title-name {
    font-family: var(--ecs-font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--ecs-color-primary);
}

@media (min-width: 768px) {
    .title-heading { font-size: 2.75rem; }
}

@media (min-width: 1200px) {
    .title-heading { font-size: 3.75rem; }
}

@media (min-width: 1400px) {
    :root { --ecs-page-max: 1400px; }
}

/* Page container to enforce horizontal margins */
.app-page-container {
    max-width: var(--ecs-page-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.is-supervisor .ecs-edit-danger-action,
.is-supervisor .btn-ecs-delete,
.is-supervisor .perfil-puesto-icon-delete,
.is-supervisor .delete-btn,
.is-supervisor .btn-remove-file,
.is-supervisor .questionnaire-option-remove,
.is-supervisor .periodos-row-remove,
.is-supervisor .js-remove,
.is-supervisor [data-delete],
.is-supervisor [onclick*="'delete'"],
.is-supervisor [onclick*='"delete"'],
.is-supervisor [onclick^="delete"],
.is-supervisor [onclick*="Delete"],
.is-supervisor [onclick*="remove"],
.is-supervisor [onclick*="Remove"] {
    display: none !important;
}

.course-edit-panel {
    padding: 1.35rem;
}

.course-edit-form {
    padding-bottom: 0;
}

.course-form-grid {
    align-items: start;
}

.course-field-full,
.course-form-section-title,
.course-rec-panel,
.course-switch-card {
    grid-column: 1 / -1;
}

.course-form-section-title {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-top: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(214, 212, 216, 0.72);
}

.course-form-section-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.course-form-section-title span {
    color: var(--ecs-color-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.course-form-section-title p {
    margin: 0;
    color: #777586;
    font-size: 0.86rem;
    font-weight: 600;
}

.course-edit-page .ecs-select-button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.participante-edit-panel {
    padding: 1.35rem;
}

.participante-edit-form {
    padding-bottom: 0;
}

.participante-read-card {
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 1rem;
    background: #fff;
}

.participante-form-grid {
    align-items: start;
}

.user-name-text,
.user-role-text {
    color: #3b3540;
    font-size: 0.92rem;
    font-weight: 700;
}

.user-last-login {
    display: inline-flex;
    flex-direction: column;
    gap: 0.08rem;
    color: #3b3540;
    line-height: 1.15;
}

.user-last-login strong {
    color: #17131c;
    font-size: 0.92rem;
    font-weight: 800;
}

.user-last-login span {
    color: #777586;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.user-last-login.is-empty {
    color: #8d8794;
    font-size: 0.86rem;
    font-weight: 700;
}

.user-edit-panel {
    padding: 1.35rem;
}

.user-edit-form {
    padding-bottom: 0;
}

.user-form-grid {
    align-items: start;
}

.user-comments-field textarea.ecs-control {
    min-height: 8.5rem;
    resize: vertical;
}

.user-role-panel,
.user-institution-section {
    border: 1px solid rgba(214, 212, 216, 0.92);
    border-radius: 1rem;
    background: #fff;
    padding: 1rem;
}

.user-role-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.75rem;
}

.user-role-option,
.user-picker-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3rem;
    border: 1px solid rgba(214, 212, 216, 0.92);
    border-radius: 0.95rem;
    background: var(--ecs-color-secondary);
    color: #312b37;
    cursor: pointer;
    font-weight: 800;
    padding: 0.65rem 0.85rem;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.user-role-option:hover,
.user-picker-row:hover {
    border-color: #f3c4d4;
    background: #fff5f8;
    color: var(--ecs-color-primary);
}

.user-role-option input,
.user-picker-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.user-role-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    border: 1px solid rgba(206, 50, 105, 0.42);
    border-radius: 0.35rem;
    background: #fff;
}

.user-role-check::after {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 0.2rem;
    background: var(--ecs-color-primary);
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.user-role-option input:checked + .user-role-check::after,
.user-picker-row input:checked + .user-role-check::after {
    opacity: 1;
    transform: scale(1);
}

.user-role-option:has(input:checked),
.user-picker-row:has(input:checked) {
    border-color: #f3c4d4;
    background: #fff5f8;
    color: var(--ecs-color-primary);
}

.user-institution-section {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.user-institution-section[hidden] {
    display: none;
}

.user-institution-section .course-form-section-title {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.user-institution-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    min-height: 2.5rem;
}

.user-institution-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.2rem;
    border: 1px solid #f3c4d4;
    border-radius: 999px;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    font-size: 0.84rem;
    font-weight: 800;
    padding: 0 0.45rem 0 0.85rem;
}

.user-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--ecs-color-primary);
    cursor: pointer;
}

.user-tag-remove:hover,
.user-tag-remove:focus-visible {
    background: #fce2eb;
    outline: none;
}

.user-tag-remove .material-symbols-outlined {
    font-size: 1rem;
}

.user-institution-action {
    align-self: flex-start;
}

.user-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(214, 212, 216, 0.92);
    background: #fff;
}

.user-picker-kicker {
    display: block;
    color: var(--ecs-color-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-picker-header h2 {
    margin: 0.1rem 0 0;
    color: #17131c;
    font-size: 1.35rem;
    font-weight: 850;
}

.user-picker-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: var(--ecs-color-secondary);
}

.user-picker-search {
    padding: 1rem;
    border-bottom: 1px solid rgba(214, 212, 216, 0.82);
    background: #fff;
}

.user-picker-list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 0;
    overflow: auto;
    padding: 1rem;
}

.user-picker-row[hidden] {
    display: none;
}

.user-picker-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.1rem;
}

.user-picker-copy strong,
.user-picker-copy em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-picker-copy em {
    color: #777586;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
}

.user-picker-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid rgba(214, 212, 216, 0.92);
    background: #fff;
}

.participante-autocomplete-field {
    z-index: 5;
}

.participante-puesto-results {
    position: absolute;
    z-index: 80;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    padding: 0.45rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 1rem 2rem rgba(46, 39, 55, 0.12);
}

.participante-puesto-results[hidden] {
    display: none;
}

.participante-rec-panel {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}

.participante-rec-body {
    display: grid;
    gap: 0.8rem;
}

.participante-rec-body[hidden] {
    display: none;
}

.participante-rec-body > p {
    margin: 0;
    color: #77717f;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
}

.participante-rec-list {
    display: grid;
    gap: 0.65rem;
    max-height: 28rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.participante-rec-option {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 4.25rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.95rem;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.participante-rec-option:hover,
.participante-rec-option:focus-within,
.participante-rec-option:has(input:checked) {
    border-color: #f3c4d4;
    background: #fff5f8;
}

.participante-rec-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.participante-rec-check {
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.3rem;
    background: #fff;
}

.participante-rec-option input:checked + .participante-rec-check {
    border-color: var(--ecs-color-primary);
    background: var(--ecs-color-primary);
    box-shadow: inset 0 0 0 3px #fff;
}

.participante-rec-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.participante-rec-copy strong {
    color: #17131c;
    font-size: 0.84rem;
    font-weight: 800;
}

.participante-rec-copy em {
    overflow: hidden;
    color: #77717f;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participante-rec-type {
    display: inline-flex;
    align-items: center;
    min-height: 1.35rem;
    padding: 0 0.5rem;
    border: 1px solid #f3c4d4;
    border-radius: 999px;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    font-size: 0.66rem;
    font-weight: 800;
    white-space: nowrap;
}

.participante-rec-dynamic {
    display: grid;
    gap: 0.65rem;
}

.participante-rec-dynamic h3 {
    margin: 0.25rem 0 0;
    color: #17131c;
    font-size: 0.88rem;
    font-weight: 800;
}

.participante-rec-dynamic-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 0.65rem;
}

.participante-rec-detail-card {
    display: grid;
    gap: 0.65rem;
    padding: 0.75rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.85rem;
    background: var(--ecs-color-surface);
}

.participante-rec-detail-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.participante-rec-detail-card header strong {
    color: var(--ecs-color-primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.participante-rec-detail-card label {
    display: grid;
    gap: 0.35rem;
    margin: 0;
}

.participante-rec-detail-card label > span:first-child {
    color: #77717f;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.participante-rec-control {
    width: 100%;
    min-height: 2.4rem;
    padding: 0 0.75rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.75rem;
    background: #fff;
    color: #17131c;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    outline: none;
}

.participante-rec-control:focus {
    border-color: #f3c4d4;
}

.participante-hours {
    display: grid;
    gap: 1rem;
}

.participante-hours-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(214, 212, 216, 0.72);
}

.participante-hours-header span {
    color: var(--ecs-color-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.participante-hours-header h2 {
    margin: 0.18rem 0 0;
    color: #17131c;
    font-size: 1.1rem;
    font-weight: 800;
}

.participante-hours-header p {
    margin: 0.25rem 0 0;
    color: #777586;
    font-size: 0.86rem;
    font-weight: 600;
}

.participante-hours-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.participante-hours-stat,
.participante-hours-card,
.participante-hours-empty {
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.95rem;
    background: #fff;
}

.participante-hours-stat {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
}

.participante-hours-stat span,
.participante-hours-card header span,
.participante-hours-metrics dt {
    color: #777586;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.participante-hours-stat strong {
    color: var(--ecs-color-primary);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.participante-hours-list {
    display: grid;
    gap: 0.65rem;
}

.participante-hours-card {
    display: grid;
    gap: 0.85rem;
    padding: 0.95rem;
}

.participante-hours-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.75rem;
}

.participante-hours-card header strong {
    display: block;
    margin-top: 0.15rem;
    color: #17131c;
    font-size: 0.95rem;
    font-weight: 800;
}

.participante-hours-status {
    flex: 0 0 auto;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: var(--ecs-color-secondary);
    color: #5d5964;
    font-size: 0.74rem;
    font-weight: 800;
}

.participante-hours-status.is-finalized {
    background: #fff5f8;
    color: var(--ecs-color-primary);
}

.participante-hours-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0;
}

.participante-hours-metrics div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    background: var(--ecs-color-surface);
}

.participante-hours-metrics dd {
    margin: 0;
    color: #17131c;
    font-size: 0.95rem;
    font-weight: 800;
}

.participante-hours-empty {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    padding: 2.5rem 1rem;
    color: #777586;
    text-align: center;
}

.participante-hours-empty .material-symbols-outlined {
    color: var(--ecs-color-primary);
    font-size: 2.2rem;
}

.participante-hours-empty strong {
    color: #17131c;
    font-size: 1rem;
    font-weight: 800;
}

.participante-hours-empty p {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 600;
}

.participante-read-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.participante-read-card {
    display: grid;
    gap: 0.25rem;
    min-height: 4rem;
    padding: 0.8rem 0.9rem;
}

.participante-read-wide {
    grid-column: span 2;
}

.participante-read-card span {
    color: #77717f;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.participante-read-card strong {
    color: #17131c;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
}

.participante-read-card strong.is-active {
    color: #0f766e;
}

.participante-read-card strong.is-inactive {
    color: #b42318;
}

@media (max-width: 1050px) {
    .participante-hours-summary,
    .participante-hours-metrics,
    .participante-read-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .participante-form-grid,
    .participante-hours-summary,
    .participante-hours-metrics,
    .participante-read-grid {
        grid-template-columns: 1fr;
    }

    .participante-hours-card header {
        align-items: flex-start;
        flex-direction: column;
    }

    .participante-read-wide {
        grid-column: auto;
    }
}

.course-approval-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.course-switch-card {
    display: flex;
    align-items: center;
    min-height: 4rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.85rem;
    background: #fff;
}

.course-catalog-switch {
    width: 100%;
}

.course-textarea-field {
    min-height: 8rem;
}

.course-textarea {
    min-height: 6rem;
    resize: vertical;
}

.course-rec-panel {
    min-width: 0;
}

.course-rec-list {
    display: grid;
    gap: 0.65rem;
    max-height: 28rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.course-rec-option-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 4.25rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.95rem;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.course-rec-option-card:hover,
.course-rec-option-card:focus-within,
.course-rec-option-card.is-selected {
    border-color: #f3c4d4;
    background: #fff5f8;
}

.course-rec-option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.course-rec-check {
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.3rem;
    background: #fff;
}

.course-rec-option-card.is-selected .course-rec-check {
    border-color: var(--ecs-color-primary);
    background: var(--ecs-color-primary);
    box-shadow: inset 0 0 0 3px #fff;
}

.course-rec-main {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.course-rec-main strong {
    color: #17131c;
    font-size: 0.9rem;
    font-weight: 800;
}

.course-rec-main small {
    color: #6f6b77;
    font-size: 0.78rem;
    font-weight: 600;
}

.course-rec-pill {
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: var(--ecs-color-secondary);
    color: #403b47;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.course-rec-empty {
    padding: 1.25rem;
    border: 1px dashed rgba(214, 212, 216, 0.95);
    border-radius: 0.95rem;
    color: #6f6b77;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 991.98px) {
    .course-approval-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .course-approval-grid {
        grid-template-columns: 1fr;
    }

    .course-rec-option-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .course-rec-pill {
        grid-column: 2;
        justify-self: start;
    }
}

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding-top: 90px;
    background: var(--ecs-color-background);
    color: var(--ecs-color-text);
    font-family: var(--ecs-font-sans);
}

main[role="main"] {
    flex: 1 0 auto;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

a {
    color: var(--ecs-color-link);
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

.app-body {
    font-family: var(--ecs-font-sans);
}

.text-primary,
.text-primary-emphasis {
    color: var(--ecs-color-primary) !important;
}

.text-warning-dark {
    color: #b8860b !important;
}

.text-danger,
.field-validation-error {
    color: #e31b23 !important;
    font-weight: 500;
}

.border-top {
    border-top: 1px solid var(--ecs-color-border);
}

.border-bottom {
    border-bottom: 1px solid var(--ecs-color-border);
}

.box-shadow {
    box-shadow: var(--ecs-shadow-soft);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.app-footer {
    flex-shrink: 0;
    margin-top: 3rem;
    padding: 2.75rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(214, 212, 216, 0.7);
    background: var(--ecs-color-secondary);
    color: #403b47;
}

.app-footer-inner,
.app-footer-bottom {
    width: min(calc(var(--ecs-page-max) - 80px), 100%);
    margin: 0 auto;
}

.app-footer-inner {
    display: grid;
    grid-template-columns: 1.35fr 1fr 0.9fr;
    gap: 4.75rem;
    padding-bottom: 1.65rem;
    border-bottom: 1px solid rgba(214, 212, 216, 0.9);
}

.app-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.app-footer-logo img {
    width: auto;
    height: 3.15rem;
    max-width: 13.5rem;
    object-fit: contain;
}

.app-footer-message,
.app-footer-column,
.app-footer-bottom {
    font-size: 0.78rem;
    line-height: 1.65;
}

.app-footer-message p,
.app-footer-column p {
    margin: 0 0 0.35rem;
}

.app-footer-message footer {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
}

.app-footer-message .mb-0 {
    margin-bottom: 0 !important;
}

.app-footer-column h2 {
    margin: 0 0 0.9rem;
    color: #2f2a35;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-footer-column a {
    display: block;
    margin-bottom: 0.45rem;
    color: #403b47;
    text-decoration: none;
}

.app-footer-column a:hover {
    color: var(--ecs-color-primary);
}

.app-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.2rem;
}

.app-footer-socials {
    display: flex;
    gap: 0.45rem;
}

.app-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: var(--ecs-color-surface-soft);
    color: #403b47;
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
}

.app-footer-socials a:hover {
    background: #fff;
    color: var(--ecs-color-primary);
}

/* Keep the desktop footer layout; only compress scale on smaller screens. */
@media (max-width: 1100px) {
    .app-footer {
        margin-top: 2.25rem;
        padding: 1.75rem 1rem 1rem;
    }

    .app-footer-inner,
    .app-footer-bottom {
        width: min(var(--ecs-page-max), 100%);
    }

    .app-footer-inner {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.9fr);
        gap: 1.5rem;
        padding-bottom: 1.15rem;
    }

    .app-footer-logo {
        margin-bottom: 0.7rem;
    }

    .app-footer-logo img {
        height: 2.55rem;
        max-width: 11rem;
    }

    .app-footer-message,
    .app-footer-column,
    .app-footer-bottom {
        font-size: 0.72rem;
        line-height: 1.5;
    }

    .app-footer-column h2 {
        margin-bottom: 0.55rem;
        font-size: 0.66rem;
    }

    .app-footer-bottom {
        padding-top: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .app-footer {
        margin-top: 1.5rem;
        padding: 1.15rem 0.85rem 0.85rem;
    }

    .app-footer-inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.95fr);
        gap: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .app-footer-logo {
        gap: 0.45rem;
        margin-bottom: 0.45rem;
    }

    .app-footer-logo img {
        height: 2rem;
        max-width: 9rem;
    }

    .app-footer-message,
    .app-footer-column,
    .app-footer-bottom {
        font-size: 0.64rem;
        line-height: 1.4;
    }

    .app-footer-message p,
    .app-footer-column p {
        margin: 0 0 0.2rem;
    }

    .app-footer-column h2 {
        margin: 0 0 0.35rem;
        font-size: 0.6rem;
        letter-spacing: 0.07em;
    }

    .app-footer-column a {
        margin-bottom: 0.2rem;
    }

    .app-footer-bottom {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        padding-top: 0.65rem;
    }

    .app-footer-socials {
        gap: 0.3rem;
        flex-shrink: 0;
    }

    .app-footer-socials a {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.58rem;
    }
}

/* Very narrow phones: brand full width, keep contact/platform as a pair. */
@media (max-width: 420px) {
    .app-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem 0.85rem;
    }

    .app-footer-brand {
        grid-column: 1 / -1;
    }
}

.profile-completeness-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    margin-bottom: 1.35rem;
    padding: 0.9rem 1rem;
    border: 1px solid #f5dca6;
    border-left: 0.25rem solid #f2b233;
    border-radius: 1rem;
    background: #fffaf0;
    color: #4b3520;
}

.profile-completeness-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff0c9;
    color: #c27b00;
    font-size: 1.35rem;
}

.profile-completeness-banner__content {
    min-width: 0;
    flex: 1 1 auto;
}

.profile-completeness-banner__content strong {
    display: block;
    color: #6b4619;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-completeness-banner__content p {
    margin: 0.15rem 0 0;
    color: #654b2f;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.45;
}

.profile-completeness-banner__action {
    flex: 0 0 auto;
    color: #17131c;
    font-size: 0.86rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.profile-completeness-banner__action:hover,
.profile-completeness-banner__action:focus-visible {
    color: #17131c;
    text-decoration: underline;
}

@media (max-width: 40rem) {
    .profile-completeness-banner {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}


.ecs-autocomplete-results,
.register-area-results,
.auth-register-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    margin-top: 0.35rem;
    padding: 0.4rem;
    border: 1px solid rgba(200, 198, 204, 0.95);
    border-radius: 0.85rem;
    background: #ffffff;
    box-shadow: 0 0.85rem 1.8rem rgba(46, 39, 55, 0.14);
    max-height: 240px;
    overflow-y: auto;
}

.ecs-autocomplete-results button,
.register-area-results button,
.auth-register-results button,
.register-area-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: #2d3748;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ecs-autocomplete-results button:hover,
.ecs-autocomplete-results button:focus,
.register-area-results button:hover,
.register-area-results button:focus,
.auth-register-results button:hover,
.auth-register-results button:focus,
.register-area-option:hover,
.register-area-option:focus {
    background-color: var(--ecs-color-surface-soft, #f2f2f3);
    color: var(--ecs-color-primary, #ce3269);
    outline: none;
}

.opciones-puestos-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.opciones-puestos-intro {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid hsla(270, 5%, 84%, 0.65);
}

.opciones-puestos-intro-kicker {
    color: var(--ecs-color-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.opciones-puestos-intro h2 {
    margin: 0;
    color: #17131c;
    font-family: 'Montserrat', var(--ecs-font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.opciones-puestos-intro p {
    margin: 0;
    color: #777586;
    font-size: 0.88rem;
    font-weight: 500;
}

.opciones-puestos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 991.98px) {
    .opciones-puestos-grid {
        grid-template-columns: 1fr;
    }
}

.opciones-puestos-card {
    display: flex;
    flex-direction: column;
    border: 1px solid hsla(270, 5%, 84%, 0.92);
    border-radius: 1.15rem;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(38, 36, 41, 0.04);
    overflow: hidden;
}

.opciones-puestos-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid hsla(270, 5%, 84%, 0.72);
    background: #ffffff;
}

.opciones-puestos-card-header-info {
    min-width: 0;
    flex: 1 1 auto;
}

.opciones-puestos-card-header-info .kicker {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--ecs-color-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.opciones-puestos-card-header-info h3 {
    margin: 0;
    color: #17131c;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.opciones-puestos-card-header-info p {
    margin: 0.2rem 0 0;
    color: #777586;
    font-size: 0.8rem;
    font-weight: 500;
}

.opciones-puestos-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.7rem;
    border: 1px solid #f3c4d4;
    border-radius: 999px;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.opciones-puestos-pill.is-assigned {
    border-color: rgba(16, 185, 129, 0.35);
    background: #f2fbf6;
    color: #047857;
}

.opciones-puestos-card-body {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0.85rem;
    flex: 1 1 auto;
}

.opciones-puestos-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid rgba(214, 212, 216, 0.95);
    border-radius: 0.85rem;
    background: var(--ecs-color-secondary);
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.opciones-puestos-search:focus-within {
    border-color: var(--ecs-color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(206, 50, 105, 0.1);
}

.opciones-puestos-search .material-symbols-outlined {
    position: absolute;
    left: 0.85rem;
    color: #8E8992;
    font-size: 1.25rem;
    pointer-events: none;
}

.opciones-puestos-search input {
    width: 100%;
    height: 2.6rem;
    padding: 0 0.85rem 0 2.65rem;
    border: 0;
    background: transparent;
    color: #17131c;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    outline: none;
}

.opciones-puestos-search input::placeholder {
    color: #8E8992;
    font-weight: 500;
}

.opciones-puestos-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.2rem 0.1rem;
}

.opciones-puestos-select-all {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #6f6b77;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.opciones-puestos-select-all input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--ecs-color-primary);
    cursor: pointer;
}

.opciones-puestos-btn-assign {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0 1rem;
    border: 1px solid var(--ecs-color-primary);
    border-radius: 999px;
    background: var(--ecs-color-primary);
    color: #ffffff;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.opciones-puestos-btn-assign:hover:not(:disabled) {
    background: var(--ecs-color-primary-border);
    border-color: var(--ecs-color-primary-border);
}

.opciones-puestos-btn-assign:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.opciones-puestos-scroll-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    height: 380px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.opciones-puesto-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(214, 212, 216, 0.7);
    border-radius: 0.75rem;
    background: #ffffff;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.opciones-puesto-item:hover {
    background: #fff5f8;
    border-color: #f3c4d4;
}

.opciones-puesto-item-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
}

.opciones-puesto-item-label input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--ecs-color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.opciones-puesto-item-title {
    color: #17131c;
    font-size: 0.88rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.opciones-puesto-code {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    border: 1px solid #dcdbe0;
    border-radius: 0.35rem;
    background: var(--ecs-color-secondary);
    color: #5f5a69;
    font-family: var(--ecs-font-mono);
    font-size: 0.72rem;
    font-weight: 600;
}

.opciones-puesto-btn-quick-add {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid #f3c4d4;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ecs-color-primary);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.opciones-puesto-btn-quick-add:hover {
    background: var(--ecs-color-primary);
    border-color: var(--ecs-color-primary);
    color: #ffffff;
}

.opciones-puestos-table-wrap {
    height: 425px;
    max-height: 425px;
    overflow-y: auto;
    border: 1px solid hsla(270, 5%, 84%, 0.72);
    border-radius: 0.85rem;
    background: #ffffff;
}

.opciones-puestos-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #17131c;
}

.opciones-puestos-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid hsla(270, 5%, 84%, 0.75);
    background: var(--ecs-color-secondary);
    color: #6f6b77;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}

.opciones-puestos-table thead th:last-child {
    text-align: right;
}

.opciones-puestos-table tbody td {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid hsla(270, 5%, 84%, 0.5);
    color: #2d2932;
    font-size: 0.86rem;
    font-weight: 600;
    vertical-align: middle;
}

.opciones-puestos-table tbody tr:last-child td {
    border-bottom: 0;
}

.opciones-puestos-table tbody tr {
    transition: background-color 0.15s ease;
}

.opciones-puestos-table tbody tr:hover {
    background: #fff5f8;
}

.opciones-puesto-name {
    color: #17131c;
    font-weight: 700;
}

.opciones-puesto-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.opciones-puesto-status-badge.is-active {
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: #f2fbf6;
    color: #047857;
}

.opciones-puesto-status-badge.is-inactive {
    border: 1px solid rgba(100, 116, 139, 0.25);
    background: #f8fafc;
    color: #64748b;
}

.opciones-puesto-btn-unlink {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.28rem 0.75rem;
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 999px;
    background: #ffffff;
    color: #b91c1c;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.opciones-puesto-btn-unlink:hover {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.45);
    color: #991b1b;
}

.opciones-puestos-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.25rem;
    color: #77717f;
    min-height: 240px;
}

.opciones-puestos-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: #fff5f8;
    color: var(--ecs-color-primary);
    margin-bottom: 0.75rem;
}

.opciones-puestos-empty-icon .material-symbols-outlined {
    font-size: 1.85rem;
}

.opciones-puestos-empty strong {
    color: #17131c;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.opciones-puestos-empty p {
    color: #77717f;
    font-size: 0.82rem;
    margin: 0;
    max-width: 280px;
    line-height: 1.4;
}

.is-hidden {
    display: none !important;
}

dialog.ecs-modal-dialog {
    border: none;
    border-radius: 1rem;
    padding: 0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    max-width: 32rem;
    width: 90vw;
    background: #ffffff;
    margin: auto;
}

dialog.ecs-modal-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
}

.ecs-modal-box {
    padding: 1.5rem;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}



