.matrix-body-container {
    background-color: #f4f4f4;
    padding: 10px;
}

.matrix-title-setup {
    color: #000000;
    margin-bottom: 10px;
    font-size: 16px;
    text-align: center;
}

.risk-matrix-config-container {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-evenly;
    background: #ffffff;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    gap: 10px;
    max-height: 470px;
}

.matrix-config-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
    width: 25%;
    height: 350px;
    border-radius: 8px;
    background-color: rgb(229, 239, 247);
    height: 450px;
}

.matrix-table-and-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75%;
    height: 500px;
}

.matrix-title-container-a,
.matrix-title-container-b {
    font-size: 16px;
    padding: 10px;
    margin: 3px 0;
}

.matrix-variable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 300px;
    height: 40px;
    background-color: #90b6ea;
    color: #070707;
    border-radius: 8px;
    padding: 7px;
    margin-bottom: 10px;
    font-size: 14px;
}

.matrix-variable-label {
    width: 130px;
    font-weight: bold;
    font-size: 12px;
    color: #090909;
}

.matrix-table-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 450px;
    border-radius: 8px;
    border: 1px solid #1886ed;
    background-color: rgb(229, 239, 247);
    box-shadow: #388def 1px 1px 20px;
}

.generate-matrix-button,
.matrix-save-config-button {
    width: 140px;
    padding: 5px;
    background-color: #1b426b;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px 0;
}

.generate-matrix-button:hover,
.matrix-save-config-button:hover {
    background-color: #0056b3;
}

.risk-matrix-input {
    text-align: center;
}

.matrix-table-button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.matrix-axisY-and-table-container {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    margin-right: 10px;
}

.matrix-header-cell {
    font-weight: bold;
    background-color: #7b7b7b;
    text-align: center;
    font-size: 10px;
}

.matrix-cell {
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 85px;
    height: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
}

.matrix-current-configs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
    width: 100%;
    background-color: #ffffff;
    padding: 0; 
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); 
    overflow: hidden; 
}

.matrix-current-configs-title {
    text-align: center;
    width: 100%;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    border-bottom: 1px solid #f3f4f6;
}

.configurations-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Nunito Sans', sans-serif;
}

.risk-matrix-th-config,
.risk-matrix-td-config-name,
.risk-matrix-td-config-summary,
.risk-matrix-td-config-actions {
    border: 1px solid #c7c7c7;
    padding: 5px;
    text-align: center;
    font-size: 12px;
}

.matrix-config-table thead {
    background-color: #f9fafb; 
}

.risk-matrix-th-config {
    text-align: center;
    padding: 5px 20px;
    font-size: 14px;
    font-weight: 700;
    background-color: #8cbef8;
    color: #242424; 
    border-bottom: 1px solid #e5e7eb;
    border-right: none; 
    border-left: none;
}

.clean-matrix-table{
    margin-top: 20px;
    border-collapse: collapse;
    border: 1px solid #c7c7c7;
    box-shadow: #000000 1px 2px 10px;
    border-radius: 8px;
}


.clean-matrix-table th {
  border: 1px solid #c7c7c7;
  border-collapse: collapse;
  border-radius: 8px;

}

.clean-matrix-table td{
    border: none !important;
    border-collapse: collapse;
}

.clean-matrix-table td,
.clean-matrix-table th {
  padding: 1px;
}


.matrix-icon-button-edit,
.matrix-icon-button-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin: 0 5px;
}

.modal-matrix-auth {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content-matrix-auth {
    position: relative;
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    text-align: center;
}

.close-matrix-auth {
    position: absolute;
    top: 5px;
    right: 15px;
    color: rgb(245, 0, 0);
    font-size: 20px;
    cursor: pointer;
}

.close-matrix-auth:hover {
    color: black;
    text-decoration: none;
}

.matrix-cell.segment-S1  { background-color: #4CAF50; color: white; }
.matrix-cell.segment-S2  { background-color: #8BC34A; color: black; }
.matrix-cell.segment-S3  { background-color: #CDDC39; color: black; }
.matrix-cell.segment-S4  { background-color: #FFEB3B; color: black; }
.matrix-cell.segment-S5  { background-color: #FFC107; color: black; }
.matrix-cell.segment-S6  { background-color: #FF9800; color: white; }
.matrix-cell.segment-S7  { background-color: #FF5722; color: white; }
.matrix-cell.segment-S8  { background-color: #F44336; color: white; }
.matrix-cell.segment-S9  { background-color: #E91E63; color: white; }
.matrix-cell.segment-S10 { background-color: #9C27B0; color: white; }

.matrix-table td:first-child, /* primera columna: eje Y */
.matrix-table tr:first-child td { /* primera fila: eje X */
  background-color: #dddddd;
  font-weight: bold;
  text-align: center;
  color: #000000;
}

.config-btns {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.matrix-config-table tbody tr {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.matrix-config-table tbody tr:last-child {
    border-bottom: none;
}

.matrix-config-table tbody tr:hover {
    background-color: #f8fafc;
}

.matrix-config-table td {
    padding: 3px 20px;
    color: #0d0d0d;
    font-size: 14px;
    vertical-align: middle;
}

/* Columnas especificas */
.col-center { text-align: center; }
.col-right { text-align: right; }

/* Status Badge Minimalista */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.status-active {
    background-color: #ecfdf5; /* Verde muy claro */
    color: #059669; /* Verde texto */
    border: 1px solid #a7f3d0;
}
.status-inactive {
    background-color: #f3f4f6;
    color: #49494a;
    border: 1px solid #e5e7eb;
}

.btn-activate-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background-color: #fff;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-activate-circle:hover {
    border-color: #10b981; 
    color: #10b981;
    background-color: #ecfdf5;
    transform: scale(1.1);
}

.btn-activate-circle i {
    font-size: 12px;
}

/* Botones de Acciones (Editar/Borrar) */
.action-btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.config-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.config-btns:hover .config-icon {
    opacity: 1;
}
