/* =========================
   GENERAL
========================= */

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f8f9fc;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    min-height: 100vh;
}

.sidebar .nav-link {
    font-size: 14px;
    transition: all .2s ease;
}

.sidebar .nav-link:hover {
    transform: translateX(3px);
}

/* =========================
   CARDS
========================= */

.card {
    border: none;
    border-radius: 14px;
}

.card-header {
    border-bottom: 0;
}

/* =========================
   TABLAS
========================= */

.table {
    vertical-align: middle;
}

.table td,
.table th {
    vertical-align: middle;
}

/* Evitar brincos hover */
.table-hover tbody tr {
    transition: background-color .15s ease-in-out;
}

.table-hover tbody tr:hover {
    transform: none !important;
}

/* =========================
   BADGES
========================= */

.badge {
    font-size: 12px;
    padding: .45rem .7rem;
}

/* =========================
   BOTONES
========================= */

.btn {
    border-radius: 8px;
    font-size: 13px;
    padding: .45rem .9rem;
}

.btn-sm {
    padding: .3rem .65rem;
    font-size: 12px;
}

/* =========================
   BOTONES ACCIONES TABLA
========================= */

.acciones-td {
    min-width: 250px;
    width: 250px;
}

.acciones-botones {
    display: flex;
    gap: .35rem;
    align-items: center;
    flex-wrap: nowrap;
}

.acciones-botones .btn,
.acciones-botones .btn:hover,
.acciones-botones .btn:focus,
.acciones-botones .btn:active {
    margin-bottom: 0 !important;
    white-space: nowrap;
    transform: none !important;
    position: relative;
    top: 0;
}

/* =========================
   FORMULARIOS
========================= */

.form-label {
    margin-bottom: .25rem;
    font-size: 13px;
    font-weight: 600;
}

/* Inputs */
.form-control,
.form-select {
    min-height: 34px !important;
    height: 34px !important;
    padding: .25rem .6rem !important;
    font-size: 13px;
    border-radius: 8px;
}

/* Select */
.form-select {
    padding-right: 2rem !important;
}

/* Textarea */
textarea.form-control {
    min-height: 65px !important;
    height: auto !important;
    resize: vertical;
}

/* Input group */
.input-group-text {
    height: 34px;
    font-size: 13px;
    padding: .25rem .6rem;
    border-radius: 8px 0 0 8px;
}

/* =========================
   FORMULARIOS COMPACTOS
========================= */

.row.g-compact {
    --bs-gutter-y: .55rem;
    --bs-gutter-x: .75rem;
}

.compact-card {
    border-radius: 14px;
    overflow: hidden;
}

.compact-card .card-header {
    padding: .45rem .8rem;
    font-size: 14px;
}

.compact-card .card-body {
    padding: .75rem;
}

/* =========================
   FOOTER
========================= */

.sticky-footer {
    padding: .1rem 0;
    font-size: 12px;
    border-top: 1px solid rgba(0,0,0,.05);
}

/* =========================
   SCROLL TOP
========================= */

.scroll-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    color: white;
    background: rgba(90, 92, 105, 0.5);
    line-height: 40px;
    border-radius: 50%;
    z-index: 999;
    transition: all .2s ease;
}

.scroll-to-top:hover {
    background: #5a5c69;
    transform: translateY(-2px);
}

/* =========================
   TOPBAR
========================= */

.topbar {
    min-height: 60px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    /* Sidebar compacta */
    .sidebar {
        width: 6.5rem !important;
    }

    .sidebar .nav-item .nav-link span,
    .sidebar-brand-text {
        display: none !important;
    }

    /* Espaciado */
    .container-fluid {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    /* Cards */
    .card {
        margin-bottom: .75rem;
    }

    .card-body {
        padding: .8rem;
    }

    /* Tablas */
    .table-responsive {
        overflow-x: auto;
    }

    .table td,
    .table th {
        white-space: nowrap;
        font-size: 12px;
    }

    /* Inputs */
    .form-control,
    .form-select {
        min-height: 34px !important;
        height: 34px !important;
        font-size: 13px;
    }

    .form-label {
        font-size: 12px;
    }

    textarea.form-control {
        min-height: 60px !important;
    }

    /* Botones */
    .btn {
        margin-bottom: .25rem;
    }

    /* Titulos */
    h1.h3 {
        font-size: 1.2rem;
    }

    /* Topbar */
    .topbar {
        padding-left: .5rem;
        padding-right: .5rem;
    }

    /* Acciones responsive */
    .acciones-td {
        min-width: 240px;
        width: 240px;
    }

    .acciones-botones {
        gap: .25rem;
    }

}