body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f2f5; /* Light gray background */
}

.browser-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
}

.browser-bar .time {
    flex-grow: 1;
}

.browser-bar .status-icons {
    display: flex;
    gap: 5px;
    margin-right: 10px;
}

.url-bar {
    display: flex;
    align-items: center;
    background-color: #fff;
    color: #333;
    border-radius: 20px;
    padding: 3px 10px;
    flex-grow: 3;
    max-width: 600px; /* Adjust as needed */
}

.url-bar i {
    margin-right: 5px;
    color: #666;
}

.url-bar span {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50; /* Dark blue/gray */
    color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left .logo {
    font-size: 24px;
    color: #3498db; /* Abstract blue triangle */
    margin-right: 15px;
    transform: rotate(180deg);
}

.hamburger-menu {
    font-size: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.app-header h1 {
    margin: 0;
    font-size: 24px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-link {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logout-link i {
    font-size: 16px;
}

.container {
    padding: 20px;
    max-width: 1400px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Orders Panel Styling */
.orders-panel {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.panel-title-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.panel-title-icon {
    font-size: 24px;
    color: #3498db;
}

.panel-title-bar h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.last-check {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 2px;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.search-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 350px;
}

#search-input {
    width: 100%;
    padding: 8px 12px 8px 35px; /* Adjust padding for icon */
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

#search-input:focus {
    border-color: #3498db;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
}

.toggles-group, .dropdowns-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.toggles-group input[type="checkbox"] {
    /* Basic checkbox styling, can be customized further */
    width: 16px;
    height: 16px;
    accent-color: #3498db;
}

.dropdowns-group select {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    font-size: 14px;
    color: #555;
    min-width: 150px;
    -webkit-appearance: none; /* Remove default arrow for custom styling */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2C197.398L146.202%2C56.601L5.404%2C197.398c-11.9%2C11.9-31.1%2C11.9-43%2C0c-11.9-11.9-11.9-31.1%2C0-43l160.798-160.8c11.9-11.9%2C31.1-11.9%2C43%2C0l160.798%2C160.8C298.9%2C166.298%2C298.9%2C185.498%2C287%2C197.398z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 8px;
    padding-right: 30px; /* Space for the custom arrow */
}


.records-count {
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}

/* Table Styling */
#orders-table {
    width: 100%;
    border-collapse: separate; /* Use separate for rounded corners if needed or border-spacing */
    border-spacing: 0;
    min-width: 1300px; /* Ensure table is wide enough */
}

#orders-table thead {
    background-color: #f8f9fa;
}

#orders-table th {
    padding: 12px 10px;
    text-align: left;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid #e9ecef;
}

#orders-table tbody tr {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.1s ease-in-out;
}

/* No hover for now as per instructions */
/* #orders-table tbody tr:hover {
    background-color: #f5f5f5;
} */

#orders-table tbody tr:last-child {
    border-bottom: none;
}

#orders-table td {
    padding: 10px;
    font-size: 13px;
    color: #343a40;
    vertical-align: middle;
/*    white-space: wrap; */ /* Allow wrapping for product title */
}

/* Specific Column Styles */
.canal-cell, .image-cell {
    width: 1%; /* Make them narrow */
    white-space: nowrap;
}

.product-cell {
    width: 30%; /* Widest column */
}

.ml-badge {
    background-color: #ffe600;
    color: #3483fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    text-transform: uppercase;
}

.product-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #eee;
}

.product-quantity-sku {
    font-size: 14px;
    font-weight: bold;
    color: #343a40;
}

.product-sku {
    color: #3498db; /* Blue */
}

.product-provider {
    color: #e67e22; /* Orange/Accent */
    font-size: 12px;
    margin-top: 2px;
}

.product-title {
    color: #6c757d; /* Dark gray, small */
    font-size: 11px;
    margin-top: 2px;
    line-height: 1.3;
}

.product-item-id {
    color: #3498db; /* Blue for ID Publ. */
}

.sales-link {
    color: #3498db;
    margin-right: 5px;
}

.shipping-method {
    font-weight: bold;
}

.shipping-number, .shipping-receiver {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.guide-pdf-cell .fas {
    font-size: 16px;
    margin-right: 5px;
}

.guide-pdf-cell .fas.active {
    color: #3498db; /* Blue for active download */
    cursor: pointer;
}

.guide-pdf-cell .fas.disabled {
    color: #ccc; /* Gray for disabled icon */
    cursor: not-allowed;
}

/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .2s;
    transition: .2s;
    border-radius: 20px; /* Rounded slider */
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .2s;
    transition: .2s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745; /* Green when checked */
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Warehouse/Dropshipping Cell */
.warehouse-dropshipping-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.warehouse-dropshipping-cell .fas {
    font-size: 14px;
    margin-right: 5px;
    color: #888;
}

.warehouse-dropshipping-cell .folio-externo {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.folio-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    border: 1px solid #dee2e6;
    white-space: nowrap; /* Prevent folio itself from wrapping */
}

.note-badge {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

.note-orange {
    background-color: #ffc107; /* Warning orange */
    color: #343a40;
}

.note-red {
    background-color: #dc3545; /* Danger red */
    color: #fff;
}

.note-orange-icon {
    color: #ffc107 !important;
}
.note-red-icon {
    color: #dc3545 !important;
}


/* Status Cell */
.status-cell .main-status {
    font-weight: bold;
    color: #343a40;
}

.status-cell .sub-status {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.status-ready-to-ship {
    color: #28a745; /* Green */
}

.created-cell {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-wrapper, .toggles-group, .dropdowns-group {
        width: 100%;
        max-width: 100%;
    }
    .dropdowns-group select {
        width: 100%;
    }
    .table-responsive {
        width: 100%;
    }
}

/* Login Form Styles */
#login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.login-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #2980b9;
}

.error-message {
    color: #e74c3c;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}
