@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');


:root {
    color-scheme: light;
    /* Color Palette - Light Theme */
    --bg-app: #FAF6F0;
    --bg-sidebar: #2E231F;
    --bg-content: #FAF6F0;
    --bg-card: #ffffff;
    --bg-hover: rgba(255, 255, 255, 0.08);
    --bg-active: rgba(255, 255, 255, 0.15);
    
    --text-primary: #2E231F;
    --text-secondary: #584F4B;
    --text-tertiary: #8E8480;
    --text-heading: #2E231F;
    
    --border: rgba(46, 35, 31, 0.08);
    --border-glass: rgba(255, 255, 255, 0.4);
    --antique-brass: #C29F68;
    
    --orange-primary: #5C4033;
    --orange-hover: #2E231F;
    --orange-light: #FAF6F0;
    
    --success: #10B981;
    --success-light: #ecfdf5;
    --warning: #A64B2A;
    --warning-light: rgba(166, 75, 42, 0.1);
    --danger: #EF4444;
    --danger-light: #fef2f2;
    
    --shadow-sm: 0 1px 3px rgba(46,35,31,0.05), 0 1px 2px rgba(46,35,31,0.03);
    --shadow-md: 0 4px 20px rgba(46,35,31,0.04), 0 2px 8px rgba(46,35,31,0.02);
    --shadow-lg: 0 15px 35px rgba(46,35,31,0.06), 0 5px 15px rgba(46,35,31,0.03);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --font-sans: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --sidebar-width: 260px;
    --header-height: 70px;
}

/* Dark Theme Variables */
body.dark-theme {
    color-scheme: dark;
    --bg-app: #151312;
    --bg-sidebar: #0F0D0C;
    --bg-content: #151312;
    --bg-card: #2E231F;
    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-active: rgba(255, 255, 255, 0.1);
    
    --text-primary: #FFFFFF;
    --text-secondary: #D4CDCA;
    --text-tertiary: #A89F9B;
    --text-heading: #FFFFFF;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(20, 20, 24, 0.6);
    
    --orange-primary: #C29F68;
    --orange-hover: #B5905A;
    --orange-light: #2E231F;
    
    --success-light: #06231a;
    --warning-light: #2b1d03;
    --danger-light: #2c0e0e;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 25px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-app);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease;
}

/* Custom Premium Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}
body.dark-theme ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-full);
}
body.dark-theme ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--orange-primary);
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    color: var(--text-primary);
    font-weight: 800;
}

/* Page Layout Shell */
.app-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* Left Sidebar styling */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.15) 100%), var(--bg-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.sidebar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

/* Sidebar Specific Overrides for Dark Chocolate Theme */
.sidebar .sidebar-brand {
    color: #ffffff;
}

.sidebar .nav-group-title {
    color: #A89F9B;
    font-weight: 800;
}

.sidebar .nav-item {
    color: rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar .nav-item i {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease, transform 0.3s ease;
}

.sidebar .nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.sidebar .nav-item:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

.sidebar .nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.sidebar .nav-item.active i {
    color: #ffffff;
}

.sidebar .role-select-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: var(--radius-full);
}

.sidebar .role-select-box:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.sidebar .role-select-box-info i {
    color: #ffffff;
}

.sidebar .role-options-panel {
    background: #2E231F;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
}

.sidebar .role-option {
    color: rgba(255, 255, 255, 0.85);
}

.sidebar .role-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-brand-icon {
    width: 24px;
    height: 24px;
    background: var(--orange-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 800;
}

/* Role Selector Dropdown */
.role-dropdown-container {
    padding: 0 20px 16px;
    border-bottom: 1px solid var(--border);
}

.role-select-box {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.role-select-box:hover {
    border-color: var(--orange-primary);
}

.role-select-box-info {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.role-select-box-info i {
    color: var(--orange-primary);
    width: 16px;
    height: 16px;
}

.role-options-panel {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: var(--bg-content);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    display: none;
    margin-top: 4px;
}

.role-option {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.role-option:hover {
    background: var(--bg-hover);
}

/* Navigation Lists styling */
.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 12px;
}

.nav-group {
    margin-bottom: 24px;
}

.nav-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-tertiary);
    padding: 0 12px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 2px;
}

.nav-item i {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-item.active {
    color: var(--orange-primary);
    background: var(--orange-light);
}

.nav-item.active i {
    color: var(--orange-primary);
}

/* Content Area Shell */
.content-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-content);
    background-image: linear-gradient(135deg, rgba(250, 246, 240, 0.92) 0%, rgba(240, 230, 220, 0.85) 100%), url("/satin-texture.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-color 0.4s ease;
}

body.dark-theme .content-wrapper {
    background-image: linear-gradient(135deg, rgba(21, 19, 18, 0.95) 0%, rgba(10, 8, 8, 0.88) 100%), url("/satin-texture.jpg");
}

/* Top App Header styling */
.app-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: var(--bg-content);
    transition: background-color 0.3s ease;
    z-index: 5;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    width: 320px;
    font-size: 0.85rem;
}

body.dark-theme .header-search {
    background: var(--bg-card);
}

.header-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

body.dark-theme .header-btn {
    background: var(--bg-card);
}

.header-btn:hover {
    border-color: var(--orange-primary);
    color: var(--text-primary);
}

.header-btn-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-content);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--orange-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-info {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Main Content Panel */
.main-panel {
    flex-grow: 1;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    padding: 32px;
    position: relative;
}

/* Screen Wrapper */
.app-screen {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.app-screen.active {
    display: block;
}

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

/* Common Screen Header Elements */
.screen-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.screen-title-desc h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.screen-title-desc p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.screen-actions {
    display: flex;
    gap: 12px;
}

/* SaaS Style Buttons */
.saas-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    outline: none;
}

.saas-btn-primary {
    background: linear-gradient(135deg, var(--orange-primary) 0%, #8A5A44 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(92, 64, 51, 0.3);
}

.saas-btn-primary:hover {
    background: linear-gradient(135deg, var(--orange-hover) 0%, var(--orange-primary) 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(92, 64, 51, 0.4);
}

.saas-btn-secondary {
    background: #ffffff;
    border-color: var(--border);
    color: var(--text-primary);
}

body.dark-theme .saas-btn-secondary {
    background: var(--bg-card);
}

.saas-btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-tertiary);
}

.saas-btn-danger {
    background: var(--danger-light);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.15);
}

.saas-btn-danger:hover {
    background: var(--danger);
    color: white;
}

/* Dashboard KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme .kpi-card {
    background: rgba(46, 35, 31, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
}

.kpi-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--shadow-md);
    border-color: var(--orange-primary);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.kpi-header i {
    width: 16px;
    height: 16px;
    color: var(--orange-primary);
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.kpi-meta {
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    color: var(--success);
}

.trend-down {
    color: var(--danger);
}

/* Widgets Grid Layout */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.widget-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.widget-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #C29F68;
}

body.dark-theme .widget-card {
    background: rgba(46, 35, 31, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-body {
    flex-grow: 1;
}

/* Tables Styling */
.saas-table-container {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.saas-table-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--antique-brass);
}

body.dark-theme .saas-table-container {
    background: rgba(46, 35, 31, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

.saas-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
}

.saas-table th {
    background: var(--bg-sidebar);
    padding: 14px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.saas-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

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

.saas-table tr:hover td {
    background-color: #FAF6F0;
}

body.dark-theme .saas-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Pill Badges */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pill-badge-success {
    background: var(--success-light);
    color: var(--success);
}

.pill-badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.pill-badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.pill-badge-secondary {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

/* Checklists styling */
.checklist-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
}

.checklist-tasks-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checklist-item:hover {
    border-color: var(--orange-primary);
}

.checklist-item.checked {
    border-color: var(--success);
    background: var(--success-light);
}

.checklist-checkbox-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-tertiary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checklist-item.checked .checklist-checkbox-box {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.checklist-item-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.checklist-item-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* Recipe Master Cards */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.recipe-prod-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.recipe-prod-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--antique-brass);
}

body.dark-theme .recipe-prod-card {
    background: rgba(46, 35, 31, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

.recipe-prod-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.recipe-prod-name {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.recipe-ingredient-list {
    margin: 16px 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recipe-ingredient-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cost-calculator-widget {
    background: #F4F0EB;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: auto;
}

body.dark-theme .cost-calculator-widget {
    background: rgba(255, 255, 255, 0.03);
}

.cost-calc-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cost-calc-line:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px dotted var(--border);
    font-weight: 800;
}

/* Wastage Screen Layout */
.wastage-form-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
}

.wastage-logger-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.wastage-logger-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #C29F68;
}

body.dark-theme .wastage-logger-card {
    background: rgba(46, 35, 31, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Form Styles */
.saas-form-group {
    margin-bottom: 16px;
}

.saas-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.saas-form-input, .saas-form-select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.saas-form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

body.dark-theme .saas-form-input, body.dark-theme .saas-form-select {
    background: var(--bg-card);
}

.saas-form-input:focus, .saas-form-select:focus {
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 4px rgba(92, 64, 51, 0.1);
    background: #ffffff;
}

body.dark-theme .saas-form-input:focus, body.dark-theme .saas-form-select:focus {
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(194, 159, 104, 0.15);
}

/* Sliding Drawer for Notifications */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(9, 9, 11, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99;
    display: none;
}

.notification-drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-content);
    border-left: 1px solid var(--border);
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
}

.drawer-close {
    cursor: pointer;
    color: var(--text-secondary);
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.alert-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    margin-bottom: 12px;
}

.alert-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.alert-item-body {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.alert-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.alert-action-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--border);
    background: white;
}

.alert-action-btn.resolve {
    background: var(--success);
    color: white;
    border: none;
}

/* Global Floating Action Button (FAB) */
.fab-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 90;
}

.fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--orange-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(92, 64, 51, 0.3), 0 0 15px rgba(194, 159, 104, 0.2);
    border: 2px solid var(--antique-brass);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fab-main:hover {
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 12px 35px rgba(92, 64, 51, 0.4), 0 0 20px rgba(194, 159, 104, 0.45);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--bg-content);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 200px;
    display: none;
    flex-direction: column;
    padding: 8px;
    z-index: 91;
    animation: slideUp 0.2s ease forwards;
}

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

.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.fab-menu-item:hover {
    background: var(--bg-hover);
    color: var(--orange-primary);
}

/* Modals Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(9, 9, 11, 0.5);
    backdrop-filter: blur(5px);
    z-index: 105;
    display: none;
    overflow-y: auto;
    padding: 40px 16px;
    align-items: flex-start;
    justify-content: center;
}

.modal-content {
    background: var(--bg-content);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    padding: 32px;
    position: relative;
    margin: auto;
    animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
}

.modal-close {
    cursor: pointer;
    color: var(--text-secondary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Custom Approval Flow Indicators */
.approval-flow-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 16px 20px;
    background: #F4F0EB;
    border-radius: var(--radius-md);
    border: 1px solid rgba(46, 35, 31, 0.05);
}

body.dark-theme .approval-flow-wrapper {
    background: rgba(255, 255, 255, 0.03);
}

.approval-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.approval-step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #8E8480;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.approval-step.active .approval-step-dot {
    background: #5C4033;
}

.approval-step.approved .approval-step-dot {
    background: #00B074;
}

.approval-step-line {
    flex-grow: 1;
    height: 3px;
    background: rgba(46, 35, 31, 0.15);
    margin: 0 12px;
}

.approval-step-line.approved {
    background: #00B074;
}

/* Indian State Map Grid Visuals */
.india-map-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
}

.map-visual-placeholder {
    height: 320px;
    background: var(--bg-sidebar);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.map-node {
    position: absolute;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.map-node:hover {
    border-color: var(--orange-primary);
    transform: scale(1.05);
}

.map-node.active {
    background: var(--orange-primary);
    color: white;
    border-color: var(--orange-primary);
}

/* === EMPLOYEE LOGIN & ATTENDANCE EXTENSIONS === */
.login-overlay-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(9, 9, 11, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box-card {
    background: var(--bg-content);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    padding: 40px 32px;
    text-align: center;
    animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-box-logo {
    width: 56px;
    height: 56px;
    background: var(--orange-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}

.attendance-punch-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.digital-clock-display {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: monospace;
    letter-spacing: -1px;
    margin: 16px 0;
    color: var(--text-primary);
}

.punch-btn-large {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: none;
    font-weight: 800;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

.punch-btn-large.in {
    background: var(--success);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.punch-btn-large.in:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
}

.punch-btn-large.out {
    background: var(--danger);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.punch-btn-large.out:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.45);
}

.punch-btn-large:disabled {
    background: var(--bg-active);
    color: var(--text-tertiary);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Grid Classes */
.four-column-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.responsive-double-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.responsive-double-grid-15 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.responsive-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 1200px) {
    .four-column-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .responsive-double-grid,
    .responsive-double-grid-15 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    .form-row-grid {
        grid-template-columns: 1fr !important;
    }
    
    .checklist-item {
        padding: 12px 10px !important;
        gap: 10px !important;
    }
    
    .checklist-item-title {
        font-size: 0.9rem !important;
    }
    
    .checklist-item-meta {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 500px) {
    .four-column-kpi-grid {
        grid-template-columns: 1fr !important;
    }
    
    .responsive-charts-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile Menu Trigger styling */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: background-color 0.2s ease;
}

body.dark-theme .mobile-menu-toggle {
    color: #ffffff;
}

.mobile-menu-toggle:hover {
    background: var(--bg-hover);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 99; /* Just below mobile sidebar */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive breakdowns */
@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .widgets-grid {
        grid-template-columns: 1fr;
    }
    .recipes-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex !important; /* Force show the hamburger on mobile */
    }

    .app-layout {
        flex-direction: row; /* Keep layout row, sidebar overlays */
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        height: 100dvh;
        width: 280px;
        z-index: 100; /* On top of overlay */
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
        box-shadow: var(--shadow-lg);
        border-right: 1px solid var(--border);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-nav {
        display: block !important; /* Override display: none */
        flex-grow: 1;
        overflow-y: auto;
        padding: 0 16px 24px;
    }

    .content-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .main-panel {
        padding: 16px 16px 120px 16px !important; /* Reduce padding on mobile and add bottom padding to prevent cropping */
        padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Header adjustments */
    .app-header {
        padding: 0 16px;
    }

    .screen-header-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .screen-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-search {
        display: none !important; /* Hide mockup search bar on mobile */
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
    .checklist-grid {
        grid-template-columns: 1fr;
    }
    .wastage-form-container {
        grid-template-columns: 1fr;
    }
    .recipes-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra small screens (phones) */
@media (max-width: 600px) {
    .user-profile-badge .user-info {
        display: none !important; /* Hide user name and role on small screens */
    }
    .user-profile-badge {
        padding-left: 8px !important;
        gap: 6px !important;
    }
    .header-actions {
        gap: 8px !important;
    }
    .saas-table th, .saas-table td {
        padding: 10px 12px !important;
        font-size: 0.8rem !important;
    }
    .checklist-tasks-panel {
        padding: 16px !important;
    }
    .widget-card {
        padding: 16px !important;
    }
    .wastage-logger-card {
        padding: 16px !important;
    }
    .recipe-prod-card {
        padding: 16px !important;
    }
    .attendance-punch-card {
        padding: 20px 16px !important;
    }
}

@media (max-width: 500px) {
    .kpi-grid {
        grid-template-columns: 1fr; /* 1 column for clean layout on small phones */
    }
    
    .screen-actions .saas-btn {
        width: 100%; /* Make actions buttons stack full width on small screens */
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-logo-container {
        display: none !important;
    }
    .modal-content {
        padding: 20px 16px !important;
    }
    .notification-drawer {
        width: 100vw !important;
        right: -100vw !important;
    }
    .notification-drawer.open {
        right: 0 !important;
    }
}

/* Multi-state Login Panels */
.login-state-panel {
    display: none;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.login-state-panel.active {
    display: block;
}

/* Active Shift Banner & Pulse Animation */
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Manager console tabs styling */
.mgr-tab-btn {
    background: transparent;
    border: none;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mgr-tab-btn:hover {
    color: var(--text-primary);
}
.mgr-tab-btn.active {
    color: var(--orange-primary);
    border-bottom-color: var(--orange-primary);
}

/* Responsive Tabs Header and Actions bar */
.table-header-tabs-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-right: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
@media (max-width: 600px) {
    .table-header-tabs-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        padding-right: 0 !important;
        padding: 12px !important;
    }
    .table-header-tabs-actions > div {
        display: flex;
        justify-content: center !important;
        flex-wrap: wrap;
        width: 100%;
    }
    .table-header-tabs-actions .saas-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Responsive Select / Filter Rows */
.filter-row-flex {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .filter-row-flex {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .filter-row-flex > div {
        width: 100% !important;
        justify-content: space-between !important;
        display: flex;
        align-items: center;
    }
    .filter-row-flex select {
        flex-grow: 1 !important;
        width: auto !important;
    }
}

/* Responsive Active Shift Banner */
.active-shift-banner-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 600px) {
    .active-shift-banner-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .active-shift-banner-flex > div:last-child {
        text-align: left !important;
        width: 100% !important;
    }
}

/* Custom mobile UX improvements */
@media (max-width: 900px) {
    .main-panel {
        overflow-x: hidden !important;
        height: calc(100dvh - var(--header-height)) !important;
    }
}
@media (max-width: 600px) {
    .branch-selector-widget {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
        gap: 4px !important;
    }
}
@media (max-width: 480px) {
    .branch-selector-widget {
        display: none !important;
    }
    .header-actions {
        gap: 12px !important;
    }
}

/* Custom styles for Material Reconciliation Ledger */
.recon-parent-row.has-details:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}
.recon-details-row td {
    border-top: none !important;
    padding-top: 0 !important;
}
.recon-parent-row i {
    color: var(--orange-primary);
}

/* ==========================================================================
   POS BILLING SYSTEM MODULE STYLES
   ========================================================================== */

#screen-billing {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: #FAF8F5;
    display: none;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
}

#screen-billing.active {
    display: flex;
}

.pos-layout-grid {
    display: grid;
    grid-template-columns: 70% 30%;
    height: calc(100% - 60px);
    gap: 20px;
    overflow: hidden;
}

/* LEFT AREA: Catalog & Products */
.pos-left-area {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.pos-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 16px;
}

.pos-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 2px 8px 2px 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.pos-search-wrapper:focus-within {
    border-color: var(--antique-brass);
    box-shadow: 0 0 0 3px rgba(194, 159, 104, 0.15);
}

.pos-search-wrapper .search-icon {
    color: var(--text-tertiary);
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.pos-search-input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    flex: 1;
    height: 38px;
}

.barcode-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.barcode-btn:hover {
    background: var(--bg-hover);
    color: var(--orange-primary);
}

.pos-header-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.offline-badge {
    background: var(--danger-light);
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.offline-badge.success {
    background: var(--success-light);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.pulse-dot.red {
    background: var(--danger);
    animation: pulseRed 1.5s infinite;
}
.pulse-dot.green {
    background: var(--success);
    animation: pulseGreen 1.5s infinite;
}

@keyframes pulseRed {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@keyframes pulseGreen {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Category Tabs Scroll */
.pos-category-container {
    margin-bottom: 16px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
}

.pos-category-tabs {
    display: inline-flex;
    gap: 8px;
}

.category-tab {
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.category-tab:hover {
    border-color: var(--antique-brass);
    color: var(--text-primary);
}

.category-tab.active {
    background: var(--orange-primary);
    color: #ffffff;
    border-color: var(--orange-primary);
    box-shadow: 0 4px 12px rgba(92, 64, 51, 0.25);
}

/* Products Grid */
.pos-product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    overflow-y: auto;
    padding: 4px 4px 20px 4px;
}

.pos-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.pos-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--antique-brass);
}

.pos-product-image-container {
    width: 100%;
    height: 130px;
    position: relative;
    background: #eae6e1;
    overflow: hidden;
}

.pos-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pos-product-card:hover .pos-product-image {
    transform: scale(1.08);
}

.badge-popular {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--antique-brass);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    letter-spacing: 0.5px;
}

.pos-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, background 0.2s;
    color: var(--text-tertiary);
}

.pos-fav-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.pos-fav-btn.active {
    color: var(--danger);
}

.pos-product-details {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pos-product-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.pos-product-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.veg-icon-container {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 6px;
    margin-top: 2px;
}
.veg-icon-container.non-veg {
    border-color: var(--warning);
}

.veg-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}
.veg-icon-container.non-veg .veg-dot {
    background: var(--warning);
}

.pos-product-stock-row {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.pos-product-price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.pos-product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--orange-primary);
}

.pos-add-btn {
    background: var(--orange-light);
    border: 1px solid var(--orange-primary);
    color: var(--orange-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pos-add-btn:hover {
    background: var(--orange-primary);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(92, 64, 51, 0.2);
}

/* RIGHT AREA: Billing Cart */
.pos-right-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pos-cart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.cart-section {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.cart-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 6px;
}

.link-btn {
    background: transparent;
    border: none;
    color: var(--antique-brass);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.link-btn:hover {
    color: var(--orange-primary);
}

.pos-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-app);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.pos-textarea {
    width: 100%;
    height: 60px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-app);
    color: var(--text-primary);
    font-size: 0.8rem;
    resize: none;
    outline: none;
    font-family: var(--font-sans);
}

.pos-textarea-sm {
    width: 100%;
    height: 42px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-app);
    color: var(--text-primary);
    font-size: 0.75rem;
    resize: none;
    outline: none;
    font-family: var(--font-sans);
}

.pos-input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-app);
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
}

.loyalty-points-display {
    background: var(--success-light);
    color: var(--success);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Service mode tab styling */
.order-type-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.order-type-tab {
    padding: 8px;
    background: var(--bg-app);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.order-type-tab:hover {
    border-color: var(--antique-brass);
}

.order-type-tab.active {
    background: var(--orange-light);
    border-color: var(--orange-primary);
    color: var(--orange-primary);
}

.type-details-row {
    margin-top: 10px;
}

.details-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

/* Cart items list */
.cart-items-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.cart-items-header {
    display: grid;
    grid-template-columns: 1fr 45px 75px;
    padding: 8px 16px;
    background: var(--bg-app);
    border-bottom: 1px solid var(--border);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.empty-cart-message {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    gap: 10px;
    padding: 30px 0;
}

.empty-cart-message i {
    width: 32px;
    height: 32px;
    opacity: 0.6;
}

.empty-cart-message p {
    font-size: 0.8rem;
    font-weight: 600;
}

.cart-item-row {
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
}

.cart-item-info {
    display: grid;
    grid-template-columns: 1fr 45px 75px;
    align-items: center;
}

.cart-item-name-block {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-item-modifiers-txt {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    font-style: italic;
    margin-top: 2px;
}

.cart-item-qty {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
}

.cart-item-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: right;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

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

.cart-qty-buttons {
    display: flex;
    align-items: center;
    background: var(--bg-app);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 2px;
}

.qty-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background 0.15s;
}

.qty-btn:hover {
    background: rgba(0,0,0,0.06);
    color: var(--text-primary);
}

body.dark-theme .qty-btn:hover {
    background: rgba(255,255,255,0.08);
}

/* Pricing totals */
.cart-totals-section {
    padding: 12px 16px;
    background: var(--bg-app);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.grand-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--orange-primary);
    border-top: 1.5px solid var(--border);
    padding-top: 8px;
    margin-top: 4px;
}

/* Payment settlement section */
.cart-payments-section {
    padding: 14px 16px;
}

.payment-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.pay-btn {
    padding: 10px 4px;
    background: var(--bg-app);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.pay-btn:hover {
    border-color: var(--antique-brass);
    background: var(--orange-light);
}

.pay-btn.cash {
    background: var(--success-light);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}
.pay-btn.cash:hover {
    background: var(--success);
    color: #fff;
}

.pay-btn.upi {
    background: rgba(194, 159, 104, 0.1);
    color: #9c7b41;
    border-color: rgba(194, 159, 104, 0.3);
}
.pay-btn.upi:hover {
    background: var(--antique-brass);
    color: #fff;
}

/* Bottom Floating Actions Drawer */
.pos-bottom-actions {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    background: var(--bg-sidebar);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 24px;
    z-index: 100;
}

body.sidebar-collapsed .pos-bottom-actions {
    left: 70px;
}

.pos-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.1s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.action-btn:active {
    transform: scale(0.97);
}

.action-btn.cancel {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}
.action-btn.cancel:hover {
    background: var(--danger);
    color: #fff;
}

/* MODIFIER POPUP & INVOICES SCROLLS */
.pos-modifier-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-app);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
}

.pos-modifier-option.selected {
    border-color: var(--orange-primary);
    background: var(--orange-light);
}

/* Printable / Thermal receipt layouts */
.receipt-container {
    color: #000;
    font-size: 12px;
    line-height: 1.4;
}

.receipt-header {
    text-align: center;
    margin-bottom: 16px;
}

.receipt-header h2 {
    font-weight: 800;
    margin: 0 0 4px 0;
    font-size: 16px;
}

.receipt-divider {
    border-top: 1px dashed #000;
    margin: 12px 0;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.receipt-item-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
}

.receipt-item-top {
    display: flex;
    justify-content: space-between;
}

.receipt-item-mods {
    font-size: 10px;
    font-style: italic;
    padding-left: 10px;
}

.receipt-totals {
    font-weight: bold;
    margin-top: 8px;
}

/* Print CSS Media rule overrides */
@media print {
    @page {
        size: 3.3in auto;
        margin: 0;
    }
    html, body {
        width: 3.3in;
        height: auto;
        margin: 0;
        padding: 0;
        background: #fff;
    }
    /* Hide layout and other modals */
    .app-layout, .modal-overlay:not(#modalPOSInvoice), .notification-drawer, .drawer-overlay {
        display: none !important;
    }
    #modalPOSInvoice {
        position: static !important;
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 3.3in !important;
    }
    #modalPOSInvoice .modal-content {
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 3.3in !important;
        max-width: 3.3in !important;
    }
    /* Hide modal header, actions and buttons */
    #modalPOSInvoice .modal-header, 
    #modalPOSInvoice .modal-footer, 
    #modalPOSInvoice .modal-close,
    #modalPOSInvoice .invoice-modal-header,
    #modalPOSInvoice .invoice-modal-actions {
        display: none !important;
    }
    #invoicePrintArea {
        display: block !important;
        width: 3.3in !important;
        max-width: 3.3in !important;
        padding: 4mm !important;
        margin: 0 !important;
        background: #fff !important;
        color: #000000 !important;
        box-sizing: border-box;
    }
    /* Force high-contrast, pure bold black text for thermal printers */
    #invoicePrintArea, 
    #invoicePrintArea * {
        color: #000000 !important;
        opacity: 1 !important;
        font-weight: 700 !important; /* Extremely bold/thick to prevent fading */
        font-size: 13px !important;
        line-height: 1.3 !important;
        font-family: 'Courier New', Courier, monospace !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    #invoicePrintArea h2 {
        font-size: 17px !important;
        font-weight: 900 !important;
        margin: 0 0 6px 0 !important;
    }
    #invoicePrintArea .receipt-divider {
        border-top: 2px dashed #000000 !important;
        margin: 10px 0 !important;
        height: 0 !important;
        background: none !important;
    }
}

/* ==========================================================================
   REDESIGNED POS BILLING SYSTEM ENTERPRISE STYLES
   ========================================================================== */

:root {
    --pos-cream-bg: #F8F3ED;
    --pos-espresso: #2E231F;
    --pos-beige: #C29F68;
    --pos-accent-green: #10B981;
    --pos-accent-red: #EF4444;
    --pos-card-shadow: 0 4px 20px rgba(46, 35, 31, 0.05);
    --pos-button-shadow: 0 2px 8px rgba(194, 159, 104, 0.2);
    --pos-font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Sidebar Collapsed State overrides */
body.sidebar-collapsed {
    --sidebar-width: 70px;
}
body.sidebar-collapsed .sidebar-brand-logo-container {
    opacity: 0;
    pointer-events: none;
    width: 0;
}
body.sidebar-collapsed .sidebar-nav span,
body.sidebar-collapsed .sidebar-nav .nav-badge,
body.sidebar-collapsed .role-dropdown-container,
body.sidebar-collapsed .nav-group-title {
    display: none !important;
}
body.sidebar-collapsed .nav-item {
    justify-content: center !important;
    padding: 12px 0 !important;
}
body.sidebar-collapsed .nav-item i {
    margin-right: 0 !important;
    width: 20px;
    height: 20px;
}
body.sidebar-collapsed .sidebar-collapse-toggle-btn {
    transform: rotate(180deg);
}

/* Base POS Grid Layout */
.pos-layout-grid-new {
    display: grid;
    grid-template-columns: 1fr 400px;
    height: calc(100% - 72px - 122px); /* 100% - header height (72px) - bottom dock container (122px) */
    gap: 16px;
    overflow: hidden;
    padding: 16px;
    background: #FAF8F5;
    box-sizing: border-box;
}

.pos-left-area-new {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    gap: 12px;
}

.pos-right-area-new {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto; /* Allow scrolling if squished on low-height screens */
    gap: 12px;
    padding-right: 4px;
}

/* Custom Side-by-Side Row in Right Pane */
.pos-right-top-row-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex-shrink: 0;
}

/* Make cards in the top row more compact */
.pos-right-top-row-new .checkout-card-new {
    padding: 10px 12px;
    margin: 0;
}

/* Style the service details card neatly */
.service-details-card-new {
    padding: 12px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(46, 35, 31, 0.05);
    box-shadow: var(--pos-card-shadow);
    flex-shrink: 0;
}

/* Compact stats badges */
.pos-right-top-row-new .customer-stats-grid-new {
    display: flex !important;
    justify-content: space-between;
    gap: 4px;
    margin-top: 6px;
}
.pos-right-top-row-new .stat-badge-new {
    flex: 1;
    padding: 4px;
    border-radius: 6px;
    border: none;
    background: var(--pos-cream-bg);
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}
.pos-right-top-row-new .stat-lbl-new {
    font-size: 0.52rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 2px;
}
.pos-right-top-row-new .stat-val-new {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--pos-espresso);
}

/* Scrollbar styling for POS right panel */
.pos-right-area-new::-webkit-scrollbar {
    width: 6px;
}
.pos-right-area-new::-webkit-scrollbar-track {
    background: transparent;
}
.pos-right-area-new::-webkit-scrollbar-thumb {
    background: rgba(46, 35, 31, 0.15);
    border-radius: 3px;
}

/* Premium Top Search & Utility Bar */
.pos-top-bar-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid rgba(46, 35, 31, 0.06);
    box-shadow: var(--pos-card-shadow);
}

.pos-search-box-new {
    display: flex;
    align-items: center;
    background: var(--pos-cream-bg);
    border: 1px solid rgba(46, 35, 31, 0.08);
    border-radius: 10px;
    padding: 4px 12px;
    flex: 1;
    max-width: 480px;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pos-search-box-new:focus-within {
    background: #ffffff;
    border-color: var(--pos-beige);
    box-shadow: 0 0 0 3px rgba(194, 159, 104, 0.2);
}

.search-icon-new {
    color: var(--pos-espresso);
    opacity: 0.6;
    width: 16px;
    height: 16px;
}

.pos-search-input-new {
    background: transparent;
    border: none;
    outline: none;
    color: var(--pos-espresso);
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
    height: 32px;
}

.search-utility-btn {
    background: none;
    border: none;
    color: var(--pos-espresso);
    opacity: 0.6;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.search-utility-btn:hover {
    background: rgba(46, 35, 31, 0.06);
    opacity: 1;
}

.search-utility-btn.recording {
    background: rgba(239, 68, 68, 0.1);
    color: var(--pos-accent-red);
    opacity: 1;
    animation: voicePulse 1.2s infinite;
}

@keyframes voicePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pos-filter-group-new {
    display: flex;
    gap: 8px;
}

.filter-action-btn {
    background: #ffffff;
    border: 1px solid rgba(46, 35, 31, 0.08);
    color: var(--pos-espresso);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.filter-action-btn:hover {
    background: var(--pos-cream-bg);
    border-color: rgba(46, 35, 31, 0.15);
}

.pos-sync-status-new {
    display: flex;
    align-items: center;
}

.status-pill-new {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 30px;
    letter-spacing: 0.5px;
}

.status-pill-new.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--pos-accent-green);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-pill-new.offline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--pos-accent-red);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.status-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.status-dot-pulse.bg-success {
    background: var(--pos-accent-green);
    animation: statusPulseGreen 1.5s infinite;
}
.status-dot-pulse.bg-danger {
    background: var(--pos-accent-red);
    animation: statusPulseRed 1.5s infinite;
}

@keyframes statusPulseGreen {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes statusPulseRed {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Category Tabs Slider & Custom Scroller */
.pos-categories-scroller-new {
    overflow-x: auto;
    white-space: nowrap;
    padding: 6px 2px 10px 2px;
}
.pos-categories-scroller-new::-webkit-scrollbar {
    height: 4px;
}
.pos-categories-scroller-new::-webkit-scrollbar-thumb {
    background: rgba(194, 159, 104, 0.2);
    border-radius: 4px;
}

.pos-category-tabs-new {
    display: inline-flex;
    gap: 10px;
}

.category-pill-new {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(46, 35, 31, 0.06);
    color: var(--pos-espresso);
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(46, 35, 31, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-pill-new i {
    width: 15px;
    height: 15px;
    opacity: 0.8;
}

.category-pill-new:hover {
    border-color: var(--pos-beige);
    background: var(--pos-cream-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194, 159, 104, 0.12);
}

.category-tab.category-pill-new.active {
    background: var(--pos-espresso) !important;
    color: #ffffff !important;
    border-color: var(--pos-espresso) !important;
    box-shadow: 0 4px 16px rgba(46, 35, 31, 0.25), 0 0 8px rgba(194, 159, 104, 0.4) !important;
    transform: translateY(-1px);
}

/* High-Density Apple/Stripe-styled Product Card Grid */
.pos-product-grid-new {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    overflow-y: auto;
    padding: 2px 2px 20px 2px;
}

.pos-product-tile {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(46, 35, 31, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--pos-card-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    height: 220px; /* Fixed height to prevent price/button footer clipping */
}

.pos-product-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(46, 35, 31, 0.08);
    border-color: var(--pos-beige);
}

.pos-product-tile.disabled {
    opacity: 0.65;
    pointer-events: none;
}

.tile-image-container {
    width: 100%;
    height: 110px;
    position: relative;
    overflow: hidden;
    background: var(--pos-cream-bg);
}

.tile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pos-product-tile:hover .tile-image {
    transform: scale(1.08);
}

.tile-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
}

.tile-top-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tile-category-tag {
    font-size: 0.6rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(46, 35, 31, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tile-popular-badge {
    font-size: 0.58rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--pos-beige);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.tile-chef-badge {
    font-size: 0.58rem;
    font-weight: 800;
    color: #2B241F;
    background: #E2C293;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(194, 159, 104, 0.4);
}

.tile-chef-badge i {
    width: 9px;
    height: 9px;
}

.tile-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: var(--text-tertiary);
    transition: all 0.2s ease;
}

.tile-fav-btn:hover {
    transform: scale(1.1);
    background: #ffffff;
}

.tile-fav-btn.active {
    color: var(--pos-accent-red);
}

.tile-fav-btn i {
    width: 12px;
    height: 12px;
}

.tile-bottom-meta {
    position: absolute;
    bottom: 6px;
    left: 8px;
    display: flex;
    gap: 8px;
    color: #ffffff;
}

.meta-item {
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
}

.meta-item i {
    width: 10px;
    height: 10px;
}

.tile-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tile-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 2px 0;
}

.tile-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--pos-espresso);
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em; /* Guarantee identical vertical spacing for title line wrapping */
    max-height: 2.5em;
}

.tile-veg-indicator {
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--pos-accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.tile-veg-indicator.non-veg {
    border-color: var(--pos-beige);
}

.tile-veg-indicator .dot {
    width: 5px;
    height: 5px;
    background: var(--pos-accent-green);
    border-radius: 50%;
}
.tile-veg-indicator.non-veg .dot {
    background: var(--pos-beige);
}

.tile-stock-row {
    margin-bottom: 8px;
}

.tile-stock-badge {
    font-size: 0.65rem;
    font-weight: 700;
}

.tile-stock-badge.in-stock {
    color: var(--text-tertiary);
}

.tile-stock-badge.low-stock {
    color: var(--pos-accent-red);
    font-weight: 800;
}

.tile-stock-badge.out-of-stock {
    color: var(--text-tertiary);
    font-style: italic;
}

.tile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.tile-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--pos-espresso);
}

.tile-action-wrapper {
    min-height: 28px;
    display: flex;
    align-items: center;
}

.tile-add-btn {
    background: #ffffff;
    border: 1px solid var(--pos-beige);
    color: var(--pos-espresso);
    font-family: var(--pos-font-sans);
    font-weight: 800;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.tile-add-btn:hover {
    background: var(--pos-espresso);
    color: #ffffff;
    border-color: var(--pos-espresso);
}

.tile-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(46, 35, 31, 0.15);
}

/* Transform catalog tile add to quantity counters */
.tile-qty-selector {
    display: flex;
    align-items: center;
    background: var(--pos-espresso);
    color: #ffffff;
    border-radius: 6px;
    padding: 2px 4px;
    gap: 8px;
}

.tile-qty-btn {
    background: none;
    border: none;
    color: #ffffff;
    opacity: 0.8;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.tile-qty-btn:hover {
    opacity: 1;
}

.tile-qty-btn i {
    width: 10px;
    height: 10px;
}

.tile-qty-val {
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 12px;
    text-align: center;
}

/* Right Checkout Components */
.checkout-card-new {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(46, 35, 31, 0.05);
    padding: 14px;
    box-shadow: var(--pos-card-shadow);
    display: flex;
    flex-direction: column;
}

.section-title-new {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pos-espresso);
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.section-title-new i {
    width: 14px;
    height: 14px;
}

/* Customer card details */
.customer-card-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-action-link {
    background: none;
    border: none;
    color: var(--pos-beige);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.text-action-link:hover {
    color: var(--pos-espresso);
}

.text-action-link i {
    width: 12px;
    height: 12px;
}

.pos-select-new {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(46, 35, 31, 0.08);
    border-radius: 8px;
    background: var(--pos-cream-bg);
    color: var(--pos-espresso);
    font-size: 0.82rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

.customer-stats-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.stat-badge-new {
    background: var(--pos-cream-bg);
    padding: 6px 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(46, 35, 31, 0.04);
}

.stat-lbl-new {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.stat-val-new {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--pos-espresso);
}

/* Service mode segmented key */
.service-segmented-control-new {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--pos-cream-bg);
    padding: 3px;
    border-radius: 10px;
    gap: 4px;
    margin-bottom: 12px;
}

.service-segmented-control-new .order-type-tab {
    padding: 6px 2px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--pos-espresso);
    opacity: 0.6;
    font-size: 0.65rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    flex-direction: column; /* Stack icon on top of text to prevent horizontal overflow */
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-segmented-control-new .order-type-tab i {
    width: 14px;
    height: 14px;
}

.service-segmented-control-new .order-type-tab.active {
    background: #ffffff;
    color: var(--pos-espresso);
    opacity: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.service-details-panel-new {
    animation: slideDownPanel 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownPanel {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.floor-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.floor-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.legend-row {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.legend-dot.available {
    background: var(--pos-accent-green);
}
.legend-dot.occupied {
    background: var(--pos-beige);
}

.pos-table-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.pos-mini-table-cell {
    background: var(--pos-cream-bg);
    border: 1.5px solid rgba(46, 35, 31, 0.08);
    border-radius: 8px;
    padding: 6px 4px;
    text-align: center;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pos-mini-table-cell:hover {
    border-color: var(--pos-beige);
}

.pos-mini-table-cell.available {
    background: rgba(16, 185, 129, 0.04);
    border-color: rgba(16, 185, 129, 0.2);
}
.pos-mini-table-cell.occupied {
    background: rgba(194, 159, 104, 0.04);
    border-color: rgba(194, 159, 104, 0.2);
}

.pos-mini-table-cell.active {
    border-color: var(--pos-espresso) !important;
    background: var(--pos-espresso) !important;
}

.pos-mini-table-cell.active * {
    color: #ffffff !important;
}

.table-name-lbl {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--pos-espresso);
}

.table-capacity-lbl {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-top: 1px;
}

.table-status-icon-mini {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    color: var(--text-tertiary);
}

.pos-mini-table-cell.available .table-status-icon-mini {
    color: var(--pos-accent-green);
}
.pos-mini-table-cell.occupied .table-status-icon-mini {
    color: var(--pos-beige);
}

.table-fallback-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-textarea-new {
    width: 100%;
    height: 60px;
    padding: 8px 12px;
    border: 1px solid rgba(46, 35, 31, 0.08);
    border-radius: 8px;
    background: var(--pos-cream-bg);
    color: var(--pos-espresso);
    font-family: var(--pos-font-sans);
    font-size: 0.8rem;
    outline: none;
    resize: none;
    transition: border-color 0.2s;
}

.pos-textarea-new:focus {
    border-color: var(--pos-beige);
}

/* Premium POS Cart Panel container */
.pos-cart-panel {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(46, 35, 31, 0.06);
    box-shadow: 0 4px 20px rgba(46, 35, 31, 0.03), 0 1px 3px rgba(46, 35, 31, 0.02);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-height: 180px; /* Reduced to ensure it can shrink on smaller viewports */
}

/* Integrated Cart Footer */
.pos-cart-footer-new {
    padding: 10px 16px;
    border-top: 1px solid rgba(46, 35, 31, 0.06);
    background: #FAF6F0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.pos-cart-footer-new .coupon-row-new {
    display: flex;
    gap: 8px;
}

.pos-cart-footer-new .pos-input-new {
    flex: 1;
    padding: 6px 10px;
    font-size: 0.75rem;
    border: 1px solid rgba(46, 35, 31, 0.12);
    border-radius: 8px;
    background: #ffffff;
    color: var(--pos-espresso);
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.pos-cart-footer-new .pos-input-new:focus {
    border-color: var(--pos-beige);
}

.pos-cart-footer-new .promo-apply-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    background: var(--pos-beige);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.pos-cart-footer-new .promo-apply-btn:hover {
    background: #a9834e;
}

.pos-cart-footer-new .instructions-row-new {
    width: 100%;
    box-sizing: border-box;
}

/* Header styling */
.pos-cart-header {
    height: 72px;
    background: linear-gradient(to bottom, #FAF6F0, #F4ECE1);
    border-bottom: 1px solid rgba(46, 35, 31, 0.08);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

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

.basket-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(194, 159, 104, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.pos-cart-header:hover .basket-circle {
    transform: scale(1.05) rotate(-5deg);
}

.basket-circle i {
    width: 20px;
    height: 20px;
    color: var(--pos-espresso);
}

.title-block {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cart-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--pos-espresso);
    letter-spacing: -0.3px;
}

.cart-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--pos-beige);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

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

/* Badges for stats */
.stats-badge {
    background: #ffffff;
    border: 1px solid rgba(46, 35, 31, 0.06);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 750;
    color: var(--pos-espresso);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.stats-badge:hover {
    border-color: var(--pos-beige);
    transform: translateY(-1px);
}

/* Header Actions */
.header-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(46, 35, 31, 0.06);
    background: #ffffff;
    color: rgba(46, 35, 31, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.header-action-btn i {
    width: 14px;
    height: 14px;
}

.header-action-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.2);
    transform: scale(1.05);
}

/* Body list */
.pos-cart-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 10px;
    background: #ffffff;
}

/* Premium Empty state */
.cart-empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 32px 16px;
    text-align: center;
    box-sizing: border-box;
}

.empty-illustration {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--pos-cream-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px dashed rgba(194, 159, 104, 0.2);
    transition: all 0.25s ease;
}

.cart-empty-state-container:hover .empty-illustration {
    transform: scale(1.06) rotate(5deg);
    border-color: var(--pos-beige);
}

.empty-illustration i {
    width: 36px;
    height: 36px;
    color: var(--pos-beige);
    opacity: 0.7;
}

.empty-headline {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--pos-espresso);
    margin-bottom: 4px;
}

.empty-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    max-width: 220px;
    line-height: 1.4;
    margin-bottom: 24px;
}

/* Quick Add section */
.quick-add-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(46, 35, 31, 0.05);
    padding-top: 16px;
}

.quick-add-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--pos-beige);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.quick-add-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 280px;
}

.quick-add-btn {
    background: var(--pos-cream-bg);
    border: 1px solid rgba(46, 35, 31, 0.06);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pos-espresso);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.quick-add-btn i {
    width: 12px;
    height: 12px;
    color: var(--pos-beige);
}

.quick-add-btn:hover {
    background: #ffffff;
    border-color: var(--pos-beige);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(194, 159, 104, 0.15);
}

.quick-add-btn:active {
    transform: translateY(0);
}

.cart-item-row-new {
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(46, 35, 31, 0.05);
    padding: 6px;
    transition: all 0.2s ease;
}

.cart-item-row-new.selected {
    background: rgba(194, 159, 104, 0.08) !important;
    border-left: 3px solid #C29F68;
    padding-left: 9px;
    border-radius: 8px;
}

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

.cart-item-thumb-new {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-desc-new {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title-new {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--pos-espresso);
}

.cart-item-mods-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 1px;
}

.cart-mod-tag {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--pos-beige);
}

.cart-item-qty-actions {
    display: flex;
    align-items: center;
    background: var(--pos-cream-bg);
    border-radius: 6px;
    padding: 2px;
    gap: 4px;
}

.cart-qty-btn-new {
    background: none;
    border: none;
    color: var(--pos-espresso);
    opacity: 0.7;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.15s;
}

.cart-qty-btn-new:hover {
    background: rgba(46, 35, 31, 0.06);
    opacity: 1;
}

.cart-qty-btn-new i {
    width: 10px;
    height: 10px;
}

.cart-qty-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--pos-espresso);
    min-width: 14px;
    text-align: center;
}

.cart-item-subtotal-new {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--pos-espresso);
    min-width: 60px;
    text-align: right;
}

.cart-item-instructions-row-new {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-left: 40px;
}

.notes-icon-mini {
    width: 11px;
    height: 11px;
    color: var(--text-tertiary);
}

.cart-item-notes-input-new {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid transparent;
    outline: none;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex: 1;
    padding: 2px 0;
    transition: border-color 0.2s;
}

.cart-item-notes-input-new:focus {
    border-color: var(--pos-beige);
    color: var(--pos-espresso);
}

.cart-item-customize-link {
    background: none;
    border: none;
    color: var(--pos-beige);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
}

.cart-item-customize-link:hover {
    color: var(--pos-espresso);
}

.cart-item-customize-link i {
    width: 10px;
    height: 10px;
}

.cart-item-delete-btn {
    background: none;
    border: none;
    color: var(--pos-accent-red);
    opacity: 0.7;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.cart-item-delete-btn:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.08);
}

.cart-item-delete-btn i {
    width: 12px;
    height: 12px;
}

/* Coupon card details */
.coupon-row-new {
    display: flex;
    gap: 8px;
}

.pos-input-new {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(46, 35, 31, 0.08);
    border-radius: 8px;
    background: var(--pos-cream-bg);
    color: var(--pos-espresso);
    font-size: 0.8rem;
    font-weight: 700;
    outline: none;
}

.promo-apply-btn {
    background: var(--pos-espresso);
    color: #ffffff;
    border: none;
    font-family: var(--pos-font-sans);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.promo-apply-btn:hover {
    opacity: 0.9;
}

.pos-textarea-sm-new {
    width: 100%;
    height: 40px;
    padding: 6px 12px;
    border: 1px solid rgba(46, 35, 31, 0.08);
    border-radius: 8px;
    background: var(--pos-cream-bg);
    color: var(--pos-espresso);
    font-family: var(--pos-font-sans);
    font-size: 0.75rem;
    outline: none;
    resize: none;
    transition: border-color 0.2s;
}

.pos-textarea-sm-new:focus {
    border-color: var(--pos-beige);
}

/* Ledgers & Totals layout */
.pricing-ledger-card-new {
    background: var(--pos-espresso);
    color: #ffffff;
    border: none;
    gap: 6px;
    flex-shrink: 0; /* Keep totals pinned at bottom */
}

.quick-pay-card-new {
    flex-shrink: 0; /* Keep pay buttons pinned at bottom */
}

.ledger-row-new {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.85;
}

.ledger-row-new.discount {
    opacity: 1;
}

.ledger-divider-new {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 4px 0;
}

.grand-due-row-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.due-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    opacity: 0.6;
}

.due-val {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.due-val.value-changing {
    transform: scale(1.08);
}

/* Complete settlement buttons keys */
.payment-action-buttons-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pay-btn-new {
    background: var(--pos-cream-bg);
    border: 1px solid rgba(46, 35, 31, 0.06);
    color: var(--pos-espresso);
    border-radius: 10px;
    padding: 10px 4px;
    font-family: var(--pos-font-sans);
    font-weight: 800;
    font-size: 0.72rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.pay-btn-new i {
    width: 16px;
    height: 16px;
}

.pay-btn-new:hover {
    transform: translateY(-1px);
    border-color: var(--pos-beige);
    box-shadow: 0 4px 10px rgba(194, 159, 104, 0.15);
}

.pay-btn-new.cash {
    background: rgba(16, 185, 129, 0.08);
    color: var(--pos-accent-green);
    border-color: rgba(16, 185, 129, 0.15);
}

.pay-btn-new.cash:hover {
    background: var(--pos-accent-green);
    color: #ffffff;
}

.pay-btn-new.upi {
    background: rgba(194, 159, 104, 0.08);
    color: #9f7c46;
    border-color: rgba(194, 159, 104, 0.15);
}

.pay-btn-new.upi:hover {
    background: var(--pos-beige);
    color: #ffffff;
}

/* ─── PREMIUM ENTERPRISE BOTTOM COMMAND DOCK ────────────────────────────── */

.pos-command-dock-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 200;
    background: rgba(43, 36, 31, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1.5px solid rgba(194, 159, 104, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 -10px 40px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Status Strip */
.pos-status-strip {
    background: #1F1A16;
    border-bottom: 1px solid rgba(194, 159, 104, 0.08);
    height: 32px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--pos-font-sans);
    font-size: 0.73rem;
    color: #A89F95;
    box-sizing: border-box;
}

.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

/* Status dots */
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.green {
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
}

.status-dot.gold {
    background: #C29F68;
    box-shadow: 0 0 8px #C29F68;
}

/* Main command dock */
.pos-command-dock {
    height: 90px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    gap: 12px;
}

.dock-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.dock-group:first-child {
    justify-content: flex-start;
}

.dock-group:nth-child(3) {
    justify-content: center;
    flex: 1.2;
}

.dock-group:last-child {
    justify-content: flex-end;
    flex: 1.5;
}

.dock-divider {
    width: 1px;
    height: 48px;
    background: rgba(194, 159, 104, 0.15);
    margin: 0 8px;
    flex-shrink: 0;
}

/* Rounded rectangular enterprise buttons */
.dock-btn {
    height: 72px;
    flex: 1;
    min-width: 80px;
    border-radius: 12px;
    border: 1px solid rgba(194, 159, 104, 0.12);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.dock-btn i {
    width: 22px;
    height: 22px;
    color: #C29F68;
    transition: transform 0.2s ease;
}

.dock-btn span.title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--pos-font-sans);
}

.dock-btn span.shortcut {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(194, 159, 104, 0.55);
    text-transform: uppercase;
    font-family: var(--pos-font-sans);
}

/* Button variants */
.dock-btn.neutral-dark {
    background: rgba(255, 255, 255, 0.05);
}

.dock-btn.neutral-dark:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(194, 159, 104, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dock-btn.cancel-btn {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.25);
}

.dock-btn.cancel-btn i {
    color: #EF4444;
}

.dock-btn.cancel-btn:hover {
    background: #EF4444;
    border-color: #EF4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.dock-btn.cancel-btn:hover i, .dock-btn.cancel-btn:hover span.title {
    color: #ffffff;
}

.dock-btn.cancel-btn:hover span.shortcut {
    color: rgba(255, 255, 255, 0.8);
}

.dock-btn.refund-btn {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.25);
}

.dock-btn.refund-btn i {
    color: #F59E0B;
}

.dock-btn.refund-btn:hover {
    background: #F59E0B;
    border-color: #F59E0B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.dock-btn.refund-btn:hover i, .dock-btn.refund-btn:hover span.title {
    color: #ffffff;
}

.dock-btn.refund-btn:hover span.shortcut {
    color: rgba(255, 255, 255, 0.8);
}

.dock-btn.blue-btn {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.25);
}

.dock-btn.blue-btn i {
    color: #3B82F6;
}

.dock-btn.blue-btn:hover {
    background: #3B82F6;
    border-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dock-btn.blue-btn:hover i, .dock-btn.blue-btn:hover span.title {
    color: #ffffff;
}

.dock-btn.blue-btn:hover span.shortcut {
    color: rgba(255, 255, 255, 0.8);
}

/* Gradient gold payment button */
.dock-btn.payment-btn {
    flex: 1.5;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border-color: #F59E0B;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
    min-width: 190px;
}

.dock-btn.payment-btn i {
    color: #2B241F;
    width: 24px;
    height: 24px;
}

.dock-btn.payment-btn .payment-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.dock-btn.payment-btn .payment-btn-text small {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(43, 36, 31, 0.8);
}

.dock-btn.payment-btn .payment-btn-text span {
    font-size: 1.15rem;
    font-weight: 900;
    color: #2B241F;
    letter-spacing: -0.5px;
}

.dock-btn.payment-btn .payment-action-text {
    font-size: 0.9rem;
    font-weight: 800;
    color: #2B241F;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dock-btn.payment-btn:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.6), 0 0 15px rgba(245, 158, 11, 0.4);
}

.dock-btn.payment-btn:hover .payment-action-text {
    background: rgba(255, 255, 255, 0.35);
}

/* Active pressed status */
.dock-btn:active {
    transform: translateY(0) scale(0.97) !important;
    box-shadow: 0 0 0 2px rgba(194, 159, 104, 0.4) !important;
}

/* Make sure main containers have padding bottom to prevent dock overlap */
.pos-layout-grid-new {
    margin-bottom: 122px; /* Clears status strip + dock */
}

.sidebar {
    padding-bottom: 24px;
}

@media (max-width: 900px) {
    .pos-command-dock {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
        gap: 8px;
    }
    .dock-group {
        flex: 1 1 auto;
        justify-content: center !important;
    }
    .dock-divider {
        display: none;
    }
    .pos-layout-grid-new {
        height: calc(100% - 72px - 210px); /* Adjust height to match larger wrapped bottom dock */
        margin-bottom: 210px; /* larger padding-bottom for wrapped dock */
    }
}

/* ─── NEW POS TOP COMMAND BAR ────────────────────────────────── */

.pos-top-command-bar {
    height: 72px;
    background: #2B241F; /* Deep Espresso background to match bottom dock */
    border-bottom: 1px solid rgba(194, 159, 104, 0.15); /* warm luxury highlight line */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

/* Left Brand info */
.command-bar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #C29F68, #E2C293);
    color: #2B241F;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(194, 159, 104, 0.3);
}

.brand-logo i {
    width: 22px;
    height: 22px;
}

.brand-details {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.branch-pill {
    font-size: 0.65rem;
    font-weight: 700;
    color: #C29F68;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Center Search box */
.command-bar-search {
    flex: 1;
    max-width: 480px;
    margin: 0 24px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0 14px;
    height: 44px;
    gap: 10px;
    transition: all 0.25s ease;
}

.search-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: #C29F68;
    box-shadow: 0 0 0 3px rgba(194, 159, 104, 0.2);
}

.search-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    flex: 1;
}

.search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.search-icon {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.search-util-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.search-util-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #C29F68;
}

.search-util-btn i {
    width: 15px;
    height: 15px;
}

/* Right Actions block */
.command-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-sort-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-sort-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #C29F68;
    color: #C29F68;
    transform: translateY(-1px);
}

.filter-sort-btn i {
    width: 15px;
    height: 15px;
}

.sync-status-indicator {
    display: flex;
    align-items: center;
}

.sync-badge-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 750;
    padding: 6px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.sync-badge-pill.online {
    background: rgba(46, 204, 113, 0.12);
    color: #2ECC71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.sync-badge-pill.offline {
    background: rgba(231, 76, 60, 0.12);
    color: #E74C3C;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.sync-dot-active {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ECC71;
    box-shadow: 0 0 8px #2ECC71;
}

.sync-dot-inactive {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E74C3C;
}

.printer-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 750;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.clock-display {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   BANKING & CASH RECONCILIATION SCREEN STYLES
   ========================================================================== */

#screen-cash-reconciliation {
    background: #F8FAFC;
    padding: 24px !important;
    overflow-y: auto;
}

.screen-header-layout-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.green-accent-btn {
    background: #10B981 !important;
    color: #ffffff !important;
    border: none !important;
}

.green-accent-btn:hover {
    background: #059669 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

/* 9-Card Summary Grid */
.recon-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.recon-stat-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

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

/* Highlight Ideal, Actual and Variance cards */
.recon-stat-card.highlight {
    background: #F0FDF4;
    border-color: #A7F3D0;
}
.recon-stat-card.highlight:hover {
    border-color: #6EE7B7;
}

.recon-stat-card.highlight-variance {
    background: #FFF;
    border-color: #E2E8F0;
}
.recon-stat-card.highlight-variance.matched {
    background: #F0FDF4;
    border-color: #A7F3D0;
}
.recon-stat-card.highlight-variance.excess {
    background: #EFF6FF;
    border-color: #BFDBFE;
}
.recon-stat-card.highlight-variance.short {
    background: #FEF2F2;
    border-color: #FECACA;
}

.recon-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.recon-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recon-stat-icon-wrapper {
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.recon-stat-icon-wrapper i {
    width: 14px;
    height: 14px;
}

.recon-stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    margin: 4px 0;
    font-family: var(--pos-font-sans);
}

.recon-stat-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: #64748B;
    margin-top: 4px;
}

.trend-indicator {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 1px;
}
.trend-indicator.positive {
    color: #10B981;
}
.trend-indicator.negative {
    color: #EF4444;
}
.trend-indicator.neutral {
    color: #64748B;
}
.trend-indicator i {
    width: 10px;
    height: 10px;
}

/* Filters and Actions Bar */
.recon-filter-bar {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.recon-filter-left {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
}

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

.filter-input-group label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recon-form-input, .recon-form-select {
    padding: 8px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #0F172A;
    background: #ffffff;
    font-family: inherit;
    outline: none;
    min-width: 120px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
    transition: border-color 0.2s ease;
}

.recon-form-input:focus, .recon-form-select:focus {
    border-color: #10B981;
}

.filter-input-group.search-box {
    flex: 1;
    min-width: 180px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 10px;
    width: 14px;
    height: 14px;
    color: #94A3B8;
}

.search-input-wrapper input {
    width: 100%;
    padding-left: 32px;
    padding-right: 12px;
    height: 34px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.82rem;
    outline: none;
}
.search-input-wrapper input:focus {
    border-color: #10B981;
}

.recon-filter-right {
    display: flex;
    gap: 8px;
}

/* Main Layout Grid */
.recon-content-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.recon-table-section {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.section-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0F172A;
}

.recon-pagination-info {
    font-size: 0.72rem;
    color: #64748B;
}

.recon-table-wrapper {
    overflow-x: auto;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
}

.recon-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.recon-table th {
    background: #F8FAFC;
    color: #64748B;
    font-weight: 700;
    padding: 10px 12px;
    border-bottom: 1px solid #E2E8F0;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    user-select: none;
    white-space: nowrap;
}

.recon-table th.sortable {
    cursor: pointer;
}
.recon-table th.sortable:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.recon-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #E2E8F0;
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
}

.recon-table tbody tr {
    cursor: pointer;
    transition: background 0.15s ease;
}

.recon-table tbody tr:hover {
    background: #F8FAFC;
}

.recon-table tbody tr:active {
    background: #F1F5F9;
}

.sort-icon-mini {
    width: 10px;
    height: 10px;
    margin-left: 2px;
    opacity: 0.5;
}

/* Status Badges */
.status-badge-recon {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.status-badge-recon.matched {
    background: #ECFDF5;
    color: #059669;
    border-color: #A7F3D0;
}

.status-badge-recon.excess {
    background: #EFF6FF;
    color: #2563EB;
    border-color: #BFDBFE;
}

.status-badge-recon.short {
    background: #FEF2F2;
    color: #DC2626;
    border-color: #FECACA;
}

.status-badge-recon.balanced {
    background: #ECFDF5;
    color: #059669;
    border-color: #A7F3D0;
}

.status-badge-recon.pending {
    background: #FFFBEB;
    color: #D97706;
    border-color: #FDE68A;
}

.status-badge-recon.difference {
    background: #FEF2F2;
    color: #DC2626;
    border-color: #FECACA;
}

.status-badge-recon.secondary {
    background: #F1F5F9;
    color: #475569;
    border-color: #E2E8F0;
}

/* Actions */
.recon-table-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748B;
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.recon-table-action-btn:hover {
    background: #F1F5F9;
    color: #0F172A;
}
.recon-table-action-btn i {
    width: 14px;
    height: 14px;
}

/* Pagination Row */
.recon-pagination-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.recon-page-indicators {
    display: flex;
    gap: 4px;
}

.recon-page-btn {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    color: #475569;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recon-page-btn:hover {
    border-color: #CBD5E1;
    color: #0F172A;
}

.recon-page-btn.active {
    background: #10B981;
    color: #ffffff;
    border-color: #10B981;
}

/* Sidebar Section */
.recon-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recon-insights-panel {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.insights-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.insights-title i {
    width: 14px;
    height: 14px;
    color: #10B981;
}

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

.insight-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.75rem;
}
.insight-row:last-child {
    border-bottom: none;
}

.insight-label {
    color: #64748B;
    font-weight: 600;
}

.insight-value {
    color: #0F172A;
    font-weight: 800;
}

.recon-charts-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.charts-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}
.charts-title i {
    width: 14px;
    height: 14px;
    color: #10B981;
}

.recon-chart-container {
    margin-bottom: 18px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 14px;
}
.recon-chart-container:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.chart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.ratio-text {
    color: #10B981;
}

.progress-bar-container-recon {
    display: flex;
    height: 12px;
    border-radius: 20px;
    background: #F1F5F9;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    height: 100%;
}
.progress-bar-fill.cash {
    background: #34D399;
}
.progress-bar-fill.digital {
    background: #3B82F6;
}

.progress-legend {
    display: flex;
    gap: 12px;
    font-size: 0.68rem;
    font-weight: 700;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748B;
}

.legend-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.legend-color.cash {
    background: #34D399;
}
.legend-color.digital {
    background: #3B82F6;
}

/* Dynamic visual representation bars */
.trend-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 60px;
    padding-top: 10px;
    gap: 4px;
}

.chart-bar-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.chart-bar-fill {
    width: 8px;
    border-radius: 4px;
    background: #E2E8F0;
    min-height: 4px;
    transition: all 0.3s ease;
}

.chart-bar-fill.sales-fill {
    background: #10B981;
}
.chart-bar-fill.deposit-fill {
    background: #3B82F6;
    margin-top: 2px;
}

.chart-bar-column:hover .chart-bar-fill.sales-fill {
    background: #059669;
}

.variance-line-chart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: relative;
    gap: 4px;
}

.variance-chart-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94A3B8;
    position: relative;
    display: flex;
    justify-content: center;
    transition: all 0.2s ease;
}

.variance-chart-dot:hover {
    transform: scale(1.4);
}

.variance-chart-dot.zero {
    background: #10B981;
}
.variance-chart-dot.positive {
    background: #3B82F6;
}
.variance-chart-dot.negative {
    background: #EF4444;
}

/* Slide-in Detail Drawer System */
.recon-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: none;
}

.recon-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.recon-drawer.active {
    transform: translateX(-420px);
}

.recon-drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-pretitle {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}

.drawer-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748B;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.drawer-close-btn:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.recon-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-badges-row {
    display: flex;
    gap: 8px;
    margin-bottom: -4px;
}

.drawer-section {
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 16px;
}
.drawer-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.drawer-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.drawer-section-title i {
    width: 12px;
    height: 12px;
    color: #64748B;
}

.drawer-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.drawer-detail-grid.highlight {
    grid-template-columns: 1fr;
    background: #F8FAFC;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    gap: 6px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-item.font-bold {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.detail-item.variance-row {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
}
.detail-item.variance-row.matched {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #059669;
}
.detail-item.variance-row.excess {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #2563EB;
}
.detail-item.variance-row.short {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
}

.detail-lbl {
    font-size: 0.7rem;
    color: #64748B;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-lbl i.label-icon {
    width: 10px;
    height: 10px;
}
.detail-lbl i.label-icon.cash {
    color: #10B981;
}
.detail-lbl i.label-icon.upi {
    color: #3B82F6;
}
.detail-lbl i.label-icon.card {
    color: #8B5CF6;
}

.detail-item strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0F172A;
}

.detail-divider {
    height: 1px;
    background: #CBD5E1;
    margin: 4px 0;
}

/* Upload Slip Component */
.slip-upload-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.slip-preview-box {
    height: 100px;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.72rem;
    color: #64748B;
    background: #F8FAFC;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.slip-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slip-preview-box .placeholder-icon {
    width: 24px;
    height: 24px;
    color: #94A3B8;
}

.recon-textarea-drawer {
    width: 100%;
    height: 60px;
    padding: 8px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.75rem;
    resize: none;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.recon-textarea-drawer:focus {
    border-color: #10B981;
}

.drawer-approval-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8FAFC;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.approval-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.approval-info strong {
    font-size: 0.78rem;
    color: #0F172A;
}

.approval-info span {
    font-size: 0.65rem;
    color: #64748B;
}

/* Custom check switch toggle */
.saas-toggle-recon {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.saas-toggle-recon input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider-recon {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    transition: .3s;
    border-radius: 20px;
}

.toggle-slider-recon:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.saas-toggle-recon input:checked + .toggle-slider-recon {
    background-color: #10B981;
}

.saas-toggle-recon input:checked + .toggle-slider-recon:before {
    transform: translateX(16px);
}

/* Audit log list */
.drawer-audit-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
}

.audit-log-item {
    font-size: 0.68rem;
    color: #64748B;
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #E2E8F0;
}
.audit-log-item:last-child {
    border-bottom: none;
}

.audit-log-text {
    font-weight: 500;
}

.audit-log-time {
    color: #94A3B8;
}

.recon-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ==========================================================================
   EXCEL IMPORT & AUTOMATION MODULE STYLES
   ========================================================================== */

#screen-excel-import {
    background: #F8FAFC;
    padding: 24px !important;
    overflow-y: auto;
}

/* Stepper Wizard Indicator Header */
.excel-wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0;
    background: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94A3B8;
    font-size: 0.8rem;
    font-weight: 700;
}

.step-indicator.active {
    color: #10B981;
}

.step-indicator.completed {
    color: #059669;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: #475569;
}

.step-indicator.active .step-num {
    background: #ECFDF5;
    border-color: #10B981;
    color: #10B981;
}

.step-indicator.completed .step-num {
    background: #10B981;
    border-color: #10B981;
    color: #ffffff;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #E2E8F0;
    margin: 0 16px;
}

.step-indicator.completed + .step-line {
    background: #10B981;
}

/* Wizard Steps Area */
.excel-wizard-main {
    margin-bottom: 24px;
}

.excel-wizard-step {
    animation: fadeIn 0.25s ease-out;
}

/* Card layout wrapper */
.excel-card-new {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Drag & Drop File Zone */
.excel-drop-zone {
    background: #ffffff;
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.excel-drop-zone:hover, .excel-drop-zone.dragover {
    border-color: #10B981;
    background: #F0FDF4;
}

.upload-icon-large {
    width: 48px;
    height: 48px;
    color: #94A3B8;
    margin-bottom: 16px;
    transition: color 0.25s ease;
}

.excel-drop-zone:hover .upload-icon-large, .excel-drop-zone.dragover .upload-icon-large {
    color: #10B981;
}

.excel-drop-zone h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0 0 4px;
}

.excel-drop-zone p {
    font-size: 0.75rem;
    color: #64748B;
    margin: 0;
}

/* Progress bar indicator */
.excel-progress-container {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    padding: 12px 16px;
}

.excel-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.excel-progress-bar-bg {
    height: 6px;
    background: #F1F5F9;
    border-radius: 10px;
    overflow: hidden;
}

.excel-progress-bar-fill {
    height: 100%;
    background: #10B981;
    transition: width 0.15s linear;
}

/* Step 2 Split grid layout */
.excel-step-layout-split {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.excel-step-left {
    display: flex;
    flex-direction: column;
}

.excel-step-right {
    display: flex;
    flex-direction: column;
}

.excel-mapping-wrapper {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
}

.excel-mapping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.excel-mapping-table th {
    background: #F8FAFC;
    color: #64748B;
    font-weight: 700;
    padding: 8px 12px;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.excel-mapping-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #E2E8F0;
    color: #334155;
    font-weight: 600;
}

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

.help-card {
    background: #FEF3C7;
    border-color: #FDE68A;
    color: #92400E;
}

.help-card h3 {
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
}

.help-card h3 i {
    width: 14px;
    height: 14px;
}

.help-card ul {
    margin: 0;
    padding-left: 16px;
    font-size: 0.72rem;
    line-height: 1.5;
}

.help-card li {
    margin-bottom: 8px;
}
.help-card li:last-child {
    margin-bottom: 0;
}

/* Wizard Control Action buttons */
.excel-wizard-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

/* Cell validation tag flags */
.validation-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 750;
    text-transform: uppercase;
}

.validation-badge.valid {
    background: #ECFDF5;
    color: #059669;
}

.validation-badge.warning {
    background: #FFFBEB;
    color: #D97706;
}

.validation-badge.duplicate {
    background: #EFF6FF;
    color: #2563EB;
}

.validation-badge.error {
    background: #FEF2F2;
    color: #DC2626;
}

/* Step 4 Success metric card */
.success-summary-card {
    border-color: #A7F3D0;
    background: #ffffff;
}

.excel-stats-grid {
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
    padding: 12px 0;
}

.excel-stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.excel-stats-item strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
}

.excel-stats-item span {
    font-size: 0.68rem;
    color: #64748B;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
}

.excel-history-section .recon-table th {
    font-size: 0.65rem;
    padding: 8px 12px;
}

.excel-history-section .recon-table td {
    padding: 8px 12px;
}

/* Custom cell validation stylings for AG-Grid Community */
.cell-valid {
    background-color: #ECFDF5 !important;
    color: #065F46 !important;
}
.cell-warning {
    background-color: #FEF3C7 !important;
    color: #92400E !important;
}
.cell-error {
    background-color: #FEF2F2 !important;
    color: #991B1B !important;
}
.cell-duplicate {
    background-color: #FFF3E0 !important;
    color: #E65100 !important;
}

/* Custom styles for AG-Grid header dropdown and label */
.ag-header-mapping-dropdown {
    width: 90%;
    margin-top: 4px;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #1E293B;
}

/* Header badge styles */
.ag-header-mapping-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-left: 4px;
    display: inline-block;
}

.excel-step-right {
    display: flex;
    flex-direction: column;
}

.excel-mapping-wrapper {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
}

.excel-mapping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.excel-mapping-table th {
    background: #F8FAFC;
    color: #64748B;
    font-weight: 700;
    padding: 8px 12px;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.excel-mapping-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #E2E8F0;
    color: #334155;
    font-weight: 600;
}

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

.help-card {
    background: #FEF3C7;
    border-color: #FDE68A;
    color: #92400E;
}

.help-card h3 {
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
}

.help-card h3 i {
    width: 14px;
    height: 14px;
}

.help-card ul {
    margin: 0;
    padding-left: 16px;
    font-size: 0.72rem;
    line-height: 1.5;
}

.help-card li {
    margin-bottom: 8px;
}
.help-card li:last-child {
    margin-bottom: 0;
}

/* Wizard Control Action buttons */
.excel-wizard-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

/* Cell validation tag flags */
.validation-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 750;
    text-transform: uppercase;
}

.validation-badge.valid {
    background: #ECFDF5;
    color: #059669;
}

.validation-badge.warning {
    background: #FFFBEB;
    color: #D97706;
}

.validation-badge.duplicate {
    background: #EFF6FF;
    color: #2563EB;
}

.validation-badge.error {
    background: #FEF2F2;
    color: #DC2626;
}

/* Step 4 Success metric card */
.success-summary-card {
    border-color: #A7F3D0;
    background: #ffffff;
}

.excel-stats-grid {
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
    padding: 12px 0;
}

.excel-stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.excel-stats-item strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
}

.excel-stats-item span {
    font-size: 0.68rem;
    color: #64748B;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
}

.excel-history-section .recon-table th {
    font-size: 0.65rem;
    padding: 8px 12px;
}

.excel-history-section .recon-table td {
    padding: 8px 12px;
}

/* Custom cell validation stylings for AG-Grid Community */
.cell-valid {
    background-color: #ECFDF5 !important;
    color: #065F46 !important;
}
.cell-warning {
    background-color: #FEF3C7 !important;
    color: #92400E !important;
}
.cell-error {
    background-color: #FEF2F2 !important;
    color: #991B1B !important;
}
.cell-duplicate {
    background-color: #FFF3E0 !important;
    color: #E65100 !important;
}

/* Custom styles for AG-Grid header dropdown and label */
.ag-header-mapping-dropdown {
    width: 90%;
    margin-top: 4px;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #1E293B;
}

/* Header badge styles */
.ag-header-mapping-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-left: 4px;
    display: inline-block;
}
.ag-header-mapping-badge.mapped {
    background-color: #D1FAE5;
    color: #065F46;
}
.ag-header-mapping-badge.unmapped {
    background-color: #F1F5F9;
    color: #64748B;
}

/* Payment Select Modal Option Hover Effects */
.payment-select-option {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.payment-select-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 35, 31, 0.12);
}

.payment-select-option.cash:hover {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

.payment-select-option.upi:hover {
    background: var(--pos-beige) !important;
    color: #ffffff !important;
    border-color: var(--pos-beige) !important;
}

.payment-select-option.card:hover {
    background: var(--pos-espresso) !important;
    color: #ffffff !important;
    border-color: var(--pos-espresso) !important;
}

/* Stock Requisitions & PO CSS Styles */
.segmented-nav-btn {
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.82rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.segmented-nav-btn:hover {
    background: var(--bg-hover);
    color: var(--pos-espresso);
    border-color: var(--pos-espresso);
}
.segmented-nav-btn.active {
    background: var(--pos-espresso);
    color: #ffffff;
    border-color: var(--pos-espresso);
    box-shadow: 0 4px 10px rgba(46, 35, 31, 0.15);
}

.branch-top-sales-grid div,
#bmRequisitionStockTable,
#adminRequisitionsQueueList .widget-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#adminRequisitionsQueueList .widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 35, 31, 0.06);
}

/* UPI Payment Dialog pulsate animations */
@keyframes payPulsate {
    0% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); opacity: 0.95; }
}

#payModalAmount {
    animation: payPulsate 2s infinite ease-in-out;
}



/* Premium Segmented Control & Buttons Styling */
.segmented-control {
    display: inline-flex;
    background: rgba(46, 35, 31, 0.05);
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
    border: 1px solid rgba(46, 35, 31, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.segmented-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: calc(var(--radius-md) - 2px);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.segmented-btn:hover {
    color: var(--text-primary);
    background: rgba(46, 35, 31, 0.03);
}

.segmented-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}

/* Specific styling context for dark mode/alternate settings */
.dark-theme .segmented-control {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.03);
}

.dark-theme .segmented-btn {
    color: rgba(255, 255, 255, 0.6);
}

.dark-theme .segmented-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.dark-theme .segmented-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Branded active styles for Swiggy/Zomato filter buttons */
#btnFilterPlatformSwiggy.active {
    background: #FF6B00 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25) !important;
}

#btnFilterPlatformZomato.active {
    background: #CB202D !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(203, 32, 45, 0.25) !important;
}


/* --- PREMIUM DELIVERY ORDERS UI --- */
.delivery-card-premium {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.04);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.delivery-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Status Timeline */
.delivery-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 12px 0 20px 0;
}

.delivery-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #f1f5f9;
    z-index: 0;
    transform: translateY(-50%);
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 1;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #f1f5f9;
    transition: all 0.3s ease;
}

.timeline-step.active .timeline-dot {
    background: var(--brand-blue, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.timeline-step.completed .timeline-dot {
    background: var(--success, #10b981);
    box-shadow: 0 0 0 2px var(--success, #10b981);
}

.timeline-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-step.active .timeline-label {
    color: var(--text-primary);
}

/* Premium Badges */
.badge-swiggy {
    background: linear-gradient(135deg, #FF8A00 0%, #FF6B00 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
}

.badge-zomato {
    background: linear-gradient(135deg, #E23744 0%, #CB202D 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(203, 32, 45, 0.2);
}

/* Action Button Gradients */
.btn-accept {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}
.btn-accept:hover {
    transform: scale(0.98);
}

.btn-ready {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}
.btn-ready:hover {
    transform: scale(0.98);
}

.btn-dispatch {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}
.btn-dispatch:hover {
    transform: scale(0.98);
}

.btn-cancel-ghost {
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
}
.btn-cancel-ghost:hover {
    background: #fef2f2;
}

/* Enhanced Item List */
.delivery-item-list {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(0,0,0,0.03);
}

.delivery-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.delivery-item-qty {
    background: #e2e8f0;
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.75rem;
}


/* --- TRAINING & SOPS UI --- */
.training-layout-split {
    display: flex;
    gap: 24px;
    height: calc(100vh - 180px);
    overflow: hidden;
}

.training-sidebar {
    width: 300px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 16px;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.training-module-card {
    padding: 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.training-module-card:hover {
    background: #f1f5f9;
}

.training-module-card.active {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.training-module-card h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.training-module-card p {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.training-content-viewer {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 32px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.training-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
    text-align: center;
}

.training-empty-state h2 {
    font-size: 1.25rem;
    color: #334155;
    margin-bottom: 8px;
}

.training-empty-state p {
    font-size: 0.9rem;
}

.sop-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 24px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.sop-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 20px;
    margin-bottom: 12px;
}

.sop-content p {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 12px;
}

.sop-content ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.sop-content li {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 8px;
}

.sop-content .sop-highlight {
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #92400e;
}
