/* =====================================================
   General Styles
===================================================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #001A2C;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700; /* Bold for emphasis */
    font-size: 1.5rem; /* Adjust size as needed, e.g., 24px for a 50px logo height */
    color: #d45b35; /* Matches your app’s header color */
    text-decoration: none;
}

.fulfill-link {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    color: #d45b35; /* Matches your app’s header color, no blue */
    text-decoration: none; /* Removes underline */
    display: block; /* Ensures the link fills the flex container */
}

.fulfill-link:hover {
    color: #ff8c00; /* Optional: lighter hover color, no underline */
    text-decoration: none; /* Ensures no underline on hover */
}

header {
    background-color: #343a40;
    color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-info {
    font-size: 0.9rem; /* Slightly smaller than normal text */
}

.user-info a {
    color: #ffc107; /* Matches your nav-link hover color */
    text-decoration: none;
}

.user-info a:hover {
    color: #ffca2c; /* Lighter hover shade */
}

.user-info a.text-white:hover {
    color: #ff8c00; /* Matches your nav-link hover color for consistency */
    text-decoration: none; /* Ensures no underline on hover */
}

.user-info .fas.fa-cog:hover {
    color: #ff8c00; /* Matches hover color for consistency */
}

footer {
    width: 100%;
    text-align: center;
    color: #001A2C;
    background-color: transparent;
    padding: 1rem 0;
    margin-top: auto;
}

body > .container-fluid {
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: row;
}

.main-content {
    flex-grow: 1;
    padding: 2rem;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: auto;
}

/* =====================================================
   Sidebar and Navigation
===================================================== */
.sidebar {
    flex-shrink: 0;
    background-color: #f5f5f5;
    color: #001A2C;
    padding: 1rem;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav ul li {
    margin-bottom: 10px;
}

.main-nav .nav-link {
    color: #001A2C;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav .nav-link:hover {
    color: #ffc107;
}

/* =====================================================
   Typography
===================================================== */
h1 {
    color: #d45b35;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #d45b35;
}

h4.text-muted {
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.small-text {
    font-size: 75%;
}

.ml-10 {
    margin-left: 10px;
}

/* =====================================================
   Tables
===================================================== */
.table-container, .table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 1rem;
    scroll-behavior: smooth;
}

table.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 14px;
}

table.table th, table.table td {
    border: 1px solid #dee2e6;
    padding: 12px;
    vertical-align: middle;
    white-space: nowrap;
}

table.table th {
    background-color: #343a40; /* Medium dark gray */
    color: #ffffff;            /* White text */
    text-align: center;
    font-weight: bold;
}

table.table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table.table tr:nth-child(odd) {
    background-color: #ffffff;
}

table.table tr:hover {
    background-color: #e9ecef;
}

/* =====================================================
   Utility Classes
===================================================== */
.nowrap {
    white-space: nowrap;
}

.text-center {
    text-align: center;
}

.full-width {
    width: 100%;
}

.description {
    width: 250px;
    word-break: break-word;
    white-space: normal;
}

.description-header {
    width: 25%;
}

.thumbnail-image {
    width: 50px;
}

/* =====================================================
   Column Widths
===================================================== */
.col-thumbnails {
    width: 10%;  /* Adjust as needed */
}

.col-style-name {
    width: 8%;  /* Adjust as needed */
}

.col-brand {
    width: 14%;
}

.col-product-type-category {
    width: 8%;
}

.col-description {
    width: 30%;  /* Increased for more space */
}

.col-bay-valley-stock {
    width: 8%;
}

.col-actions {
    width: 25%;
}

.col-color {
    min-width: 150px;
    position: sticky;
    left: 0;
    background-color: #fff;
    z-index: 3;
    border-right: 1px solid #dee2e6;
    box-shadow: 2px 0 5px -2px rgba(0,0,0,0.3);
}

.col-size,
.col-price,
.col-min-quantity {
    min-width: 60px;
}

.col-material,
.col-harmonization-code,
.col-country-of-origin {
    min-width: 100px;
}

.col-delete {
    width: 50px;
    min-width: 50px;
}

/* =====================================================
   Forms and Inputs
===================================================== */
/* We are not forcing color/height on .form-control here;
   Let Bootstrap handle it, or use .me-2, etc. in HTML.
*/

/* Form Fieldsets */
form fieldset {
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin-bottom: 20px;
}

form legend {
    font-size: 1.1rem;
    font-weight: bold;
}

form .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* SKU Select Field */
.sku-select {
    max-width: 300px;
}

/* Quantity Input Field */
.quantity-input {
    max-width: 100px;
}

/* =====================================================
   Buttons
===================================================== */
/* Keep your custom .btn minimal so Bootstrap can do the rest */
.btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    /* No background-color or color set here, so .btn-warning, .btn-info, etc. can apply themselves */
}

/* Optional: custom hovers if you want them, but DO NOT override normal state. */
.btn-primary:hover {
    background-color: #0056b3;
}
.btn-success:hover {
    background-color: #218838;
}
.btn-secondary:hover {
    background-color: #5a6268;
}
.btn-danger:hover {
    background-color: #c82333;
}
.btn-warning:hover {
    background-color: #e0a800;
}
.btn-info:hover {
    background-color: #31d2f2;
}

/* If needed: explicit re-declaration of standard bootstrap colors
   to ensure they aren’t overridden by something else.
   You can remove the !important if everything else is working.
*/
.btn-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}
.btn-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

/* Because .btn-warning typically has black text.
   .btn-info typically has white text, but if you want black,
   keep color: #000 !important.
*/

/* additional classes */
.full-width-btn {
    width: 100%;
}

.inline-input {
    display: inline-block;
    width: auto;
}

/* =====================================================
   Vendor List Styles
===================================================== */
.vendor-list .card {
    display: flex;
    flex-direction: column;
}

.vendor-list .card-body {
    flex: 1;
}

.vendor-notes {
    overflow-y: auto;
    max-height: 150px;
    min-height: 150px;
}

.vendor-contacts {
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.vendor-contacts p {
    font-size: 0.9em;
}

/* =====================================================
   Responsive Design
===================================================== */
@media (max-width: 768px) {
    table.table th, table.table td {
        padding: 8px;
        font-size: 0.9rem;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

/* =====================================================
   Image Box Styles
===================================================== */
.image-box {
    background-color: #e0e0e0;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
}

/* =====================================================
   Print Styles
===================================================== */
@media print {
    .sidebar {
        display: none;
    }
    .print-hide {
        display: none;
    }
    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 1rem;
        box-shadow: none;
        border: none;
    }
    .container-fluid {
        padding: 0;
    }
    header, footer {
        display: none;
    }
    .btn {
        display: none;
    }
    h1, h3, h4 {
        font-size: 14px;
        color: #000;
    }
    table.table {
        font-size: 12px;
        border: 1px solid #000;
    }
    table.table th, table.table td {
        padding: 8px;
        border: 1px solid #000;
    }
    table.table {
        table-layout: fixed;
    }
    .design-images img {
        max-width: 100%;
        height: auto;
        max-height: 200px;
    }
    .mb-4, .mb-3, .mt-3, .mt-4 {
        margin: 0 !important;
        padding: 0 !important;
    }
    .table-container, .table-responsive {
        overflow: visible;
    }
    table, tr, td, th {
        page-break-inside: avoid;
    }
    @page {
        size: portrait;
        margin: 10mm;
    }
    .image-box {
        background-color: #e0e0e0;
        padding: 5px;
        border-radius: 3px;
        text-align: center;
    }
}

/* =====================================================
   Warehouse Card Map (Custom CSS)
===================================================== */
.scroll-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
}

.shelf-block {
    min-width: 220px;
    margin-right: 1rem;
}

.bin-details {
    font-size: 0.85rem;
    white-space: normal;
    word-wrap: break-word;
    min-height: 130px;
}

.bin-occupied {
    background-color: rgba(255, 0, 0, 0.1);
}

.bin-empty {
    background-color: rgba(0, 255, 0, 0.1);
}

.bin-btn-row {
    margin-top: 0.5rem;
}


/* =====================================================
   Picking and Packing Slip Styling Card (Custom CSS)
===================================================== */

.card {
    page-break-after: always !important;
}

@media print {
  /* Picking slip only print styles */
  .slip-picking {
    /* Optional: constrain width, add margins, background, etc. */
    margin: 0 auto;
    padding: 0;
    background: #fff !important;
    color: #000 !important;
  }
  .slip-picking .pick-slip-table {
    font-size: 13px !important;
    border: 2px solid #333 !important;
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 0.5em;
  }
  .slip-picking .pick-slip-table th,
  .slip-picking .pick-slip-table td {
    padding: 9px 7px !important;
    border: 1px solid #333 !important;
    text-align: left;
    white-space: nowrap;
    vertical-align: top;
    font-size: 13px !important;
  }
  .slip-picking .pick-slip-table td {
    /* If you have long product names or options, let this column wrap if needed: */
    white-space: normal;
  }
  .slip-picking h2,
  .slip-picking h3 {
    font-size: 18px !important;
    color: #000 !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
  }
  .slip-picking .order-header, .slip-picking .address-block {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }
  .slip-picking {
    page-break-after: always !important;
  }
}


/* HTMX CWR FIXES */

.tab-content, .tab-pane {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.tab-pane:not(.show) {
    display: none !important;
}
.table-responsive, .alert {
    background-color: #f0f0f0 !important;
    border: 1px solid #ccc !important;
    padding: 10px !important;
}
#store-tables {
    min-height: 100px !important;
    border: 2px solid blue !important;
}

/* =====================================================
   ShipStation Awaiting Shipment Clone (Custom CSS)
===================================================== */



/* Add to your main CSS file */
.help-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    color: #6c757d;
    cursor: help;
}

.help-tooltip:hover {
    color: #007bff;
}

.status-badge {
    position: relative;
    cursor: help;
}

.status-badge.active { background-color: #28a745; }
.status-badge.resolved { background-color: #6c757d; }
.status-badge.appealed { background-color: #ffc107; }
.status-badge.overturned { background-color: #dc3545; }
.status-badge.archived { background-color: #17a2b8; }
.status-badge.expired { background-color: #6f42c1; }

