/* =========================================================
   SGFENS v2 — Dashboard Main Styles (Modern)
   ========================================================= */

#map {
    height: 400px;
    z-index: 0;
    border-radius: var(--radius-lg);
}

#quick-service-review {
    display: inline-block;
    width: 100%;
}

#content .main_container_card {
    width: 100%;
    margin: 20px 0 0 0;
    padding: 0;
    float: left;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#content .main_bar_red {
    width: 95%;
    margin: 0;
    padding: 0 20px;
    align-items: center;
    float: left;
    display: flex;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #161412 0%, #241e19 100%);
    border: 1px solid rgba(197, 137, 85, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#content .title_range_date {
    width: 95%;
    margin: 0;
    padding: 0 20px;
    align-items: center;
    float: left;
    display: inline-grid;
}

#content .title_range_date h2 {
    margin: 20px 0 0 0;
    color: var(--color-text);
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    text-decoration: none;
}

#content .main_bar_red ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    justify-content: center;
}

#content .main_bar_red ul li {
    margin: 8px 12px;
    min-width: 80px;
    color: #ffffff;
    cursor: pointer;
}

#content .main_bar_red ul li a {
    color: #e2ded7;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

#content .main_bar_red ul li a:hover {
    color: #e5aa70;
    font-size: 14px;
}

#content .main_bar_red ul li a:active {
    color: #f5d6ba;
    font-size: 14px;
}

#content .main_bar_red ul li a:link {
    color: #e2ded7;
    font-size: 14px;
}

#content .main_bar_red ul li a:visited {
    color: #d0c5b5;
    font-size: 14px;
}

#content .main_bar_red ul li a.activado {
    color: #d89b62;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(216, 155, 98, 0.5);
    border-bottom: 2px solid #d89b62;
    padding-bottom: 2px;
}

#content .main_bar_red .column-stable {
    display: table-cell;
    width: 20%;
}

#content .main_bar_red .column-stable h2:hover {
    color: #e5aa70;
    cursor: pointer;
}

#content .main_bar_red .column-stable h2:active {
    color: #f5d6ba;
    cursor: pointer;
}

#content .main_bar_red .column-stable h2 a:hover {
    color: #e5aa70;
    cursor: pointer;
}

#content .main_bar_red .column-stable h2 a:active {
    color: #f5d6ba;
    cursor: pointer;
}

#content .main_bar_red .column-stable h2 {
    margin: 0;
    color: #ffffff;
    font-weight: 400;
    font-size: 16px;
    text-decoration: none;
}

#content .main_bar_red .column-stable h2 a {
    margin: 0;
    color: #ffffff;
    font-weight: 400;
    font-size: 16px;
    text-decoration: none;
}

/* ---- Dashboard Cards ---- */

.custom_card_dimension {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 200px;
    height: 100px;
    background: linear-gradient(135deg, #c58955 0%, #9e6128 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 14px rgba(158, 97, 40, 0.28);
    align-items: center;
    display: inline-grid;
    text-align: center;
    box-sizing: border-box;
    transition: var(--transition);
}

.custom_card_dimension:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(158, 97, 40, 0.45);
    background: linear-gradient(135deg, #d89b62 0%, #b37337 100%);
}

.custom_card_dimension_left {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 200px;
    height: 100px;
    background: linear-gradient(135deg, #c58955 0%, #9e6128 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 14px rgba(158, 97, 40, 0.28);
    align-items: center;
    display: inline-grid;
    text-align: center;
    box-sizing: border-box;
    transition: var(--transition);
}

.custom_card_dimension_left:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(158, 97, 40, 0.45);
    background: linear-gradient(135deg, #d89b62 0%, #b37337 100%);
}

.quick-stats__info small {
    color: #fef3c7;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.quick-stats__info h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.comment-block {
    margin-top: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.comments-header {
    background: linear-gradient(135deg, #c58955, #9e6128);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.comment {
    height: 100%;
    color: var(--color-text-secondary);
}

.comment-header {
    margin-top: 10px;
}

.clickeable {
    text-decoration: underline;
    color: var(--color-link);
}

.clickeable:hover {
    cursor: pointer;
    color: var(--color-link-hover);
}

.quick-stats__item {
    cursor: pointer;
    transition: var(--transition);
}

.quick-stats__item:hover {
    opacity: 0.9;
}

.quick-stats__inf {
    text-align: center;
}

.main_container_table {
    width: 100%;
    margin: 20px 0 0 0;
    padding: 0;
    float: left;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.custom_table_dimension {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 200px;
    height: 100px;
    background: linear-gradient(135deg, #c58955 0%, #9e6128 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 14px rgba(158, 97, 40, 0.28);
    align-items: center;
    display: inline-grid;
    text-align: center;
    box-sizing: border-box;
    transition: var(--transition);
}

.custom_table_dimension:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(158, 97, 40, 0.45);
    background: linear-gradient(135deg, #d89b62 0%, #b37337 100%);
}

#tabla-vendedor {
    text-align: left;
    margin: 40px 0 0 0;
}

.onecolumn .header .switch {
    margin: 0 10px;
    float: right;
}

/* =========================================================
   RESPONSIVE — Tablet (max-width: 1180px)
   Cubre todos los iPad incluyendo iPad Pro 12.9" (1024px)
   ========================================================= */
@media (max-width: 1180px) {
    #content .main_bar_red {
        width: 100%;
        padding: 12px;
    }

    #content .main_bar_red ul li {
        min-width: 70px;
        font-size: 12px;
    }

    .custom_card_dimension,
    .custom_card_dimension_left,
    .custom_table_dimension {
        flex: 1 1 calc(50% - 10px);
        min-width: 180px;
    }

    #content .title_range_date {
        width: 100%;
    }
}

/* =========================================================
   RESPONSIVE — Móvil (max-width: 768px)
   ========================================================= */
@media (max-width: 768px) {
    #content .main_bar_red {
        width: 100%;
        padding: 10px;
    }

    #content .main_bar_red ul {
        flex-direction: column;
        align-items: center;
    }

    #content .main_bar_red ul li {
        width: 100%;
        min-width: unset;
        margin: 3px 0;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    #content .main_bar_red ul li:last-child {
        border-bottom: none;
    }

    .custom_card_dimension,
    .custom_card_dimension_left,
    .custom_table_dimension {
        flex: 1 1 100%;
        min-width: unset;
        height: auto;
        min-height: 80px;
        padding: 10px 0;
    }

    .quick-stats__info h2 {
        font-size: 18px;
    }

    .quick-stats__info small {
        font-size: 13px;
    }

    #content .title_range_date h2 {
        font-size: 16px;
    }

    #content .main_container_card {
        gap: 8px;
    }

    .main_container_table {
        gap: 8px;
    }
}

/* =========================================================
   RESPONSIVE — Móvil Pequeño (max-width: 480px)
   ========================================================= */
@media (max-width: 480px) {
    #content .main_bar_red ul li a {
        font-size: 12px;
    }

    .quick-stats__info h2 {
        font-size: 16px;
    }

    .quick-stats__info small {
        font-size: 11px;
    }

    #content .title_range_date h2 {
        font-size: 14px;
    }
}

/* =========================================================
   DARK THEME OVERRIDES — Main Dashboard
   ========================================================= */
html.dark-theme #content .main_bar_red {
    background: linear-gradient(135deg, #0f0e0c 0%, #1a1613 100%);
    border-color: rgba(197, 137, 85, 0.35);
}

html.dark-theme .custom_card_dimension,
html.dark-theme .custom_card_dimension_left,
html.dark-theme .custom_table_dimension {
    background: linear-gradient(135deg, #221c17 0%, #171411 100%);
    border: 1px solid rgba(197, 137, 85, 0.4);
    border-top: 3px solid #d89b62;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

html.dark-theme .custom_card_dimension:hover,
html.dark-theme .custom_card_dimension_left:hover,
html.dark-theme .custom_table_dimension:hover {
    background: linear-gradient(135deg, #2c241e 0%, #1e1915 100%);
    border-color: #d89b62;
    box-shadow: 0 8px 24px rgba(197, 137, 85, 0.25);
}

html.dark-theme .quick-stats__info h2 {
    color: #ffffff;
}

html.dark-theme .quick-stats__info small {
    color: #d89b62;
}

