/* ==============================================================
   NEOGRAFIC
   SISTEMA VISUAL GLOBAL
   ============================================================== */

:root {

    /* ----------------------------------------------------------
       IDENTIDAD NEOGRAFIC
    ---------------------------------------------------------- */

    --primary: #1717a8;
    --primary-dark: #0d0d72;
    --primary-soft: #eeeeff;

    --yellow: #ffe600;
    --yellow-soft: #fffbe0;

    --pink: #ed3e7c;
    --pink-soft: #fff0f5;

    --cyan: #23bfc5;
    --cyan-soft: #eafafb;


    /* ----------------------------------------------------------
       COLORES DE INTERFAZ
    ---------------------------------------------------------- */

    --ink: #1b1d29;
    --text: #303341;
    --muted: #7b8190;

    --bg: #f5f6f9;
    --surface: #ffffff;
    --surface-soft: #fafbfc;

    --line: #e7e9ef;
    --line-soft: #f0f1f4;

    --white: #ffffff;

    --danger: #b42318;
    --danger-soft: #fff0ef;

    --ok: #067647;
    --ok-soft: #ecfdf3;

    --warning: #9a6700;
    --warning-soft: #fff7da;


    /* ----------------------------------------------------------
       SOMBRAS
    ---------------------------------------------------------- */

    --shadow-xs:
            0 1px 2px rgba(20, 24, 40, .03);

    --shadow-sm:
            0 3px 10px rgba(20, 24, 40, .045);

    --shadow-md:
            0 10px 30px rgba(20, 24, 40, .07);


    /* ----------------------------------------------------------
       FORMAS
    ---------------------------------------------------------- */

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}


/* ==============================================================
   RESET
   ============================================================== */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    min-width: 320px;

    font-family:
            "Segoe UI Variable",
            "Aptos",
            Inter,
            system-ui,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;

    font-size: 14px;

    line-height: 1.5;

    background: var(--bg);

    color: var(--text);

    -webkit-font-smoothing: antialiased;
}


a {

    text-decoration: none;

    color: inherit;
}


button,
input,
select,
textarea {

    font: inherit;
}


button {
    cursor: pointer;
}


img {
    max-width: 100%;
}


::selection {

    background: var(--primary-soft);

    color: var(--primary-dark);
}


/* ==============================================================
   ACCESIBILIDAD / FOCUS
   ============================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {

    outline: 3px solid rgba(23, 23, 168, .15);

    outline-offset: 2px;
}


/* ==============================================================
   LOGIN
   ============================================================== */

.login {

    min-height: 100vh;

    display: grid;

    place-items: center;

    padding: 28px;

    background:
            radial-gradient(
                    circle at 15% 18%,
                    rgba(255, 230, 0, .16),
                    transparent 25%
            ),
            radial-gradient(
                    circle at 88% 82%,
                    rgba(35, 191, 197, .13),
                    transparent 28%
            ),
            linear-gradient(
                    145deg,
                    #080854,
                    #101080 55%,
                    #090943
            );
}


.login-card {

    width: min(450px, 100%);

    padding: 34px;

    background: rgba(255, 255, 255, .98);

    border: 1px solid rgba(255,255,255,.5);

    border-radius: 22px;

    box-shadow:
            0 28px 80px rgba(0, 0, 30, .30);

    position: relative;

    overflow: hidden;
}


.login-card::before {

    content: "";

    position: absolute;

    left: 34px;
    right: 34px;
    top: 0;

    height: 4px;

    background:
            linear-gradient(
                    90deg,
                    var(--yellow),
                    var(--pink),
                    var(--cyan)
            );

    border-radius: 0 0 10px 10px;
}


.login-logo {

    display: block;

    width: min(330px, 90%);

    margin:
            0 auto
            25px;
}


/* ==============================================================
   CAMPOS DE FORMULARIO
   ============================================================== */

.field {

    margin: 13px 0;
}


.field label {

    display: block;

    margin-bottom: 6px;

    font-size: 12px;

    font-weight: 650;

    color: #505564;
}


.field small {

    display: block;

    margin-top: 5px;

    font-size: 11px;

    line-height: 1.45;

    color: var(--muted);
}


.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select,
.inline select {

    width: 100%;

    min-height: 42px;

    padding: 10px 12px;

    border: 1px solid var(--line);

    border-radius: 10px;

    background: var(--white);

    color: var(--ink);

    transition:
            border-color .16s ease,
            box-shadow .16s ease,
            background .16s ease;
}


.field textarea {

    min-height: 92px;

    resize: vertical;
}


.field input:hover,
.field select:hover,
.field textarea:hover,
.toolbar input:hover,
.toolbar select:hover,
.inline select:hover {

    border-color: #d3d6df;
}


.field input:focus,
.field select:focus,
.field textarea:focus,
.toolbar input:focus,
.toolbar select:focus,
.inline select:focus {

    outline: none;

    border-color: rgba(23, 23, 168, .48);

    box-shadow:
            0 0 0 3px rgba(23, 23, 168, .08);
}


.field input:disabled,
.field select:disabled,
.field textarea:disabled {

    cursor: not-allowed;

    background: #f4f5f7;

    color: #969ba7;
}


::placeholder {

    color: #a5a9b2;
}


/* ==============================================================
   BOTONES
   ============================================================== */

.btn {

    min-height: 38px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 8px 14px;

    border: 1px solid transparent;

    border-radius: 10px;

    font-size: 12px;

    font-weight: 650;

    line-height: 1;

    cursor: pointer;

    transition:
            transform .14s ease,
            background .14s ease,
            border-color .14s ease,
            box-shadow .14s ease;
}


@media (hover: hover) {

    .btn:hover {

        transform: translateY(-1px);
    }

}


.btn:active {

    transform: translateY(0);
}


.btn-primary {

    background: var(--primary);

    color: var(--white);

    box-shadow:
            0 3px 10px rgba(23, 23, 168, .12);
}


.btn-primary:hover {

    background: var(--primary-dark);
}


.btn-light {

    background: var(--white);

    color: var(--primary);

    border-color: var(--line);

    box-shadow: var(--shadow-xs);
}


.btn-light:hover {

    background: var(--primary-soft);

    border-color: #d9d9f5;
}


.btn-danger {

    background: var(--danger-soft);

    color: var(--danger);

    border-color: #f7d6d2;
}


.btn-danger:hover {

    background: #ffe4e1;
}


.btn-yellow {

    background: var(--yellow);

    color: #171717;
}


.btn-yellow:hover {

    background: #f4dd00;
}


/* ==============================================================
   ESTRUCTURA PRINCIPAL
   ============================================================== */

.app {

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        260px
        minmax(0, 1fr);

    background: var(--bg);
}


/* ==============================================================
   SIDEBAR
   ============================================================== */

.side {

    position: sticky;

    top: 0;

    height: 100vh;

    display: flex;

    flex-direction: column;

    overflow-y: auto;

    background:
            linear-gradient(
                    180deg,
                    #111173 0%,
                    #0a0a59 48%,
                    #070743 100%
            );

    color: var(--white);

    z-index: 100;
}


.side-logo-box {

    padding: 18px 17px 15px;

    background: var(--white);

    border-bottom: 1px solid rgba(0, 0, 0, .04);
}


.side-logo-link {

    display: block;
}


.side-logo {

    display: block;

    width: 100%;

    height: 67px;

    object-fit: contain;
}


.nav-section-label {

    padding:
            20px
            22px
            6px;

    color: rgba(255, 255, 255, .42);

    font-size: 9px;

    font-weight: 750;

    letter-spacing: .13em;
}


/* ==============================================================
   MENÚ
   ============================================================== */

.nav {

    padding:
            5px
            12px
            16px;
}


.nav a {

    position: relative;

    min-height: 44px;

    display: flex;

    align-items: center;

    gap: 11px;

    margin: 3px 0;

    padding: 10px 11px;

    border-radius: 11px;

    color: rgba(255, 255, 255, .78);

    font-size: 12px;

    font-weight: 560;

    transition:
            background .16s ease,
            color .16s ease,
            transform .16s ease;
}


@media (hover: hover) {

    .nav a:hover {

        background:
                rgba(255,255,255,.08);

        color: var(--white);
    }

}


.nav a.active {

    background: var(--white);

    color: var(--primary-dark);

    font-weight: 680;

    box-shadow:
            0 7px 22px rgba(0,0,30,.16);
}


.nav a.active::before {

    content: "";

    position: absolute;

    left: -6px;

    width: 3px;

    height: 22px;

    border-radius: 4px;

    background: var(--yellow);
}


.nav-icon {

    width: 29px;

    height: 29px;

    flex: 0 0 29px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    background:
            rgba(255,255,255,.06);
}


.nav a.active .nav-icon {

    background: var(--primary-soft);
}


.nav-icon svg {

    width: 18px;

    height: 18px;
}


.nav-text {

    min-width: 0;

    line-height: 1.25;
}


/* ==============================================================
   USUARIO EN SIDEBAR
   ============================================================== */

.who {

    margin:
            auto
            13px
            14px;

    padding: 11px;

    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr)
        34px;

    align-items: center;

    gap: 9px;

    border:
            1px solid
            rgba(255,255,255,.09);

    border-radius: 13px;

    background:
            rgba(255,255,255,.055);
}


.who-avatar {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    background: var(--yellow);

    color: #151515;

    font-size: 14px;

    font-weight: 750;
}


.who-info {

    min-width: 0;

    display: flex;

    flex-direction: column;
}


.who-info strong {

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 11px;

    font-weight: 650;

    color: var(--white);
}


.who-info span {

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    margin-top: 2px;

    font-size: 9px;

    color:
            rgba(255,255,255,.54);
}


.logout-form {

    margin: 0;
}


.btn-logout {

    width: 34px;

    height: 34px;

    min-height: 34px;

    padding: 0;

    border:
            1px solid
            rgba(255,255,255,.09);

    border-radius: 9px;

    background:
            rgba(255,255,255,.055);

    color:
            rgba(255,255,255,.7);
}


.btn-logout:hover {

    background:
            rgba(255,255,255,.12);

    color: var(--white);
}


.btn-logout svg {

    width: 17px;

    height: 17px;
}


/* ==============================================================
   ÁREA PRINCIPAL
   ============================================================== */

.main {

    min-width: 0;

    background: var(--bg);
}


/* ==============================================================
   TOPBAR
   ============================================================== */

.top {

    position: sticky;

    top: 0;

    z-index: 50;

    min-height: 73px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding:
            0
            25px;

    background:
            rgba(255,255,255,.94);

    border-bottom:
            1px solid
            var(--line);

    backdrop-filter: blur(12px);
}


.top-left {

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 12px;
}


.top-title {

    min-width: 0;
}


.top-title h1,
.top h1 {

    margin: 0;

    color: var(--ink);

    font-size: 19px;

    font-weight: 680;

    letter-spacing: -.02em;

    line-height: 1.25;
}


.top-title small,
.top small {

    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 10px;

    font-weight: 500;
}


/* ==============================================================
   USUARIO TOPBAR
   ============================================================== */

.top-user {

    display: flex;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;

    padding:
            7px
            10px;

    border: 1px solid var(--line);

    border-radius: 11px;

    background: var(--white);
}


.top-user-dot {

    width: 7px;

    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #12a66a;

    box-shadow:
            0 0 0 3px rgba(18, 166, 106, .10);
}


.top-user-text {

    display: flex;

    flex-direction: column;
}


.top-user-text strong {

    font-size: 10px;

    font-weight: 650;

    color: var(--ink);
}


.top-user-text span {

    font-size: 9px;

    color: var(--muted);
}


/* ==============================================================
   BOTÓN MENÚ MÓVIL
   ============================================================== */

.mobile-menu-button {

    display: none;

    width: 38px;

    height: 38px;

    padding: 8px;

    border: 1px solid var(--line);

    border-radius: 10px;

    background: var(--white);

    color: var(--ink);
}


.mobile-menu-button svg {

    width: 20px;

    height: 20px;
}


/* ==============================================================
   CONTENIDO
   ============================================================== */

.content {

    width: 100%;

    max-width: 1600px;

    margin: 0 auto;

    padding: 24px 26px 20px;
}


/* ==============================================================
   GRID
   ============================================================== */

.grid {

    display: grid;

    gap: 15px;
}


.cards {

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
}


.costs {

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
}


/* ==============================================================
   TARJETAS
   ============================================================== */

.card {

    min-width: 0;

    padding: 18px;

    background: var(--surface);

    border: 1px solid var(--line);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-xs);
}


.card h2,
.card h3,
.card h4 {

    color: var(--ink);
}


.card h3 {

    margin:
            0
            0
            14px;

    font-size: 15px;

    font-weight: 650;
}


.metric {

    position: relative;

    overflow: hidden;

    border-left: none;
}


.metric::before {

    content: "";

    position: absolute;

    left: 18px;

    right: 18px;

    top: 0;

    height: 3px;

    border-radius: 0 0 8px 8px;

    background: var(--primary);
}


.metric:nth-child(2)::before {

    background: var(--yellow);
}


.metric:nth-child(3)::before {

    background: var(--cyan);
}


.metric:nth-child(4)::before {

    background: var(--pink);
}


.metric small {

    color: var(--muted);

    font-size: 11px;

    font-weight: 600;
}


.metric strong {

    display: block;

    margin-top: 8px;

    color: var(--ink);

    font-size: 25px;

    font-weight: 680;

    letter-spacing: -.03em;
}


/* ==============================================================
   AVISOS
   ============================================================== */

.notice {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 15px;

    padding: 12px 14px;

    border:
            1px solid
            #dfdff7;

    border-left:
            3px solid
            var(--primary);

    border-radius: 11px;

    background: #f7f7ff;

    color: #4d5060;

    font-size: 12px;

    line-height: 1.55;
}


.notice-icon {

    width: 23px;

    height: 23px;

    flex: 0 0 23px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 7px;

    background: var(--primary-soft);

    color: var(--primary);
}


.notice-icon svg {

    width: 14px;

    height: 14px;
}


.okmsg {

    background: var(--ok-soft);

    border-color: #cdeedc;

    border-left-color: var(--ok);

    color: #245c42;
}


.okmsg .notice-icon {

    background: #d8f7e6;

    color: var(--ok);
}


.err {

    background: var(--danger-soft);

    border-color: #f5d4d1;

    border-left-color: var(--danger);

    color: #7a2a24;
}


.err .notice-icon {

    background: #ffe2df;

    color: var(--danger);
}


.notice ul {

    margin:
            6px
            0
            0;

    padding-left: 18px;
}


/* ==============================================================
   TOOLBARS
   ============================================================== */

.toolbar {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 14px;
}


.push {

    margin-left: auto;
}


/* ==============================================================
   TABLAS
   ============================================================== */

.table-wrap {

    width: 100%;

    overflow-x: auto;

    background: var(--white);

    border: 1px solid var(--line);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-xs);
}


table {

    width: 100%;

    min-width: 760px;

    border-collapse: collapse;
}


thead {

    background: #fafbfc;
}


th,
td {

    padding:
            12px
            14px;

    border-bottom:
            1px solid
            var(--line-soft);

    text-align: left;

    vertical-align: middle;

    font-size: 12px;
}


th {

    color: #696e7b;

    font-size: 10px;

    font-weight: 720;

    letter-spacing: .035em;

    text-transform: uppercase;

    white-space: nowrap;
}


td {

    color: #3d414f;
}


tbody tr {

    transition: background .12s ease;
}


@media (hover: hover) {

    tbody tr:hover {

        background: #fcfcfd;
    }

}


tbody tr:last-child td {

    border-bottom: none;
}


/* ==============================================================
   BADGES
   ============================================================== */

.badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 24px;

    padding:
            4px
            9px;

    border-radius: 999px;

    font-size: 9px;

    font-weight: 700;

    white-space: nowrap;
}


.badge-ok {

    background: var(--ok-soft);

    color: var(--ok);
}


.badge-warn {

    background: var(--warning-soft);

    color: var(--warning);
}


.badge-bad {

    background: var(--danger-soft);

    color: var(--danger);
}


.badge-info {

    background: var(--primary-soft);

    color: var(--primary);
}


/* ==============================================================
   DETAILS / ACORDEONES
   ============================================================== */

details {

    margin-bottom: 13px;

    padding: 0;

    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--line);

    border-radius: var(--radius);

    box-shadow: var(--shadow-xs);
}


details[open] {

    padding-bottom: 14px;
}


details > summary {

    min-height: 46px;

    display: flex;

    align-items: center;

    padding:
            12px
            14px;

    cursor: pointer;

    color: var(--ink);

    font-size: 12px;

    font-weight: 650;

    background: #fbfbfc;

    transition: background .14s ease;
}


details > summary:hover {

    background: var(--primary-soft);
}


details[open] > summary {

    margin-bottom: 12px;

    border-bottom:
            1px solid
            var(--line-soft);
}


details form,
details > div:not(summary) {

    margin-left: 14px;

    margin-right: 14px;
}


/* ==============================================================
   FORM GRID
   ============================================================== */

.form-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
            5px
            14px;

    margin-top: 8px;
}


.full {

    grid-column:
            1 / -1;
}


/* ==============================================================
   ACCIONES
   ============================================================== */

.actions {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 12px;
}


.inline {

    display: inline;
}


/* ==============================================================
   PAGINACIÓN
   ============================================================== */

.pagination {

    margin-top: 16px;
}


.pagination svg {

    width: 16px !important;

    height: 16px !important;
}


.pagination a,
.pagination span {

    font-size: 11px;
}


/* ==============================================================
   FOOTER
   ============================================================== */

.footer {

    margin-top: 30px;

    padding:
            18px
            2px
            5px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    border-top:
            1px solid
            var(--line);

    color: #9296a1;

    font-size: 9px;
}


.footer strong {

    color: #777b86;

    font-weight: 700;
}


.footer-system {

    white-space: nowrap;
}


/* ==============================================================
   OVERLAY MÓVIL
   ============================================================== */

.sidebar-overlay {

    position: fixed;

    inset: 0;

    z-index: 90;

    display: none;

    background:
            rgba(10, 10, 30, .45);

    backdrop-filter: blur(2px);
}


.sidebar-overlay.overlay-visible {

    display: block;
}


/* ==============================================================
   UTILIDADES
   ============================================================== */

ul {

    margin: 5px 0;
}


hr {

    border: 0;

    border-top:
            1px solid
            var(--line);

    margin:
            18px
            0;
}


/* ==============================================================
   RESPONSIVE - TABLET
   ============================================================== */

@media (max-width: 1050px) {

    .cards,
    .costs {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* ==============================================================
   RESPONSIVE - MENÚ MÓVIL
   ============================================================== */

@media (max-width: 900px) {

    .app {

        grid-template-columns: 1fr;
    }


    .side {

        position: fixed;

        left: 0;
        top: 0;

        width: min(280px, 86vw);

        height: 100%;

        transform:
                translateX(-105%);

        transition:
                transform .22s ease;

        box-shadow:
                10px 0 40px
                rgba(0,0,30,.22);
    }


    .side.side-open {

        transform:
                translateX(0);
    }


    .mobile-menu-button {

        display: flex;

        align-items: center;

        justify-content: center;
    }


    .top {

        padding:
                0
                18px;
    }


    .content {

        padding:
                20px
                18px;
    }

}


/* ==============================================================
   RESPONSIVE - CELULAR
   ============================================================== */

@media (max-width: 650px) {

    .cards,
    .costs,
    .form-grid {

        grid-template-columns: 1fr;
    }


    .full {

        grid-column: auto;
    }


    .top {

        min-height: 66px;

        padding:
                0
                13px;
    }


    .top-title h1,
    .top h1 {

        font-size: 16px;
    }


    .top-title small,
    .top small {

        display: none;
    }


    .top-user {

        padding:
                6px
                8px;
    }


    .top-user-text span {

        display: none;
    }


    .content {

        padding:
                15px
                12px;
    }


    .card {

        padding: 15px;

        border-radius: 13px;
    }


    .notice {

        border-radius: 10px;
    }


    .toolbar {

        align-items: stretch;
    }


    .toolbar > * {

        max-width: 100%;
    }


    .push {

        margin-left: 0;
    }


    .footer {

        flex-direction: column;

        align-items: flex-start;

        gap: 3px;
    }

}


/* ==============================================================
   PANTALLAS MUY PEQUEÑAS
   ============================================================== */

@media (max-width: 420px) {

    .login {

        padding: 15px;
    }


    .login-card {

        padding:
                28px
                20px;
    }


    .btn {

        min-height: 40px;
    }


    .top-user {

        display: none;
    }

}

/* ==============================================================
   AJUSTE DE BOTONES DESPLEGABLES
   Compactos + azul NeoGrafic
   ============================================================== */

/*
   Cuando el desplegable está cerrado,
   únicamente ocupa el espacio del botón.
*/
details:not([open]) {
    display: inline-block;
    width: auto;

    padding: 0;

    background: transparent;

    border: none;

    border-radius: 0;

    box-shadow: none;

    overflow: visible;
}


/*
   Botón principal del desplegable.
*/
details > summary {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    width: auto;

    min-height: 36px;

    padding:
            8px
            14px;

    color: #ffffff;

    background: var(--primary);

    border:
            1px solid
            var(--primary);

    border-radius: 9px;

    font-size: 11px;

    font-weight: 650;

    line-height: 1;

    cursor: pointer;

    list-style: none;

    box-shadow:
            0 3px 8px
            rgba(23, 23, 168, .12);

    transition:
            background .14s ease,
            border-color .14s ease,
            transform .14s ease,
            box-shadow .14s ease;
}


/*
   Quitar la flecha predeterminada.
*/
details > summary::-webkit-details-marker {
    display: none;
}


details > summary::marker {
    content: "";
}


/*
   Flecha sencilla.
*/
details > summary::after {
    content: "▾";

    margin-left: 2px;

    color: #ffffff;

    font-size: 10px;

    line-height: 1;

    transition:
            transform .14s ease;
}


/*
   Al pasar el mouse.
*/
details > summary:hover {
    background: var(--primary-dark);

    border-color: var(--primary-dark);

    color: #ffffff;

    transform:
            translateY(-1px);

    box-shadow:
            0 4px 10px
            rgba(23, 23, 168, .16);
}


/*
   Cuando está abierto.
*/
details[open] > summary {
    display: inline-flex;

    width: auto;

    color: #ffffff;

    background: var(--primary);

    border:
            1px solid
            var(--primary);

    border-radius: 9px;
}


/*
   Girar la flecha cuando está abierto.
*/
details[open] > summary::after {
    transform:
            rotate(180deg);
}


/*
   Botones pequeños dentro de tablas:
   Modificar, Restablecer, etc.
*/
.table-wrap details > summary {
    min-height: 30px;

    padding:
            6px
            10px;

    border-radius: 7px;

    font-size: 9px;

    box-shadow: none;
}