:root {
    --brand-primary: #0D9488;
    --brand-secondary: #0F766E;
    --brand-light: #E6FFFA;
    --brand-dark: #0A6B63;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    padding: 20px;
}

.login-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
    font-size: var(--font-sm);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: var(--font-md);
}

.pos-header {
    height: 60px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.pos-header-left,
.pos-header-center,
.pos-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pos-header-left {
    flex: 0 0 auto;
}

.pos-header-center {
    flex: 1;
    justify-content: center;
}

.pos-header-right {
    flex: 0 0 auto;
}

.outlet-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.outlet-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.outlet-logo .logo-placeholder {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-primary);
}

.outlet-name {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.main-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 4px;
}

.main-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-secondary);
    position: relative;
}

.main-tab:hover {
    background: var(--bg-primary);
}

.main-tab.active {
    background: var(--brand-primary);
    color: white;
}

.main-tab svg {
    flex-shrink: 0;
}

.orders-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.pos-subheader {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-type-toggle {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 4px;
}

.order-type-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-secondary);
}

.order-type-btn.active {
    background: var(--brand-primary);
    color: white;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--font-xs);
    font-weight: 500;
}

.sync-status.online {
    background: var(--success-bg);
    color: var(--success);
}

.sync-status.offline {
    background: var(--warning-bg);
    color: var(--warning);
}

.sync-status.syncing {
    background: var(--info-bg);
    color: var(--info);
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.sync-status.syncing .sync-dot {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.token-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.token-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.token-number {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--brand-primary);
}

.cashier-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cashier-name {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.pos-main {
    display: flex;
    height: calc(100vh - 120px);
    background: var(--bg-secondary);
}

.menu-panel {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow: hidden;
}

.cart-panel {
    flex: 0 0 40%;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-shrink: 0;
}

.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-tabs::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.category-tabs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.category-tab {
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.category-tab:hover {
    border-color: var(--brand-primary);
}

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

.menu-search {
    margin-bottom: 12px;
    flex-shrink: 0;
    position: relative;
}

.menu-search .form-input {
    padding: 12px 40px 12px 16px;
    font-size: var(--font-md);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.search-clear-btn:hover {
    color: var(--text-primary);
}

.recent-items {
    margin-bottom: 12px;
    flex-shrink: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
}

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

.recent-label {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-clear-btn {
    background: none;
    border: none;
    font-size: var(--font-xs);
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
}

.recent-clear-btn:hover {
    color: var(--danger);
}

.recent-items-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.recent-items-list::-webkit-scrollbar {
    height: 4px;
}

.recent-items-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
}

.recent-item:hover {
    border-color: var(--brand-primary);
    background: var(--brand-light);
}

.recent-item-thumb {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    overflow: hidden;
}

.recent-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-item-info {
    display: flex;
    flex-direction: column;
}

.recent-item-name {
    font-size: var(--font-xs);
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-item-price {
    font-size: 10px;
    color: var(--brand-primary);
    font-weight: 600;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    overflow-y: auto;
    flex: 1;
    padding-right: 8px;
    align-content: start;
}

.menu-grid::-webkit-scrollbar {
    width: 6px;
}

.menu-grid::-webkit-scrollbar-track {
    background: transparent;
}

.menu-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.menu-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.menu-item:active {
    transform: scale(0.98);
}

.menu-item.unavailable {
    opacity: 0.5;
    pointer-events: none;
}

.menu-item-image {
    width: 100%;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-image .image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.menu-item-image .image-placeholder span {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

.menu-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-header {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 4px;
}

.veg-indicator {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid;
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.veg-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.veg-indicator.veg {
    border-color: #0f8a0f;
}

.veg-indicator.veg::after {
    background: #0f8a0f;
}

.veg-indicator.nonveg {
    border-color: #b71c1c;
}

.veg-indicator.nonveg::after {
    background: #b71c1c;
}

.menu-item-name {
    font-size: var(--font-sm);
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.menu-item-price {
    font-size: var(--font-md);
    color: var(--brand-primary);
    font-weight: 600;
    margin-top: auto;
}

.menu-item-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--danger-bg);
    color: var(--danger);
    font-weight: 500;
    z-index: 1;
}

.counter-badge {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 500;
    margin-top: 4px;
    align-self: flex-start;
}

.menu-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.cart-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-title {
    font-size: var(--font-md);
    font-weight: 600;
    margin: 0;
}

.cart-token {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--brand-primary);
}

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

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-cart-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.empty-cart p {
    margin: 4px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: var(--font-sm);
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.15s;
}

.qty-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--brand-primary);
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.cart-item-total {
    font-size: var(--font-sm);
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

.cart-customer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cart-customer .form-input {
    flex: 1;
    padding: 10px 12px;
    font-size: var(--font-sm);
}

.cart-totals {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.total-row.grand {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.payment-section {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.payment-methods {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.payment-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

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

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

.place-order-btn {
    padding: 16px;
    font-size: var(--font-md);
    font-weight: 600;
    background: var(--brand-primary);
}

.place-order-btn:hover {
    background: var(--brand-dark);
}

.place-order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.clear-btn {
    margin-top: 8px;
}

.orders-panel {
    padding: 20px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    background: var(--bg-secondary);
}

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

.orders-title h2 {
    font-size: var(--font-xl);
    font-weight: 600;
    margin: 0 0 4px 0;
}

.orders-count {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.orders-actions {
    display: flex;
    gap: 8px;
}

.orders-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.status-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
}

.status-tab {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-size: var(--font-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.status-tab:hover {
    border-color: var(--brand-primary);
}

.status-tab.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.order-search-input {
    width: 200px;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.order-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.15s;
}

.order-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.order-card-token {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--brand-primary);
}

.order-card-code {
    font-size: 24px;
    font-weight: 700;
    color: #B45309;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
    background: #FEF3C7;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.pending-order-card {
    border-left: 4px solid #F59E0B;
}

.pending-order-card:hover {
    border-color: #F59E0B;
}

.order-card-type {
    font-size: var(--font-xs);
    color: var(--text-muted);
    text-transform: uppercase;
}

.order-card-body {
    margin-bottom: 12px;
}

.order-card-customer {
    font-size: var(--font-sm);
    font-weight: 500;
    margin-bottom: 4px;
}

.order-card-items {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.order-card-total {
    font-size: var(--font-md);
    font-weight: 600;
}

.order-card-time {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.orders-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
}

.success-token {
    padding: 24px;
    background: var(--success-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.success-token-label {
    display: block;
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin-bottom: 8px;
}

.success-token-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--success);
}

.success-summary {
    text-align: left;
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.success-summary p {
    margin: 4px 0;
}

.order-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: var(--font-xs);
    font-weight: 500;
}

.order-status-badge.confirmed { background: var(--warning-bg); color: var(--warning); }
.order-status-badge.preparing { background: var(--info-bg); color: var(--info); }
.order-status-badge.ready { background: var(--success-bg); color: var(--success); }
.order-status-badge.completed { background: var(--bg-tertiary); color: var(--text-muted); }
.order-status-badge.cancelled { background: var(--danger-bg); color: var(--danger); }

.order-detail-info {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.detail-label {
    color: var(--text-muted);
    font-size: var(--font-sm);
}

.order-detail-items {
    margin-bottom: 16px;
}

.order-detail-items h4 {
    font-size: var(--font-sm);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.detail-item-name {
    font-size: var(--font-sm);
    font-weight: 500;
}

.detail-item-qty {
    color: var(--text-muted);
    font-size: var(--font-sm);
}

.detail-item-price {
    font-weight: 600;
    font-size: var(--font-sm);
}

.order-detail-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    font-size: var(--font-lg);
    font-weight: 600;
}

.status-action-btn {
    flex: 1;
    padding: 12px;
    font-weight: 600;
}

.status-action-btn.preparing {
    background: var(--info);
    color: white;
}

.status-action-btn.ready {
    background: var(--success);
    color: white;
}

.status-action-btn.completed {
    background: var(--text-muted);
    color: white;
}

@media (max-width: 900px) {
    .pos-main {
        flex-direction: column;
        height: auto;
    }
    
    .menu-panel {
        flex: none;
        height: 50vh;
    }
    
    .cart-panel {
        flex: none;
        height: auto;
        min-height: 50vh;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .pos-header {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
        gap: 12px;
    }
    
    .pos-header-left,
    .pos-header-center,
    .pos-header-right {
        gap: 8px;
    }
    
    .pos-header-center {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
    }
    
    .outlet-name {
        font-size: var(--font-md);
    }
    
    .order-type-btn {
        padding: 6px 12px;
        font-size: var(--font-xs);
    }
    
    .main-tab {
        padding: 8px 16px;
        font-size: var(--font-xs);
    }
    
    .orders-grid {
        grid-template-columns: 1fr;
    }
}

/* Batch 3: Cart Header Actions */
.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.held-orders-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.held-orders-btn:hover {
    background: var(--brand-light);
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.held-orders-btn .held-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Batch 3: Improved Cart Item with Notes */
.cart-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: transform 0.2s ease;
    touch-action: pan-y;
}

.cart-item.swiping {
    background: #FEE2E2;
}

.cart-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 500;
    font-size: var(--font-sm);
    margin-bottom: 2px;
}

.cart-item-price {
    color: var(--text-muted);
    font-size: var(--font-xs);
}

.cart-item-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-xs);
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--brand-primary);
}

.cart-item-note svg {
    flex-shrink: 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-note-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-color);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.15s ease;
}

.add-note-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--brand-light);
}

.add-note-btn.has-note {
    border-style: solid;
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--brand-light);
}

/* Batch 3: Improved Quantity Controls */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.1s ease;
    user-select: none;
    -webkit-user-select: none;
}

.qty-btn:hover {
    background: var(--bg-secondary);
}

.qty-btn:active {
    transform: scale(0.95);
    background: var(--brand-light);
}

.qty-btn.decrement {
    color: var(--danger);
}

.qty-btn.increment {
    color: var(--success);
}

.qty-value {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-md);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.qty-value:hover {
    background: var(--brand-light);
}

/* Batch 3: Hold Order Button */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hold-btn {
    margin-top: 8px;
}

/* Batch 3: Note Modal */
.note-item-name,
.qty-item-name {
    font-weight: 600;
    font-size: var(--font-md);
    margin-bottom: 12px;
    color: var(--text-primary);
}

.note-textarea {
    width: 100%;
    resize: vertical;
    min-height: 80px;
}

/* Batch 3: Quantity Numpad Modal */
.quantity-numpad {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qty-input {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    padding: 16px;
    border-radius: var(--radius-md);
}

.numpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.numpad-btn {
    height: 56px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.1s ease;
}

.numpad-btn:hover {
    background: var(--bg-secondary);
}

.numpad-btn:active {
    transform: scale(0.95);
}

.numpad-btn.numpad-clear {
    background: #FEE2E2;
    color: var(--danger);
    border-color: #FECACA;
}

.numpad-btn.numpad-back {
    background: #FEF3C7;
    color: #D97706;
    border-color: #FDE68A;
}

/* Batch 3: Held Orders Modal */
.held-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.empty-held {
    text-align: center;
    color: var(--text-muted);
    padding: 32px;
}

.held-order-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.held-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.held-order-customer {
    font-weight: 600;
    font-size: var(--font-md);
}

.held-order-time {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.held-order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.held-order-total {
    font-weight: 600;
    color: var(--text-primary);
}

.held-order-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.held-order-actions .btn {
    flex: 1;
    padding: 8px 16px;
}

/* Swipe to delete indicator */
.swipe-delete-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--danger);
    font-size: var(--font-xs);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cart-item.swiping .swipe-delete-hint {
    opacity: 1;
}

/* Batch 4: Sound Toggle */
.sound-toggle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.sound-toggle:hover {
    background: var(--brand-light);
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.sound-toggle.muted {
    color: var(--text-muted);
}

.sound-toggle.muted .sound-on {
    display: none;
}

.sound-toggle.muted .sound-off {
    display: block !important;
}

/* Batch 4: Shift Stats Dropdown */
.shift-stats-container {
    position: relative;
}

.shift-stats-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.shift-stats-btn:hover {
    background: var(--brand-light);
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.shift-stats-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 220px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    display: none;
    z-index: 200;
}

.shift-stats-dropdown.active {
    display: block;
}

.shift-stats-header {
    font-weight: 600;
    font-size: var(--font-sm);
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.shift-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: var(--font-sm);
}

.shift-stat-row span:first-child {
    color: var(--text-muted);
}

.shift-stat-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* Batch 4: Offline Banner */
.offline-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: #FEF3C7;
    color: #92400E;
    font-size: var(--font-sm);
    font-weight: 500;
    border-bottom: 1px solid #FDE68A;
}

.offline-banner.syncing {
    background: #D1FAE5;
    color: #065F46;
    border-color: #A7F3D0;
}

.offline-banner.syncing .offline-text {
    display: none;
}

.offline-banner.syncing .syncing-text {
    display: inline !important;
}

.offline-banner svg {
    flex-shrink: 0;
}

@keyframes pulse-sync {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.offline-banner.syncing {
    animation: pulse-sync 1.5s ease-in-out infinite;
}

/* Batch 4: Split Payment */
.split-payment {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.split-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.split-input-group label {
    min-width: 40px;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.split-input-group .form-input {
    flex: 1;
    text-align: right;
    font-weight: 600;
}

.split-input-group .form-input:read-only {
    background: var(--bg-primary);
    color: var(--text-muted);
}

.split-remaining {
    font-size: var(--font-xs);
    color: var(--text-muted);
    text-align: center;
    padding-top: 4px;
}

.split-remaining.error {
    color: var(--danger);
}

.split-remaining.valid {
    color: var(--success);
}
