html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.page-break {
    break-after: page;
    page-break-after: always;
}

.cursor-pointer {
    cursor: pointer;
}

.container-receiving-summary-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
}
/*
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}*/
.container-receiving-summary-card .progress-container {
    display: flex;
    align-items: center;
}
.container-receiving-summary-card .progress-bar {
    height: 16px; /* Increase this value to make the bar thicker */
    background-color: #4CAF50; /* Progress bar color */
    border-radius: 5px;
    margin-right: 10px;
}

.container-receiving-summary-card .progress-label {
    font-size: 14px;
    color: #555;
}
.progress-container {
    display: flex;
    align-items: center;
}

.progress-bar {
    height: 10px;
    background-color: #4CAF50;
    border-radius: 5px;
    width: 40%; /* Dynamic width based on progress */
    margin-right: 10px;
}

.progress-label {
    font-size: 14px;
    color: #555;
}

.toggle-icon {
    font-size: 20px;
}

.card-content {
    padding-top: 10px;
    color:black;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.toggle-icon {
    font-size: 1.25rem;
    transition: transform 0.2s;
}

.card-body {
    padding-top: 0; /* Optional: adjust for spacing */
}
.large-scan-button {
    font-size: 1.8rem;
    padding: 25px 50px;
    width: 100%; /* Makes the button full-width, adjust as needed */
    max-width: 300px; /* Limits max width for larger screens */
    display: block;
    margin: 0 auto; /* Centers the button */
}

/* Styling for the selected pallet row */
.selected-pallet-row {
    background-color: #ffe4b2; /* Soft orange background */
    color: #333; /* Ensure text is readable */
    font-weight: bold;
    border-left: 4px solid #ffa500; /* Add a border for emphasis */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth highlight effect */
}

    /* Optional: Hover effect for selected row */
    .selected-pallet-row:hover {
        background-color: #ffd591; /* Slightly darker orange */
        color: #000; /* Black text for better visibility */
    }

.swal2-popup .swal2-html-container div {
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

.swal2-popup .swal2-html-container h4 {
    margin: 0;
    font-size: 1.5em;
}

.swal2-popup .swal2-html-container img {
    display: block;
    margin: 10px auto;
}

.swal2-popup .swal2-html-container .warning {
    color: orange;
    font-weight: bold;
}

.swal2-popup .swal2-html-container .success {
    color: green;
    font-weight: bold;
}

.swal2-popup .swal2-html-container .error {
    color: red;
    font-weight: bold;
}
 /* Add slide-down animation for background image on hover */
    .custom-card::before {
        transition: transform 0.7s ease-in-out;
        transform: translateY(0);
    }

    .custom-card:hover::before {
        transform: translateY(35px); /* adjust depth of movement */
    }


    /* Optional: Add subtle float-down for card body content too */
    /*.custom-card-body {
        transition: transform 0.3s ease-in-out;
    }*/

   /* .custom-card:hover .custom-card-body {
        transform: translateY(5px);
    }
*/
    /* Button scale and glow */
    .custom-card .btn {
        transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
       
    }

    .custom-card:hover .btn {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);  subtle glow 
    }
    /* Animate and glow text on hover */
    .custom-card:hover .custom-card-body p,
    .custom-card:hover .custom-card-body div
     {
        font-weight: bold;
        color: #ffffff;
        text-shadow: 0 0 5px #ffffff, 0 0 10px rgba(255, 255, 255, 0.6);
        transition: all 0.3s ease-in-out;
    }

/* General styling for custom cards */
.custom-card {
    position: relative;
    height: 300px; /* Consistent card height */
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Ensure items stack vertically */
    justify-content: space-between; /* Distribute content */
}

    /* Overlay to improve text readability */
    .custom-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        z-index: 1;
        filter: brightness(0.9); /* Darken background for readability */
        opacity: 0.9;
    }

/* Specific backgrounds for each card type */
.stock-management-card::before {
    background-image: url('/images/stock-management-background.png');
}

.trace-item-card::before {
    background-image: url('/images/trace-item-background.png');
}

.dashboard-card::before {
    background-image: url('/images/stats.jpg');
}

.orders-card::before {
    background-image: url('/images/orders-background.png');
}

/* Card header styling */
.custom-card-header {
    position: relative;
    background: #ddd; /* Semi-transparent white */
    z-index: 2;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 18px;
    border-bottom: 2px solid #ddd;
}

/* Card body styling */
.custom-card-body {
    position: relative;
    z-index: 2;
    padding: 15px;
    text-align: center;
    color: white; /* Ensure text is visible */
    font-size: 16px;
    flex-grow: 1; /* Push the button to the bottom */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the text */
}

    /* Button styling at the bottom */
    .custom-card-body .btn {
        margin-top: auto; /* Push the button to the bottom */
        width: 100%; /* Full-width button */
        font-size: 14px;
    }

.card-new-order {
    background-image: url('/images/new-orders-bg.jpg'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    color: black; /* Ensure text is readable */
    min-height: 300px; /* Ensure consistent height across cards */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .card-new-order .card-header {
        background-color: #ffe4b2; /* Slight transparency for readability */
        font-weight: bold;
        font-size: 1.25rem;
    }

    .card-new-order .card-body {
        background-color: rgba(0, 0, 0, 0.4); /* Transparent overlay to improve text visibility */
        color: black;
        padding: 20px;
        flex-grow: 1;
    }

    .card-new-order .btn {
        align-self: flex-end; /* Align the button at the bottom */
        margin-top: auto; /* Push the button to the bottom */
    }

.custom-order-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

    .custom-order-table thead {
        background-color: #f4f4f4;
        color: #333;
        text-align: left;
        font-weight: bold;
    }

        .custom-order-table thead th {
            padding: 10px;
            border-bottom: 2px solid #ddd;
        }

    .custom-order-table tbody tr {
        border-bottom: 1px solid #ddd;
        transition: background-color 0.3s;
    }

    .custom-order-table tbody tr:hover {
        background-color: #f9f9f9;
    }

    .custom-order-table td {
        padding: 10px;
        text-align: left;
    }

    .custom-order-table tbody td:nth-child(1) {
        font-weight: bold; /* Highlight Order No */
    }

    .custom-order-table tbody td {
        border-right: 1px solid #eee;
    }

    .custom-order-table tbody td:last-child {
        border-right: none;
    }

    .card {
        border-radius: 8px; /* Optional: Adds rounded corners */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
        transition: box-shadow 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
        overflow: hidden; /* Ensure content stays within the card */
    }

    .card:hover {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-4px); /* Slight lift effect on hover */
    }
.shadow-card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

    .shadow-card:hover {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-4px);
    }
/*@media print {
    .sscc-header {
        padding: 2px 0;*/ /* Further reduce padding for print */
        /*background-color: #f8f9fa !important;*/ /* Force background color in print */
    /*}

    .label-card {
        border: 1px solid #333;*/ /* Ensure border shows in print */
    /*}*/

    /* Fine-tuning font sizes and spacing for print */
    /*.sscc-title-number, .lot-barcode-column, .card-section {
        font-size: 0.9em;*/ /* Slightly smaller text for print */
    /*}
}*/
@media print {
    @page {
        size: A4 landscape; /* A4 landscape layout */
        margin: 0; /* Remove default margins */
    }

    html body {
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center; /* Center content horizontally */
        align-items: center; /* Center content vertically */
    }

    .print-container {
        display: flex; /* Align labels side by side */
        flex-direction: row; /* Ensure horizontal layout */
        justify-content: space-evenly; /* Even spacing between labels */
        align-items: center;
        width: 100%; /* Full width of the page */
        height: 100%; /* Full height of the page */
        box-sizing: border-box;
    }

    .label-card {
        flex: 0 0 48%; /* Each label takes up nearly half the page */
        box-sizing: border-box;
        border: 1px solid #333; /* Optional: visible border for print */
        padding: 10mm; /* Padding within each label */
        margin: 0; /* Ensure no extra margin */
        overflow: hidden; /* Prevent content overflow */
    }

        .label-card img {
            max-width: 100%;
            height: auto; /* Ensure images scale properly */
        }
        /*Search bar*/


   
}
