
/* ==========================================================
   M17-URU · Uruguay-Link
   Dashboard personalizado
   ========================================================== */


:root {

    --m17-dark: #252b31;
    --m17-dark-2: #303840;
    --m17-border: #dce3e8;
    --m17-bg: #f5f7f9;
    --m17-panel: #ffffff;
    --m17-text: #28323b;
    --m17-muted: #75818c;
    --m17-accent: #d83434;

}


html {

    position: relative;
    min-height: 100%;

}


body {

    margin: 0;
    padding: 0;
    min-height: 100vh;

    background: var(--m17-bg);

    color: var(--m17-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

}


/* ==========================================================
   CABECERA
   ========================================================== */


.m17-header {

    background:
        linear-gradient(
            135deg,
            var(--m17-dark),
            var(--m17-dark-2)
        );

    color: #ffffff;

    box-shadow:
        0 3px 12px
        rgba(0, 0, 0, 0.18);

}


.header-main {

    min-height: 88px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    padding:
        14px 8px;

}


.brand-area {

    display: flex;

    align-items: center;

    min-width: 0;

}


.m17-logo {

    flex: 0 0 auto;

    width: 58px;

    height: 58px;

    margin-right: 14px;

    border-radius: 50%;

    background: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow:
        0 3px 10px
        rgba(0, 0, 0, 0.22);

}


.m17-logo img {

    width: 52px;

    height: 52px;

    border-radius: 50%;

}


.brand-title {

    font-size: 1.45rem;

    font-weight: 700;

    line-height: 1.15;

    white-space: nowrap;

}


.brand-title span {

    font-weight: 500;

}


.brand-subtitle {

    margin-top: 5px;

    color: #c5ccd2;

    font-size: 0.92rem;

}


.header-status {

    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 10px;

}


.status-item {

    min-width: 120px;

    padding:
        8px 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.05);

}


.status-label {

    display: block;

    margin-bottom: 2px;

    color: #aeb8c0;

    font-size: 0.69rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.06em;

}


.status-value {

    color: #ffffff;

    font-size: 0.88rem;

    font-weight: 600;

}


/* ==========================================================
   MENU
   ========================================================== */


.m17-menu {

    display: flex;

    align-items: center;

    gap: 4px;

    min-height: 46px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

}


.m17-menu a {

    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    height: 46px;

    padding:
        0 18px;

    color: #cbd2d8;

    font-size: 0.91rem;

    text-decoration: none;

    transition:
        color 0.15s ease,
        background 0.15s ease;

}


.m17-menu a:hover {

    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.05);

    text-decoration: none;

}


.m17-menu a.active {

    color: #ffffff;

    font-weight: 600;

}


.m17-menu a.active::after {

    content: "";

    position: absolute;

    left: 16px;

    right: 16px;

    bottom: 0;

    height: 3px;

    border-radius:
        3px 3px 0 0;

    background: var(--m17-accent);

}


.menu-count {

    min-width: 21px;

    padding:
        2px 6px;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.12);

    font-size: 0.72rem;

    text-align: center;

}


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


.m17-content {

    padding:
        26px 0 34px;

}


.dashboard-title {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;

}


.dashboard-title h1 {

    margin: 0;

    font-size: 1.35rem;

    font-weight: 650;

    color: var(--m17-text);

}


.dashboard-title p {

    margin:
        4px 0 0;

    color: var(--m17-muted);

    font-size: 0.88rem;

}


.module-badge {

    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        7px 12px;

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

    border-radius: 8px;

    background: #ffffff;

    color: var(--m17-text);

    font-size: 0.86rem;

    font-weight: 600;

}


.module-letter {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 25px;

    height: 25px;

    border-radius: 6px;

    background: var(--m17-dark);

    color: #ffffff;

    font-size: 0.78rem;

}


.dashboard-panel {

    overflow: hidden;

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

    border-radius: 10px;

    background: var(--m17-panel);

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, 0.04);

}


.dashboard-panel .row {

    margin:
        0;

}


.dashboard-panel .col-md-9,
.dashboard-panel .col-md-3 {

    padding:
        0;

}


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


.table {

    margin-bottom: 0;

    background: #ffffff;

}


.table th {

    border-top: 0;

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

    background: #f1f4f6;

    color: #52606b;

    font-size: 0.76rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.025em;

    vertical-align: middle;

}


.table td {

    border-top:
        1px solid #edf0f2;

    color: #303a43;

    font-size: 0.86rem;

    vertical-align: middle;

}


.table-striped tbody tr:nth-of-type(odd) {

    background:
        rgba(0, 0, 0, 0.012);

}


.table-hover tbody tr:hover {

    background:
        #f6f9fb;

}


.table-center * {

    text-align: center !important;

}


.table-flag {

    height: 16px;

}


.table-status {

    height: 24px;

}


.table a {

    font-weight: 500;

}


/* ==========================================================
   FILTROS
   ========================================================== */


.FilterField {

    min-width: 160px;

    height: 34px;

    padding:
        5px 9px;

    border:
        1px solid #ccd5db;

    border-radius: 5px;

    background: #ffffff;

    color: var(--m17-text);

    font-size: 0.84rem;

    outline: none;

}


.FilterField:focus {

    border-color: #8e9ba5;

    box-shadow:
        0 0 0 2px
        rgba(70, 85, 96, 0.09);

}


.FilterSubmit {

    height: 34px;

    padding:
        5px 13px;

    border:
        1px solid var(--m17-dark);

    border-radius: 5px;

    background: var(--m17-dark);

    color: #ffffff;

    font-size: 0.82rem;

    cursor: pointer;

}


.FilterSubmit:hover {

    background: #3b444d;

}


.smalllink {

    font-size: 0.8rem;

}


/* ==========================================================
   TOOLTIPS
   ========================================================== */


a.tip {

    text-decoration: none;

}


a.tip:hover {

    position: relative;

}


a.tip span {

    display: none;

}


a.tip:hover span {

    display: block;

    position: absolute;

    z-index: 100;

    top: 18px;

    left: 0;

    padding:
        6px 8px;

    border-radius: 5px;

    background:
        rgba(0, 0, 0, 0.85);

    color: #ffffff;

    white-space: nowrap;

    font-size: 0.75rem;

}


/* ==========================================================
   PIE
   ========================================================== */


.m17-footer {

    margin-top: 8px;

    background: #20262b;

    color: #c7d0d7;

    border-top:
        3px solid var(--m17-accent);

}


.footer-grid {

    display: grid;

    grid-template-columns:
        1.7fr
        1fr
        1fr
        0.8fr
        1.5fr;

    gap: 20px;

    padding:
        22px 8px 18px;

}


.footer-block {

    display: flex;

    flex-direction: column;

    gap: 4px;

    font-size: 0.81rem;

}


.footer-block span {

    color: #8f9ba4;

    font-size: 0.7rem;

    text-transform: uppercase;

    letter-spacing: 0.04em;

}


.footer-block strong {

    color: #ffffff;

    font-weight: 600;

}


.footer-block a {

    color: #ffffff;

    font-weight: 600;

    text-decoration: none;

}


.footer-block a:hover {

    text-decoration: underline;

}


.footer-bottom {

    padding:
        12px 8px 16px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.07);

    color: #7f8a92;

    font-size: 0.75rem;

    text-align: center;

}


/* ==========================================================
   RESPONSIVE
   ========================================================== */


@media
(max-width: 991px) {

    .header-main {

        align-items: flex-start;

        flex-direction: column;

    }


    .header-status {

        width: 100%;

        justify-content: flex-start;

    }


    .status-item {

        flex:
            1 1 150px;

    }


    .footer-grid {

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

    }

}


@media
(max-width: 767px) {

    .header-main {

        min-height: auto;

        padding:
            14px 2px;

    }


    .m17-logo {

        width: 48px;

        height: 48px;

        margin-right: 10px;

    }


    .m17-logo img {

        width: 44px;

        height: 44px;

    }


    .brand-title {

        font-size: 1.12rem;

        white-space: normal;

    }


    .brand-subtitle {

        font-size: 0.78rem;

    }


    .header-status {

        gap: 6px;

    }


    .status-item {

        min-width: 0;

        padding:
            7px 9px;

    }


    .m17-menu {

        overflow-x: auto;

        white-space: nowrap;

    }


    .m17-menu a {

        padding:
            0 13px;

    }


    .m17-content {

        padding:
            18px 0 24px;

    }


    .dashboard-title {

        align-items: flex-start;

        flex-direction: column;

    }


    .dashboard-panel {

        overflow-x: auto;

        border-radius: 7px;

    }


    .dashboard-panel .col-md-9,
    .dashboard-panel .col-md-3 {

        min-width: 100%;

    }


    .table {

        min-width: 780px;

    }


    .footer-grid {

        grid-template-columns:
            1fr;

        gap: 14px;

    }

}


@media
(max-width: 420px) {

    .module-badge {

        width: 100%;

    }


    .FilterField {

        min-width: 105px;

    }

}


/* ==========================================================
   AJUSTES FINALES M17-URU
   ========================================================== */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.m17-header {
    flex: 0 0 auto;
}

.m17-content {
    flex: 1 0 auto;
}

.m17-footer {
    flex: 0 0 auto;
    margin-top: auto;
}

