﻿.mms-container {
    font-family: Arial, sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
}

.mms-header h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 24px;
    line-height: 150%;
    letter-spacing: 0px;
    margin-bottom: 5px;
    color: #444;
}

.mms-header .mms-date {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0px;
    color: #888;
    margin-bottom: 30px;
}

.mms-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.mms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;

    border: 1px solid #E6E6E6;

}

.mms-table th, .mms-table td {
    padding: 8px 4px;
    text-align: center;
    border: none !important;
}

.mms-table th {
    height: 170px;
    vertical-align: bottom;
    font-weight: normal;
    color: #0056b3;
    position: relative;
    padding: 0 4px;
}

.mms-table thead tr {
    background-color: #F9FAFC;
}

.mms-table th .vertical-text {
    position: absolute;
    bottom: 4px;
    left: 15px;
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    color: #0051A8;
    transform: rotate(-50deg);
    transform-origin: left bottom;
    white-space: nowrap;
}

.mms-table .sticky-col {
    position: sticky;
    left: 0;
    background-color: #F9FAFC;
    z-index: 10;
    width: 200px;
    text-align: left;
}

.mms-table .row-label {
    text-align: left;
    color: #0051A8;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    max-width: 180px;
}

.mms-table .category-header td {
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    line-height: 12px;
    color: #0051A8;
    padding: 10px 5px;
}

/* Celdas con colores */
.mms-box {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 24px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    text-align: center;
    border: 1px solid #666666;
    color: #FFFFFF;
}

/* Paleta de colores basada en la imagen */
.color-blue { background-color: #174EA5; color: #E6E6E6}
.color-red { background-color: #B61D1C; color: #E6E6E6}
.color-white { background-color: #FFFFFF; color: #000000; }
.color-red-bright { background-color: #ff0000; color: #666666}
.color-red-dark { background-color: #800000; color: #E6E6E6}
.color-yellow { background-color: #ffff00; color: #666666;; }
.color-yellow-bright { background-color: #ffff66; color: #666666;; }
.color-orange { background-color: #ff9900; color: #666666; }
.color-orange-vibrant { background-color: #ffcc00; color: #666666; }
.color-orange-light { background-color: #ffcc99; color:  #666666; }
.color-orange-bright { background-color: #ffaa00; color:  #666666; }
.color-dark-blue { background-color: #000066; color: #E6E6E6}
.color-dark-blue-deep { background-color: #000080; color: #E6E6E6}
.color-light-blue { background-color: #99ccff; color: #666666 }
.color-light-blue-soft { background-color: #add8e6; color:  #666666 }
.color-blue-vibrant { background-color:  #666666; color: #E6E6E6}
.color-blue-medium { background-color: #66b2ff;  color:  #666666;}
.color-blue-intense { background-color: #0000cc;  color:  #E6E6E6;}
.color-brown { background-color: #8b4513; color: #E6E6E6}
.color-brown-dark { background-color: #5d2e0a;color: #E6E6E6 }
.color-green-dark { background-color: #228b22; color: #E6E6E6}

.mms-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 12px;
}

.mms-footer p {
    margin-bottom: 10px;
}

.mms-legend-links {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    gap: 10px;
    align-items: center;
}

.mms-legend-links li a {
    text-decoration: none;
    color: #0056b3;
}

.mms-legend-links li a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.mms-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}

.mms-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 400px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    font-family: Arial, sans-serif;
}

.mms-modal-header {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mms-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.mms-modal-close {
    color: #000;
    font-size: 28px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1;
}

.mms-modal-close:hover {
    color: #666;
}

.mms-modal-body {
    padding: 20px 25px;
}

.mms-modal-title {
    margin-top: 0;
    margin-bottom: 35px;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #7A7A7A;
    max-width: 300px;
}

.mms-scale-graphic {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    padding-left: 50px;
}

.mms-scale-row {
    display: flex;
    align-items: center;
    height: 60px;
}

.mms-scale-label {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
}

.mms-label-box {
    color: #0051A8;
    padding: 4px 8px;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    border-radius: 0;
    text-align: right;
}

.mms-scale-bar {
    width: 18px;
}

.mms-scale-bar.deficit {
    width: 8px;
    height: 60px;
    background-color: #B61D1C;
}

.mms-scale-bar.superavit {
    width: 8px;
    height: 60px;
    background-color: #174EA5;
}

.mms-scale-text {
    display: flex;
    align-items: center;
    padding-left: 15px;
    font-family: 'Roboto Condensed', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 18px;
    color: #0051A8;
}

/* SPI-SPEI Scale specific styles */
.mms-scale-spi .mms-scale-row {
    height: 35px; /* Altura reducida para que quepan todos */
}

.mms-scale-spi .mms-scale-bar {
    height: 35px;
    width: 10px;
}

.mms-scale-spi .mms-scale-label {
    width: 80px;
}

.bg-spi-ext-lluvioso { background-color: #00008A;  color: #E6E6E6}
.bg-spi-muy-lluvioso { background-color: #0000FF; color: #E6E6E6 }
.bg-spi-mod-lluvioso { background-color: #03BFFF;  color: #666666}
.bg-spi-lig-lluvioso { background-color: #88CDEA; color: #666666}
.bg-spi-normal-pos { background-color: #FFFF98; color: #666666; }
.bg-spi-normal-neg { background-color: #FFFF00; color: #666666;}
.bg-spi-lig-seco { background-color: #FFA405; color: #666666}
.bg-spi-mod-seco { background-color: #FF4400; color: #E6E6E6}
.bg-spi-seco { background-color: #FF0100; color: #E6E6E6}
.bg-spi-ext-seco { background-color: #8B0000; color: #E6E6E6}

.text-spi-ext-lluvioso, .text-spi-muy-lluvioso, .text-spi-mod-lluvioso, .text-spi-lig-lluvioso,
.text-spi-normal-pos, .text-spi-normal-neg, .text-spi-lig-seco, .text-spi-mod-seco,
.text-spi-seco, .text-spi-ext-seco {
    color: #0051A8 !important; /* Color de texto azul segun imagen */
}

/* VCI Scale specific styles */
.mms-scale-vci .mms-scale-row {
    height: 32px;
}

.mms-scale-vci .mms-scale-bar {
    height: 32px;
    width: 12px;
}

.mms-scale-vci .mms-scale-label {
    width: 80px;
}

.bg-vci-0-10 { background-color: #7B0303;color:  #E6E6E6 }
.bg-vci-10-20 { background-color: #A33702; color:  #E6E6E6}
.bg-vci-20-30 { background-color: #BE6F07; color:  #E6E6E6}
.bg-vci-30-40 { background-color: #D7A811; color: #666666}
.bg-vci-40-50 { background-color: #F0E01D; color: #666666}
.bg-vci-50-60 { background-color: #E0EB1A; color: #666666}
.bg-vci-60-70 { background-color: #A7C919; color: #666666}
.bg-vci-70-80 { background-color: #70A611; color:  #E6E6E6}
.bg-vci-80-90 { background-color: #37840B; color:  #E6E6E6}
.bg-vci-90-100 { background-color: #016305; color:  #E6E6E6}

.text-vci-link {
    color: #0051A8 !important;
}
