.cotizar_container * {
    box-sizing: border-box;
    font-family: var(--monserrat);
}

.cotizar_container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cotizar_header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.cotizar_header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: rgba(0, 0, 0, 0.862);
}

.cotizar_add_btn {
    text-decoration: none;
    padding: 15px 20px;
    background-color: var(--red-border-strong);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cotizar_add_btn:hover {
    background-color: var(--red-border-default);
}

.cotizar_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cotizar_search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.cotizar_search-box input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.cotizar_search-box input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.cotizar_search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.cotizar_status-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cotizar_status-container{
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cotizar_status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cotizar_pedidos {
    font-weight: 700;
    background-color: #ffe5e5;
    padding: 2px 6px;
    border-radius: 4px;
}

.cotizar_status.available {
    background-color: #8af5a5;
    color: #155724;
}

.cotizar_status.unavailable {
    background-color: #eba4a4;
    color: #155724;
}

.cotizar_filter-dates,
.cotizar_filter-btn {
    padding: 10px 18px;
    background-color: #f0f3f8;
    border: none;
    border-radius: 8px;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cotizar_filter-btn:hover {
    background-color: #e2e7f0;
}

.cotizar_filter-btn.active {
    background-color: var(--red-border-default);
    color: white;
}

#cotizar_clear {
    background-color: var(--red-border-strong);
    color: white;
}

#cotizar_clear:hover {
    background-color: var(--red-border-default);
}

/* Tabla */

.cotizar_orders-container {
    background-color: white;
    border-radius: 12px;
    overflow: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cotizar_table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.cotizar_table thead {
    background-color: #f8fafc;
    border-bottom: 2px solid #eee;
}

.cotizar_table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    color: #555;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cotizar_table td {
    padding: 18px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.cotizar_table tr{
    position: relative;
}

.cotizar_restock-tr {
    background-color: #fff3cd;
}

.cotizar_img_container {
    width: 150px;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cotizar_img_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cotizar_restock-alert {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 700;
    text-align: center;
    padding: 16px;
    font-size: 1rem;
    border-bottom: 2px solid #ffeeba;
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0% { box-shadow: inset 0 0 0 0 rgba(255, 193, 7, 0.4); }
    50% { box-shadow: inset 0 0 20px 0 rgba(255, 193, 7, 0.6); }
    100% { box-shadow: inset 0 0 0 0 rgba(255, 193, 7, 0.4); }
}

/* Estados */

.cotizar_status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.restock_actions{
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.restock_actions a {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    background-color: #f0f3f8;
    color: #555;
    font-weight: 600;
}

.confirm_restock{
    background-color: #ff9800 !important;
    color: white !important;
}

.cotizar_actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cotizar_actions a {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    background-color: #f0f3f8;
    color: #555;
    font-weight: 600;
}

.cotizar_actions a:nth-child(2) {
    background-color: #7571ff;
    color: #ffffff;
}

.cotizar_actions a:last-child {
    background-color: #f8d7da;
    color: #721c24;
}

.cotizar_actions a:hover {
    background-color: #e2e7f0;
}

/* Paginación */

.cotizar_pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    border-top: 1px solid #eee;
}

.cotizar_pagination-controls {
    display: flex;
    gap: 10px;
}

.cotizar_pagination-controls button {
    padding: 10px 16px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 6px;
    cursor: pointer;
}

.cotizar_pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Stats */

.cotizar_stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cotizar_stat-card {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
}

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 100px;
    color: white;
    cursor: pointer;
}

.cotizar_img {
    position: fixed;       
    top: 0;
    left: 0;
    width: 100vw;          
    height: 100dvh;         
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;       
    display: none;
    transition: opacity 0.3s ease;
}

.cotizar_img-container{
    width: fit-content;
    padding: 1%;
    border-radius: 25px;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cotizar_img-title{
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    color: rgba(0, 0, 0, 0.862);
}

.cotizar_img-actions a{
    padding: 5px 17px;
    font-weight: 600;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    cursor: pointer;
}

/* RESPONSIVE igual */

@media (max-width: 1200px) {
    .cotizar_container { padding: 0 20px; }
    .cotizar_header h1 { font-size: 2rem; }
}

@media (max-width: 1024px) {
    .cotizar_header { gap: 15px; }
    .cotizar_header h1 { font-size: 1.8rem; }
    .cotizar_add_btn { padding: 12px 16px; font-size: 1rem; }
    .cotizar_filters { gap: 12px; padding: 18px; }
    .cotizar_search-box { min-width: 250px; }
    .cotizar_filter-dates,
    .cotizar_filter-btn { padding: 8px 14px; font-size: 0.9rem; }
    .cotizar_table th,
    .cotizar_table td { padding: 14px 10px; font-size: 0.9rem; }
    .cotizar_orders-container { overflow-x: auto; }
    .cotizar_actions { flex-wrap: wrap; gap: 6px; }
    .cotizar_actions a { flex: 1 1 48%; font-size: 0.8rem; }
}

@media (max-width: 992px) {
    .cotizar_header { flex-direction: column; align-items: flex-start; }
    .cotizar_add_btn { width: 100%; text-align: center; }
    .cotizar_filters { flex-direction: column; }
    .cotizar_search-box { min-width: 100%; }
    .cotizar_status-filters { width: 100%; }
}

@media (max-width: 768px) {
    .cotizar_table { min-width: 700px; }
}

@media (max-width: 480px) {
    .cotizar_container { padding: 0 12px; }
}