body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass-effect: rgba(255, 255, 255, 0.15);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}


/* Welcome Screen Container */
.welcome-screen {
    min-height: 100vh;
    padding-top: 0 !important;
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: var(--secondary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.welcome-header {
    padding-top: env(safe-area-inset-top);
}


/* Pending Order Indicators */
.slide-menu a .pending-order-indicator {
    color: red;
    font-weight: bold;
    margin-left: 5px;
    animation: pulse 1.5s infinite;
}

#menuToggle {
    position: relative;
}

#menuToggle .pending-order-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
/* Animated Background Elements */
.bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #667eea;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #764ba2;
    bottom: -150px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #00d2ff;
    top: 40%;
    left: 30%;
    animation: float 12s ease-in-out infinite 2s;
}

/* Header Section */
.welcome-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.user-profile {
    display: flex;
    align-items: center;
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 50px;
    padding: 6px 12px;
    box-shadow: var(--shadow);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #764ba2;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.notification-bell {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    box-shadow: var(--shadow);
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #ff4757;
    border-radius: 50%;
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content */
.welcome-content {
    padding: 0 20px;
    z-index: 10;
    text-align: center;
}

.greeting-text {
    font-size: 16px;
    color: rgba(44, 62, 80, 0.8);
    margin-bottom: 8px;
    font-weight: 500;
}

.welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 16px;
    color: rgba(44, 62, 80, 0.7);
    max-width: 300px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 20px;
    margin-bottom: 40px;
    z-index: 10;
}

.action-card {
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.action-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: var(--primary-gradient);
}

.action-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.action-desc {
    font-size: 12px;
    color: rgba(44, 62, 80, 0.7);
}

/* Recent Activity */
.recent-activity {
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 24px 24px 0 0;
    padding: 24px 20px;
    box-shadow: var(--shadow);
    z-index: 10;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.view-all {
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
}

.activity-list {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.activity-list::-webkit-scrollbar {
    display: none;
}

.activity-item {
    min-width: 120px;
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.activity-party {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    font-size: 12px;
    color: rgba(44, 62, 80, 0.6);
    display: flex;
    justify-content: space-between;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-content {
    animation: fadeIn 0.8s ease-out forwards;
}

.quick-actions {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.recent-activity {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.action-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
}

.action-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.action-icon {
    font-size: 1.2rem;
}

.action-text {
    font-weight: 500;
}

/* Footer */
.welcome-footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.datetime {
    display: flex;
    gap: 1rem;
}

.date, .time {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.system-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.version {
    font-weight: 600;
}

.separator {
    opacity: 0.5;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes letterAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Letter animation delays */
.letter:nth-child(1) { --index: 1; }
.letter:nth-child(2) { --index: 2; }
.letter:nth-child(3) { --index: 3; }
.letter:nth-child(4) { --index: 4; }
.letter:nth-child(5) { --index: 5; }
.letter:nth-child(6) { --index: 6; }
.letter:nth-child(7) { --index: 7; }
.letter:nth-child(8) { --index: 8; }
.letter:nth-child(9) { --index: 9; }
.letter:nth-child(10) { --index: 10; }
.letter:nth-child(11) { --index: 11; }
.letter:nth-child(12) { --index: 12; }
.letter:nth-child(13) { --index: 13; }
.letter:nth-child(14) { --index: 14; }
.letter:nth-child(15) { --index: 15; }
.letter:nth-child(16) { --index: 16; }
.letter:nth-child(17) { --index: 17; }
.space { --index: 0; display: inline-block; width: 0.3em; }

.section {
    display: none;
    margin-top: -20px;
    padding: 20px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.active {
    display: block;
}

.nav-link.active {
    font-weight: bold;
    color: #007bff;
}

.nav-link {
    float: left;
    margin-right: -6px;
    margin-bottom: -10px;
}

.nav-link:last-child {
    margin-right: 0PX;
}

.nav-link:hover {
    color: #0056b3;
}

#orderSummary {
    margin-top: 15px;
    border-top: 2px solid #007bff;
    padding-top: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.navbar {
    padding: 10px;
    background-color: #007bff;
    color: rgb(0, 0, 0);
}

.navbar-brand {
    font-size: 1.5rem;
    color: rgb(0, 0, 0);
}

.nav-link {
    font-size: 1.3rem;
    color: rgb(0, 0, 0);
}

.btn {
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    border: none;
}

.btn-success:hover {
    background-color: #218838;
}

.table {
    font-size: 0.9rem;
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 10px;
    border: 1px solid #ffffff;
    

    
}
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
}

/* Font Awesome for icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Demo timer styles */
#demoTimer {
    font-family: Arial, sans-serif;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Social media icons hover effects */
.fab {
    transition: transform 0.2s, color 0.2s;
}
.fab:hover {
    transform: scale(1.2);
}
.fa-linkedin-in:hover { color: #0077b5 !important; }
.fa-github:hover { color: #333 !important; }
.fa-facebook-f:hover { color: #3b5998 !important; }
.fa-instagram:hover { color: #e4405f !important; }

.table th {
    background-color: #3a4a6b;
    color: white;
    align-content: center;
}
p{
    margin-top: -5px;
    margin-bottom: -5px ;
}
.flip-icon {
  transform: scaleX(-1); /* Only flips this specific icon */
}


.table tbody tr:hover {
    background-color: #f1f1f1;
}
/*
@media (min-width: 768px) {
    body::before {
        content: "This application is designed for mobile devices only. Please access it on a mobile device or use a mobile device emulator.";
        display: block;
        padding: 20px;
        text-align: center;
        font-size: 18px;
        color: #dc3545;
    }

    .container {
        display: none;
    }
}
*/
.navbar-brand img {
    border-radius: 50%;
    overflow: hidden;
}

.slide-menu {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: #000;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.slide-menu a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 18px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.slide-menu a:hover {
    color: #f1f1f1;
}

.slide-menu .close-btn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/* Specific styling for menu toggle */
#menuToggle {
    position: relative;
    font-size: 24px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #000;
    padding: 0;
    margin-right: 15px;
}

#menuToggle.has-notifications::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #ff0000;
    border-radius: 50%;
    display: none;
}

#menuToggle.has-notifications::before {
    display: block;
}

.section {
    display: none;
    padding: 20px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section.active {
    display: block;
}

#partySearch {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 24px;
}
#itemSearch {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 24px;
}
/*#partyList {
    position: absolute;
    width: calc(100% - 30px);
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    display: none;
}*/

#partyList a {
    padding: 10px;
    text-decoration: none;
    display: block;
    color: #333;
}

#partyList a:hover {
    background-color: #f1f1f1;
}

.section h4 {
    text-align: center;
    font-weight: 900;
}

#homeScreen {
    text-align: center;
    padding:150px 0px;
    width: 100%;
    /* Adjust container width if needed */
    max-width: none;
    margin-top: 0px; /*HC TEXT HEIGHT*/
    padding-bottom: 350PX;


}

#homeScreen h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: bold;
    /* Make text bold */
    
}

.text-effect-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 200px;
}

.text-effect-wrapper::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    right: -100%;
    bottom: -100%;
    background:
        radial-gradient(circle, white, transparent 25%) 0 0/25% 25%,
        radial-gradient(circle, white, transparent 25%) 50% 50%/12.5% 12.5%;
    mix-blend-mode: color-dodge;
    animation: shimmer 5s infinite linear;
}

@keyframes shimmer {
    to {
        transform: translate(50%, 50%);
    }
}

.hc-text {
    font-size: 8rem;
    font-weight: bold;
    font-style: italic;
    font-family: 'Dancing Script', cursive;
    background-image: linear-gradient(to right, #8B0000, #0000FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow: hidden;
    /* Added line */
}

#master {
    text-align: center;
    /* Center the buttons horizontally */
}

#homeScreen h4 {
    font-size: 1.8rem;
    margin-top: 20px;
    font-weight: bold;
}

.password-input {
    -webkit-text-security: disc;
    -moz-text-security: disc;
    -text-security: disc;
}

#backup-details-table {
    width: 100%;
    border-collapse: collapse;
}

#backup-details-table th,
#backup-details-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#backup-details-table th {
    background-color: #f2f2f2;
}

.category-container {
    margin-bottom: 15px;
    margin-top: 10px;
    font-size: 18px;
    /* Increased font size for category container */
}

.category-container label {
    margin-right: 10px;
    font-size: 18px;
    /* Increased font size for labels */
}

.size-quantity-grid {
    display: table;
    border-collapse: collapse;
    width: 100%;
    margin-top: 5px;
}

.size-quantity-row {
    display: table-row;
}

.size-cell,
.quantity-cell {
    display: table-cell;
    padding: 6px;
    border: 1px solid #000000;
    font-size: 18px;
    /* Increased font size for size and quantity cells */
    vertical-align: middle;
}

.size-cell {
    font-weight: bold;
    width: 30px;
}

.quantity-cell {
    text-align: left;
}

.qty-label {
    display: inline-block;
    margin-right: 8px;
    font-size: 18px;
    /* Increased font size for quantity label */
}

.custom-qty {
    width: 35px;
    display: inline-block;
    vertical-align: middle;
    font-size: 18px;
    /* Increased font size for custom quantity input */
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.approval-content {
    text-align: center;
    color: white;
    font-family: 'Arial', sans-serif;
}

.approval-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.approval-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.loading-animation {
    display: flex;
    justify-content: center;
}

.circle {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    margin: 0 10px;
    animation: bounce 1.5s infinite ease-in-out;
}

.circle:nth-child(2) {
    animation-delay: 0.2s;
}

.circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

#passwordModal2 .modal-content {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

#passwordModal2 .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

#passwordModal2 .modal-body {
    padding: 1.5rem;
}

#passwordModal2 .modal-footer {
    border-top: none;
    padding: 0.5rem 1.5rem 1.5rem;
}

#passwordInput2.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#passwordError2 {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#orders {
    position: relative;
MARGIN-BOTTOM: 30PX; /*CHANGED ON 18-01*/
    /* Adjust this value based on your footer height */
    margin-top: 10px;
    
}
.color-container {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px; /* Adjust font size as needed */
    
  }
  .color-container h4 {
    margin: 0;
    font-size: 18px;
   
   
  }
  
.order-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.order-footer button {
    width: 46%;
    /* Adjust as needed */
    border-radius: 15px;
}
#addToCartBtn {
    background-color: #072dd6; /* Change the background color to your desired color */
    border-color: #FFD700;
  }
/*toggle switch*/
.toggle-container {
display: inline-flex;
align-items: center;
}

.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}

.switch input {
opacity: 0;
width: 0;
height: 0;
}

.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 34px;
}

.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}

input:checked + .slider {
background-color: #2196F3;
}

input:checked + .slider:before {
transform: translateX(26px);
}
.dropdown-toggle::after {
display: none;
}

.filter-button:hover {
    background-color: #f8f9fa;
}
.actions-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
}
.modal4 {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal4-content {
    background-color: #fefefe;
    margin: 20px;
    padding: 0;
    border: 1px solid #888;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    box-sizing: border-box;
    border-radius: 15px;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal4-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f5f5f5;
}
.modal4-header h5 {
    font-size: 24px; /* Adjust the font size as needed */
    font-weight: 700;
    margin-left: 10px;
    margin-top: 5px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

.modal4-body {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
    height: calc(100% - 60px); /* Adjust based on your header height */
}

.modal4-sidebar {
    width: 30%;
    background-color: #e0e0e0;
    padding: 20px;
    text-align: left;
    
    overflow-y: auto;
}

.modal4-main {
    width: 70%;
    background-color: #f0f0f0;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.filter-item {
    cursor: pointer;
    padding: 10px;
    margin-bottom: 5px;
}

.filter-item.active {
    background-color: #c0c0c0;
}

.filter-actions {
    position: sticky;
    top: 0;
    background-color: #f0f0f0;
    padding: 10px 0;
    z-index: 1;
}
.filter-actions button {
    /* Common styles for both buttons */
    margin-right: 50px; /* Add spacing between buttons */
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid #f0f1e3;
    font-size: 16px;
    cursor: pointer;
    gap: 3px;
  }
  
  #selectAllBtn {
    background-color: #ffffff; /* Green color for "Select All" */
    color: rgb(0, 0, 0);
    
  }
  
  #deselectAllBtn {
    background-color: #ffffff; /* Red color for "Deselect All" */
    color: rgb(0, 0, 0);
  }
  
  .filter-actions button:hover {
    background-color: #fcf2f7; /* Darker green on hover for "Select All" */
    color: rgb(0, 0, 0);
    border-color: #4b003b;
   
  }
  #selectAllBtn:hover {
    background-color: #fcf2f7; /* Darker red on hover for "Deselect All" */
    color: rgb(0, 0, 0);
    border-color: #4b003b;
   
  }
  #deselectAllBtn:hover {
    background-color: #fcf2f7; /* Darker red on hover for "Deselect All" */
    color: rgb(0, 0, 0);
    border-color: #4b003b;
    
  }
#filterMenu {
    font-size: 16px;
    font-weight: 600;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
   
    margin-left: 1px;
    background-color: transparent;
    padding: 10px ;
   


}
#filterMenu .filter-item {
    background-color: transparent; /* Make the text area transparent */
    padding: 5px ;
    
  }
#partyList {
    border: 1px solid #ccc; /* Adjust border color and width as needed */
    border-radius: 20px; /* Adjust border radius for curvature */
    overflow: hidden; /* Hide overflow content */
  }
  #itemList {
    border: 1px solid #ccc; /* Adjust border color and width as needed */
    border-radius: 20px; /* Adjust border radius for curvature */
    overflow: hidden; /* Hide overflow content */
    
  }
.party-name-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    border-radius: 12px;
}
.modal4-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}
#saveFilterBtn {
    background-color: #ff32cc; /* Green color */
    color: white;
    padding: 5px 12px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
   
  }
  #selectionCount {
    font-weight: bold;
  }
  #clearFiltersButton {
    background-color: transparent ;
    color: red;
    border-color: transparent;
    text-decoration: underline ;
    font-size: 17px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
  }
  
  

.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
    z-index: 1100; /* Ensure it's above the modal */
}

#filterButton.active {
    background-color: #b4eebe;
    color: #02300c;
    min-width: 120px;
    text-align: right;
    padding-left: 20px;
    letter-spacing: 3px;
    font-size: 18px;
    font-weight: 700;
    border-color: #212529;
    
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center the text horizontally */
    align-items: center;
    transition: 2s;

}
#filterButton {
    background-color: #b4eebe;
    color: #02300c; 
    min-width: 120px;
    text-align: right;
    padding-left: 20px;
    letter-spacing: 3px;
    font-size: 18px;
    font-weight: 700;
    border-color: #212529;
    
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center the text horizontally */
    align-items: center;
    transition: 2s;

}   
#filterButton {
    /* ... other properties ... */
    text-transform: uppercase;
  }
.party-name-btn {
    background-color: #ffffff;
    border: 2px solid #ddd;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.party-name-btn.selected {
    border-color: #28a745;
}

.close4 {
    color: #000000;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
   
}

.close4:hover,
.close4:focus {
    color: #000000;
    text-decoration: none;
    cursor: pointer;
}
.color-containers {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
}

.color-container {
    flex: 0 1 calc(50% - 10px);
    max-width: 138px;
    min-width: 20px;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.size-quantity-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.size-quantity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px; /* Add space between size label and quantity input */
}

.size-label {
    flex: 1;
}

.quantity-input {
    width: 80px; /* Slightly reduced width to accommodate the gap */
    border-radius: 5px; /* Rounded edges for the input */
    padding: 5px;
    height: 30px;
    box-sizing: border-box;
    line-height: 1; /* Ensure text is centered vertically */
}

@media (max-width: 768px) {
    .color-container {
        flex: 0 1 100%;
    }
}
.delete-confirmation-dialog {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.delete-confirmation-dialog-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.delete-confirmation-dialog.show {
    display: block;
}
.deleted-order-container {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.order-items {
    margin-top: 10px;
    margin-bottom: 10px;
}

.item-details {
    margin-bottom: 10px;
    padding-left: 10px;
}

.color-details {
    margin-top: 5px;
    margin-bottom: 5px;
}

.order-actions {
    margin-top: 10px;
    width: auto;
    gap: 5px;
}
.quantity-control {
    display: flex;
    align-items: center;
}
.quantity-control input {
    width: 60px;
    text-align: center;
}

.three-dot-menu {
    position: relative;
    display: inline-block;
}
.three-dot-menu .btn-link {
    color: rgb(0, 0, 0); /* Set button text color to black */
    padding: 0; /* Remove default padding */
    border: none; /* Remove default border */
    background-color: transparent; /* Make background transparent */
    position: relative;
    
  }
  
  .three-dot-menu .btn-link:after {
    content: "\2026"; /* Replace with Unicode character for three dots (ellipsis) */
    font-size: 20px; /* Adjust font size as needed */
    background-color: white; /* Set background color to white */
  border-bottom: none; /* Remove bottom border */
  position: absolute; /* Add position: absolute */
  bottom: -1px; /* Adjust bottom position as needed */
  }
  
  .three-dot-menu .btn-link:focus {
    outline: none; /* Remove focus outline */
    box-shadow: none; /* Remove focus shadow */
  }

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.dropdown-menu a {
    color: rgb(0, 0, 0);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
}
.order-actions button.bill-btn {
    /* Set a desired width for the button: */
    width: 100%; /* Adjust as needed */
  
    /* Ensure text doesn't wrap unnecessarily: */
    white-space: nowrap;
  
    /* Optional: Center the text within the button: */
    text-align: center;
  }
/*
project/
├── index.html
├── css/
│   └── styles.css
├── js/
│   ├── main.js
│   ├── firebase-config.js
│   ├── auth.js
│   ├── orders.js
│   ├── pending.js
│   ├── billing.js
│   ├── sent.js
│   ├── backup-details.js
│   ├── backup-restore.js
│   ├── xls-exports.js
│   ├── deleted-orders.js
│   ├── activity-logs.js
│   ├── masters.js
│   ├── user-management.js
│   └── utils.js
*/
.modal-cart-summary {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.modal-cart-summary th,
.modal-cart-summary td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.modal-cart-summary thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #000000;
}

.modal-cart-summary tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.modal-cart-summary .table {
    background-color: #fff;
}

.modal-cart-summary tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
    cursor: pointer;
}

.modal-cart-summary tfoot {
    font-weight: bold;
    background-color: #f8f9fa;
}
#stockRemovalModal .modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 1% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 98%;
    max-height: 100%; /* Set a maximum height to prevent excessive overflow */
    overflow-y: auto; /* Add vertical scrollbar if content overflows */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    min-height: 99%;
  }

#stockRemovalModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#stockRemovalModal .close:hover,
#stockRemovalModal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#stockRemovalModal .sizes-cell {
    font-size: 0.8em;
    white-space: normal;
    word-wrap: break-word;
}
.section {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

#stockUpdation {
    max-width: 600px;
    margin: 0 auto;
}

#stockUpdation h4 {
    margin-bottom: 20px;
}

#xlsFile {
    display: block;
    margin-bottom: 10px;
}

#uploadStockBtn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#uploadStockBtn:hover {
    background-color: #0056b3;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}
.stock-item {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.stock-item span {
    display: block;
    margin-top: 5px;
}

#itemStockModal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

#itemStockModal .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    height : auto;
}

#itemStockModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#itemStockModal .close:hover,
#itemStockModal .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#modalStockTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#modalStockTable th,
#modalStockTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    background-color: #cc0464;
}

#modalStockTable th {
    background-color: #f2f2f2;
    background-color: #cc0464;
}
.stock-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}

.stock-item-btn {
    background-color: #f0f0f0;
    border: none;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
    transition: background-color 0.3s;
}

.stock-item-btn:hover {
    background-color: #e0e0e0;
}

.instructionModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.instructionModal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.instructionClose {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.instructionClose:hover,
.instructionClose:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* Modal Styles 
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 1% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 98%;
    height: 96%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
*/
.stock-removal-detailed-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

.stock-removal-detailed-modal .modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .stock-removal-detailed-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .stock-removal-detailed-modal .modal-title {
    font-size: 1.5rem;
    margin: 0;
  }
  
  .stock-removal-detailed-modal .close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .stock-removal-detailed-modal .modal-body {
    padding: 1rem;
  }
  
  .stock-removal-detailed-modal .table-container {
    margin-bottom: 1rem;
  }
  
  .stock-removal-detailed-modal .table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .stock-removal-detailed-modal .table th,
  .stock-removal-detailed-modal .table td {
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    text-align: left;
    background-color: #cc0464;
  }
  
  .stock-removal-detailed-modal .table th {
    background-color: #a2235c;
  }
  
  .stock-removal-detailed-modal .total-section {
    margin-top: 1rem;
  }
  
  .stock-removal-detailed-modal .total-header {
    background-color: #a2235c;
    padding: 0.5rem;
    font-weight: bold;
    text-align: center;
  }
  
  .stock-removal-detailed-modal .total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
  }
  
  .stock-removal-detailed-modal .total-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .stock-removal-detailed-modal .modal-footer {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    text-align: right;
  }
  .sent-order {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.sent-order.light-blue {
    background-color: #f1c9e3;
}

.sent-order.dark-blue {
    background-color: #f0a9d2;
}

.sent-order h5 {
    margin-top: 0;
}
.table.table-striped th {
    background-color: #cc0464; /* Change the background color as desired */
  }

.sent-order table {
    width: 100%;
    border-collapse: collapse;
}

.sent-order th, .sent-order td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.sent-order th {
    background-color: #f2f2f2;
}
  
  .stock-removal-detailed-modal .send-to-billing-btn {
    background-color: #a2235c;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
  }
  .order-separator hr {
    border: 0;
    height: 1px;
    background-color: #ccc;
    margin: 10px 0;
}
  .stock-removal-detailed-modal .send-to-billing-btn:hover {
    background-color: #0056b3;
  }
  .total-row {
    background-color: #e6e6e6;
    font-weight: bold;
  }
  
  .total-row td {
    padding: 15px;
  }
/* Quantity adjustment buttons */
.qty-adjust {
    background-color: #a2235c;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    font-size: 18px;
    cursor: pointer;
    margin: 0 5px;
  }
  
  .qty-adjust:hover {
    background-color: #8e1e50;
  }
  
  .qty-value {
    display: inline-block;
    min-width: 30px;
  }  
.srq-input-group {
    display: flex;
    align-items: center;
}
/* old input
.srq-input-group .srq-input {
    width: 40px;
    text-align: center;
    margin: 0 5px;
}*/
.srq-input-group .srq-input {
    width: auto;
    text-align: center;
    margin: 0 5px;
    align-content: center;
}
.srq-input-group button {
    padding: 2px 6px;
}
.sent-to-billing {
    background-color: #E6F3FF; /* Light blue color */
}
#purchaseorder .purchase-order-button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}
.purchase-order-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.purchase-order-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
}
.purchase-order-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.purchase-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.purchase-order-table th, 
.purchase-order-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.purchase-order-table th {
    background-color: #f2f2f2;
}


/* Purchase Order Section */
#purchaseorder {
    margin-bottom: 20px;
}

#purchaseorder h4 {
    margin-bottom: 10px;
}

#purchaseFormatBtn,
#placeOrder2Btn {
    padding: 10px 15px;
    margin-right: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

#purchaseFormatBtn:hover,
#placeOrderBtn:hover {
    background-color: #45a049;
}

/* Modal Styles */
#purchaseOrderModal,
#placeOrderModal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

#purchaseOrderModal .purchase-order-modal-content,
#placeOrderModal .place-order-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#purchaseOrderModal .purchase-order-close,
#placeOrderModal .place-order-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

#purchaseOrderModal .purchase-order-close:hover,
#purchaseOrderModal .purchase-order-close:focus,
#placeOrderModal .place-order-close:hover,
#placeOrderModal .place-order-close:focus {
    color: #000;
    text-decoration: none;
}

/* Purchase Order Table */
#purchaseOrderTableBody {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#purchaseOrderTableBody th,
#purchaseOrderTableBody td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

#purchaseOrderTableBody th {
    background-color: #f2f2f2;
    font-weight: bold;
}

#purchaseOrderTableBody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#purchaseOrderTableBody tr:hover {
    background-color: #f5f5f5;
}

/* Style Grid */
#placeOrderModal #styleGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

#placeOrderModal #styleGrid .style-item {
    background-color: #f0f0f0;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#placeOrderModal #styleGrid .style-item:hover {
    background-color: #e0e0e0;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    #purchaseOrderModal .purchase-order-modal-content,
    #placeOrderModal .place-order-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    #placeOrderModal #styleGrid {
        grid-template-columns: repeat(2, 1fr);
    }

    #purchaseOrderTableBody {
        font-size: 14px;
    }

    #purchaseOrderTableBody th,
    #purchaseOrderTableBody td {
        padding: 8px;
    }
}

#colorModal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.color-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.color-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.color-modal-close:hover,
.color-modal-close:focus {
    color: #000;
    text-decoration: none;
}

#colorGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.color-item {
    background-color: #f0f0f0;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.color-item:hover {
    background-color: #e0e0e0;
}
.po-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.po-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.po-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.po-modal-close:hover,
.po-modal-close:focus {
    color: #000;
    text-decoration: none;
}

.po-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.po-grid-item {
    background-color: #f0f0f0;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.po-grid-item:hover {
    background-color: #e0e0e0;
}

.po-size-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
}

.po-size-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
}

.po-quantity-control {
    display: flex;
    align-items: center;
}

.po-quantity-control button {
    width: 30px;
    height: 30px;
    font-size: 18px;
    border: none;
    background-color: #ddd;
    cursor: pointer;
}

.po-quantity-control input {
    width: 40px;
    height: 30px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ddd;
    margin: 0 5px;
}

.po-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 20px;
}

.po-cart-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f0f0f0;
    padding: 10px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.po-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.po-table th,
.po-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.po-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.three-dot-menu {
    position: relative;
    display: inline-block;
    float: right;
}

.three-dot-menu .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    display: none;
    min-width: 120px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
}

.three-dot-menu .dropdown-menu a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
    text-decoration: none;
}

.three-dot-menu .dropdown-menu a:hover {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5;
}

.bg-warning-light {
    background-color: rgba(85, 2, 2, 0.5) !important;
}

.bg-info-light {
    background-color: rgba(85, 2, 2, 0.5) !important;
}
.party-master-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.party-master-table th, 
.party-master-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.party-master-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}
/* Base styles for location icon */
.location-icon {
    cursor: pointer;
    color: #2196F3;
}

.location-icon:hover {
    color: #0b7dda;
}

/* Modal container styles */
.location-picker-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-picker-modal-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

/* Content area styles */
.location-picker-content {
    flex: 1;
    min-height: 0;
    margin: 15px 0;
}

.location-picker-map-canvas {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
}

/* Button styles */
.location-picker-button-wrapper {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.location-picker-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.location-picker-button-confirm {
    background: #2563eb;
    color: white;
}

.location-picker-button-confirm:hover {
    background: #1d4ed8;
}

.location-picker-button-cancel {
    background: #64748b;
    color: white;
}

.location-picker-button-cancel:hover {
    background: #475569;
}

/* Information banner styles */
.location-picker-accuracy-banner {
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 4px;
    font-size: 14px;
    color: #475569;
    border-left: 4px solid #2563eb;
}

/* Title styles */
.location-picker-modal-title {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Error and loading states */
.location-picker-error {
    text-align: center;
    padding: 20px;
    background: #fee2e2;
    border-radius: 8px;
    margin: 20px 0;
    color: #991b1b;
}

.location-picker-retry-button {
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.location-picker-loading {
    text-align: center;
    padding: 20px;
}

/* Custom map marker */
.custom-map-marker {
    background: none;
    border: none;
}

/* Map control button styles */
.custom-map-button {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    box-shadow: none;
}

.custom-map-button:hover {
    background: #f8f9fa;
}

/* Ensure Leaflet controls stay within bounds */
.leaflet-control-container {
    position: absolute;
    z-index: 1;
}

/* Leaflet specific overrides */
.leaflet-container {
    font-family: inherit;
}

/* Leaflet specific overrides continued */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a {
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    color: #1e293b !important;
    text-decoration: none;
    background-color: white !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
}

.leaflet-control-zoom a:hover {
    background-color: #f8f9fa !important;
    color: #000 !important;
}

.leaflet-control-zoom-in {
    border-top-left-radius: 4px !important;
    border-top-right-radius: 4px !important;
}

.leaflet-control-zoom-out {
    border-bottom-left-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

/* Ensure map takes full height in modal */
#location-picker-map {
    height: 100%;
    min-height: 400px;
    width: 100%;
}

/* Custom marker pulse animation */
@keyframes markerPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.custom-map-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    animation: markerPulse 1.5s ease-out infinite;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .location-picker-modal-container {
        width: 95%;
        max-height: 95vh;
        padding: 15px;
    }

    .location-picker-map-canvas {
        height: 300px;
    }

    .location-picker-button {
        padding: 6px 12px;
        font-size: 14px;
    }

    .location-picker-accuracy-banner {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Enhanced map controls continued */
.leaflet-control-layers {
    border: none !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.leaflet-control-layers-toggle {
    width: 40px !important;
    height: 40px !important;
    background-size: 20px 20px !important;
}

.leaflet-control-layers-expanded {
    padding: 10px !important;
    background: white !important;
    border-radius: 4px !important;
}

/* Enhanced marker styles */
.custom-map-marker {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.custom-map-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    animation: markerPulse 2s ease-out infinite;
}

@keyframes markerPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Enhanced modal styles for better mobile experience */
.location-picker-modal-overlay {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    touch-action: none;
}

.location-picker-modal-container {
    position: relative;
    overflow: hidden;
    transform: translateZ(0); /* Force GPU acceleration */
    -webkit-overflow-scrolling: touch;
}

.location-picker-content {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Prevent scroll on body when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Enhanced button styles */
.location-picker-button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.location-picker-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) scale(0);
    border-radius: inherit;
    transition: transform 0.2s;
}

.location-picker-button:active::after {
    transform: translate(-50%, -50%) scale(2);
}

/* Loading state enhancement */
.location-picker-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: #4b5563;
}

/* Error state enhancement */
.location-picker-error {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced accuracy banner */
.location-picker-accuracy-banner {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Safe area insets for modern mobile devices */
@supports (padding: max(0px)) {
    .location-picker-modal-container {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        padding-top: max(12px, env(safe-area-inset-top));
    }
}

/* Better touch handling for map controls */
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
    border: none !important;
}

/* Prevent text selection during map interaction */
.location-picker-map-canvas {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Optimized scrolling for iOS */
.location-picker-modal-container,
.location-picker-content {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* High contrast mode support */
@media (forced-colors: active) {
    .location-picker-button {
        border: 2px solid ButtonText;
    }
    
    .custom-map-marker svg circle {
        forced-color-adjust: none;
    }
}
/* Spinner animation */
.spinner {
    width: 40px;
    height: 40px;
    margin: 10px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .location-picker-modal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 12px;
    }

    .location-picker-map-canvas {
        height: calc(100vh - 200px);
    }

    .custom-map-button {
        width: 40px !important;
        height: 40px !important;
    }

    .leaflet-control-zoom a {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
    }

    .location-picker-button {
        padding: 12px 20px;
        font-size: 16px;
    }
}
.marquee-container {
    background-color: #87044c;
    padding: 5px 0;
   
    margin-top: -120px;
    margin-bottom: 170px;
}

.announcement {
    color: #ffffff;
    font-weight: bold;
}

.notification-dot {
    position: relative;
    display: inline-flex;
}

.notification-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: #ff0000;
    border-radius: 50%;
    display: none;
}

.notification-dot.has-notifications::after {
    display: block;
}
.undelivered-marquee-wrapper {
    display: flex;
    align-items: center;
    background-color: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    padding: 8px 12px;
    overflow: hidden;
}

.undelivered-label {
    color: #d32f2f;
    font-weight: 600;
    font-size: 14px;
    padding-right: 12px;
    border-right: 1px solid #ffcdd2;
    flex-shrink: 0;
}

.orders-scroll-container {
    position: relative;
    overflow: hidden;
    flex: 1;
    margin-left: 12px;
    height: 20px;
}

.orders-scroll-content {
    position: absolute;
    white-space: nowrap;
    animation: orders-scroll-animation 20s linear infinite;
    color: #333;
    font-size: 14px;
    line-height: 20px;
}

@keyframes orders-scroll-animation {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.orders-scroll-content:hover {
    animation-play-state: paused;
}
.pdf-editor-button-grid {
    padding: 0.5rem 0;
}

.pdf-editor-action-btn {
    background-color: #f8f9fa;
    border: 1px solid #101418;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    height: 3.5rem;
    transition: background-color 0.2s;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.pdf-editor-action-btn:hover {
    background-color: #0563c0;
}
.hidden {
    display: none;
}
.pdf-editor-content-section {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pdf-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.upload-section {
    text-align: center;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
}

.upload-label {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

#pdfInput {
    display: none;
}

.preview-section {
    margin: 20px 0;
    max-height: 600px;
    overflow-y: auto;
}

#pdfCanvas {
    max-width: 100%;
    border: 1px solid #ddd;
}

.actions-section {
    text-align: center;
}

#processButton {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#processButton:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pdf-editor-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.pdf-editor-close-btn:hover {
    color: #dc3545;
}

#cnPdfCanvas {
    max-width: 100%;
    height: auto;
}

.actions-section {
    text-align: center;
    margin-top: 20px;
}

#cnProcessButton {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#cnProcessButton:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.upload-section {
    text-align: center;
    margin: 20px 0;
}

.upload-label {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
}

#cnPdfInput {
    display: none;
}

.multiple-files {
    margin-bottom: 20px;
}

.selected-files-list {
    max-height: 200px;
    overflow-y: auto;
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.selected-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    margin: 5px 0;
    background: #f5f5f5;
    border-radius: 4px;
}

.file-remove-btn {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-remove-btn:hover {
    background: #cc0000;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.preview-item {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.preview-item canvas {
    max-width: 100%;
    height: auto;
}
.upload-label {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-label:hover {
    background: #0056b3;
}

#mergeButton {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#mergeButton:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

#mergeButton:hover:not(:disabled) {
    background: #218838;
}

/* File drag and drop zone */
.drag-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    margin-bottom: 15px;
}

.drag-drop-zone.drag-over {
    border-color: #007bff;
    background: #e7f1ff;
}

/* Loading state */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.modal-header .btn-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.modal-header .btn-group {
    margin-right: 2rem;
}

.modal-header .btn-group .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.orders-scroll-content {
    cursor: pointer;
}

#dayButtons .btn.active {
    background-color: #0d6efd;
    color: white;
}
/* Modal styles for better mobile display */
.modal-header .btn-close {
    padding: 0.5rem;
}

.days-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.days-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

#dayButtons {
    display: flex;
    flex-wrap: nowrap;
    min-width: max-content;
}

#dayButtons .btn {
    padding: 0.375rem 0.75rem;
    border-radius: 0;
    flex: 1;
    min-width: 3.5rem;
}

#dayButtons .btn:first-child {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

#dayButtons .btn:last-child {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

#dayButtons .btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
    padding-top: 0;
   /* position: fixed;*/
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

#ordersList {
    margin-bottom: 60px;
}

.form-check-input {
    margin-top: 0.3em;
}

/* Make the modal full screen on mobile */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0;
        max-width: none;
        height: 100%;
    }

    .modal-content {
        border: none;
        border-radius: 0;
        height: 100%;
    }
    
    .modal-body {
        padding-bottom: 80px;
    }
}


th:first-of-type {
    BORDER-TOP-LEFT-RADIUS: 12PX;
    BORDER-BOTTOM-LEFT-RADIUS: 12PX;
}

.dbbrand-color-palette-icon {
    cursor: pointer;
    font-size: 1.2em;
    display: none;
    margin-left: auto; /* Pushes icon to the right */
}


.dbbrand-color-details-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 300px;
}

.dbbrand-color-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dbbrand-color-details-close {
    cursor: pointer;
    font-size: 1.5em;
    background: none;
    border: none;
    padding: 5px;
}

.dbbrand-color-details-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.dbbrand-color-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dbbrand-color-details-item {
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.dbbrand-color-details-title {
    font-size: 1.2em;
    margin: 0;
    color: #333;
}
.table td {
    border: 1px solid #dbd2d2;
}
th:last-of-type {
    BORDER-TOP-right-RADIUS: 12PX;
    BORDER-BOTTOM-right-RADIUS: 12PX;
}

#camera-container {
    position: relative;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}
/* Delete Order Modal Styles */
#deleteOrderModal .modal-header {
    background-color: #dc3545;
    color: white;
}

#deleteOrderModal .modal-body {
    padding: 1.5rem;
}

#deleteOrderModal .order-details {
    border-left: 4px solid #dc3545;
}

#deleteOrderModal .confirm-delete-btn {
    background-color: #dc3545;
    border-color: #dc3545;
}

#deleteOrderModal .confirm-delete-btn:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.delete-order-btn {
    transition: all 0.2s ease;
}

.delete-order-btn:hover {
    background-color: #dc3545;
    color: white !important;
    transform: scale(1.05);
}
#scanner-video {
    border-radius: 4px;
}

.modal-content{
    OVERFLOW-X: AUTO;}


/* Pending Orders Expiry Warnings */
.order-container.nearing-expiry {
    border-left: 4px solid #f39c12;
    background-color: rgba(243, 156, 18, 0.05);
}

.order-container.expired {
    border-left: 4px solid #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.order-container.nearing-expiry .order-header::after {
    content: "⚠ Expiring Soon";
    position: absolute;
    right: 15px;
    top: 5px;
    background: #f39c12;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.order-container.expired .order-header::after {
    content: "⌛ Expired";
    position: absolute;
    right: 15px;
    top: 5px;
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.expiry-critical {
    animation: pulse 2s infinite;
}

.expiry-warning {
    animation: pulse 4s infinite;
}

.expiry-indicator {
    transition: all 0.3s ease;
}

.expiry-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
/* Expiry Indicator System */
.expiry-indicator {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.expiry-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background: currentColor;
}

.expiry-indicator .icon {
    margin-right: 4px;
    font-size: 14px;
}

/* Status Levels */
.expiry-normal {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 3px solid #2e7d32;
}

.expiry-warning {
    background-color: #fff8e1;
    color: #ff8f00;
    border-left: 3px solid #ff8f00;
}

.expiry-critical {
    background-color: #ffebee;
    color: #c62828;
    border-left: 3px solid #c62828;
}

.expiry-expired {
    background-color: #f5f5f5;
    color: #616161;
    border-left: 3px solid #616161;
}

/* Progress Bar Variant */
.expiry-progress {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: #f5f5f5;
    margin-top: 4px;
}

.expiry-progress-bar {
    height: 100%;
    transition: width 0.3s ease;
}

/* Badge Variant */
.expiry-badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 8px;
    position: relative;
}

.expiry-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    opacity: 0.3;
}

.expiry-normal .expiry-badge::after {
    background-color: #2e7d32;
}

.expiry-warning .expiry-badge::after {
    background-color: #ff8f00;
}

.expiry-critical .expiry-badge::after {
    background-color: #c62828;
}

.expiry-expired .expiry-badge::after {
    background-color: #616161;
}

/* Tooltip enhancements */
[data-bs-toggle="tooltip"] {
    cursor: pointer;
    position: relative;
}

.tooltip-inner {
    max-width: 300px;
    padding: 8px 12px;
    text-align: left;
    background-color: #333;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Floating indicator for summarized view */
.floating-expiry {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
}

/* Detailed view header indicator */
.order-expiry-header {
    display: flex;
    align-items: center;
    margin-top: 8px;
}


/* analytics.css */
#analytics {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.analytics-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.analytics-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.analytics-tab {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.analytics-tab:hover {
    background-color: #e0e0e0;
}

.analytics-tab.active {
    background-color: #4285f4;
    color: white;
}

.tab-content {
    display: none;
}

#dashboard-tab {
    display: block;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-card h3 {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-card .stat-meta {
    font-size: 12px;
    color: #888;
}

.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chart-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

.refresh-btn {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.refresh-btn:hover {
    background-color: #3367d6;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quick-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .chart-wrapper {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .analytics-tabs {
        gap: 5px;
    }
    
    .analytics-tab {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .chart-wrapper {
        height: 200px;
    }
}
