 /* --- Design System & Reset --- */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        body {
            background-color: #f4f6f8;
            color: #333;
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        /* --- Header Navigation --- */
        .pos-header {
            background-color: #ffffff;
            border-bottom: 1px solid #e1e4e8;
            padding: 12px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 60px;
        }

        .tenant-badge {
            background-color: #e3f2fd;
            color: #0d47a1;
            padding: 4px 12px;
            border-radius: 16px;
            font-size: 0.85rem;
            font-weight: bold;
        }

        .user-info {
            font-size: 0.95rem;
            color: #555;
        }

        /* --- Main Layout Workspace --- */
        .pos-container {
            display: grid;
            grid-template-columns: 1fr 400px; /* Left takes remaining space, right is fixed */
            flex-grow: 1;
            height: calc(100vh - 60px);
            overflow: hidden;
        }

        /* --- LEFT SIDE: Catalog View --- */
        .catalog-section {
            display: flex;
            flex-direction: column;
            padding: 20px;
            overflow: hidden;
        }

        .search-bar {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #ccd1d9;
            border-radius: 8px;
            font-size: 1rem;
            margin-bottom: 20px;
            outline: none;
            background-color: #fff;
        }

        .search-bar:focus {
            border-color: #007bff;
            box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 16px;
            overflow-y: auto;
            padding-bottom: 20px;
        }

        /* Product Card Component */
        .product-card {
            background-color: #ffffff;
            border: 1px solid #e1e4e8;
            border-radius: 8px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            user-select: none;
           /* min-height: 120px;*/
        }

        .product-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            border-color: #007bff;
        }

        .product-name {
            font-weight: 600;
            font-size: 0.95rem;
            line-height: 1.3;
            color: #1a1a1a;
            margin-bottom: 8px;
        }

        .product-price {
            color: #28a745;
            font-weight: 700;
            font-size: 1.1rem;
        }

        /* --- RIGHT SIDE: Cart Sidebar --- */
        .cart-sidebar {
            background-color: #ffffff;
            border-left: 1px solid #e1e4e8;
            display: flex;
            flex-direction: column;
            height: 100%;
            overflow: hidden;
        }

        .cart-header {
            padding: 16px 20px;
            border-bottom: 1px solid #e1e4e8;
            font-weight: bold;
            font-size: 1.1rem;
        }

        .cart-items-list {
            flex-grow: 1;
            overflow-y: auto;
            padding: 10px 20px;
        }

        /* Individual Cart Item Line */
        .cart-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #f1f3f5;
        }

        .item-details {
            flex-grow: 1;
            padding-right: 12px;
        }

        .item-name {
            font-size: 0.95rem;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .item-meta {
            font-size: 0.85rem;
            color: #777;
        }

        .item-total-price {
            font-weight: 600;
            font-size: 0.95rem;
        }

        /* --- Footer Checkout Box --- */
        .cart-summary-panel {
            background-color: #f8f9fa;
            border-top: 1px solid #e1e4e8;
            padding: 20px;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 0.95rem;
            color: #555;
        }

        .summary-row.total {
            border-top: 1px solid #d1d5db;
            margin-top: 12px;
            padding-top: 12px;
            font-size: 1.4rem;
            font-weight: 800;
            color: #000;
        }

        .checkout-btn {
            width: 100%;
            background-color: #28a745;
            color: #fff;
            border: none;
            padding: 16px;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            margin-top: 16px;
            transition: background-color 0.15s ease;
        }

        .checkout-btn:hover {
            background-color: #218838;
        }

        .checkout-btn:active {
            background-color: #1e7e34;
        }



.permission-section{
    margin:20px 0;
    padding:15px;
    border:1px solid #ddd;
    border-radius:8px;
}

.permission-section legend{
    font-weight:bold;
    padding:0 8px;
}

.permission-item{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:6px 0;
}

.permission-item input{
    margin-top:3px;
}

.permission-item span{
    font-weight:500;
}

.permission-item small{
    display:block;
    color:#777;
    margin-left:6px;
}

