.btn-main {
    position: relative;
    overflow: hidden;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.14px;

    height: 40px;
    padding: 12px;
    border-radius: 6px;
    border: none;

    color: #fff;
    background: linear-gradient(180deg, #3593d0 0%, #1a7ebe 100%);

    box-shadow: 0 0 7px rgba(0, 0, 0, 0.25);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

/* capa de hover */
.btn-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #2f86bf 0%, #166da5 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* eleva TODO el contenido del botón */
.btn-main {
    z-index: 1;
}

/* hover */
.btn-main:hover::before,
.btn-main:focus::before,
.btn-main:active::before {
    opacity: 0.3;
}

.btn-main:hover,
.btn-main:focus,
.btn-main:active {
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.35);
}

.btn-base {
    position: relative;
    overflow: hidden;

    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.14px;

    height: 40px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #14374b;

    color: #14374b;
    background: white;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    transition: all 0.15s ease-in-out;
}

.btn-base:hover {
    background-color: #14374b;
    color: white;
}

.btn-core {
    position: relative !important;
    overflow: hidden !important;

    font-family: "Poppins", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: -0.14px !important;

    height: 40px !important;
    padding: 12px !important;
    border-radius: 6px !important;
    border: none !important;

    color: #fff !important;
    background: linear-gradient(180deg, #164f6f 0%, #14374b 100%) !important;

    box-shadow: 0 0 7px rgba(0, 0, 0, 0.25) !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;

    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease !important;
}

/* capa de hover */
.btn-core::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, #0e3348 0%, #0c202c 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 0 !important;
}

/* eleva TODO el contenido del botón */
.btn-core {
    z-index: 1 !important;
}

/* hover */
.btn-core:hover::before,
.btn-core:focus::before,
.btn-core:active::before {
    opacity: 0.3 !important;
}

.btn-menu {
    background-color: #e9ecef !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.15s ease-in-out;
}

.btn-menu:hover {
    background-color: #dae0e6 !important;
}

label.form-label {
    margin-bottom: 0.5rem;
    font-size: 14px;
    font-weight: 600;
    color: #828a92;
}

/* Fixed header (#page-topbar is 70px). Helps focus/scrollIntoView not hide inputs under the topbar. */
html {
    scroll-padding-top: 78px;
}

@media (max-width: 768px) {
    .column-calificaciones {
        width: 100%;
        padding-top: 6px;
    }

    .column-calificaciones.nota div {
        justify-content: start;
    }
}

.scrollable-table-container {
    overflow-x: auto;
}

.scrollable-table-container th,
.scrollable-table-container td {
    white-space: nowrap;
}

.bg-competencias {
    background-color: #e1f3ff !important;
}

.bg-personal {
    background-color: #f7f7f7 !important;
}

.alert-info {
    color: #1a7ebe !important;
    background-color: #e1f3ff !important;
}

.svelte-select .svelte-select-list {
    z-index: 1001 !important;
}

.responsive-width {
    width: 100%;
}

@media (min-width: 990px) {
    .responsive-width {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .responsive-width div.responsive-width-div {
        padding-left: 12px !important;
    }

    .responsive-width div {
        padding-right: 8px !important;
    }

    .responsive-width {
        width: auto !important;
    }
}

.form-check.form-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
}

.form-check.form-switch .form-check-input {
    float: none;
    margin: 0;
    flex-shrink: 0;
}

.form-check.form-switch .form-check-label {
    margin-bottom: 0;
    line-height: 1.25;
}
