* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f4e8;
    color: #000;
}

/* HEADER */

.header {
    width: 100%;
    height: 115px;
    background: #3028aa;
    position: relative;
    overflow: hidden;
}

.logo {
    position: absolute;
    left: 0;
    top: 0;
    width: 325px;
    height: 115px;
    object-fit: contain;
    object-position: left center;
}

.header-title {
    position: absolute;
    left: 50%;
    top: 54px;
    transform: translateX(-50%);
    color: white;
    font-size: 22px;
    font-weight: bold;
}

.header-info {
    position: absolute;
    right: 0;
    top: 8px;
    text-align: right;
    color: white;
    font-size: 13px;
    line-height: 2.85;
    font-weight: bold;
}

.header-info div {
    white-space: nowrap;
}

/* MENU */

.menu-bar {
    height: 30px;
    background: #efefef;
    border-bottom: 1px solid #cfcfcf;
    display: flex;
    align-items: center;
    padding-left: 6px;
}

.menu-item {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    margin-right: 18px;
}

.menu-item::before {
    content: "✦";
    color: #8aaa10;
    font-size: 11px;
    margin-right: 6px;
}

.menu-item.active,
.menu-item:hover {
    text-decoration: underline;
}

/* MAIN */

.main {
    min-height: calc(100vh - 145px);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 35px 20px 40px 40px;
}

/* FORM */

.form-panel {
    width: 420px;
    background: #eae7db;
    padding: 30px 20px 20px 20px;
}

.form-panel label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-panel input[type="file"] {
    width: 100%;
    padding: 7px;
    background: white;
    border: 1px solid #aaa;
    font-size: 13px;
}

.form-panel button {
    margin-top: 18px;
    padding: 8px 18px;
    border: 1px solid #333;
    background: #e9e9e9;
    font-weight: bold;
    cursor: pointer;
}

.form-panel button:hover {
    background: #d8d8d8;
}

/* PANEL DERECHO */

.sucursal-panel {
    width: 320px;
    margin-right: 40px;
    position: relative;
}

.online {
    color: green;
    text-align: right;
    font-size: 13px;
    margin-bottom: 12px;
}

.sucursal-panel h1 {
    font-size: 36px;
    margin: 0 0 10px 0;
    font-weight: normal;
}

.sucursal-panel h2 {
    font-size: 34px;
    margin: 0 0 25px 0;
    font-weight: normal;
}

.server {
    position: absolute;
    right: 0;
    top: 75px;
    font-size: 15px;
}

/* ========================= */
/* SISTEMAS */
/* ========================= */

.sistemas {
    margin-top: 30px;
    margin-left: 20px;
    font-size: 14px;
}

.sistemas strong {
    display: block;
    margin-bottom: 8px;
}

.sistemas a {
    display: block;
    color: #555;
    text-decoration: none;
}

.sistemas a::before {
    content: "✦";
    color: #8aaa10;
    font-size: 11px;
    margin-right: 8px;
}

/* ========================= */
/*Consultas Residentes*/
/* ========================= */

.consulta-buttons {
    margin-top: 15px;
}

.btn-consulta {
    display: inline-block;
    padding: 10px 18px;
    margin-right: 10px;
    border: 1px solid #333;
    background: #e9e9e9;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
}

.btn-consulta:hover {
    background: #d8d8d8;
}

.btn-consulta:active {
    background: #cfcfcf;
}

.btn-consulta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    margin-right: 10px;
    border: 1px solid #333;
    background: #e9e9e9;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}

.btn-consulta:hover {
    background: #d8d8d8;
}

.btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.cuil-copy {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 5px 0 10px;
}

.cuil-copy input {
    border: 1px solid #999;
    background: #f5f5f5;
    padding: 3px 4px;
    font-size: 12px;
    text-align: center;
    height: 22px;
}

/* tamaños exactos tipo sistema */

#copyCuil1 {
    width: 30px;
}

#copyCuil2 {
    width: 80px;
}

#copyCuil3 {
    width: 20px;
}


/* ========================= */
/* BUSCADOR CONSULTAS */
/* ========================= */

.buscador-panel {
    width: 900px;
    background: #eae7db;
}

/* FORMULARIO */

.buscador-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.buscador-form .campo {
    display: flex;
    flex-direction: column;
}

.buscador-form input {
    width: 200px;
    height: 28px;
    padding: 4px;
}

.buscador-form .boton button {
    height: 32px;
    padding: 0 20px;
}

/* RESULTADOS */

.resultado-consulta {
    background: #f7f4e8;
    border: 1px solid #ccc;
    padding: 15px;
    overflow-x: auto; /* 🔥 CLAVE: evita que se rompa */
}

.resultado-consulta h4 {
    margin: 0 0 15px 0;
}

/* TABLA */

.tabla-pdfs {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
    table-layout: fixed;
}

.tabla-pdfs th {
    background: #e4e4e4;
    border: 1px solid #aaa;
    padding: 8px;
    text-align: left;
}

.tabla-pdfs td {
    border: 1px solid #bbb;
    padding: 10px;
    vertical-align: middle;
    word-break: break-word;
}

/* ANCHOS CONTROLADOS */

.tabla-pdfs th:nth-child(1),
.tabla-pdfs td:nth-child(1) {
    width: 120px;
}

.tabla-pdfs th:nth-child(2),
.tabla-pdfs td:nth-child(2),
.tabla-pdfs th:nth-child(3),
.tabla-pdfs td:nth-child(3) {
    width: 350px;
}

/* ARCHIVO + BOTÓN EN LÍNEA */

.archivo-linea {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.archivo-linea span {
    font-size: 13px;
}

/* BOTÓN MINI */

.btn-mini {
    padding: 4px 10px;
    border: 1px solid #333;
    background: #e9e9e9;
    font-size: 11px;
    text-decoration: none;
    color: #000;
    white-space: nowrap;
}

.btn-mini:hover {
    background: #d8d8d8;
}


/* FIX TABLA BUSCAR VENTAS */

.buscador-panel {
    width: 1050px;
    background: #eae7db;
}

.resultado-consulta {
    width: 100%;
    background: #f7f4e8;
    border: 1px solid #ccc;
    padding: 15px;
    overflow-x: auto;
}

.tabla-pdfs {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
    table-layout: fixed;
}

.tabla-pdfs th,
.tabla-pdfs td {
    border: 1px solid #bbb;
    padding: 8px;
    vertical-align: middle;
    text-align: left;
    word-break: normal;
    overflow-wrap: break-word;
}

.tabla-pdfs th {
    background: #e4e4e4;
    font-weight: bold;
}

/* Fecha */
.tabla-pdfs th:nth-child(1),
.tabla-pdfs td:nth-child(1) {
    width: 120px;
}

/* Código BCRA */
.tabla-pdfs th:nth-child(2),
.tabla-pdfs td:nth-child(2) {
    width: 180px;
}

/* RENAPER */
.tabla-pdfs th:nth-child(3),
.tabla-pdfs td:nth-child(3) {
    width: 330px;
}

/* ANSES */
.tabla-pdfs th:nth-child(4),
.tabla-pdfs td:nth-child(4) {
    width: 330px;
}

.archivo-linea {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.archivo-linea span {
    display: block;
    flex: 1;
    font-size: 13px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.btn-mini {
    flex-shrink: 0;
    padding: 4px 10px;
    border: 1px solid #333;
    background: #e9e9e9;
    font-size: 11px;
    text-decoration: none;
    color: #000;
    white-space: nowrap;
}

.btn-mini:hover {
    background: #d8d8d8;
}

.menu-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 30px;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #efefef;
    border: 1px solid #aaa;
    min-width: 170px;
    z-index: 9999;
}

.menu-dropdown:hover .submenu {
    display: block;
}
.submenu {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    min-width: 170px;
    background: #efefef;
    border: 1px solid #aaa;
    z-index: 9999;
}

.submenu a {
    display: block;
    padding: 7px 10px;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

.submenu a:hover {
    background: #dcdcdc;
}

.menu-dropdown:hover .submenu {
    display: block;
}


/* NIVEL 1 */
.menu-dropdown {
    position: relative;
    display: inline-flex;
}

.submenu {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    background: #efefef;
    border: 1px solid #aaa;
    min-width: 170px;
    z-index: 9999;
}

/* ITEMS */
.submenu a {
    display: block;
    padding: 7px 10px;
    font-size: 13px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

.submenu a:hover {
    background: #dcdcdc;
}

/* HOVER NIVEL 1 */
.menu-dropdown:hover .submenu {
    display: block;
}

/* CONTENEDOR NIVEL 2 */
.submenu-item {
    position: relative;
}

/* NIVEL 2 */
.submenu-2 {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #efefef;
    border: 1px solid #aaa;
    min-width: 170px;
}

/* HOVER NIVEL 2 */
.submenu-item:hover .submenu-2 {
    display: block;
}