:root {
    --primary-color: #40906D; /* tu verde base */
    --secondary-color: #39413E; /* tu rojo base */
}


@font-face {
    font-family: 'Outfit';
    src: url('/assets/font/Outfit-SemiBold.woff2') format('woff2'),
        url('/assets/font/Outfit-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('/assets/font/Outfit-Medium.woff2') format('woff2'),
        url('/assets/font/Outfit-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Amiko';
    src: url('/assets/font/Amiko-Regular.woff2') format('woff2'),
        url('/assets/font/Amiko-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Amiko';
    src: url('/assets/font/Amiko-SemiBold.woff2') format('woff2'),
        url('/assets/font/Amiko-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
*{
    font-family: 'Amiko';
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,h5,h6,label,a,button,th *{
    font-family: 'Outfit';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,h5,h6{
    -webkit-font-smoothing: subpixel-antialiased !important;
    font-smoothing: subpixel-antialiased !important;
}
/* === TITLES PAGES === */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    font-size: 15px;
    font-weight: bold;
    margin-top: 0;
}

/* === ACTION BUTTONS === */
.actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* === CARD === */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.card h5 {
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}

/* === PREVIEW CARD === */
.preview-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.preview-card img {
    max-width: 200px;
    margin-bottom: 1rem;
}


/* === MAIN CARD === */
.main-card {
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    border: 1px solid #e9e9e9;
}

.main-card h5 {
    margin-bottom: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}


/* === SUB CARDS === */
.sub-card {
    flex: 1;
    min-width: 200px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-card label {
    font-weight: 600;
}

/* === DIVIDER === */
.section-divider {
    border: none;
    border-top: 1px dashed #b0b0b0;
    margin: 20px 0;
    background-color: transparent;
}

/* GLOBAL EN app.css */

.filter-wrapper {
    position: relative;
    flex: 1 1 0; /* <-- flexible! */
    min-width: 200px;
}

.filter-wrapper input,
.filter-wrapper select {
    width: 100%;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px 10px 6px 10px;
    font-size: 13px;
    background: #fafafa;
    letter-spacing: -.5px;
}

.filter-wrapper label {
    position: absolute;
    top: 11px;
    left: 12px;
    font-size: 13px;
    color: #2e2e2e;
    pointer-events: none;
    transition: all 0.2s ease;
}

.filter-wrapper input:focus + label,
.filter-wrapper input:not(:placeholder-shown) + label,
.filter-wrapper select:focus + label,
.filter-wrapper select:valid + label {
    top: 6px;
    left: 11px;
    font-size: 13px;
    color: #2E2E2E;
}

/* Select */
.filter-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 35px;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}


/* TABLE */
.table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 1px 5px 20px rgba(0, 0, 0, 0.03);
    overflow-x: auto;
    border: 1px solid #e5e5e5;
    margin-bottom: 15px;
}
.content-table {
    width: 100%;
    border-collapse: collapse;
}
.content-table thead > tr > th:last-child,
.content-table tbody > tr > td:last-child{
    text-align: center;
}
.content-table thead > tr > th:first-child,
.content-table tbody > tr > td:first-child{
    padding-left: 20px;
}
.content-table th {
    background: #f2f2f2;
    color: #307065;
    text-align: left;
    padding: 8px 12px;
    font-weight: bold !important;
    font-family: 'Outfit';
    font-size: 14px;
    border-bottom: 1px solid #e5e5e5;
    line-height: 1.1;
}
.content-table td {
    padding: 2px 12px;
    border-bottom: 1px dashed #E6E6E6;
    font-size: 14px;
    letter-spacing: -1px;
}
.content-table tbody tr:nth-child(even) {
        background: #f8fcfa;
}
.content-table td a {
    text-decoration: none;
    font-weight: 500;
}
.content-table td a:hover {
    text-decoration: underline;
}
th.sortable {
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}
th.sortable:hover {
    text-decoration: underline;
}
/* Table - actions */
.content-table .dropdown {
    position: relative;
    display: inline-block;
}
.content-table .btn-actions {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s ease all;
}
.content-table .btn-actions:hover {
    background: transparent !important;
    color: #66B351;
}
.content-table .actions-cell .dropdown-menu {
    position: fixed;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 5px 0 !important;
    min-width: 120px;
    display: block;
    z-index: 9999;
    transform: translate(calc(-100% + 30px), 0);
}
.content-table .dropdown-menu li {
    padding: 7px 15px !important;
    cursor: pointer;
    font-family: 'Outfit';
    font-weight: 300;
    letter-spacing: 0;
    font-size: 14px;
    line-height: 1;
    color: #484959;
}

.content-table .dropdown-menu li:hover {
    background: #f5f5f5 !important;
    color: var(--primary-color) !important;
}


.pagination-ui{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.pagination-ui{
    .pagination-wrapper{
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 100%;
    }
    .pagination-controls{
        gap: 3px !important;
    }
    select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") !important;
        background-repeat: no-repeat !important;
        background-size: 16px !important;
        background-position: 100% 45% !important;
        border: 1px solid #f0f0f0;
        border-radius: 8px;
        padding: 5px 10px 4px 10px;
        font-size: 13px;
        background: #fafafa;
        letter-spacing: -.5px;
    }
    .pagination-info {
        font-size: 11px !important;
        color: #000 !important;
        font-weight: bold !important;
        letter-spacing: -.5px;
    }
    .pagination-controls button {
         padding: 0px 6px !important;
        font-size: 12px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 21px;
    }
    .pagination-controls button img{
        width: 10px;
    }
}


.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 55px;
}

.section-filters-card {
    padding: 12px 12px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    border: 1px solid #e9e9e9;
}
.section-filters-card {
    .filters-section {
        display: flex;
        justify-content: space-between;
    }
    .filters-left {
        width: calc(100% - 135px);
    }
    .btn-actions {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
    }
    /* === DROPDOWN CON BLAZOR === */
    .dropdown {
        position: relative;
        display: inline-block;
    }
    .btn-actions {
        background: transparent;
        border: none;
        font-size: 20px;
        cursor: pointer;
        padding: 5px;
        border-radius: 50%;
        transition: background 0.2s ease;
    }
    .btn-actions:hover {
        background: rgba(0, 0, 0, 0.05);
    }
    .dropdown-menu {
        position: fixed; /* 👈 CAMBIO CLAVE */
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        list-style: none;
        margin: 0;
        padding: 0;
        min-width: 160px;
        display: block;
        z-index: 9999; /* 👈 Bien alto */
    }
    .dropdown-menu li {
        padding: 10px 15px;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
    }
    .dropdown-menu li:hover {
        background: var(--primary-color);
        color: #fff;
    }
}







/* Badges */

.badge {
    display: inline-block;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid;
    min-width: 60px;
    text-align: center;
    padding: 0;
    line-height: .6;
    padding: 4px;
}

.badge-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.badge-danger {
    color: #c62828;
    border-color: #c62828;
}
.subtitle{
    text-transform: uppercase;
    margin-bottom: 8px !important;
    font-size: 13px !important;
}
p {
    letter-spacing: -1px;
    font-size: 14px;
}
.badge::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background-color: currentColor;
        margin-bottom: -1px;
    margin-left: 5px;
}

.upload-container{
    background-color: #FAFAFA;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 3px 10px 10px 10px;
}
.upload-container{
    label{
        font-size: 13px;
        color: #2E2E2E;
        font-weight: 600;
        display: block;
    }
    input{
        font-size: 14px;
        letter-spacing: -1px;
        font-weight: 600;
    }
}

.actions-row{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 30px;
}
.actions-row{
    .split-buttons{
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        max-width: 350px;
    }
    button{
        width: 100%;
        height: 42px;
    }
    .button-primary{
        background-color: #45856A;
        color: #fff;
    }
    .button-primary:hover {
        background-color: #356852; /* Verde un poco más oscuro en hover */
    }

    .button-primary:disabled {
        background-color: #a0b4a9; /* Versión grisada si está deshabilitado */
        cursor: not-allowed;
    }
    .button-secondary{
        background-color: transparent;
        color: #333;
        border: 1px solid #333;
    }
    .button-secondary:hover {
        background-color: #f0f0f0; /* Un fondo sutil al pasar el mouse */
    }

    .button-secondary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
}
button{
    border: none;
    border-radius: 6px;
    padding: 0px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 15px;
}
.button-primary{
    background-color: #45856A;
    color: #fff;
}
.button-primary:hover {
    background-color: #356852; /* Verde un poco más oscuro en hover */
}

.button-primary:disabled {
    background-color: #a0b4a9; /* Versión grisada si está deshabilitado */
    cursor: not-allowed;
}
.button-secondary{
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
}
.button-secondary:hover {
    background-color: #f0f0f0; /* Un fondo sutil al pasar el mouse */
}

.button-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}



.photo-card button{
    position: absolute;
    margin: auto;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: #66B351;
    color: #fff;
    padding: 0;
    height: 35px;
    width: 150px;
    border: none;
    cursor: pointer;
    border-radius: 100rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    opacity: 0;
    transform: translate(0, 80px);
    transition: .3s ease all;
}
.photo-card:hover button{
    opacity: 1;
    transform: translate(0,0);
}
.photo-card:hover button:hover{
    background-color: #59a045;
}

.ul.rz-profile-menu .rz-navigation-menu{
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 5px 0 !important;
    min-width: 160px;
    display: block;
    z-index: 9999;
}
ul.rz-profile-menu .rz-navigation-menu .rz-navigation-item-link, 
ul.rz-profile-menu .rz-navigation-menu .rz-navigation-item-text{
    cursor: pointer;
    font-family: 'Outfit';
    font-weight: 300;
    letter-spacing: 0;
    font-size: 14px;
    line-height: 1;
    color: #484959;
}
ul.rz-profile-menu .rz-navigation-menu .rz-navigation-item-wrapper .rz-navigation-item-link{
    padding: 3px 15px !important;
}
ul.rz-profile-menu .rz-navigation-menu .rzi{
    font-size: 16px !important;
    margin-inline: 0 !important;
}
ul.rz-profile-menu .rz-navigation-menu{
    min-width: auto !important;
    padding: 0 !important;
    padding-bottom: 4px !important;
    padding-top: 4px !important;
}
ul.rz-profile-menu .rz-navigation-menu .rz-navigation-item-wrapper:hover{
    color: var(--primary-color) !important;
}

.modal-body .more-options button{
    width: 100%;
    height: 47.5px;
    border: 1px dashed #bbbbbb;
    background-color: #fafafa;
    color: #000;
    transition: .3s ease all;
}
.modal-body .more-options button:hover{
    background-color: #efeded;
}
.modal-container.add-content{
    .actions-row {
        padding-top: 15px;
        border-top: 1px solid #dee2e6;
        margin-top: 10px;
    }
}
.btn-download{
    .button-primary{
        background: #39413E;
        color: #fff;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 15px;
        border: none;
        border-radius: 6px;
        font-weight: 500;
        cursor: pointer;
        justify-content: center;
        font-size: 12px;
        flex-direction: row-reverse;
        transition: .3s ease all;
    }
    img {
        width: 14px;
        filter: invert(1);
    }
}
.content-table.no-actions thead > tr > th:last-child, 
.content-table.no-actions tbody > tr > td:last-child {
    text-align: left !important;
}
.colabs{
    .btn-download {
        top: 10px !important;
    }
}

.spinner-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.6);
    z-index: 2;
    border-radius: 8px;
}

.spinner {
    width: 34px;
    height: 34px;
    border: 4px solid #e0e0e0;
    border-top-color: #C92F37;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.photo-btn {
    margin-top: 12px;
    display: inline-block;
}

.file-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.table-card:hover{
    overflow-x: auto;
    overflow: visible;
}
.table-card{
    .dropdown-actions {
        position: relative;
        width: 30px;
        margin: auto;
    }

    .dropdown-actions > div {
        display: none;
        position: absolute;
        right: 28px;
        top: 0;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        list-style: none;
        margin: 0;
        z-index: 10;
        min-width: 100px;
        padding: 5px 0 !important;
    }

    .dropdown-actions:hover > div {
        display: block;
    }

    .dropdown-actions > div button,
    .dropdown-actions > div a{
        padding: 7px 15px !important;
        cursor: pointer;
        font-family: 'Outfit';
        font-weight: 300;
        letter-spacing: 0;
        font-size: 14px;
        line-height: 1;
        color: #484959;
        width: 100%;
        text-align: left;
        border-radius: 0;
        background-color: transparent;
        display: block;
    }

    .dropdown-actions > div button:hover,
        .dropdown-actions > div a:hover {
        background-color: #efefef;
        color: var(--primary-color) !important;
        text-decoration: none;
    }

    .dropdown-actions u {
        background: transparent;
        border: none;
        font-size: 25px;
        cursor: pointer;
        transition: 0.2s ease all;
        font-family: 'Outfit';
        font-weight: 500;
        text-decoration: none;
        display: block;
        text-align: center;
        line-height: .7;
        height: 30px;
        padding: 0;
        width: 30px;
        position: relative;
        z-index: 1;
    }
    tbody > tr:nth-last-child(-n + 3) .actions-cell .dropdown-actions:hover > div{
        top: unset;
        bottom: 0;
    }
}

/* ===== Piquito en el menú de acciones ===== */
.table-card .dropdown-actions > div::before,
.table-card .dropdown-actions > div::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Borde del piquito (sombra fina) */
.table-card .dropdown-actions > div::before {
    border: 8px solid transparent;
    border-left-color: #ddd;             /* color del borde del menú */
    right: -16px;                         /* sale por el lado derecho del menú */
    top: 10px;                            /* alineado al trigger (los tres puntos) */
}

/* Relleno del piquito (fondo del menú) */
.table-card .dropdown-actions > div::after {
    border: 7px solid transparent;
    border-left-color: #fff;              /* mismo fondo que el menú */
    right: -14px;
    top: 11px;
}

/* Si el menú se “abre hacia arriba” en las últimas filas,
   movemos el piquito para que apunte desde abajo hacia el trigger */
.table-card tbody > tr:nth-last-child(-n + 3) .actions-cell
.dropdown-actions:hover > div::before {
    top: auto;
    bottom: 10px;
}

.table-card tbody > tr:nth-last-child(-n + 3) .actions-cell
.dropdown-actions:hover > div::after {
    top: auto;
    bottom: 11px;
}

.modal-body {
    line-height: 1.3 !important;
    color: #656565;
}
.modal-content .modal-footer .actions-row{
    width: 100%;
    margin-bottom: 0;
    justify-content: center !important;
    margin: 0;
}
.modal-content .modal-footer{
    padding: 1rem !important;
}
.modal-divider{
    display: none !important;
}
.modal-header {
    border-bottom: none !important;
}
.modal-header h3{
    text-wrap: balance;
}
.sections-grid .content-block:hover{
    overflow: visible;
}



.customCheck{
    display: inline-block;
    position: relative;
}
.customCheck input{
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}
.customCheck label{
    font-size: 14px;
    padding-left: 25px;
    padding-top: 2px;
    padding-bottom: 2px;
    text-align: left;
}
.customCheck label::after{
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(/assets/svg/check.svg);
    opacity: 0;
}
.customCheck label::before{
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 100rem;
    border: 1px solid #ccc;
}
.customCheck input:checked + label::after{
    opacity: 1;
}

.customCheck input:checked + label::before{
    opacity: 0;
}

.uc-counter {
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 11px;
    color: #9aa0a6;
}
main {
    width: calc(100% - 250px);
}
.table-card {
    width: 100%;
    overflow: hidden;
}
.table-card table{
    overflow-x: scroll;
}

.will-tab .ScTm .button-primary{
    background: #39413E;
    font-size: 12px;
    padding: 6px 15px;
    position: relative;
    padding-left: 34px;
}
.will-tab .ScTm .button-primary::after{
        content: "";
    display: block;
    position: absolute;
    left: 15px;
    top: 8px;
    width: 14px;
    height: 14px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(/assets/svg/add.svg);
}

.will-tab .ScTm .button-primary:hover{
    opacity: .9 !important;
}
.will-tab .btps .button-primary{
    background-color: transparent !important;
    border: 1px solid #333 !important;
    color: #333 !important;
    height: 42px;
    margin-bottom: 35px !important;
}
.will-tab .btps .button-primary:hover{
    background-color: #f0f0f0 !important;
}

.upload-box .button-primary{
    background-color: #f9fafa;
    border: 1px solid #757676;
    border-radius: 3px !important;
    color: #404040;
    height: 27px;
}
.upload-box .button-primary:hover{
     background-color: #e6ecec;
}

.dwn-fls .button-primary {
    height: 30px !important;
    border-radius: 7px !important;
}
.mdl-btn .button-primary{
    height: 100% !important;
    background-color: #38413e !important;
    cursor: pointer;
}
.mdl-btn .button-primary:hover{
    opacity: .9;
}