@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@100..900&display=swap');


/* ================================================= */
/* General styles */
/* ================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

#root,
#__next {
    isolation: isolate;
}

* {
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    height: 100%;
    font-family: var(--font-primary);
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    height: 100vh;
    transition: var(--trans-03);
    font-family: 'ProximaNova', Arial, sans-serif;
    font-weight: 400;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
    font-family: 'WorkSans', 'ProximaNova', sans-serif;
    font-weight: 600; /* o el que uses para títulos */
}

h1 {
    font-size: var(--size-32);
}

h2 {
    font-size: var(--size-24);
}

::selection {
    color: var(--color-white-base);
    background-color: var(--color-brand-secondary);
}

.title-white-bold {
    color: var(--color-white-base);
    font-weight: 500;
    font-family: 'WorkSans', 'ProximaNova', sans-serif;
}

.title-black-regular {
    color: var(--color-neutral-80);
    font-weight: 400;
    font-family: 'WorkSans', 'ProximaNova', sans-serif;
}

.title-black-bold {
    color: var(--color-neutral-80);
    font-weight: 500;
    font-family: 'WorkSans', 'ProximaNova', sans-serif;
}

.uppercase {
    text-transform: uppercase;
}

.letter-space {
    letter-spacing: 0.2rem;
}

.subtitle {
    font-size: var(--size-16);
    font-weight: 500;
}

.paragraph {
    font-size: var(--size-14);
    font-weight: 400;
}

.ellipsis {
    display: inline-block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caption {
    font-size: var(--size-12);
    color: var(--color-neutral-40);
}

    .caption span {
        color: var(--color-neutral-60);
    }

.danger-txt {
    color: var(--color-danger);
}

.dark-txt-80 {
    color: var(--color-neutral-80);
}

.light-txt-40 {
    color: var(--color-neutral-40);
}

.white-txt {
    color: var(--color-white-base);
}

.big-logo {
    width: 250px;
    margin: 0 auto;
    padding-bottom: 2em;
    align-self: end;
}

a {
    text-decoration: none;
    color: var(--color-brand-primary);
}

ul {
    list-style-type: none;
    padding: 0;
}
.id-qr {
    float: left;
    margin-right: 20px;
    margin-top: 5px;
}

/* ================================================= */
/* Button styles */
/* ================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
    padding: 0.5rem 0.8rem;
    font-size: var(--size-16);
    line-height: 1rem;
    font-weight: 400;
    border-radius: 0.5rem;
    user-select: none;
    cursor: pointer;
    transition: var(--trans-06);
    gap: 8px;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--color-brand-primary);
    color: var(--color-white-base);
    height: 48px;
}

.btn-small {
    font-size: var(--size-14);
    height: 32px;
}

.btn-no-bg {
    background-color: transparent;
    color: var(--color-neutral-60);
}

.btn-danger-border {
    outline: 2px solid var(--color-danger);
    outline-offset: -2px;
    background: transparent;
    color: var(--color-danger);
}

.btn-basic {
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-neutral-80);
}

.btn-selected {
    border: 1px solid var(--color-neutral-20);
    background: transparent;
}

.btn-primary:hover,
.btn-no-bg:hover,
.btn-danger-border:hover,
.btn-basic:hover {
    box-shadow: 0 5px 10px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.btn-primary:focus,
.btn-primary:active,
.btn-no-bg:focus,
.btn-no-bg:active {
    opacity: 0.85;
    box-shadow: none;
}

.btn-primary svg,
.btn-no-bg svg,
.btn-danger-border svg {
    transition: var(--trans-06);
}

.btn-primary svg {
    fill: var(--color-white-base);
}

.btn-no-bg svg {
    fill: var(--color-brand-secondary);
}

.btn-danger-border svg {
    fill: var(--color-danger);
}

.btn-primary:hover {
    background-color: var(--color-brand-primary-20);
}

.btn-no-bg:hover {
    background-color: var(--color-brand-secondary);
    color: var(--color-white-base);
    box-shadow: 0 5px 10px -3px #00b6d64b, 0 4px 6px -2px #00677936;
}

.btn-danger-border:hover {
    background-color: var(--color-danger);
    color: var(--color-white-base);
}

.btn-basic:hover {
    box-shadow: 0 5px 10px -3px rgba(145, 145, 145, 0.15), 0 4px 6px -2px rgba(151, 151, 151, 0.1);
    border-color: var(--color-neutral-20);
}

.btn-no-bg:hover svg,
.btn-danger-border:hover svg {
    fill: var(--color-white-base);
}

.popup .btn {
    padding: 1rem 2rem;
}

.btn p {
    margin: 0;
    white-space: nowrap;
    color: var(--color-neutral-60);
}

.btn-icon {
    cursor: pointer;
    padding: 4px;
    fill: var(--color-brand-primary-60);
    transition: fill 0.3s ease;
}

@keyframes fillAnimation {
    0% {
        height: 0%;
    }

    100% {
        height: 100%;
    }
}

.btn-icon use {
    animation: fillAnimation 0.3s ease forwards;
}

.btn-group {
    display: flex;
    gap: var(--size-20);
    justify-content: flex-end;
}

.btn-col {
    display: flex;
    gap: var(--size-20);
    flex-direction: column;
}

.btn-actions,
.header-filter {
    max-width: 100%;
    display: grid;
    grid-template-columns: auto 2fr;
    justify-content: space-between;
    align-items: center;
    gap: var(--size-10);
}

.action-icons {
    display: flex;
    justify-content: start;
    gap: 0.8rem !important;
}

    .action-icons a {
        display: flex;
    }

h1, h2, h3, h4, h5, h6,
strong, .highlight {
    font-family: 'WorkSans', 'ProximaNova', sans-serif;
    font-weight: 600; /* o el que uses para títulos */
}

/* ================================================= */
/* Icon styles */
/* ================================================= */

.icon {
    fill: var(--color-neutral-40);
    stroke : var(--color-neutral-40);
    display: inline-block;
}

.icon-tiny {
    max-width: var(--size-16);
    max-height: var(--size-16);
}

.icon-small {
    max-width: var(--size-18);
    max-height: var(--size-18);
}

.icon-medium {
    max-width: var(--size-20);
    max-height: var(--size-20);
}

.icon-large {
    max-width: var(--size-24);
    max-height: var(--size-24);
}

.icon-xlarge {
    max-width: var(--size-32);
    max-height: var(--size-32);
}

.icon-light-bg {
    fill: var(--color-neutral-40);
}

    .icon-light-bg:hover {
        fill: var(--color-brand-secondary);
    }

.icon-unable {
    cursor: not-allowed;
    fill: var(--color-neutral-05);
    opacity: 0.5;
}

.icon-pending {
    fill: var(--color-neutral-40);
}

.icon-danger {
    fill: var(--color-danger);
}

.icon-success {
    fill: var(--color-success);
}

.icon-light-danger-bg:hover {
    fill: var(--color-danger);
}

.icon-color {
    fill: var(--color-brand-primary);
}

.icon-input {
    position: absolute;
    transform: translateY(-50%);
    font-size: var(--size-14);
    fill: var(--color-white-base);
    top: 50%;
    right: 10px;
}

.close-window {
    align-self: start;
    cursor: pointer;
}

    .close-window svg {
        fill: var(--color-neutral-60);
    }

/* ================================================= */
/* Container Sizes */
/* ================================================= */

.wrapper,
.container {
    width: 100%;
    display: grid;
    align-items: center;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 10px;
}

.wrapper {
    justify-content: center;
    background: url('../Images/fondo-pantalla-1.png');
    background-repeat: no-repeat;
    background-size: cover;
    padding: 10em 0;
    gap: 20px;
    min-height: 100vh;
}

.login-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    min-width: 320px;
    background: var(--color-transparent-login-bg);
    border-radius: 16px;
    border: solid 1px var(--color-brand-primary-light);
    color: white;
    padding: 2.5em 1.5em;
    align-self: flex-start;
}

    .login-box .btn-login {
        background: var(--color-brand-secondary);
        font-weight: 600;
    }

    .flex-end {
        display: flex;
        align-items: center;
        gap: 1rem;
        justify-content: flex-end;
    }

.popup-container {
    display: flex;
    flex-direction: column;
    gap: var(--size-20);
}

/* ================================================= */
/* Input form */
/* ================================================= */

.input-box {
    position: relative;
    display: flex;
    flex-direction: column;
}

    .input-box:last-child {
        margin-bottom: 0;
    }

.label {
    position: absolute;
    top: 13px;
    left: 13px;
    transition: 0.2s ease-in-out;
}

.input-field {
    font-family: var(--font-primary);
    color: var(--color-white-base);
    background: transparent;
    position: relative;
    width: 100%;
    outline: none;
    border: solid 1px var(--color-brand-primary-light);
    border-radius: 6px;
    padding: 0 8px;
    height: 48px;
    font-weight: 300;
}

    .input-field:focus ~ .label,
    .input-field:valid ~ .label {
        position: absolute;
        top: -10px;
        left: 2px;
        font-size: var(--size-12);
        color: var(--text-color);
        border-radius: 30px;
        background-color: var(--color-transparent-login-bg);
        padding: 0 4px;
    }

.show-password {
    cursor: pointer;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: var(--size-20);
    padding: 2px 6px 2px 4px;
    white-space: nowrap;
    max-width: max-content;
}

    .tag p {
        padding: 0 4px;
        font-size: var(--size-12);
    }

.pending {
    background-color: var(--color-neutral-05);
}

.danger-tag {
    background-color: var(--color-danger-light);
    color: var(--color-danger);
}

.success-tag {
    background-color: var(--color-success-light);
    color: var(--color-success);
}

.header-menu {
    border-bottom: 1px solid var(--color-neutral-20);
}

.header-menu__btns {
    display: grid;
    grid-template-columns: auto auto auto auto 1fr auto;
    gap: var(--size-16);
    justify-content: start;
    padding: var(--size-20);
}

.logout-btn {
    justify-self: end;
}

.border-btm {
    border-bottom: solid 1px var(--color-neutral-20);
    margin-top: 20px;
}

.filter {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: var(--size-10);
}

.account-summary {
    border-radius: var(--size-16);
    border: solid 1px var(--color-neutral-20);
    padding: var(--size-20);
    margin-top: var(--size-20);
}

    .account-summary button {
        color: var(--color-brand-secondary);
    }

.main-logo {
    width: 150px;
}

.summary-header {
    max-width: 100%;
    display: grid;
    grid-template-columns: auto 2fr;
    justify-content: space-between;
    align-items: start;
    padding-bottom: var(--size-20);
    border-bottom: solid 1px var(--color-neutral-20);
}

.summary-data {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--size-20);
}

.summary-info {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: start;
}

.account-summary .scrollable-table .table-header th {
    background-color: white;
    color: var(--color-neutral-40);
    font-weight: 500;
}

.account-summary .scrollable-table .table-row {
    border-bottom: none;
    color: var(--color-neutral-80);
}

    .account-summary .scrollable-table .table-row:hover {
        cursor: auto;
    }

.warning-msg {
    display: flex;
    justify-content: space-between;
    border: 1px solid var(--color-warning-icon);
    background: var(--color-warning-bg);
    padding: 4px 8px;
    border-radius: 6px;
    gap: 0.5rem;
    align-items: end;
}

    .warning-msg svg {
        fill: var(--color-warning-icon);
        align-self: flex-start;
    }

    .warning-msg p {
        font-size: var(--size-14);
        color: var(--color-warning-txt);
        font-weight: 500 !important;
    }

.download-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-file {
    display: flex;
    gap: var(--size-12);
    align-items: center;
}

.account-file__data {
    display: flex;
    flex-direction: column;
}

/* ================================================= */
/* MARGINS */
/* ================================================= */

.mt-30 {
    margin-top: 30px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

/* ================================================= */
/* Main header */
/* ================================================= */

#main-header {
    background-color: var(--color-brand-primary);
    padding: 1rem 1.5rem;
    transition: background-color 0.4s ease-in-out;
    position: sticky;
    z-index: 999;
    top: -10px;
    box-shadow: 0 -10px 20px 5px rgba(0, 0, 0, 0.3);
}

    #main-header nav,
    #main-header ul,
    #main-header a {
        display: flex;
        align-items: center;
    }

    #main-header nav {
        justify-content: space-between;
    }

        #main-header nav ul {
            margin: 0;
            padding: 0;
            gap: 2rem;
        }

    #main-header svg {
        fill: var(--color-neutral-05);
        transition: fill 0.4s ease-in-out;
    }

.logo-header {
    background-image: var(--logo-white);
    background-repeat: no-repeat;
    background-size: 100%;
    width: 130px;
    min-height: 50px;
}

.profile-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white-base);
}

/* ================================================= */
/* Main */
/* ================================================= */

#main {
    position: relative;
    background-color: var(--main-bg-color);
}

/* ================================================= */
/* Images */
/* ================================================= */

.profile-img {
    background: var(--color-white-base);
    border: solid 2px var(--color-white-base);
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
}

.circle-img {
    border-radius: 50%;
}

.img-40 {
    width: 40px;
    height: 40px;
}

.img-100 {
    width: 100px;
    height: 100px;
}
/* ================================================= */
/* Table */
/* ================================================= */

.scrollable-table {
    scroll-snap-type: y mandatory;
    overflow-x: auto;
    margin-top: var(--size-20);
}

table {
    table-layout: auto;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border: none;
}

th,
td {
    font-size: var(--size-14);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

th {
    text-align: left;
    background: var(--color-neutral-05);
    color: var(--color-neutral-60);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

#mainTable th:first-child,
#mainTable td:first-child {
    padding-left: 1em;
}

td {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

table tr {
    scroll-snap-align: start;
}

th:first-child {
    border-radius: 10px 0 0 10px;
}

th:last-child {
    border-radius: 0 10px 10px 0;
}

.table-header th {
    height: 40px !important;
    vertical-align: middle;
}

    .table-header th:nth-child(3) {
        margin-left: 30px;
    }

.table-row {
    color: var(--color-neutral-40);
    border-bottom: solid 1px var(--color-neutral-20);
}

table th:nth-child(4),
table td:nth-child(4) {
    white-space: nowrap;
}

.main-container .table-row:hover {
    cursor: pointer;
}

.scrollable-table td .btn {
    padding: 0.5rem;
}

.filter-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .filter-group .dropdown-menu,
    table .dropdown-menu {
        width: fit-content;
    }

.centered {
    display: grid;
    place-items: center;
}

.total-row td {
    font-weight: bold;
    border-top: solid 1px var(--color-neutral-20);
    padding-top: var(--size-20);
}

    .total-row td:first-child {
        text-align: right;
        padding-right: 1rem;
    }

/* ================================================= */
/* DROPDOWN INPUT */
/* ================================================= */

.dropdown-input {
    position: relative;
    min-width: 8em;
}

.btn-group .dropdown-input {
    min-width: fit-content;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    background-color: var(--color-white-base);
    min-width: max-content;
    border-radius: 6px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 150ms ease-in-out, transform 150ms ease-in-out;
    z-index: 10000;
    border: solid 1px var(--color-brand-primary-90);
}

.dropdown-input.active > .dropdown-input__btn + .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-icon.active > .dropdown-icon__btn + .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding: 0.5em 0;
}

.dropdown-menu li {
    padding: 0.5em 1.5em 0.5em 0.8em;
}

.dropdown-input__btn {
    display: flex;
    background: var(--container-bg-color);
    align-items: center;
    cursor: pointer;
    justify-content: space-between;
    width: 100%;
    &.-no-border

{
    width: fit-content;
    border: none;
    gap: 4px;
    .dropdown-menu .-no-border

{
    width: fit-content;
}

}
}

.input-box .dropdown-menu {
    width: 100%;
}

.selected-option {
    font-weight: 500;
    color: var(--color-neutral-80);
}

.dropdown-input .selected-option {
    white-space: nowrap;
    overflow: hidden;
    font-size: var(--size-14);
}

.options {
    position: relative;
    display: flex;
    flex-direction: column;
}

    .options .option {
        display: flex;
        cursor: pointer;
        white-space: nowrap;
        color: var(--color-neutral-60);
    }

.option span {
    display: inline-block;
    font-size: var(--size-14);
    width: 100%;
}

.options .option:hover {
    transition: var(--trans-03);
    color: var(--color-neutral-80);
    background: var(--color-neutral-05);
}

/* ================================================= */
/* POPUP */
/* ================================================= */

dialog::backdrop {
    background: var(--color-transparent-bg);
}

dialog {
    overflow: visible;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 480px;
    background-color: white;
    max-height: 80vh;
    z-index: 9999;
}

.popup {
    box-sizing: content-box;
    border-radius: 10px;
    padding: 20px;
    background: var(--color-white-base);
    border: none;
    overflow-y: visible;
    z-index: 9999;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .popup::-webkit-scrollbar {
        display: none;
    }

    .popup p {
        font-weight: 300;
    }

.popup-container {
    display: flex;
    flex-direction: column;
    max-height: inherit;
}

    .popup-container .inner-content {
        overflow: auto;
    }

.space-btw-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================================================= */
/* MEDIA QUERIES */
/* ================================================= */
@media (max-width: 430px) {
    .btn-actions {
        grid-template-columns: 1fr;
        gap: var(--size-20);
    }
}

@media (max-width: 520px) {
    .download-file {
        flex-direction: column;
        align-items: start;
        gap: var(--size-20);
    }

    .btn-actions {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .summary-header,
    .header-menu__btns {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        justify-content: center;
    }

    .logout-btn {
        justify-self: center;
    }

    .main-logo {
        justify-self: center;
        width: 120px;
    }

    .summary-info {
        align-items: center;
        text-align: center;
    }
}

@media only screen and (max-width: 564px) {
    .wrapper {
        padding: 20px;
    }
}

@media (max-width: 690px) {
    /*.scrollable-table {
    margin-top: 0;
  }

  th,
  .centered {
    display: none;
  }

  td {
    display: grid;
    grid-template-columns: 10ch auto;
    gap: var(--size-20);
    align-items: center;
  }

  table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
  }

  td {
    border-bottom: solid 1px var(--color-neutral-20);
    border-left: solid 1px var(--color-neutral-20);
    border-right: solid 1px var(--color-neutral-20);
  }

  td:nth-child(2) {
    border-top: solid 1px var(--color-neutral-20);
  }

  tr td:first-child {
    border-bottom: solid 1px var(--color-neutral-20);
    border: solid 1px var(--color-neutral-20);
    border-style: solid solid solid solid;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  tr td:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: solid 1px var(--color-neutral-20);
    border-style: none solid solid solid;
  }

  tr:first-child td {
    padding-top: 0;
  }

  td {
    padding: 10px;
  }*/

    td::before {
        /*content: attr(data-cell) ': ';*/
        color: var(--color-neutral-60);
        font-weight: 600;
        text-transform: capitalize;
    }

    .table-row td:first-child {
        text-align: left;
    }

    .main-container tr td:first-child,
    .popup th:nth-child(2),
    .popup td:nth-child(2) {
        /*width: 100%;*/
    }

    #mainTable th:first-child,
    #mainTable td:first-child {
        padding-left: 10px;
    }

    .account-summary table .total-row td:nth-child(1),
    .account-summary table .total-row td:nth-child(1) {
        /*display: none;*/
    }

    .account-summary table .total-row td:nth-child(2),
    .account-summary table .total-row td:last-child {
        background-color: var(--color-neutral-05);
    }

    .border-btm {
        border: none;
    }

    .summary-header {
        border: none;
    }

    .hideMobile {
        display: none !important;
    }
}

@media (max-width: 715px) {
    .header-filter {
        grid-template-columns: 1fr;
        gap: var(--size-20);
    }

    .filter {
        justify-content: start;
        padding-bottom: var(--size-20);
    }
}

@media (max-width: 780px) {
    .scrollable-table.compact .total-row td:first-child {
        colspan: 2;
    }

    th:nth-child(2),
    .table-row:not(.total-row) td:nth-child(2) {
        /*display: none;*/
    }

    .account-summary table .total-row td:nth-child(2) {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
}

@media screen and (max-width: 768px) {
    .profile-user span {
        display: none;
    }

    #main-header__sidebar-toggle {
        display: none;
    }

    #main-header a {
        text-decoration: none;
    }

        #main-header a span {
            display: inline-block;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--main-header-link-color);
            transition: color 0.4s ease-in-out;
        }

    #main-header a {
        gap: 1rem;
    }

    dialog {
        width: 90%;
        height: 100%;
    }
}

@media (max-width: 690px) {
    .settings-col {
        grid-template-columns: 1fr;
    }

    .tabs-container {
        margin: 0 auto;
    }
}

@media (max-width: 960px) {
    .header-filter {
        padding: 0 var(--size-20);
    }

    .header-menu__btns {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        justify-content: center;
    }
}
