/* aneaes-marco-legal/assets/aneaes-marco-legal.css */

.aneaes-actas {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    max-width: 100%;
    background: #eef1f4;
    border: 1px solid #dde2e7;
    border-radius: 4px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.aneaes-header {
    background: #EA2428;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'EB Garamond', serif;
    padding: 16px 20px;
    letter-spacing: 0.02em;
    margin: 0;
}

.aneaes-toolbar {
    background: #eef1f4;
    padding: 16px 20px;
    text-align: center;
}

.aneaes-admin-access {
    margin-top: 16px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
}

.aneaes-admin-access .aneaes-toolbar {
    background: transparent;
    padding: 0;
}

.aneaes-btn {
    font-family: 'Raleway', sans-serif;
    border: none;
    border-radius: 20px;
    padding: 10px 22px;
    font-weight: 700;
    cursor: pointer;
}

.aneaes-btn-toolbar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    text-align: center;
    text-decoration: none;
}

.aneaes-btn-primary {
    background: #2ecc71;
    color: #fff;
}

.aneaes-btn-danger {
    background: #EA2428;
    color: #fff;
}

.aneaes-btn-outline {
    background: #fff;
    border: 1px solid #d0d5da;
    color: #444;
}

.aneaes-btn-outline:hover {
    background: #fff;
    border-color: #EA2428;
    color: #EA2428;
}

.aneaes-btn-icon {
    background: #0E1820;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    margin-right: 4px;
}

.aneaes-login-form {
    background: #fff;
    margin: 16px auto 0;
    padding: 20px;
    border: 1px solid #dde2e7;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    max-width: 420px;
}

.aneaes-login-title {
    font-family: 'EB Garamond', serif;
    font-weight: 700;
    font-size: 1.2em;
    color: #0E1820;
    margin: 0 0 4px;
}

.aneaes-login-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.85em;
    color: #777;
    gap: 4px;
}

.aneaes-login-form input {
    padding: 10px;
    border: 1px solid #d0d5da;
    border-radius: 4px;
}

.aneaes-login-form .aneaes-btn {
    width: 100%;
}

.aneaes-login-form[hidden] {
    display: none;
}

.aneaes-table-wrap {
    background: #fff;
    overflow-x: auto;
}

.aneaes-table-wrap:last-child {
    padding-bottom: 4px;
}

.aneaes-table {
    width: 100%;
    border-collapse: collapse;
}

.aneaes-table thead th {
    background: #eef1f4;
    color: #555;
    text-align: left;
    padding: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.aneaes-table thead th a {
    color: inherit;
    text-decoration: none;
}

.aneaes-table tbody td {
    padding: 12px;
    border-top: 1px solid #eee;
    white-space: nowrap;
    color: #0E1820;
}

.aneaes-table tbody tr:nth-child(even) {
    background: #f4f7fa;
}

.aneaes-doc-link {
    text-decoration: none;
}

.aneaes-pagination {
    padding: 16px 20px;
    text-align: center;
}

.aneaes-pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border-radius: 4px;
    text-decoration: none;
    color: #EA2428;
}

.aneaes-pagination a.aneaes-page-active {
    background: #EA2428;
    color: #fff;
}

.aneaes-error {
    color: #EA2428;
    font-size: 0.9em;
}

.aneaes-modal {
    position: fixed;
    inset: 0;
    background: rgba(14, 24, 32, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.aneaes-modal[hidden] {
    display: none;
}

.aneaes-modal-content {
    background: #eef1f4;
    width: min(520px, 90vw);
    max-height: 90vh;
    border-radius: 4px;
    overflow-y: auto;
}

.aneaes-modal-content .aneaes-header {
    position: sticky;
    top: 0;
    z-index: 1;
}

.aneaes-modal-content form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.aneaes-modal-content label {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    font-size: 0.9em;
    color: #0E1820;
    font-weight: 600;
    gap: 12px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e3e7eb;
    border-bottom: none;
}

.aneaes-modal-content label:first-of-type {
    border-radius: 4px 4px 0 0;
}

.aneaes-modal-content label:has(input[type="file"]) {
    border: none;
    background: transparent;
    grid-template-columns: 1fr;
    color: #0E1820;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    padding: 16px 4px 4px;
}

.aneaes-modal-content label:not(:has(input[type="file"])):last-of-type {
    border-bottom: 1px solid #e3e7eb;
    border-radius: 0 0 4px 4px;
}

.aneaes-modal-content select,
.aneaes-modal-content input {
    padding: 8px;
    border: 1px solid #d0d5da;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    color: #444;
}

.aneaes-modal-content .aneaes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aneaes-modal-content .aneaes-header .aneaes-btn {
    padding: 6px 16px;
}

.aneaes-modal-content textarea {
    padding: 8px;
    border: 1px solid #d0d5da;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    color: #444;
    resize: vertical;
    min-height: 80px;
}

.aneaes-res-obligatorios {
    color: #EA2428;
    font-size: 0.85em;
    padding: 8px 4px 0;
    margin: 0;
}

/* Buscador de resoluciones */
.aneaes-res-filtros {
    background: #eef1f4;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aneaes-res-filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.aneaes-res-filtros-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

.aneaes-res-filtros label {
    display: flex;
    flex-direction: column;
    font-size: 0.85em;
    color: #444;
    font-weight: 600;
    gap: 4px;
}

.aneaes-res-filtros input[type="text"],
.aneaes-res-filtros select {
    padding: 8px;
    border: 1px solid #d0d5da;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    color: #444;
}

.aneaes-res-anio-range {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.aneaes-res-anio-range select {
    flex: 1 1 100px;
    min-width: 0;
}

.aneaes-res-hasta-label {
    font-weight: 400;
    font-size: 0.9em;
    color: #777;
}

.aneaes-res-adjunto {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aneaes-res-adjunto legend {
    font-size: 0.85em;
    font-weight: 600;
    color: #444;
    padding: 0;
}

.aneaes-radio {
    flex-direction: row !important;
    align-items: center;
    gap: 6px !important;
    font-weight: 400 !important;
}

.aneaes-res-filtros-acciones {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.aneaes-btn-dark {
    background: #0E1820;
    color: #fff;
}

.aneaes-toolbar-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.aneaes-resoluciones .aneaes-table {
    table-layout: fixed;
}

.aneaes-table tbody td.aneaes-res-descripcion,
.aneaes-table tbody td.aneaes-res-tipo,
.aneaes-table tbody td.aneaes-res-nro {
    white-space: normal;
    overflow-wrap: break-word;
}

.aneaes-table tbody td.aneaes-res-acciones {
    padding-left: 4px;
    padding-right: 4px;
    white-space: nowrap;
}

.aneaes-res-acciones .aneaes-btn-icon {
    padding: 6px 7px;
    margin-right: 2px;
}

.aneaes-res-acciones .aneaes-btn-icon:last-child {
    margin-right: 0;
}
