.productos-page {
    font-family: "Google Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 1;
}
    animation: fadeIn 1s ease-out 0.2s both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.metric {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 2px solid #7eb0db;
    padding: 2.5rem 2rem;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(126, 176, 219, 0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(126, 176, 219, 0.2), transparent);
    transition: left 0.6s;
}

.metric:hover {
    border-color: #1e4e6b;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f1ff 100%);
    transform: translateY(-12px);
    box-shadow: 0 16px 50px rgba(30, 78, 107, 0.2);
}

.metric:hover::before {
    left: 100%;
}

.metric-label {
    font-size: 0.85rem;
    color: #7a8d9f;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    font-weight: 700;
    font-family: "Google Sans", sans-serif;
}

.metric-value {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1e4e6b 0%, #7eb0db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: "Google Sans", sans-serif;
}

.search-section {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border: 2px solid #7eb0db;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 12px 40px rgba(126, 176, 219, 0.18);
    margin-bottom: 4rem;
    transition: all 0.3s;
}

.search-section:hover {
    border-color: #1e4e6b;
    box-shadow: 0 16px 50px rgba(30, 78, 107, 0.15);
}

.search-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: #1e4e6b;
    font-weight: 700;
    font-family: "Google Sans", sans-serif;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    color: #1e4e6b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: "Google Sans", sans-serif;
}

.search-field input,
.search-field select {
    background: #ffffff;
    border: 2px solid #e0e9f0;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: #1e3a5f;
    font-size: 1rem;
    font-family: "Google Sans", sans-serif;
    transition: all 0.3s;
    font-weight: 500;
}

.search-field input::placeholder {
    color: #9ca8b8;
    font-weight: 400;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: #7eb0db;
    background: #f8fbff;
    box-shadow: 0 0 0 4px rgba(126, 176, 219, 0.15);
    transform: translateY(-2px);
}

.search-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: "Google Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 6px 20px rgba(30, 78, 107, 0.25);
}

.btn-primary {
    background:#007692;
    color: white;
    box-shadow: 0 8px 25px rgba(30, 78, 107, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(117, 183, 224, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: #f0f4f8;
    color: #1e4e6b;
    border: 2px solid #7eb0db;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(126, 176, 219, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7eb0db 0%, #5a8fc0 100%);
    color: white;
    border-color: #1e4e6b;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(126, 176, 219, 0.3);
}

.results-counter {
    margin-bottom: 2.5rem;
    font-size: 1rem;
    color: #5a7a94;
    font-weight: 600;
    font-family: "Google Sans", sans-serif;
}

.results-counter strong {
    color: #1e4e6b;
    font-weight: 800;
}

.view-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    background: #f0f4f8;
    padding: 0.7rem;
    border-radius: 14px;
    width: fit-content;
    border: 2px solid #7eb0db;
    box-shadow: 0 4px 15px rgba(126, 176, 219, 0.1);
}

.view-btn {
    padding: 0.8rem 1.8rem;
    background: transparent;
    border: none;
    color: #5a7a94;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: "Google Sans", sans-serif;
}

.view-btn.active {
    background: linear-gradient(135deg, #7eb0db 0%, #5a8fc0 100%);
    color: white;
    box-shadow: 0 6px 15px rgba(126, 176, 219, 0.3);
}

.table-container {
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #7eb0db;
    box-shadow: 0 12px 40px rgba(126, 176, 219, 0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(90deg, #1e4e6b 0%, #2a6ba8 100%);
}

th {
    padding: 1.5rem 1.2rem;
    text-align: left;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 3px solid #7eb0db;
    font-family: "Google Sans", sans-serif;
}

td {
    padding: 1.2rem 1.2rem;
    border-bottom: 1px solid #e8f0f7;
    color: #1e3a5f;
    font-weight: 500;
    font-family: "Google Sans", sans-serif;
}

tbody tr {
    transition: all 0.3s;
}

tbody tr:hover {
    background: #f8fbff;
    box-shadow: inset 0 0 20px rgba(126, 176, 219, 0.08);
    transform: scale(1.01);
}

.sku-cell {
    color: #1e4e6b;
    font-weight: 700;
    font-family: "Google Sans", monospace;
    font-size: 0.95rem;
    background: linear-gradient(90deg, rgba(126, 176, 219, 0.1), transparent);
    padding: 1.2rem;
    border-radius: 8px;
}

.group-cell {
    color: #2a6ba8;
    font-weight: 700;
    background: rgba(126, 176, 219, 0.08);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    display: fit-content;
    font-family: "Google Sans", sans-serif;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    animation: fadeIn 0.6s ease-out;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 2px solid #7eb0db;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(126, 176, 219, 0.15);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1e4e6b 0%, #7eb0db 100%);
}

.card:hover {
    transform: translateY(-12px);
    border-color: #1e4e6b;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    box-shadow: 0 20px 60px rgba(126, 176, 219, 0.25);
}

.card-header {
    padding: 2rem;
    border-bottom: 2px solid #e8f0f7;
    background: linear-gradient(135deg, rgba(126, 176, 219, 0.08) 0%, transparent 100%);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e4e6b;
    margin-bottom: 0.6rem;
    line-height: 1.4;
    font-family: "Google Sans", sans-serif;
}

.card-sku {
    font-size: 0.9rem;
    color: #7eb0db;
    font-family: "Google Sans", monospace;
    font-weight: 700;
    background: rgba(30, 78, 107, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: fit-content;
}

.card-body {
    padding: 1.8rem;
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.card-field {
    margin-bottom: 1.5rem;
}

.card-label {
    font-size: 0.8rem;
    color: #7a8d9f;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: "Google Sans", sans-serif;
}

.card-value {
    font-size: 1rem;
    color: #1e3a5f;
    line-height: 1.6;
    font-weight: 500;
    font-family: "Google Sans", sans-serif;
}

.card-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.8rem;
    padding-top: 1.8rem;
    border-top: 2px solid #e8f0f7;
}

.download-btn {
    flex: 1;
    padding: 0.85rem;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: "Google Sans", sans-serif;
}

.download-btn.ficha {
    background: linear-gradient(135deg, #1e4e6b 0%, #2a6ba8 100%);
    color: white;
    border: 2px solid #1e4e6b;
}

.download-btn.ficha:hover {
    border-color: #7eb0db;
    background: linear-gradient(135deg, #2a6ba8 0%, #1e4e6b 100%);
    box-shadow: 0 8px 20px rgba(30, 78, 107, 0.35);
    transform: translateY(-3px);
}

.download-btn.seguridad {
    background: linear-gradient(135deg, #7eb0db 0%, #5a8fc0 100%);
    color: white;
    border: 2px solid #7eb0db;
}

.download-btn.seguridad:hover {
    box-shadow: 0 8px 20px rgba(126, 176, 219, 0.4);
    transform: translateY(-3px);
    background: linear-gradient(135deg, #5a8fc0 0%, #7eb0db 100%);
}

.download-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e0e9f0;
    color: #9ca8b8;
    border: 2px solid #d0dce8;
}

/* Estilos para Paginación */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
}

.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border: 2px solid #7eb0db;
    border-radius: 14px;
    padding: 1.5rem 2rem;
    max-width: fit-content;
}

.pagination-info {
    font-size: 0.95rem;
    color: #5a7a94;
    font-weight: 600;
    font-family: "Google Sans", sans-serif;
    text-align: center;
}

.pagination-info strong {
    color: #1e4e6b;
    font-weight: 800;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #7eb0db 0%, #5a8fc0 100%);
    color: white;
    border: 2px solid #7eb0db;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    font-family: "Google Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a8fc0 0%, #1e4e6b 100%);
    box-shadow: 0 6px 15px rgba(126, 176, 219, 0.3);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e0e9f0;
    color: #9ca8b8;
    border-color: #d0dce8;
}

.pagination-pages {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-page {
    padding: 0.6rem 0.9rem;
    background: #ffffff;
    color: #1e4e6b;
    border: 2px solid #e0e9f0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    font-family: "Google Sans", sans-serif;
    min-width: 38px;
    text-align: center;
}

.pagination-page:hover {
    background: #f0f4f8;
    border-color: #7eb0db;
    color: #007692;
}

.pagination-page.active {
    background: linear-gradient(135deg, #7eb0db 0%, #5a8fc0 100%);
    color: white;
    border-color: #7eb0db;
    box-shadow: 0 4px 12px rgba(126, 176, 219, 0.3);
}

.pagination-ellipsis {
    color: #5a7a94;
    font-weight: 600;
    padding: 0.6rem 0.3rem;
    font-family: "Google Sans", sans-serif;
    font-size: 0.85rem;
}

footer {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 3px solid #7eb0db;
    padding: 4rem 2rem;
    text-align: center;
    color: #5a7a94;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    font-weight: 600;
    box-shadow: 0 -4px 20px rgba(126, 176, 219, 0.08);
    font-family: "Google Sans", sans-serif;
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border: 2px solid #7eb0db;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(126, 176, 219, 0.15);
}

.empty-state h2 {
    color: #1e4e6b;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: "Google Sans", sans-serif;
}

.empty-state p {
    color: #5a7a94;
    font-weight: 500;
    font-family: "Google Sans", sans-serif;
}

.hidden {
    display: none;
}

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    header h1 {
        font-size: 2.8rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.8rem;
    }

    .pagination-container {
        flex-direction: column;
        align-items: center;
    }

    .pagination-controls {
        justify-content: center;
    }

    .pagination-pages {
        max-height: 40px;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    * {
        scroll-behavior: auto;
    }

    body {
        font-size: 15px;
    }

    header {
        padding: 2.5rem 1.5rem;
    }

    header h1 {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }

    header p {
        font-size: 0.95rem;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    .metrics {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .metric {
        padding: 1.5rem;
    }

    .metric-label {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    .search-section {
        padding: 1.5rem;
        border-radius: 16px;
        margin-bottom: 2rem;
    }

    .search-section h2 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .search-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .search-field label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .search-field input,
    .search-field select {
        padding: 0.65rem 0.9rem;
        font-size: 16px;
    }

    .search-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .results-counter {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .view-selector {
        margin-bottom: 1.5rem;
    }

    .view-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 0.8rem;
        min-width: 600px;
    }

    th {
        padding: 0.8rem 0.6rem;
        font-size: 0.7rem;
        letter-spacing: 0.3px;
    }

    td {
        padding: 0.8rem 0.6rem;
    }

    .sku-cell {
        font-size: 0.8rem;
        min-width: 60px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        border-radius: 12px;
    }

    .card-header {
        padding: 1.2rem;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .card-sku {
        font-size: 0.8rem;
    }

    .card-body {
        padding: 1.2rem;
        max-height: 250px;
    }

    .card-field {
        margin-bottom: 1rem;
    }

    .card-label {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .card-value {
        font-size: 0.9rem;
    }

    .card-actions {
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 1.2rem;
        padding-top: 1.2rem;
    }

    .download-btn {
        padding: 0.65rem;
        font-size: 0.75rem;
    }

    .pagination-container {
        padding: 0.8rem;
    }

    .pagination-wrapper {
        padding: 0.8rem 1rem;
        gap: 0.6rem;
    }

    .pagination-info {
        font-size: 0.75rem;
        width: 100%;
        text-align: center;
        margin-bottom: 0.4rem;
    }

    .pagination-controls {
        justify-content: center;
        gap: 0.3rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pagination-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.7rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    @media (max-width: 480px) {
        .pagination-btn {
            width: 28px;
            height: 28px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }
    }

    @media (max-width: 360px) {
        .pagination-btn {
            width: 26px;
            height: 26px;
            font-size: 0.85rem;
        }
    }

    .pagination-pages {
        gap: 0.15rem;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }

    .pagination-page {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-width: 30px;
        flex-shrink: 0;
    }

    .pagination-ellipsis {
        font-size: 0.7rem;
        padding: 0.4rem 0.1rem;
        flex-shrink: 0;
    }

    .empty-state {
        padding: 3rem 1.5rem;
        border-radius: 12px;
    }

    .empty-state h2 {
        font-size: 1.3rem;
    }

    .empty-state p {
        font-size: 0.9rem;
    }

    footer {
        padding: 2rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 2rem 1rem;
    }

    header h1 {
        font-size: 1.6rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .metrics {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-bottom: 2rem;
    }

    .metric {
        padding: 1.2rem;
    }

    .metric-label {
        font-size: 0.7rem;
    }

    .metric-value {
        font-size: 1.8rem;
    }

    .search-section {
        padding: 1.2rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }

    .search-section h2 {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .search-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .search-field label {
        font-size: 0.8rem;
    }

    .search-field input,
    .search-field select {
        padding: 0.6rem 0.8rem;
        font-size: 16px;
        border-radius: 8px;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    table {
        font-size: 0.75rem;
        min-width: 500px;
    }

    th {
        padding: 0.6rem 0.4rem;
        font-size: 0.65rem;
    }

    td {
        padding: 0.6rem 0.4rem;
    }

    .card-header {
        padding: 1rem;
    }

    .card-body {
        padding: 1rem;
        max-height: none;
        overflow-y: visible;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-actions {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .download-btn {
        padding: 0.6rem;
        font-size: 0.7rem;
    }

    .pagination-wrapper {
        padding: 0.6rem 0.8rem;
        gap: 0.4rem;
    }

    .pagination-info {
        font-size: 0.7rem;
    }

    .pagination-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.65rem;
    }

    .pagination-page {
        padding: 0.4rem 0.5rem;
        font-size: 0.65rem;
        min-width: 28px;
    }

    .pagination-ellipsis {
        font-size: 0.65rem;
        padding: 0.4rem 0rem;
    }

    .pagination-ellipsis {
        font-size: 0.7rem;
        padding: 0.4rem 0.1rem;
    }

    footer {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 360px) {
    header h1 {
        font-size: 1.4rem;
    }

    .metrics {
        grid-template-columns: 1fr;
    }

    .metric-value {
        font-size: 1.6rem;
    }

    .search-field input,
    .search-field select {
        font-size: 16px;
    }

    th, td {
        padding: 0.5rem 0.3rem;
    }

    .card {
        border-radius: 10px;
    }

    .card-body {
        max-height: none;
        overflow-y: visible;
    }

    .pagination-wrapper {
        padding: 0.5rem 0.7rem;
        gap: 0.3rem;
    }

    .pagination-info {
        font-size: 0.65rem;
        margin-bottom: 0.3rem;
    }

    .pagination-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.6rem;
    }

    .pagination-page {
        padding: 0.3rem 0.4rem;
        font-size: 0.6rem;
        min-width: 24px;
    }

    .pagination-ellipsis {
        font-size: 0.55rem;
        padding: 0.3rem 0rem;
    }
}
