/*
 * -------------------------------------------------------------------------------------
 * ------ VARS
 * -------------------------------------------------------------------------------------
 */

:root {
    --color-disabled: #cccccc;
    --color-primary-light: #8bddff;
    --color-primary: #0099d9;
    --color-primary-dark: #00628b;
    --color-primary-contrast-text: #ffffff;
    --color-secondary-light: #beea9c;
    --color-secondary: #74d12c;
    --color-secondary-dark: #3e7018;
    --color-secondary-contrast-text: #000000;
    --color-text: #6e756f;
    --color-error-light: #ffe4e4;
    --color-error: #ef4444;
    --color-success: #4caf50;
    --color-warning: #ffa500;
    --font-size-18x: 18px;
    --color-gray: #dddddd;
}

/*
 * -------------------------------------------------------------------------------------
 * ------ MAIN
 * -------------------------------------------------------------------------------------
 */

* {
    color: var(--color-text);
    font-family: "Mulish", sans-serif;
    line-height: 1.2 !important;
}

main {
    height: calc(100% - 4rem);
}

/* Inputs */

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;
}

input:focus-visible,
select:focus-visible {
    outline: none;
}

/*
 * -------------------------------------------------------------------------------------
 * ------ TITLE
 * -------------------------------------------------------------------------------------
 */

h1,
h2,
h3 {
    font-weight: bold;
}

h1 {
    color: var(--color-primary);
}

.cl-h1 {
    font-size: 2rem !important;
}

h2 {
    color: var(--color-secondary);
}

.cl-h2 {
    font-size: 1.5rem !important;
}

.cl-h3 {
    font-size: 1.25rem !important;
}

.cl-h4 {
    font-size: 1.125rem !important;
}

/*
 * -------------------------------------------------------------------------------------
 * ------ LINK
 * -------------------------------------------------------------------------------------
 */

a {
    color: var(--color-primary) !important;
    cursor: pointer;
}

a:hover {
    color: var(--color-primary-dark) !important;
    text-decoration: underline;
}

.cl-no-underline:hover {
    text-decoration: none;
}

.cl-nav-item-active {
    background-color: #6b7280;
}

/*
 * -------------------------------------------------------------------------------------
 * ------ BODY
 * -------------------------------------------------------------------------------------
 */

.cl-background {
    background-image: url("../assets/background.png");
    background-repeat: no-repeat;
    background-size: cover;
}

/*
 * -------------------------------------------------------------------------------------
 * ------ INPUT
 * -------------------------------------------------------------------------------------
 */

.cl-field {
    align-items: center;
    border-radius: 999px;
    border: 2px solid var(--color-secondary-light);
    display: flex;
    margin: 4px 0px;
    padding: 0px 15px;
    width: 100%;
}

.cl-field i {
    font-size: 1.5rem;
}

.cl-field > i {
    padding-right: 10px;
}

.cl-field > span {
    font-size: var(--font-size-18x);
}

.cl-field input,
.cl-field select {
    background-color: transparent;
    font-size: var(--font-size-18x);
    height: 35px;
    width: 100%;
}

.cl-field select {
    cursor: pointer;
}

.cl-field input[type="checkbox"] {
    width: 1.5rem;
}

.cl-field-chk-bx input[type="checkbox"] {
    width: 3rem;
    height: 1.5rem;
}

.cl-field input[type="file"] {
    padding-top: 4px;
}

.cl-field:focus,
.cl-field:focus-within {
    border-color: var(--color-secondary);
}

.cl-field:hover {
    box-shadow: 0px 0px 5px 0px var(--color-secondary);
}

.cl-field-error {
    border-color: var(--color-error);
}

.cl-field-error:focus,
.cl-field-error:focus-within {
    border-color: var(--color-error);
}

.cl-field-error:hover {
    box-shadow: 0px 0px 5px 0px var(--color-error);
}

.cl-field-error-message {
    background: var(--color-error-light);
    border-radius: 5px;
    margin: 5px 0px;
    padding: 5px 10px;
    text-align: left;
    width: 100%;
}

.cl-field-psw-button {
    margin-left: 10px;
}

/*
 * -------------------------------------------------------------------------------------
 * ------ BUTTON
 * -------------------------------------------------------------------------------------
 */

.cl-button {
    align-items: center;
    border-radius: 999px;
    display: flex;
    font-size: var(--font-size-18x);
    justify-content: center;
    line-height: 1;
    padding: 10px 25px;
    transition: 500ms;
}

.cl-button i {
    padding-right: 10px;
}

.cl-button:hover {
    transition: 500ms;
    text-decoration: unset !important;
}

.cl-button-primary {
    background-color: var(--color-primary);
    color: var(--color-primary-contrast-text) !important;
}

.cl-button-primary i {
    color: var(--color-primary-contrast-text);
}

.cl-button-primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-primary-contrast-text) !important;
}

.cl-button-secondary {
    background-color: var(--color-secondary);
    color: var(--color-secondary-contrast-text) !important;
}

.cl-button-secondary i {
    color: var(--color-secondary-contrast-text);
}

.cl-button-secondary:hover {
    background-color: var(--color-secondary-dark);
    color: var(--color-secondary-contrast-text) !important;
}

.cl-button-disabled {
    cursor: initial;
    background-color: var(--color-disabled);
}

.cl-button-disabled:hover {
    background-color: var(--color-disabled);
}

.cl-button-default {
    background-color: #ffffff;
    color: var(--color-text) !important;
    border: 1px solid var(--color-gray);
}

.cl-button-default i {
    color: var(--color-text);
}

.cl-button-default:hover {
    background-color: var(--color-gray);
    color: var(--color-text) !important;
}

/*
 * -------------------------------------------------------------------------------------
 * ------ SHADOW
 * -------------------------------------------------------------------------------------
 */

.cl-shadow {
    box-shadow: 1px 1px 30px 0px grey;
}

/*
 * -------------------------------------------------------------------------------------
 * ------ TEXT
 * -------------------------------------------------------------------------------------
 */

.cl-text-primary {
    color: var(--color-primary);
}

.cl-text-secondary {
    color: var(--color-secondary);
}

.cl-text-error {
    color: var(--color-error);
}

.cl-text-success {
    color: var(--color-success);
}

.cl-text-warning {
    color: var(--color-warning);
}

/*
 * -------------------------------------------------------------------------------------
 * ------ HEIGTH
 * -------------------------------------------------------------------------------------
 */

.cl-h-10 {
    height: 2.5rem;
}

/*
 * -------------------------------------------------------------------------------------
 * ------ IDS
 * -------------------------------------------------------------------------------------
 */

#loader {
    background-color: #e7f9e7;
}

/*
 * -------------------------------------------------------------------------------------
 * ------ NAV BAR
 * -------------------------------------------------------------------------------------
 */

.cl-nav-bar-scroll {
    scrollbar-width: thin;
    scrollbar-color: gray transparent;
}

.cl-nav-bar-scroll::-webkit-scrollbar {
    width: 5px;
}

.cl-nav-bar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.cl-nav-bar-scroll::-webkit-scrollbar-thumb {
    background-color: gray;
    border-radius: 100px;
}

/*
 * -------------------------------------------------------------------------------------
 * ------ DIALOG
 * -------------------------------------------------------------------------------------
 */

.cl-dialog-btn-close {
    top: -2px;
    right: 1px;
}

/*
 * -------------------------------------------------------------------------------------
 * ------ TABLE
 * -------------------------------------------------------------------------------------
 */

.cl-table {
    width: 100%;
}

.cl-table table {
    border-color: var(--color-gray) !important;
    border-left: 1px solid;
    border-radius: 10px;
    border-right: 1px solid;
    overflow: hidden;
    width: 100% !important;
}

/* Botón de excel */

.cl-table .buttons-excel {
    background: green !important;
    border-radius: 30px;
    border: none !important;
    padding: 8px 35px;
}

.cl-table .buttons-excel span {
    color: #fff;
}

/* Filtro */

.cl-table .dataTables_filter {
    margin-bottom: 1rem;
}

.cl-table .dataTables_filter input {
    border-radius: 30px;
    padding: 5px 15px;
}

/* Cabecera */

.cl-table thead {
    background-color: #1f2937;
}

.cl-table th {
    color: #d1d5db;
    border: none !important;
}

/* Cuerpo */

.cl-table tbody tr td {
    padding: 3px 5px !important;
}

.cl-table tbody tr:hover {
    background-color: #d1d5db !important;
}

.cl-table tbody tr {
    border: 1px solid gray !important;
}

.cl-table .break {
    word-break: break-all;
}

/* Contador de registros 1 de 10/50 */

.cl-table .dataTables_info {
    color: var(--color-text) !important;
    align-items: center;
    display: flex;
    height: 50px !important;
    justify-content: center;
    line-height: 1 !important;
    padding: 10px !important;
}

/* Selector de cantidad de items */

.cl-table .dataTables_length {
    align-items: center;
    color: var(--color-text) !important;
    display: flex;
    height: 50px !important;
    justify-content: center;
    line-height: 1 !important;
    padding: 10px !important;
}

.cl-table .dataTables_length select {
    border-radius: 20px;
    cursor: pointer;
    padding: 0px 5px;
}

.cl-table .dataTables_length select:focus-visible {
    outline: unset !important;
}

/* Paginación */

.cl-table .dataTables_paginate {
    color: var(--color-text) !important;
    align-items: center;
    display: flex;
    height: 50px !important;
    justify-content: center;
    line-height: 1 !important;
    padding: 10px !important;
}

.cl-table .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: none !important;
    padding: 5px 15px !important;
}

.cl-table .dataTables_paginate .paginate_button:hover {
    background: #4b5563;
}

.cl-table .dataTables_paginate .paginate_button.current {
    background: #374151 !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

.cl-table .dataTables_paginate .paginate_button.current:hover {
    background: #6b7280 !important;
    color: #ffffff !important;
}
