@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@-webkit-keyframes spin {
    0% {
        -moz-transform: rotateZ(360deg);
        -webkit-transform: rotateZ(360deg);
        -o-transform: rotateZ(360deg);
        -ms-transform: rotateZ(360deg);
    }
    100% {
        -moz-transform: rotateZ(0deg);
        -webkit-transform: rotateZ(0deg);
        -o-transform: rotateZ(0deg);
        -ms-transform: rotateZ(0deg);
    }
}

#notify {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 0 4px;
    color: #263746;
    font-size: 14px;
    font-weight: 500;
}
.login-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #E4E8EE;
    border-top: 4px solid #0047bb;
    border-radius: 50%;
    animation: spin-loading 0.8s linear infinite;
}

body.login {
    background: linear-gradient(135deg, #E4E8EE 0%, #d8eaff 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body.login > .nav-redes-sociales {
    flex-shrink: 0;
}

.login-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

div.login-content {
    width: 420px;
    padding: 36px 40px;
    border: 1px solid #E4E8EE;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(38,55,70,0.15);
    background-color: white;
}

div.login-image {
    border-bottom: 2px solid #E4E8EE;
    padding-bottom: 16px;
    margin-bottom: 24px;
    text-align: center;
}
div.login-image h1 {
    margin: 0;
    padding: 0;
    line-height: 1;
}
div.login-image img {
    height: 75px;
}

div.login-form form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

div.login-form form label {
    font-weight: 500;
    color: #263746;
    font-size: 14px;
    margin: 0;
}

div.login-form form input {
    width: 100%;
    margin-top: 0px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 2px solid #263746;
    background: white;
    font-size: 14px;
    padding: 10px 12px;
    transition: border-color 0.2s;
}

div.login-form form input:hover,
div.login-form form input:focus {
    border: 2px solid #0047bb;
    border-radius: 4px;
    outline: none;
}

div.login-form form input[type="submit"] {
    cursor: pointer;
    outline: none;
    background-color: #0047bb;
    color: white;
    border-radius: 9999px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #0047bb;
    transition: background-color 0.2s, color 0.2s;
}

div.login-form form input[type="submit"]:hover {
    background-color: white;
    color: #0047bb;
}

.captcha-question {
    font-size: 22px;
    font-weight: 700;
    color: #263746;
    background: #f1f3f7;
    border: 2px solid #E4E8EE;
    border-radius: 6px;
    padding: 10px 16px;
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 6px;
    user-select: none;
}

#message {
    background-color: blue;
    z-index: 10000;
    display: none;
    position: fixed;
    top: 0;
    width: 50%;
    left: 25%;
    padding-top: 20px;
    border-radius: 0 0 8px 8px;
}

#message-text {
    color: white;
    font-weight: 500;
}

#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
#loading-overlay.active {
    display: flex;
}
.loading-box {
    background: white;
    border-radius: 10px;
    padding: 30px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E4E8EE;
    border-top: 4px solid #0047bb;
    border-radius: 50%;
    animation: spin-loading 0.8s linear infinite;
}
@keyframes spin-loading {
    to { transform: rotate(360deg); }
}
.loading-text {
    font-size: 14px;
    font-weight: 500;
    color: #263746;
}

img.foto {
    height: 50px;
    width: 50px;
}

* {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track {
    background: #e4e8ed;
}

body::-webkit-scrollbar-thumb {
    background-color: #263746;
    border-radius: 3px;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #0047bb;
}

html {}

body {
    display: flex;
    flex-direction: column;
    background-color: white;
    overflow-x: hidden;
}

div.nav-redes-sociales a img {
    height: 30px;
    width: 30px;
}

div.nav-redes-sociales {
    display: flex;
    align-items: center;
    padding: 3px 8px;
    background-color: #f1f3f7;
    width: 100%;
    box-sizing: border-box;
}

.lang-switcher-wrapper {
    margin-left: auto;
    position: relative;
}
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}
.lang-flag {
    width: 28px;
    height: 18px;
    border: 1px solid #ddd;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    background: none;
    transition: opacity 0.2s;
    overflow: hidden;
}
.lang-flag:hover {
    opacity: 0.8;
}
.lang-flag.lang-active {
    opacity: 1;
    box-shadow: 0 0 0 2px #0047bb;
}
.lang-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

div.nav-secundario {
    /*height: 75px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    background-color: white;
    justify-content: space-between;
}

div.nav-secundario img {
    padding: 5px;
}
img.nav-logo {
    height: 85px;
    width: auto;
}

nav.nav-principal {
    display: flex;
    flex-direction: row;
    text-align: center;
    background-color: #263746;
    text-transform: UpperCase;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

nav.nav-principal Button {
    padding: 10px 20px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex: 1;
    text-align: center;
}

nav.nav-principal Button:hover {
    background-color: #0047bb;
    border-color: white;
    border-left: 1px solid;
    border-right: 1px solid;
}

nav.nav-principal Button.nav-seleccionado {
    background-color: #0047bb;
    color: white;
    border-color: white;
    border-left: 1px solid;
    border-right: 1px solid;
}
nav.nav-principal Button.nav-home {
    flex: 0 0 auto;
    width: auto;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.3);
}
nav.nav-principal Button.nav-home svg {
    vertical-align: middle;
}

main.content {
    padding: 5px 5px 5px 5px;
}

header {
    box-shadow: 0 3px 5px 0 rgba(50, 50, 50, .6);
    width: 100%;
    z-index: 2;
    position: sticky;
    top: 0;
}

header div#customer a#controlpanel {
    display: flex;
    align-items: center;
}

header div#customer div.num-items {
    height: 30px;
    width: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #263746;
    position: relative;
    z-index: 555;
    bottom: 75px;
    left: 55px;
    color: white;
    opacity: 1;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
}

header a {
    text-decoration: none;
}
header a:hover {
    text-decoration: none;
}

#login {
    display: flex;
    flex-flow: column;
    margin: 0 auto;
}

#login input {
    margin-bottom: 10px;
    padding: 3px;
    border-radius: 5px;
    border-style: groove
}

#login input:focus {
    outline: none;
    border-color: #0047bb;
}

#login input[type="submit"] {
    cursor: pointer;
}

#customer {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-shrink: 1;
    min-width: 0;
}

#customer .customer-photo {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 6px;
}

#customer .customer-desc {
    padding: 5px;
    font-size: 18px;
    color: #003056;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

div.nav-secundario img.exit {
    width: 62px;
    height: 62px;
    cursor: pointer;
}

div#big-logo {
    text-align: center;
}


/** PEDIDOS **/

section#search {
    width: 100%;
    display: flex;
    height: fit-content;
    align-items: center;
    padding: 10px;
    background-color: white;
    border-bottom: 3px solid #263746;
}

.search-part {
    /*flex-grow: 1;*/
    padding: 10px;
}

.search-part:first-child {
    display: flex;
    /*flex-direction: column;*/
}

.search-part:first-child>div {
    display: flex;
}

.search-part:first-child input[type="text"] {
    /*width: 150px;*/
}

.search-part:first-child .input-group {
    /*width: 150px;*/
}

section#content {

}

.table-striped .text-align-right {
    text-align: right;
}

.sel-entity {
    width: 100%;
    padding: 50px;
    font-size: 14px;
}

.sel-entity .table-striped tbody tr:nth-of-type(odd) {
    background-color: #f1f3f7;
}

.sel-entity img {
    height: 25px;
    cursor: zoom-in;
}

.btn-ntc {
    background-color: #0047bb;
    color: white;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.2s;
}

#view-image img {
    height: 500px;
}

#view-image div {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    text-align: center;
    margin-top: 200px;
}

#view-image-content {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    display: none;
}

#view-image-content div#blur-scene {
    height: 100%;
    opacity: 0.6;
    background-color: lightgrey;
}

#view-image-content #view-image {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
}




/** INVOICE **/
div.content {
    display: flex;
    flex-wrap: wrap;
    background-color: #e4e8ed;
}
div.content-item {
    display: flex;
    flex-direction: column;
    width: 300px;
    padding: 2px;
    margin: 5px;
    border: 1px solid #E4E8EE;
    border-radius: 5px;
    flex-wrap: wrap;
    cursor: pointer;
    background-color: white;
    transition: box-shadow 0.2s;
}

div.content-item:hover {
    box-shadow: 0 4px 12px rgba(38,55,70,0.1);
}
div.content-item-none {
    display: none;
}
div.item {
    display: flex;
    flex-direction: row;
}
div.info {
    /*display: flex;*/
    
    flex-grow: 1;
}
div.info h4 {
    color: #0047bb;
}
div.info div {
    color: #6c8298;
    font-weight: bold;
}
div.download img {
    height: 40px;
    cursor: pointer;
    display: none;
}
div.price {
    text-align: right;
    font-size: 17px;
    color: #0047bb;
    font-weight: bold;
    padding-right: 10px;
}
img#line-download {
    height: 75px;
    cursor: pointer;
}

#control-panel {
    display: flex;
    flex-direction: column;
    width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #E4E8EE;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(38,55,70,0.15);
    background-color: white;
}
#control-panel input,
#control-panel span,
#control-panel button {
    padding: 5px;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    margin: 5px;
}
#control-panel label {
    font-weight: 500;
    color: #263746;
    font-size: 14px;
}

#control-panel input {
    margin-bottom: 20px;
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 4px;
    width: 100%;
    border: 2px solid #263746;
    background: white;
    text-align: left;
    font-size: 14px;
    transition: border-color 0.2s;
}
#control-panel input:hover {
    border: 2px solid #0047bb;
    border-radius: 4px;
    outline: none;
}
.filters-toggle {
    display: none;
}
.filters-title {
    font-size: 14px;
    font-weight: 700;
    color: #263746;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #dce1e7;
}
#filters {
    background-color: #f1f3f7;
    padding: 16px 20px;
    margin-bottom: 10px;
    border: none;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(38, 55, 70, 0.08);
}
#filters .filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 12px;
}
#filters .filter-group:last-child {
    margin-bottom: 4px;
}
#filters .filter-label {
    font-size: 13px;
    font-weight: 700;
    color: #263746;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
section#list-years {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
section#list-years article {
    padding: 5px 16px;
    text-align: center;
    border: 1.5px solid #c5ced6;
    border-radius: 20px;
    background-color: white;
    color: #263746;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(38, 55, 70, 0.1);
}
section#list-years article:hover {
    border-color: #263746;
    background-color: #e8ecf1;
    box-shadow: 0 2px 5px rgba(38, 55, 70, 0.15);
}
section#list-years article.item-year-selected {
    background-color: #0047bb;
    border-color: #0047bb;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 71, 187, 0.3);
}
section#list-months {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
section#list-months article {
    padding: 5px 16px;
    text-align: center;
    border: 1.5px solid #c5ced6;
    border-radius: 20px;
    background-color: white;
    color: #263746;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(38, 55, 70, 0.1);
}
section#list-months article:hover {
    border-color: #263746;
    background-color: #e8ecf1;
    box-shadow: 0 2px 5px rgba(38, 55, 70, 0.15);
}
section#list-months article.item-month-selected {
    background-color: #0047bb;
    border-color: #0047bb;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 71, 187, 0.3);
}
.filter-select {
    display: none;
}
.entity-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(420px, calc(25% - 8px)), 1fr));
    gap: 10px;
}
.entity-content-item {
    padding: 20px;
    border: 1px solid #E4E8EE;
    border-left: 3px solid #263746;
    border-radius: 4px;
    background-color: white;
    transition: border-left-color 0.2s;
    cursor: pointer;
}
.entity-content-item:hover {
    border-left-color: #0047bb;
}
.entity-content-item.entity-expanded {
    grid-column: 1 / -1;
    border-radius: 0;
    border-left: 3px solid #0047bb;
    margin-left: -5px;
    margin-right: -5px;
    padding: 14px 12px;
}
.entity-content div.entity-content-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.entity-content-item-header .doc-icon {
    height: 70px;
    width: 70px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.entity-content-item-header .doc-icon:hover {
    opacity: 1;
}
.entity-content-item-header .doc-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
}
.entity-content-item-header .doc-info .doc-code {
    font-weight: 600;
    font-size: 20px;
    color: #263746;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.entity-content-item-header .doc-info .doc-date {
    font-size: 16px;
    color: #6c8298;
    font-weight: 400;
}
.entity-content-item > .doc-work {
    font-size: 16px;
    line-height: 22px;
    min-height: 22px;
    font-weight: 700;
    color: #c60b1e;
    padding-top: 6px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.entity-content-item-header .doc-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.entity-content-item-header .doc-total {
    font-size: 20px;
    font-weight: 700;
    color: #0047bb;
    white-space: nowrap;
}
.entity-content-item-header .doc-toggle {
    cursor: pointer;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.entity-content-item-header .doc-toggle:hover {
    background-color: #f1f3f7;
}
.entity-content-item-header .doc-toggle svg {
    width: 18px;
    height: 18px;
    stroke: #263746;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s;
}
.entity-content-item-header .doc-toggle.open svg {
    transform: rotate(180deg);
}
.entity-content-item-details {
    margin-top: 10px;
}
.entity-content-item-details .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 6px;
    border: 1px solid #E4E8EE;
}
.entity-content-item-details .table-responsive::-webkit-scrollbar {
    height: 6px;
}
.entity-content-item-details .table-responsive::-webkit-scrollbar-track {
    background: #e4e8ed;
    border-radius: 3px;
}
.entity-content-item-details .table-responsive::-webkit-scrollbar-thumb {
    background-color: #263746;
    border-radius: 3px;
}
.entity-content-item-details .table-responsive::-webkit-scrollbar-thumb:hover {
    background-color: #0047bb;
}
.entity-content-item-details .table {
    font-size: 14px;
    min-width: 800px;
    white-space: nowrap;
    margin-bottom: 0;
}
.entity-content-item-details .table th,
.entity-content-item-details .table td {
    padding: 10px 12px;
    vertical-align: middle;
}
.entity-content-item-details .table thead th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: white;
    background-color: #263746;
    border-bottom: none;
    white-space: nowrap;
}
.entity-content-item-details .table tbody tr:nth-of-type(odd) {
    background-color: #f1f3f7;
}
.entity-content-item-details .table tbody tr:nth-of-type(even) {
    background-color: white;
}
.entity-content-item-details .table tbody td {
    border-color: #E4E8EE;
    color: #263746;
}
.entity-content-item-details .table tfoot th {
    font-size: 15px;
    color: #0047bb;
    background-color: #f1f3f7;
    border-top: 2px solid #263746;
}
span.entity-content-item-view-details {
    margin: 0 5px;
    cursor: pointer;
}
/* Captcha container */
div.login-form #content-captcha {
    border: 2px solid #E4E8EE;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.mobile-customer-name {
    display: none;
}

/* ========== HAMBURGER MENU ========== */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 9px 14px;
    margin-left: auto;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.hamburger-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
.mobile-menu-overlay.open {
    display: flex;
    justify-content: flex-end;
}
.mobile-menu {
    width: 260px;
    height: 100vh;
    background-color: #263746;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
}
.mobile-menu-item {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Poppins', sans-serif;
}
.mobile-menu-item:hover {
    background-color: #0047bb;
}
.mobile-menu-cp {
    font-weight: 600;
}
.mobile-menu-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 8px 16px;
}
.mobile-menu-bottom {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.mobile-menu-exit {
    border-bottom: none;
    color: #ff6b6b;
}
.mobile-menu-exit:hover {
    background-color: #d9534f;
    color: white;
}
.mobile-menu-langs {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px;
}
.mobile-menu-langs .lang-flag {
    width: 40px;
    height: 26px;
    opacity: 0.6;
}
.mobile-menu-langs .lang-flag.lang-active {
    opacity: 1;
    box-shadow: 0 0 0 2px #0047bb;
}

/* ========== RESPONSIVE ========== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    #customer {
        width: auto;
    }
    #customer .customer-desc {
        font-size: 16px;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #customer .customer-photo {
        width: 50px;
        height: 50px;
    }
    div.nav-secundario img.exit {
        width: 50px;
        height: 50px;
    }
    .entity-content-item-header .doc-icon {
        height: 50px;
        width: 50px;
    }
    .entity-content-item-header .doc-info .doc-code {
        font-size: 18px;
    }
    .entity-content-item-header .doc-info .doc-date {
        font-size: 14px;
    }
    .entity-content-item-header .doc-total {
        font-size: 18px;
    }
}

/* Móviles grandes y tablets pequeñas */
@media (max-width: 768px) {
    div.nav-secundario {
        flex-wrap: nowrap;
        padding: 5px;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    div.nav-secundario > a {
        flex-shrink: 1;
        min-width: 0;
    }
    img.nav-logo {
        height: 45px;
        max-width: 140px;
    }
    #customer {
        display: none;
    }
    .mobile-customer-name {
        display: block;
        margin-left: auto;
        font-size: 11px;
        color: #263746;
        font-weight: 600;
        line-height: 1.3;
        text-align: right;
        padding-right: 8px;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    div.nav-secundario img.exit {
        display: none;
    }
    nav.nav-principal Button:not(.nav-seleccionado):not(.hamburger-btn):not(.nav-home) {
        display: none;
    }
    nav.nav-principal Button.nav-home {
        flex-shrink: 0;
        width: auto;
        padding: 9px 12px;
    }
    nav.nav-principal Button.nav-seleccionado:not(.nav-home) {
        flex: 1;
        width: auto;
        pointer-events: none;
        min-width: 0;
        font-size: 15px;
        padding: 8px 10px;
        border: none;
        text-align: left;
    }
    .hamburger-btn {
        display: flex;
        flex-shrink: 0;
    }
    main.content {
        padding: 3px 5px;
    }
    .entity-content-item {
        padding: 14px;
    }
    .entity-content-item-header .doc-icon {
        height: 44px;
        width: 44px;
    }
    .entity-content-item-header .doc-info .doc-code {
        font-size: 17px;
    }
    .entity-content-item-header .doc-info .doc-date {
        font-size: 13px;
    }
    .entity-content-item > .doc-work {
        font-size: 14px;
    }
    .entity-content-item-header .doc-total {
        font-size: 17px;
        padding: 0 4px;
    }
    .entity-content div.entity-content-item-header {
        gap: 8px;
    }
    div.login-content {
        width: 90%;
        max-width: 420px;
    }
    .filters-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .filters-title {
        display: none;
    }
    .filters-toggle-label {
        font-size: 13px;
        font-weight: 700;
        color: #263746;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .filters-toggle-summary {
        font-size: 13px;
        font-weight: 500;
        color: #6c8298;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .filters-toggle-icon {
        width: 18px;
        height: 18px;
        stroke: #263746;
        fill: none;
        stroke-width: 2.5;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex-shrink: 0;
        transition: transform 0.3s;
    }
    .filters-toggle.open .filters-toggle-icon {
        transform: rotate(180deg);
    }
    #filters {
        padding: 0;
        width: calc(100% + 10px);
        margin-left: -5px;
        margin-right: -5px;
        margin-bottom: 8px;
        border-radius: 0;
        box-shadow: none;
    }
    .filters-body {
        display: none;
        padding: 8px 16px 14px;
    }
    .filters-body.open {
        display: block;
    }
    #filters .filter-group {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    section#list-years,
    section#list-months {
        display: none;
    }
    .filter-select {
        display: block;
        flex: 1;
        padding: 10px 12px;
        font-size: 14px;
        font-family: 'Poppins', sans-serif;
        font-weight: 500;
        color: #263746;
        background-color: white;
        border: 1.5px solid #c5ced6;
        border-radius: 8px;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23263746' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        padding-right: 32px;
        cursor: pointer;
    }
    .filter-select:focus {
        outline: none;
        border-color: #0047bb;
        box-shadow: 0 0 0 2px rgba(0, 71, 187, 0.2);
    }
    div.nav-redes-sociales {
        flex-wrap: nowrap;
        gap: 2px;
        padding: 3px 6px;
    }
    div.nav-redes-sociales a {
        flex-shrink: 1;
        min-width: 0;
    }
    div.nav-redes-sociales a img {
        height: 22px;
        width: 22px;
    }
    .lang-switcher-wrapper {
        margin-left: auto;
        margin-right: 4px;
        flex-shrink: 0;
    }
    .lang-switcher .lang-flag:not(.lang-active) {
        display: none;
    }
    .lang-switcher.lang-open {
        position: absolute;
        right: 0;
        top: calc(100% + 4px);
        flex-direction: column;
        background: white;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        padding: 6px;
        gap: 6px;
        z-index: 100;
    }
    .lang-switcher.lang-open .lang-flag:not(.lang-active) {
        display: block;
    }
    .lang-switcher.lang-open .lang-flag {
        width: 36px;
        height: 24px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    div.nav-redes-sociales {
        padding: 2px 6px;
    }
    div.nav-redes-sociales a img {
        height: 18px;
        width: 18px;
    }
    img.nav-logo {
        height: 35px;
        max-width: 110px;
    }
    .mobile-customer-name {
        font-size: 9px;
    }
    #filters {
        width: calc(100% + 6px);
        margin-left: -3px;
        margin-right: -3px;
    }
    nav.nav-principal Button.nav-seleccionado:not(.nav-home) {
        font-size: 13px;
        padding: 7px 8px;
    }
    nav.nav-principal Button.nav-home {
        padding: 7px 8px;
    }
    nav.nav-principal Button.hamburger-btn {
        padding: 7px 10px;
    }
    main.content {
        padding: 3px;
    }
    .entity-content-item {
        padding: 12px;
    }
    .entity-content-item-header .doc-icon {
        height: 38px;
        width: 38px;
    }
    .entity-content-item-header .doc-info .doc-code {
        font-size: 16px;
    }
    .entity-content-item-header .doc-info .doc-date {
        font-size: 12px;
    }
    .entity-content-item > .doc-work {
        font-size: 14px;
    }
    .entity-content-item-header .doc-total {
        font-size: 16px;
    }
    .entity-content div.entity-content-item-header {
        gap: 6px;
    }
    .entity-content-item.entity-expanded {
        margin-left: -3px;
        margin-right: -3px;
    }
    #filters .filter-label {
        font-size: 11px;
    }
    section#list-years article,
    section#list-months article {
        padding: 3px 10px;
        font-size: 12px;
    }
    div.login-content {
        width: 95%;
        padding: 24px 20px;
    }
    #message {
        width: 80%;
        left: 10%;
    }
}