:root {
    /* Color Palette */
    --primary-blue: #4285F4;
    --secondary-blue: #D6E3F9;
    --dark-text: #1F2937;
    --light-text: #6B7280;
    --white: #ffffff;
    --light-gray: #F9FAFB;
    --border-color: #E5E7EB;
    --red-alert: #EF4444;
    --green-success: #10B981;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

/* Base Styles and Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.app-container {
    display: flex;
    width: 100%;
    max-width: 1600px; 
    height: 100vh;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: 12px;
}

/* General Button/Input Reset */
button {
    cursor: pointer;
    border: none;
    background: none;
}
input, textarea, select {
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9em;
    color: var(--dark-text);
}

/* --- Left Sidebar (Navigation) --- */
.sidebar {
    width: 250px;
    background-color: var(--white);
    border-right: 1px solid var(--border-color);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

/* User Profile Section */
.user-profile {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    position: relative;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-blue);
    color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 10px;
}
#menu-btn{
    background-image: url('menu.png');background-position:center;background-size:contain;width:30px;height:30px
}
.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    color: var(--dark-text);
     width: 170px;          /* required */
  white-space: nowrap;   /* keep text on one line */
  overflow: hidden;      /* hide overflow */
  text-overflow: ellipsis;
}

.user-role {
    font-size: 0.8em;
    color: var(--light-text);
}

.close-btn {
    position: absolute;
    right: 0;
    top: 5px;
    font-size: 1.5em;
    color: var(--light-text);
    display: none; /* Hidden on desktop, shown on mobile via media query/JS */
}

/* Navigation Links */
.main-nav {
    flex-grow: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--light-text);
    border-radius: 8px;
    margin-bottom: 5px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.95em;
    font-weight: 500;
}

.nav-item .icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    background-color: var(--light-text); 
    border-radius: 4px;
    opacity: 0.5;
    /* In a real scenario, this would be an SVG or icon font */
}

.nav-item:hover:not(.active) {
    background-color: var(--light-gray);
    color: var(--dark-text);
}

.nav-item.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

.nav-item.active .icon {
    background-color: var(--white);
    opacity: 1;
}

/* Log Out Section */
.log-out {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.log-out-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: var(--red-alert);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
}

/* --- Main Content Area --- */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--light-gray);
    overflow: hidden; /* Contains children scrolls */
}

/* Header/Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.left-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-time {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: var(--light-text);
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.date {
    margin-right: 10px;
    font-weight: 500;
    color: var(--dark-text);
}

.order-status {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
}
.order-status.open {
    color: var(--primary-blue);
    background-color: var(--secondary-blue);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}
.order-status.open .status-dot {
    background-color: var(--primary-blue);
}


.menu-toggle-btn {
    display: none; /* Hidden on desktop */
    font-size: 1.5em;
    color: var(--dark-text);
}

.icon-btn {
    font-size: 1.2em;
    color: var(--light-text);
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.2s;
}
.icon-btn:hover {
    background-color: var(--border-color);
}

/* POS Body Layout */
.pos-body {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

/* Menu and Product Panel (Left/Center Section) */
.menu-panel {
    flex: 3;
    max-width: calc(100% - 350px); /* Ensures order panel space on large screens */
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 15px;
}

/* Menu Categories */
.menu-categories {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    flex-shrink: 0; /* Prevents shrinking */
    /* Custom scrollbar appearance (non-standard) */
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
.menu-categories::-webkit-scrollbar {
    height: 6px;
}
.menu-categories::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.category {
    flex-shrink: 0;
    min-width: 100px;
    padding: 10px 15px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--light-text);
}

.category.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.category small {
    display: block;
    font-size: 0.75em;
    color: inherit;
    opacity: 0.8;
}

/* Product Selection */
.product-selection {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Fixes potential flex issues in IE/Edge */
}

.search-bar {
    position: relative;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.search-bar input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background-color: var(--white);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    font-size: 0.9em;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.1s, box-shadow 0.1s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    font-size: 0.7em;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.product-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 5px;
}

.product-name {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.2;
}

.product-price {
    font-size: 1em;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 3px;
}

/* Active Orders Queue */
.active-orders-queue {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.track-order-btn {
    flex-shrink: 0;
    padding: 10px 15px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-item {
    flex-shrink: 0;
    background-color: var(--white);
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 140px;
    transition: background-color 0.2s;
}

.order-item.active {
    border-color: var(--primary-blue);
    background-color: var(--secondary-blue);
}

.customer-name {
    font-weight: 600;
    color: var(--dark-text);
}

.order-details {
    font-size: 0.8em;
    color: var(--light-text);
    margin-bottom: 5px;
}

.order-time {
    font-size: 0.75em;
    color: var(--light-text);
}

.status {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--green-success);
    margin-top: 5px;
}

/* --- Order Summary Panel (Right Sidebar) --- */
.order-summary-panel {
    flex: 1;
    min-width: 350px; 
    max-width: 400px;
    background-color: var(--white);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-shrink: 0;
}

/* Order Header */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.order-title {
    display: flex;
    flex-direction: column;
}

.order-header .customer-name {
    font-size: 1.1em;
    font-weight: 700;
}

.order-header .order-number {
    font-size: 0.8em;
    color: var(--light-text);
}

.edit-btn {
    color: var(--light-text);
    font-size: 1em;
    padding: 5px;
}

/* Table and Type Selectors */
.order-table-type {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.select-field {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.9em;
    background-color: var(--light-gray);
    appearance: none; /* Hide default arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236B7280%22%20d%3D%22M287%2069.9l-143.5%20143.6L0%2069.9z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 30px;
}

.add-item-btn {
 /*    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    font-size: 1.5em;
    line-height: 1.05;
    overflow: hidden; */
}

/* Order Items List */
.order-items-list {
    flex-grow: 1;
    overflow-y: auto;
    height: 41%;
    padding-right: 10px;
    margin-bottom: 15px;
}

.order-item-detail {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dotted var(--border-color);
    gap: 10px;
}

.order-item-detail:last-child {
    border-bottom: none;
}

.order-item-detail img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.order-item-detail .item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0; /* Allows name/price to compress */
}

.order-item-detail .item-name {
    font-weight: 600;
    color: var(--dark-text);
}

.order-item-detail .item-price {
    font-size: 0.85em;
    color: var(--light-text);
}

.item-quantity-control {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2px;
    flex-shrink: 0;
}

.item-quantity-control button {
    background-color: var(--white);
    border: 1px solid transparent; /* Keep size consistent */
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 1.1em;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    padding: 0;
}

.item-qty {
    font-weight: 600;
    padding: 0 8px;
    font-size: 0.9em;
}

/* Order Footer (Totals and Actions) */
.order-footer {
    flex-shrink: 0;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.totals-table {
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95em;
    padding: 5px 0;
    color: var(--dark-text);
}

.amount-display {
    font-weight: 500;
}

.discount-row {
    color: var(--red-alert);
}

.grand-total {
    font-weight: 700;
    font-size: 1.2em;
    padding-top: 8px;
    margin-top: 5px;
    border-top: 1px solid var(--border-color);
}

.total-amount {
    color: var(--primary-blue);
}

.promo-voucher {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.promo-voucher input {
    flex-grow: 1;
    background-color: var(--light-gray);
}

.gris-btn {
    background-color: var(--green-success);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
}

.place-order-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    transition: background-color 0.2s;
}

.place-order-btn:hover {
    background-color: #3b74d9;
}

/* --- Product Detail Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex; 
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    width: 90%;
    height: 97%;
    max-width: 750px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--dark-text);
}

.close-modal-btn {
    font-size: 1.8em;
    color: var(--light-text);
}

.detail-menu {
    display: flex;
    gap: 30px;
}

.detail-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 40%;
}

.detail-img {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 15px;
}

.detail-tag {
    background-color: var(--secondary-blue);
    color: var(--primary-blue);
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8em;
    margin-bottom: 10px;
}

.detail-price {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-blue);
}

.detail-right {
    flex: 2;
}

.detail-name {
    font-size: 1.8em;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.detail-description {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.5;
}

.notes-input {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    margin-bottom: 20px;
}

.detail-quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-qty-input {
    width: 60px;
    text-align: center;
    padding: 8px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.detail-quantity-control button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.5em;
    background-color: var(--light-gray);
}

.add-to-cart-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 700;
}


/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .order-summary-panel {
        min-width: 300px;
        max-width: 350px;
    }
    .menu-panel {
        max-width: calc(100% - 300px);
    }
}

@media (max-width: 900px) {
    /* Main Layout */
    .app-container {
        border-radius: 0;
        height: 100%;
        min-height: 100vh;
    }
    .pos-body {
        flex-direction: column; 
    }
    .menu-panel {
        max-width: 100%; /* Take full width */
        padding-bottom: 0;
    }

    /* Sidebar Mobile State */
    .sidebar {
        position: fixed;
        left: -250px; 
        z-index: 1000;
        height: 100vh;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease-in-out;
    }
    .sidebar.active {
        left: 0; 
    }
    .menu-toggle-btn {
        display: block; /* Show menu button */
    }
    .user-profile .close-btn {
        display: block; /* Show close button */
    }

    /* Order Summary Mobile State (Stacked at the bottom) */
    .order-summary-panel {
        min-width: 100%;
        max-width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding: 15px 20px;
    }
    .order-items-list {
        max-height: 30vh; /* Limit height to save screen space */
    }

    /* Modal Mobile Adjustments */
    .modal-content {
        max-width: 95%;
    }
    .detail-menu {
        flex-direction: column;
    }
    .detail-left {
        max-width: 100%;
        order: 1; /* Move price/tag below image */
        flex-direction: row;
        justify-content: space-between;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-color);
    }
    .detail-img {
        max-width: 100%;
        height: auto;
        margin-bottom: 15px;
        order: 0;
    }
    .detail-right {
        order: 2;
    }
    .detail-tag, .detail-price {
        margin: 0;
    }
    .detail-price {
        font-size: 1.2em;
    }
}

@media (max-width: 600px) {
    .date-time {
        display: none; /* Hide date/time on smaller phones */
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        padding-right: 0;
    }
    .order-item {
        min-width: 120px;
    }
}


/* --- Activity Page Specific Styles --- */
.activity-page .topbar {
    /* Adjustments for the Activity page header */
    padding: 15px 30px;
}

.activity-page .page-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--dark-text);
    margin-left: 15px; /* Space from the menu toggle button */
}

/* Activity Body Layout */
.activity-body {
    padding: 20px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Filters and Controls */
.activity-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--light-text);
    border: 1px solid var(--border-color);
    background-color: var(--white);
    transition: all 0.2s;
}

.filter-btn:hover:not(.active) {
    background-color: var(--light-gray);
    color: var(--dark-text);
}

.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.actions {
    display: flex;
    gap: 10px;
}

.search-input {
    width: 250px;
    padding: 10px 15px;
    background-color: var(--white);
}

.add-table-btn {
    padding: 10px 15px;
    background-color: var(--green-success);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
}
.add-table-btn:hover {
    background-color: #0c9f6d;
}

/* Table Grid View */
.table-grid {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 15px; /* For scrollbar spacing */
    
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding-bottom: 20px;
}

.table-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.table-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Status specific borders and highlights */
.table-status-open {
    border-color: var(--primary-blue);
}
.table-status-occupied {
    border-color: var(--red-alert);
}
.table-status-reserved {
    border-color: orange;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.table-number {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--dark-text);
}

.table-status {
    font-size: 0.85em;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Color coding for status tags */
.table-status-open .table-status {
    background-color: var(--secondary-blue);
    color: var(--primary-blue);
}
.table-status-occupied .table-status {
    background-color: #FEE2E2; /* Light Red */
    color: var(--red-alert);
}
.table-status-available .table-status {
    background-color: #D1FAE5; /* Light Green */
    color: var(--green-success);
}
.table-status-reserved .table-status {
    background-color: #FFEDD5; /* Light Orange */
    color: orange;
}

.order-info {
    margin-bottom: 15px;
    flex-grow: 1;
}

.customer-name {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 3px;
}

.order-time {
    display: block;
    font-size: 0.85em;
    color: var(--light-text);
}

.order-summary {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 10px;
    font-size: 0.9em;
}

.total-price {
    font-weight: 700;
    color: var(--primary-blue);
}

.action-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
    /* Default styling, will be overridden by status-specific styles below */
}

/* Available/New Order Button */
.table-status-available .new-order {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Open/Occupied/Reserved Button */
.table-status-open .view-order,
.table-status-occupied .view-order,
.table-status-reserved .confirm-reserve {
    background-color: var(--light-gray);
    color: var(--dark-text);
    border: 1px solid var(--border-color);
}
.table-status-open .view-order:hover,
.table-status-occupied .view-order:hover,
.table-status-reserved .confirm-reserve:hover {
    background-color: var(--border-color);
}

/* --- Responsive Adjustments for Activity Page --- */
@media (max-width: 900px) {
    .activity-page .topbar {
        padding: 10px 15px;
    }
    .activity-page .page-title {
        font-size: 1.3em;
    }
    .activity-body {
        padding: 15px;
    }
    .activity-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .filters {
        order: 2; /* Move filters below search/actions for better flow */
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .filter-btn {
        flex-shrink: 0;
    }
    .actions {
        order: 1;
        width: 100%;
        margin-bottom: 10px;
    }
    .search-input {
        flex-grow: 1;
        width: auto;
    }
    .table-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
        padding-right: 0;
    }
    .date-time {
        display: none; /* Hide date/time to save space in the header */
    }
}
@media (max-width: 600px) {
    .table-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}


/* --- Report Page Specific Styles --- */
.report-page .topbar {
    padding: 15px 30px;
    /* Reuse general topbar styles */
}

.report-page .page-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--dark-text);
    margin-left: 15px; 
}

.date-range-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range-selector .select-field {
    width: 150px;
    padding: 8px 15px;
    background-color: var(--white);
    /* Reuse select-field styling from POS page, ensuring appearance: none is set */
}

/* Report Body Layout */
.report-body {
    padding: 20px 30px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 1. Key Metric Cards */
.metric-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.metric-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.metric-icon {
    font-size: 2em;
    padding: 10px;
    background-color: var(--light-gray);
    border-radius: 8px;
    flex-shrink: 0;
}

.metric-info {
    flex-grow: 1;
}

.metric-title {
    display: block;
    font-size: 0.9em;
    color: var(--light-text);
    margin-bottom: 3px;
}

.metric-value {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--dark-text);
}

.metric-change {
    font-size: 0.85em;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    flex-shrink: 0;
    position: absolute;
    bottom:10px;
    right:10px;
}

.metric-change.positive {
    color: var(--green-success);
    background-color: #D1FAE5; /* Light Green */
}

.metric-change.negative {
    color: var(--red-alert);
    background-color: #FEE2E2; /* Light Red */
}

/* 2. Charts Section */
.charts-section {
    display: flex;
    gap: 25px;
    flex-wrap: wrap; /* Allows stacking on small screens */
}

.chart-box {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.sales-chart {
    flex: 3;
    min-width: 450px;
}

.top-items-chart {
    flex: 2;
    min-width: 300px;
}

.chart-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.chart-placeholder {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-gray);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 0.9em;
}

/* 3. Detailed Transactions Table */
.detailed-report-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.table-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    min-width: 700px; /* Ensure table is readable on smaller screens */
}

.transaction-table thead {
    background-color: var(--light-gray);
    font-size: 0.9em;
    color: var(--dark-text);
    text-align: left;
    font-weight: 600;
}

.transaction-table th,
.transaction-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.transaction-table tbody tr:last-child td {
    border-bottom: none;
}

.transaction-table tbody tr:hover {
    background-color: #f5f5f5;
}

.transaction-table td[data-label] {
    font-size: 0.9em;
    color: var(--light-text);
}

.transaction-table td:nth-child(5) {
    font-weight: 700;
    color: var(--primary-blue);
}

.status-complete {
    font-weight: 600;
    color: var(--green-success);
}

/* Mobile Table Adjustments (Making it stack/card-like) */
@media (max-width: 768px) {
    .transaction-table {
        min-width: 100%; /* Allows it to shrink/scroll */
        display: block;
        width: 100%;
    }
    .transaction-table thead {
        display: none; /* Hide header */
    }
    .transaction-table tbody,
    .transaction-table tr,
    .transaction-table td {
        display: block;
        width: 100%;
        text-align: right;
    }
    .transaction-table tr {
        margin-bottom: 10px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px;
    }
    .transaction-table td {
        padding: 5px 0;
        border: none;
        text-align: right;
        position: relative;
    }
    .transaction-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--dark-text);
    }
}

/* --- Responsive Adjustments for Report Page --- */
@media (max-width: 1000px) {
    .charts-section {
        flex-direction: column;
    }
    .sales-chart,
    .top-items-chart {
        min-width: 100%;
        flex: auto;
    }
}

@media (max-width: 600px) {
    .report-body {
        padding: 15px;
        gap: 15px;
    }
    .report-page .topbar {
        padding: 10px 15px;
    }
    .report-page .page-title {
        font-size: 1.3em;
    }
    .metric-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .metric-icon {
        margin-bottom: 5px;
    }
    .metric-info {
        width: 100%;
    }
    .metric-change {
        margin-top: 10px;
        align-self: flex-end;
    }
}

/* --- Inventory Page Specific Styles --- */
.inventory-page .topbar {
    padding: 15px 30px;
}

.inventory-page .page-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--dark-text);
    margin-left: 15px; 
}

/* Inventory Body Layout */
.inventory-body {
    padding: 20px 30px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 1. Key Metric Cards (Reusing Report styles) */
/* The metric-cards-grid and metric-card styles are reused from the Report page, 
   but we ensure the content looks clean for inventory specific icons. */

.metric-card .metric-icon {
    /* Specific styling for inventory icons if needed, or rely on base style */
    font-size: 2em;
    padding: 10px;
    background-color: var(--secondary-blue); /* Different background for differentiation */
    color: var(--primary-blue);
    border-radius: 8px;
    flex-shrink: 0;
}

/* 2. Controls and Filters */
.inventory-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.inventory-controls .filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inventory-controls .select-field {
    width: 180px;
    padding: 8px 15px;
    background-color: var(--white);
}

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

.inventory-controls .search-input {
    width: 250px;
    padding: 10px 15px;
    background-color: var(--white);
}

.add-item-btn {
    padding: 10px 15px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
}

.receive-goods-btn {
    padding: 10px 15px;
    background-color: var(--green-success);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
}

/* 3. Detailed Inventory Table (Reusing and adapting Report table structure) */
.detailed-inventory-section {
    flex-grow: 1;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    min-width: 900px; /* Wider minimum width for more columns */
}

.inventory-table thead {
    background-color: var(--light-gray);
    font-size: 0.9em;
    color: var(--dark-text);
    text-align: left;
    font-weight: 600;
}

.inventory-table th,
.inventory-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.inventory-table td {
    font-size: 0.9em;
    color: var(--dark-text);
}

.inventory-table td[data-label] {
    color: var(--dark-text);
}

.inventory-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Stock Status Styling */
.status-in-stock {
    font-weight: 600;
    color: var(--green-success);
}
.status-low-stock {
    font-weight: 600;
    color: orange;
}
.status-out-of-stock {
    font-weight: 600;
    color: var(--red-alert);
}

/* Action Button in Table */
.action-edit {
    padding: 5px 10px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--dark-text);
}
.action-edit:hover {
    background-color: var(--border-color);
}

/* --- Responsive Adjustments for Inventory Page --- */

@media (max-width: 1200px) {
    .inventory-controls .actions {
        /* Stack the buttons on slightly smaller screens */
        gap: 5px;
        flex-direction: column;
        align-items: stretch;
    }
    .inventory-controls .actions button,
    .inventory-controls .search-input {
        width: 100%;
    }
    .inventory-controls .filters {
        /* Ensure filters take full width above actions */
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 900px) {
    .inventory-body {
        padding: 15px;
    }
    .inventory-page .topbar {
        padding: 10px 15px;
    }
    .inventory-page .page-title {
        font-size: 1.3em;
    }
    .metric-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Mobile Table Adjustments (Making it stack/card-like) */
@media (max-width: 768px) {
    .inventory-table {
        min-width: 100%; 
        display: block;
        width: 100%;
    }
    .inventory-table thead {
        display: none; 
    }
    .inventory-table tbody,
    .inventory-table tr,
    .inventory-table td {
        display: block;
        width: 100%;
        text-align: right;
    }
    .inventory-table tr {
        margin-bottom: 10px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px;
    }
    .inventory-table td {
        padding: 5px 0;
        border: none;
        text-align: right;
        position: relative;
    }
    .inventory-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--dark-text);
    }
}

/* --- Teams Page Specific Styles --- */

.teams-page .topbar {
    padding: 15px 30px;
    /* Reuse general topbar styles */
}

.teams-page .page-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--dark-text);
    margin-left: 15px; 
}

/* Teams Body Layout */
.teams-body {
    padding: 20px 30px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 1. Key Summary Cards (Reusing Metric Grid) */

.teams-body .metric-card .metric-icon {
    /* Different background for Teams icons */
    font-size: 2em;
    padding: 10px;
    background-color: #E0F2F1; /* Light Cyan/Teal */
    color: #00897B; /* Teal/Dark Cyan */
    border-radius: 8px;
    flex-shrink: 0;
}

/* 2. Controls and Filters */
.teams-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.teams-controls .filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.teams-controls .select-field {
    width: 180px;
    padding: 8px 15px;
    background-color: var(--white);
}

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

.teams-controls .search-input {
    width: 250px;
    padding: 10px 15px;
    background-color: var(--white);
}

.add-employee-btn {
    padding: 10px 15px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
}

/* 3. Detailed Employee Table (Reusing and adapting Inventory table structure) */
.detailed-teams-section {
    flex-grow: 1;
}

.teams-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    min-width: 800px; /* Ensure table is readable */
}

.teams-table thead {
    background-color: var(--light-gray);
    font-size: 0.9em;
    color: var(--dark-text);
    text-align: left;
    font-weight: 600;
}

.teams-table th,
.teams-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.teams-table td {
    font-size: 0.9em;
    color: var(--dark-text);
}

.teams-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Employee Status Styling */
.status-active {
    font-weight: 600;
    color: var(--green-success);
}
.status-inactive {
    font-weight: 600;
    color: var(--red-alert);
}

/* Action Button in Table */
.action-edit {
    padding: 5px 10px;
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--dark-text);
}
.action-edit:hover {
    background-color: var(--border-color);
}


/* --- Responsive Adjustments for Teams Page --- */

@media (max-width: 1000px) {
    .teams-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .teams-controls .filters {
        width: 100%;
        margin-bottom: 5px;
        justify-content: space-between;
    }
    .teams-controls .actions {
        width: 100%;
        gap: 10px;
    }
    .teams-controls .search-input {
        flex-grow: 1;
    }
}

@media (max-width: 600px) {
    .teams-body {
        padding: 15px;
    }
    .teams-page .topbar {
        padding: 10px 15px;
    }
    .metric-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .teams-controls .filters {
        /* Stack filters on smallest screens if necessary */
        flex-direction: column; 
    }
}

/* Mobile Table Adjustments (Making it stack/card-like) */
@media (max-width: 768px) {
    .teams-table {
        min-width: 100%; 
        display: block;
        width: 100%;
    }
    .teams-table thead {
        display: none; 
    }
    .teams-table tbody,
    .teams-table tr,
    .teams-table td {
        display: block;
        width: 100%;
        text-align: right;
    }
    .teams-table tr {
        margin-bottom: 10px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px;
    }
    .teams-table td {
        padding: 5px 0;
        border: none;
        text-align: right;
        position: relative;
    }
    .teams-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--dark-text);
    }
}


/* --- Settings Page Specific Styles --- */

.settings-page .topbar {
    padding: 15px 30px;
}

.settings-page .page-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--dark-text);
    margin-left: 15px; 
}

/* Settings Body Layout */
.settings-body {
    padding: 20px 30px;
    flex-grow: 1;
    overflow: hidden; /* Contains children */
    
    display: flex;
    gap: 25px;
}

/* 1. Settings Sub-Navigation (Left Column) */
.settings-nav {
    flex: 0 0 220px; /* Fixed width */
    background-color: var(--white);
    padding: 15px 0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: fit-content; /* Only take up space needed by content */
}

.setting-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 500;
    color: var(--dark-text);
    transition: background-color 0.2s, color 0.2s;
}

.setting-nav-item i {
    font-size: 1.2em;
    margin-right: 10px;
    color: var(--light-text);
}

.setting-nav-item:hover {
    background-color: var(--light-gray);
}

.setting-nav-item.active {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
}

.setting-nav-item.active i {
    color: var(--white);
}

/* 2. Settings Content Area (Right Column) */
.settings-content-area {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 15px; /* Space for scrollbar */
    max-width: calc(100% - 245px); /* Max width considering fixed left nav + gap */
}

.setting-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    /* Hidden by default, shown by JS */
    display: none; 
}
.setting-section.active {
    display: block;
}

.setting-section h3 {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

/* Form Styling */
.setting-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 5px;
    font-size: 0.95em;
}
.form-group input,.form-group select{
     margin: 10px 0px;
}
.setting-form input[type="text"],
.setting-form select {
   
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--light-gray);
    font-size: 1em;
    margin: 5px 0;
}

/* Toggle Switch Group */
.toggle-group {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    grid-column: 1 / -1; /* Span across both columns */
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
}

/* The actual switch component */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-text);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-blue);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 28px;
}

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

/* Item List Styling (e.g., Taxes, Devices) */
.setting-item-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.setting-item h4 {
    font-size: 1.1em;
    font-weight: 600;
    flex-grow: 1;
}

.setting-value {
    font-weight: 700;
    margin-right: 20px;
    color: var(--primary-blue);
}

.setting-value.status-connected {
    color: var(--green-success);
}
.setting-value.status-error {
    color: var(--red-alert);
}

.add-tax-btn, .add-device-btn {
    align-self: flex-start;
    padding: 10px 15px;
    background-color: var(--green-success);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
}

/* --- Responsive Adjustments for Settings Page --- */

@media (max-width: 900px) {
    .settings-body {
        flex-direction: column; /* Stack nav and content */
        padding: 15px;
        gap: 15px;
    }
    .settings-nav {
        flex: auto;
        width: 100%;
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: none; /* Remove box shadow when stacked */
    }
    .setting-nav-item {
        flex-shrink: 0;
        padding: 10px 15px;
    }
    .settings-content-area {
        max-width: 100%;
        padding-right: 0;
        overflow-y: visible;
    }
    .setting-section {
        padding: 20px;
    }
    .setting-form {
        grid-template-columns: 1fr; /* Single column layout for forms */
    }
    .toggle-group {
        grid-column: 1 / 1; 
    }
    .setting-item {
        flex-wrap: wrap;
        gap: 5px;
    }
    .setting-item h4,
    .setting-value,
    .action-edit {
        flex-basis: 100%; /* Make elements stack inside the item */
        text-align: left;
    }
    .setting-value {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* --- Root Variables (assuming these are defined in a global file) ---
:root {
    --primary-blue: #007bff;
    --secondary-blue: #e0f0ff;
    --dark-text: #333;
    --light-text: #777;
    --border-color: #ddd;
    --white: #fff;
    --light-gray: #f9f9f9;
    --green-success: #28a745;
    --red-alert: #dc3545;
}
*/

/* --- General Full-Screen Container --- */
.shift-management-container {
    background-color: var(--light-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

/* --- Header --- */
.shift-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shift-title {
    margin: 0;
    font-size: 1.8em;
}

.user-display {
    text-align: right;
    font-size: 0.9em;
}

.shift-user-name {
    display: block;
    font-weight: 600;
}
.shift-date {
    display: block;
    opacity: 0.8;
}

/* --- Main Content Layout --- */
.shift-content {
    flex-grow: 1;
    padding: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.time-clock-section,
.cash-management-section,
.shift-history-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

/* Time Clock Styles */
.time-clock-section {
    grid-column: 1 / 2; /* Main column */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.clock-display {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
    width: 80%;
}

#current-time {
    font-size: 3em;
    font-weight: 700;
    color: var(--dark-text);
    display: block;
}

.punch-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.punch-btn {
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.2s;
    cursor: pointer;
    flex-grow: 1;
}

.clock-in-btn, .end-break-btn {
    background-color: var(--green-success);
    color: var(--white);
}
.clock-in-btn:hover, .end-break-btn:hover {
    background-color: #218838;
}

.clock-out-btn, .start-break-btn {
    background-color: var(--red-alert);
    color: var(--white);
}
.clock-out-btn:hover, .start-break-btn:hover {
    background-color: #c82333;
}

.punch-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--light-text);
}

.shift-status-message {
    padding: 10px;
    border-radius: 6px;
    background-color: var(--secondary-blue);
    color: var(--primary-blue);
    font-weight: 600;
}

/* Cash Management Styles */
.cash-management-section {
    grid-column: 2 / 3; /* Second column */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cash-summary-card {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: var(--light-gray);
}

.cash-metric {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
}
.cash-metric:last-child {
    border-bottom: none;
}

.metric-label {
    font-size: 0.9em;
    color: var(--light-text);
}

.metric-value {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-blue);
}

.cash-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.primary-action {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}
.secondary-action {
    background-color: var(--white);
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

/* Shift History Styles */
.shift-history-section {
    grid-column: 1 / 3; /* Spans both columns beneath the other sections */
}

.history-list {
    margin-top: 15px;
    font-size: 0.95em;
    max-height: 150px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted var(--border-color);
}
.history-item:last-child {
    border-bottom: none;
}

/* --- Footer --- */
.shift-footer {
    padding: 15px 40px;
    text-align: right;
    border-top: 1px solid var(--border-color);
    background-color: var(--white);
}

.back-to-pos-btn {
    padding: 10px 20px;
    background-color: var(--light-text);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .shift-header {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }
    .user-display {
        text-align: center;
        margin-top: 5px;
    }
    .shift-content {
        grid-template-columns: 1fr; /* Stack all sections */
        padding: 20px;
        gap: 20px;
    }
    .time-clock-section,
    .cash-management-section,
    .shift-history-section {
        grid-column: 1 / 2;
    }
    .punch-buttons {
        flex-wrap: wrap;
        width: 100%;
    }
    .punch-btn {
        flex-basis: calc(50% - 7.5px); /* Two buttons per row */
    }
    .clock-display {
        width: 100%;
    }
    .shift-footer {
        text-align: center;
    }
}


/* --- Customer Page Specific Styles --- */

.customer-page .topbar {
    padding: 15px 30px;
}

.customer-page .page-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--dark-text);
    margin-left: 15px; 
}

/* Customer Body Layout */
.customer-body {
    padding: 20px 30px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 1. Key Metric Cards (Reusing Metric Grid) */

.customer-page .metric-card .metric-icon {
    /* Different background for Customer icons */
    font-size: 2em;
    padding: 10px;
    background-color: #E6E6FA; /* Light Lavender */
    color: #6A5ACD; /* Slate Blue/Purple */
    border-radius: 8px;
    flex-shrink: 0;
}

/* 2. Controls and Filters (Similar to Inventory/Teams) */
.customer-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.customer-controls .filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.customer-controls .select-field {
    width: 180px;
    padding: 8px 15px;
    background-color: var(--white);
}

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

.customer-controls .search-input {
    width: 250px;
    padding: 10px 15px;
    background-color: var(--white);
}

.add-customer-btn {
    padding: 10px 15px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
}

/* 3. Detailed Customer Table (Reusing Table Structure) */
.detailed-customer-section {
    flex-grow: 1;
}

.customer-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    min-width: 850px; 
}

.customer-table thead {
    background-color: var(--light-gray);
    font-size: 0.9em;
    color: var(--dark-text);
    text-align: left;
    font-weight: 600;
}

.customer-table th,
.customer-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.customer-table td {
    font-size: 0.9em;
    color: var(--dark-text);
}

.customer-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Tier/Points Styling */
.customer-table td[data-label="Tier"] {
    font-weight: 600;
    color: #6A5ACD; /* Purple for Loyalty */
}

.customer-table td[data-label="Points"] {
    font-weight: 700;
    color: var(--green-success);
}

.customer-table td[data-label="Total Spent"] {
    font-weight: 700;
}

/* Action Button in Table */
.action-view {
    padding: 5px 10px;
    background-color: var(--secondary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--primary-blue);
}
.action-view:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* --- Responsive Adjustments for Customer Page --- */

@media (max-width: 1000px) {
    .customer-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .customer-controls .filters {
        width: 100%;
        margin-bottom: 5px;
        justify-content: space-between;
    }
    .customer-controls .actions {
        width: 100%;
        gap: 10px;
    }
    .customer-controls .search-input {
        flex-grow: 1;
    }
}

@media (max-width: 600px) {
    .customer-body {
        padding: 15px;
    }
    .customer-page .topbar {
        padding: 10px 15px;
    }
    .metric-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .customer-controls .filters {
        flex-direction: column; 
    }
}

/* Mobile Table Adjustments (Making it stack/card-like) */
@media (max-width: 768px) {
    .customer-table {
        min-width: 100%; 
        display: block;
        width: 100%;
    }
    .customer-table thead {
        display: none; 
    }
    .customer-table tbody,
    .customer-table tr,
    .customer-table td {
        display: block;
        width: 100%;
        text-align: right;
    }
    .customer-table tr {
        margin-bottom: 10px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px;
    }
    .customer-table td {
        padding: 5px 0;
        border: none;
        text-align: right;
        position: relative;
    }
    .customer-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--dark-text);
    }
}


.right-controls {
    position: relative;
    display:flex;align-items: center;gap:10px;
}
#menu-panel{
    position: absolute;
    width: 330px;
    height: 300px;
    background-color: #fff;
    right:0;
    top:53px;
    border-radius: 10px;
    border:1px solid #ddd;
    overflow-y: auto;
    padding:10px;
    display: flex;
    flex-wrap: wrap;
    gap:10px;
    display: none;
    z-index: 100;
}
#menu-panel a{
    text-decoration: none;
   flex-shrink: 0;
   width: 140px;
   padding:5px;
   text-align: center;
   border-radius: 10px;
   border:1px solid #ddd;
   color:#303030;
}
#menu-panel a span{
  display: inline-block;
  width: 100px;
  height: 100px;
  background-position: center;
  background-size: cover;
}
/* --- CCTV Page Specific Styles --- */

/* Ensures the main content area covers the full height and uses a dark theme */
.cctv-page {
    /* Use a darker background common in surveillance dashboards */
    background-color: #1a1a1a; 
    color: var(--white);
    height: 100vh;
    overflow: hidden; /* Prevent body scroll, content should be handled by .cctv-body */
    padding-left: 0; /* Remove padding if sidebar is integrated */
}

/* Adjust topbar for dark mode and specific controls */
.cctv-page .topbar {
    background-color: #2c2c2c;
    border-bottom: 1px solid #444;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cctv-page .page-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--white);
    margin-left: 15px;
}

.cctv-page .select-field,
.cctv-page .icon-btn {
    background-color: #444;
    color: var(--white);
    border: 1px solid #555;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cctv-page .icon-btn:hover {
    background-color: #555;
}

.cctv-page .right-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* --- Main Body Layout --- */

.cctv-body {
    display: flex;
    height: calc(100vh - 60px); /* Subtract topbar height */
}

/* Camera List Panel (Sidebar) */
.camera-list-panel {
    width: 200px;
    background-color: #2c2c2c;
    padding: 15px;
    border-right: 1px solid #444;
    overflow-y: auto;
    flex-shrink: 0;
}

.camera-list-panel h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #00bcd4; /* Accent color for titles */
}

.camera-list {
    list-style: none;
    padding: 0;
}

.camera-list li {
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.camera-list li:hover {
    background-color: #3a3a3a;
}

.camera-list li.active {
    background-color: var(--primary-blue);
    font-weight: 600;
}

/* --- Video Grid Container --- */

.video-grid {
    flex-grow: 1;
    display: grid;
    gap: 5px;
    padding: 10px;
    overflow: hidden; /* Contains the video feeds */
    position: relative;
}

/* Base Video Feed Styling */
.video-feed {
    background-color: #000;
    border: 1px solid #444;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.2s;
}

.video-feed.active {
    border-color: #00bcd4; /* Highlight active feed */
}

/* Video Feed Content (Placeholder and Actual Stream) */
.video-placeholder {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
    font-size: 0.9em;
    background-color: #000;
    /* This rule ensures the image placeholder fits nicely */
    background-size: cover; 
    background-position: center;

}
.video-placeholder video{
  width: 100%;
  height:100%;
}

/* Feed Header */
.feed-header {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.camera-name {
    font-size: 0.8em;
    font-weight: 600;
}

.live-indicator {
    color: red;
    font-size: 0.8em;
}

/* Feed Controls (Play/Pause/Volume) */
.feed-timmer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px;
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    z-index: 10;
}

.control-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.1em;
    cursor: pointer;
    padding: 5px;
}

/* --- Grid Layout Configurations --- */

/* 4-View Grid (Default) */
.video-grid.four-view {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

/* 9-View Grid */
.video-grid.nine-view {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

/* Single View (Display only the active feed) */
.video-grid.single-view {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.video-grid.single-view .video-feed:not(.active) {
    display: none;
}
.video-grid.single-view .video-feed.active {
    display: flex; /* Ensure the active one is always visible */
}

/* Hiding excess feeds when they don't fit the current grid setting */
.video-feed.hidden {
    display: none;
}

/* --- Fullscreen Mode (Optional CSS) --- */

.cctv-page.fullscreen-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
}

.cctv-page.fullscreen-active .topbar,
.cctv-page.fullscreen-active .camera-list-panel {
    display: none;
}

.cctv-page.fullscreen-active .cctv-body {
    height: 100vh;
}


/* --- Responsive Adjustments --- */

@media (max-width: 900px) {
    .cctv-body {
        flex-direction: column;
    }
     .page-title{
        display: none;
    }
    .camera-list-panel {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #444;
    }
    .camera-list {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        max-height: 100px; /* Collapse list slightly */
        overflow-y: auto;
    }
    .camera-list li {
        flex-grow: 1;
        text-align: center;
        width: auto;
        font-size: 0.8em;
    }

    .cctv-page .topbar {
        padding: 10px 15px;
    }
    
    .cctv-page .right-controls {
        gap: 5px;
    }

    /* Force smaller grids on small screens */
    .video-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(auto-fit, 1fr) !important;
    }
}


#varient-selected{
    margin-top: 10px;
    padding:20px;
    overflow-x: auto;
    display: flex;
    align-items: center;
    gap:20px;
}
#varient-selected .varients{
    padding:5px 20px;
    background-color: hsl(180, 1%, 14%);
    color: #f9fbfd;
     border-radius: 10px;
     position: relative;
     flex-shrink: 0;
}
#varient-selected .varients .icon-delete{
    position: absolute;
    right: -5px;
    top:-5px;
    background: rgb(255, 115, 115);
    width: 20px;
    height: 20px;
    border-radius: 10px;
    font-size: .8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


#open_new_order{
    cursor: pointer;
}

/* --- Checkout Modal Styles --- */

.checkout-content {
    max-width: 800px;
    width: 95%;
    transform: scale(0.95);
    transition: transform 0.3s ease-out;
}

.modal-overlay.active .checkout-content {
    transform: scale(1);
}

.checkout-body {
    display: flex;
    gap: 30px;
    padding: 20px 0;
}

.payment-summary-panel {
    flex: 1.5;
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.payment-input-panel {
    flex: 1;
}

/* Summary Totals */
.final-totals-summary {
    background-color: var(--secondary-blue); /* Light background for totals */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1.1em;
    font-weight: 500;
}

.summary-row.total-due {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.summary-row.change-due .change-amount {
    color: var(--success-green); /* Assuming you have a success green variable */
    font-weight: 700;
}

/* Payment Method Buttons */
.payment-method-selector h4 {
    margin-bottom: 15px;
    color: var(--dark-text);
}

.payment-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.payment-btn {
    padding: 15px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.payment-btn:hover {
    border-color: var(--primary-blue);
}

.payment-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Cash Input Panel */
.cash-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.cash-input-group .currency-symbol {
    padding: 14px;
    background-color: #f7f7f7;
    color: var(--dark-text);
    font-weight: 700;
}

.tender-input {
    flex-grow: 1;
    border: none;
    padding: 14px;
    font-size: 1.4em;
    text-align: right;
    outline: none;
}

.quick-tender-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.quick-tender-btn {
    flex: 1;
    padding: 10px 5px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.quick-tender-btn:hover {
    background-color: #e0e0e0;
}

/* Final Actions */
.final-actions .primary-btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 15px;
    font-size: 1.1em;
}

.final-actions .cancel-btn {
    width: 100%;
    padding: 15px;
    background-color: #fff;
    color: #cc3300;
    border: 1px solid #cc3300;
}
.final-actions .cancel-btn:hover {
    background-color: #fff2f2;
}

.receipt-options {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9em;
}

.customer-email-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .checkout-body {
        flex-direction: column;
        gap: 20px;
    }
    .payment-summary-panel {
        border-right: none;
        padding-right: 0;
    }
}

#detele-order{
    cursor: pointer;
    color:red;
}


/* --- History Page Layout --- */
.history-page {
    padding: 20px;
    background-color: #f8f9fa; /* Slightly off-white for contrast against the app-container */
    height: 100vh;
    overflow-y: auto;
}

.history-container {
    display: flex;
    gap: 25px;
    margin-top: 20px;
}

/* --- Stats Cards (Top Overview) --- */
.stats-overview {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex: 1;
    border-left: 5px solid var(--primary-blue);
}

.stat-card h4 {
    font-size: 0.85rem;
    color: var(--light-text);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-card .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-text);
}

/* --- Filter Sidebar --- */
.filter-panel {
    width: 280px;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
}

.filter-panel h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.filter-group input, 
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* --- Transaction Table --- */
.table-container {
    flex-grow: 1;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.history-table th {
    padding: 15px;
    border-bottom: 2px solid #eee;
    color: var(--light-text);
    font-weight: 600;
    font-size: 0.9rem;
}

.history-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.95rem;
}

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

/* --- Payment Method Tags --- */
.tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tag.cash { background: #e1f7ec; color: #008a52; }
.tag.card { background: #e1effe; color: #1a56db; }
.tag.transfer { background: #fef3c7; color: #92400e; }

/* --- Action Buttons --- */
.icon-btn {
    background: none;
    border: 1px solid #eee;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 5px;
}

.icon-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* --- Responsive Table --- */
@media (max-width: 900px) {
    .history-container {
        flex-direction: column;
    }
    .filter-panel {
        width: 100%;
    }
}


/* --- Order Detail Modal Specifics --- */
.detail-modal {
    max-width: 500px;
}

.header-left h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.date-text {
    font-size: 0.85rem;
    color: var(--light-text);
}

.detail-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.detail-table th {
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--light-text);
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.detail-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f9f9f9;
    font-size: 0.95rem;
}

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

.detail-summary {
    margin-top: 20px;
    padding: 15px;
    background: #fcfcfc;
    border-radius: 8px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.summary-line.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-text);
}

.detail-payment-info {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--light-text);
}

.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}





.full-page-sync {
    width: 100%;
    min-height: 100vh;
    background: #0f172a; /* Slate 900 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Inter', sans-serif;
    padding: 20px;
}

.sync-container {
    width: 100%;
    max-width: 800px;
    background: #1e293b; /* Slate 800 */
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Status Icon & Animation */
.sync-header { text-align: center; margin-bottom: 40px; }

.sync-status-icon {
    position: relative;
    width: 80px; height: 80px;
    margin: 0 auto 20px;
}

.pulse-ring {
    position: absolute;
    width: 100%; height: 100%;
    border: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

.inner-icon {
    font-size: 2.5rem;
    line-height: 80px;
}

/* Metrics Grid */
.sync-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.metric-box {
    background: #334155;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.metric-box .label { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; }
.metric-box .value { display: block; font-size: 1.5rem; font-weight: 700; margin-top: 5px; }

/* Progress Bar */
.progress-bar-container {
    width: 100%; height: 12px;
    background: #475569;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-labels {
    display: flex; justify-content: space-between;
    font-size: 0.85rem; color: #94a3b8;
}

/* Console Log */
.sync-console {
    background: #000;
    height: 150px;
    border-radius: 12px;
    padding: 15px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    overflow-y: auto;
    color: #4ade80; /* Terminal Green */
    margin-top: 30px;
}

.console-line { margin-bottom: 5px; opacity: 0.8; }

.warning-pill {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 30px;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

#vendor-header{
    margin-bottom: 20px;
    display: none;
}
@media print {
  body {
    visibility: hidden;
  }

  .print-screen {
    visibility: visible;
  }
  #vendor-header{
    display: block;
}
}


/* Container styling */
.customer-container{
    padding:40px;
    overflow-y: auto;
}
.customer-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 20px auto;
}

/* Section Header styling */
.form-section {
    margin-bottom: 35px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.step-badge {
    background: var(--primary-blue, #3b82f6);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.section-header h3 {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 0;
}

/* Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

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

.input-group.full-width {
    width: 100%;
}

/* Label & Input Styling */
.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #334155;
    transition: all 0.2s;
}

.input-group input:focus {
    border-color: var(--primary-blue, #3b82f6);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f8fafc;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn {
    background: var(--primary-blue, #3b82f6);
    color: white;
    border: none;
}

.outline-btn {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}





















/* --- Search Page Layout --- */
.search-page {
   
    background: #f1f5f9;
    min-height: 100vh;
}
.search-container{
 padding: 40px;
}

/* --- Search Input Wrapper --- */
.search-box-wrapper {
    position: relative;
    max-width: 800px;
    margin: 30px 0;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #94a3b8;
}

#customer-search-input {
    width: 100%;
    padding: 18px 18px 18px 55px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    font-size: 1.1rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

#customer-search-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1);
}

/* --- Filter Chips (The All, VIP, Regular buttons) --- */
.filter-chips {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.chip {
    padding: 10px 20px;
    border-radius: 30px;
    background: white;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s ease;
}

.chip:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.chip.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* --- Results Table --- */
.results-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Keeps corners rounded */
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.results-table th {
    background: #f8fafc;
    padding: 16px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 2px solid #f1f5f9;
}

.results-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 0.95rem;
}

.results-table tr:last-child td {
    border-bottom: none;
}

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

/* --- Empty State styling --- */
.empty-state {
    text-align: center;
    padding: 60px !important;
    color: #94a3b8;
    font-style: italic;
}

/* --- Action Buttons in Table --- */
.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
    margin-left: 5px;
}



/* --- Dashboard Layout --- */
.booking-page {
    background: #f8fafc;
    min-height: 100vh;
}

/* --- Stats Grid (3 Columns) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* No gaps between cards for a flush look, or 20px if you want them separated */
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.stat-card {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-right: 1px solid #f1f5f9;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
}

.stat-icon { font-size: 1.5rem; opacity: 0.5; }

/* --- Controls Bar --- */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

#booking-search {
    padding: 10px 15px;
    width: 300px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.filter-wrapper select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    margin-left: 10px;
}

/* --- The Table --- */
.booking-table-container {
    background: white;
}

.booking-table {
    width: 100%;
    border-collapse: collapse;
}

.booking-table th {
    background: #f1f5f9;
    padding: 15px 20px;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 1px;
}

.booking-table td {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Status Badges */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge.confirmed { background: #dbeafe; color: #1e40af; }
.badge.active { background: #dcfce7; color: #15803d; }
.badge.pending { background: #fef3c7; color: #92400e; }

/* Action Button */
.action-btn {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.booking-container{
    padding:40px;
}



/* --- 1. Main Content Area Reset --- */
.profile-page {
    margin: 0;
    background-color: #f8fafc;
    min-height: 100vh;
}

/* --- 2. The Grid Layout --- */
.profile-layout {
    display: grid;
    grid-template-columns: 320px 1fr; /* Sidebar fixed width, Timeline takes rest */
    min-height: 100vh;
}

/* --- 3. Left Client Sidebar --- */
.client-sidebar {
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 40px 24px;
    height: 100vh;
    position: sticky; /* Stays visible while you scroll the history */
    top: 0;
}

.avatar-large {
    width: 90px;
    height: 90px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.client-card-header {
    text-align: center;
    margin-bottom: 30px;
}

.client-card-header h2 {
    font-size: 1.4rem;
    color: #0f172a;
    margin: 0;
}

.client-id {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.client-details {
    margin-top: 30px;
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
}

.detail-item {
    margin-bottom: 20px;
}

.detail-item label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-item p {
    color: #1e293b;
    font-weight: 500;
    margin: 0;
}

/* --- 4. Right History Content --- */
.history-timeline {
    padding: 40px;
    background: #f8fafc;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.timeline-header h3 {
    font-size: 1.25rem;
    color: #1e293b;
}

.timeline-actions {
    display: flex;
    gap: 10px;
}

.timeline-actions input {
    padding: 8px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 250px;
}

/* --- 5. The Timeline Thread --- */
.timeline-thread {
    position: relative;
    padding-left: 30px;
}

/* The vertical line */
.timeline-thread::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

/* The Marker Dot */
.timeline-marker {
    position: absolute;
    left: -30px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid #3b82f6;
    z-index: 1;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.item-header .date {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.service-tag {
    background: #eff6ff;
    color: #2563eb;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.summary {
    color: #475569;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.item-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-link {
    background: none;
    border: none;
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

/* --- 6. Helper Classes --- */
.full-width { width: 100%; }
.btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.primary-btn { background: #3b82f6; color: white; border: none; }
.secondary-btn { background: white; border: 1px solid #cbd5e1; color: #475569; }
























.add-booking-page {
    background: #f8fafc;
    width: 100%;
    min-height: 100vh;
}

/* Header styling flush to top */
.page-header {
    background: white;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.header-content h2 { font-size: 1.5rem; color: #0f172a; margin: 0; }
.header-content p { color: #64748b; font-size: 0.9rem; margin-top: 5px; }

/* Form Container centered with internal padding */
.booking-form-container {
    max-width: 90%;
    margin: 40px auto;
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    height:80%/*  calc(100%-200px) */;
}

.form-block {
    margin-bottom: 40px;
}

.block-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.step-icon {
    background: #eff6ff;
    color: #3b82f6;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.block-title h3 { font-size: 1.1rem; color: #334155; margin: 0; }

/* Grid for inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.input-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.input-group { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

/* Separator styling */
.or-separator {
    padding-bottom: 15px;
    font-weight: bold;
    color: #cbd5e1;
}

/* Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    background: white;
    border: 1px solid #e2e8f0;
    width: 100%;
    z-index: 10;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
}

.form-submit-row {
    border-top: 1px solid #f1f5f9;
    padding-top: 30px;
    text-align: right;
}

.btn-lg { padding: 15px 40px; font-size: 1.1rem; }
.customer-container{
  height:calc(100% - 70px);
    overflow-y: auto;
}



.admission-page {
    background: #f1f5f9;
    min-height: 100vh;
    width: 100%;
}

.page-header {
    background: white;
    padding: 25px 40px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admission-container {
    max-width: 100%;
    margin: auto; /* Space at bottom for scrolling */
    padding: 45px;
    height: calc(100% - 100px);
    overflow-y: auto;
}

.form-block {
    margin-bottom: 40px;
}

.block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f8fafc;
}

.step-icon {
    background: #3b82f6;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

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

.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group.full-width { grid-column: 1 / -1; }

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.form-submit-row {
    margin-top: 20px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
    text-align: right;
}






.admission-list-page {
    background: #f8fafc;
    min-height: 100vh;
}

/* Stats Row */
.occupancy-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.stat-box {
    padding: 25px 40px;
    border-right: 1px solid #f1f5f9;
}

.stat-box .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.stat-box .number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
}

.stat-box.warning .number { color: #f59e0b; }
.stat-box.success .number { color: #10b981; }

/* Filter Bar */
.table-controls {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.search-group input {
    width: 350px;
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.filter-group { display: flex; gap: 10px; }
.filter-group select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

/* Table Styling */
.table-wrapper { background: white; }

.admission-table {
    width: 100%;
    border-collapse: collapse;
}

.admission-table th {
    background: #f1f5f9;
    padding: 15px 40px;
    text-align: left;
    font-size: 0.75rem;
    color: #475569;
    text-transform: uppercase;
}

.admission-table td {
    padding: 20px 40px;
    border-bottom: 1px solid #f1f5f9;
}

.room-tag {
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Status Badges */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}
.badge.active { background: #dcfce7; color: #15803d; }
.badge.discharged { background: #f1f5f9; color: #64748b; }

/* Buttons */
.action-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}
.action-btn.outline { border-color: #cbd5e1; background: white; color: #475569; }
.action-btn.danger { background: #fee2e2; color: #b91c1c; margin-left: 8px; }





/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Slate-900 with transparency */
    backdrop-filter: blur(4px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal Card */
.modal-card {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 30px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-header h2 { margin: 10px 0 0; color: #1e293b; }

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
}

.modal-body { padding: 30px; }

/* Content Grids */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item label { display: block; font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: 4px; }
.info-item p { font-size: 1rem; color: #1e293b; margin: 0; font-weight: 500; }

.modal-divider { border: 0; border-top: 1px solid #f1f5f9; margin: 25px 0; }

/* Billing Section */
.billing-summary {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
}

.billing-summary h3 { font-size: 0.9rem; margin-top: 0; color: #475569; }

.bill-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem; }
.bill-row.paid { color: #16a34a; }
.bill-row.balance { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #cbd5e1; font-size: 1.1rem; color: #b91c1c; }

/* Footer */
.modal-footer {
    padding: 20px 30px;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}



/* Modal Card - Wide Version */
.modal-card.wide {
    max-width: 800px; /* Wider than the admission modal for reading notes */
}

/* Summary Box */
.highlight-box {
    background: #fdf2f2; /* Light accent color */
    padding: 15px 20px;
    border-left: 4px solid #ef4444;
    border-radius: 4px;
    margin-bottom: 25px;
}

.highlight-box label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #b91c1c;
    text-transform: uppercase;
}

.response-box {
    background: #f4fff0; /* Light accent color */
    padding: 15px 20px;
    border-left: 4px solid #a5ff91;
    border-radius: 4px;
    margin-bottom: 25px;
}

.response-box label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #20ac00;
    text-transform: uppercase;
}


/* Detailed Notes Area */
.details-section label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
}

.full-text-area {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.8;
    color: #334155;
    font-size: 1rem;
    min-height: 150px;
    margin-bottom: 25px;
}

/* Two Column Actions */
.action-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
}

.action-items label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.action-items ul {
    padding-left: 20px;
    margin: 0;
    color: #475569;
}

.action-items li {
    margin-bottom: 5px;
}

#btn-side{
    display: flex; justify-content: space-around;
}
#btn-side button{
    gap:20px;
    margin-right: 10px;
}

.select-search-shell{
    position: relative;
}
.select-search{
    position: absolute;
    top:80px;
    width: 100%;
    max-height: 200px;
    background: #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
      gap:5px;
      overflow-x: hidden;
      overflow-y: auto;
      display: none;
    
}
.select-search .options{
 display: flex;
 justify-content: center;
 align-items: center;
 padding:10px 0;
 cursor: pointer;
 background-color: #10B981;
 color: #ffffff;
}

#view_available_rooms{
    cursor: pointer;
}

.tab-header{
    width:100%;
    display: flex;
}
.tab-header span{
    border-radius: 5px;
    padding:10px 20px;
    cursor: pointer;
}
.tab-header span.active{
   background-color: #4285F4;
    color: #ffffff;
}

.inventory-tabs{
    display: none;
}

#list-managment{
    display:none;justify-content: flex-end;gap:20px;padding:10px;
}