/* --- Global Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
}

body {
    background: #f8f9fa;
    background: linear-gradient(135deg, #ff9a44 0%, #fc6076 100%);
    height: 100vh;
    overflow: hidden;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Container එකට Layout Fixes */
.main-content, .dashboard-wrapper, .container-fluid {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 110px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 15px rgba(231, 76, 60, 0.3));
}

.loader-text {
    font-size: 32px;
    font-weight: 800;
    color: #1f1c2c;
    margin-bottom: 35px;
    letter-spacing: -1px;
}

.timeline-container {
    width: 320px;
    height: 6px;
    background: #f1f2f6;
    border-radius: 10px;
    position: relative;
    margin: 0 auto 15px;
    overflow: hidden;
}

.timeline-bar {
    width: 0%;
    height: 100%;
    background: #ff7e5f;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 126, 95, 0.5);
}

.percentage {
    font-weight: 700;
    color: #ff7e5f;
    font-size: 18px;
    margin-bottom: 5px;
}

.status-msg {
    font-size: 13px;
    color: #888;
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
}

/* --- Main UI Wrapper --- */
.main-wrapper {
    display: none;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    position: relative;
}

.main-wrapper::before, .main-wrapper::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: floatingGradient 10s ease-in-out infinite alternate;
}

.main-wrapper::before {
    background: rgba(255, 255, 255, 0.4);
    top: -200px;
    left: -100px;
}

.main-wrapper::after {
    background: rgba(255, 154, 68, 0.5);
    bottom: -200px;
    right: -100px;
    animation-delay: 5s;
}

@keyframes floatingGradient {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 90%;
    max-width: 440px;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: center;
}

.card-logo {
    width: 80px;
    height: 70px;
    margin: 0 auto 25px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.card-header {
    margin-bottom: 35px;
}

.card-header h2 {
    color: #1f1c2c;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.card-header p {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.input-box {
    text-align: left;
    margin-bottom: 25px;
    position: relative;
}

.label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.input-box label {
    font-weight: 700;
    color: #444;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #f0f0f0;
    color: #888;
    border-radius: 50%;
    font-size: 12px;
    cursor: help;
    transition: all 0.3s ease;
}

.help-icon:hover {
    background: #1f1c2c;
    color: #fff;
    transform: scale(1.1);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 12px;
    background: #f8f9fa;
    border: 2px solid #e1e3e6;
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-wrapper.focused {
    border-color: #ff7e5f;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 126, 95, 0.1);
}

.input-icon {
    position: absolute;
    left: 18px;
    font-size: 18px;
    color: #9aa0a6;
    transition: all 0.3s ease;
}

.input-wrapper.focused .input-icon {
    color: #ff7e5f;
}

.input-box input {
    width: 100%;
    padding: 16px 45px 16px 50px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    outline: none;
}

.input-box input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.toggle-password {
    position: absolute;
    right: 18px;
    color: #9aa0a6;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #ff7e5f;
}

.signin-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff9a44 0%, #fc6076 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 126, 95, 0.35);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.signin-btn:hover {
    background: linear-gradient(135deg, #fc6076 0%, #ff9a44 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 126, 95, 0.4);
}

.signin-btn:active {
    transform: translateY(0);
}

.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.signin-btn.loading {
    background: #e06c50;
    pointer-events: none;
}

.signin-btn.loading .btn-text {
    opacity: 0.8;
}

.signin-btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-alert {
    background: #fdf3f2;
    color: #fc6076;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 13px;
    font-weight: 600;
    border-left: 4px solid #fc6076;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.error-alert i {
    font-size: 16px;
}

.card-footer {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #888;
}

.card-footer strong {
    color: #1f1c2c;
}

/* --- Responsive Design --- */
@media (max-width: 480px) {
    .login-card {
        width: 92%;
        padding: 40px 25px;
    }
    
    .card-header h2 { font-size: 24px; }
    
    .timeline-container { width: 80%; }
}

/* ==============================================================
   DASHBOARD STYLES
   ============================================================== */

.dashboard-body {
    background: #fdfbfb;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    display: flex;
    overflow: hidden; /* Sidebar and main content handle scroll */
    position: relative;
    z-index: 0;
}

/* Background floating elements for Glassmorphism effect */
.dashboard-body::before, .dashboard-body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    animation: floatingGradient 12s ease-in-out infinite alternate;
}

.dashboard-body::before {
    background: rgba(255, 154, 68, 0.15);
    top: -150px;
    left: -150px;
}

.dashboard-body::after {
    background: rgba(252, 96, 118, 0.15);
    bottom: -150px;
    right: -150px;
    animation-delay: 6s;
}

/* Sidebar */
.sidebar {
    width: 260px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 5px 0 25px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: linear-gradient(135deg, #ff9a44 0%, #fc6076 100%);
    color: white;
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-sidebar {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    list-style: none;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-nav li a i {
    width: 25px;
    font-size: 18px;
    margin-right: 10px;
    color: #888;
    transition: color 0.3s ease;
}

.sidebar-nav li.active a, .sidebar-nav li a:hover {
    background: rgba(255,154,68,0.08);
    color: #fc6076;
    border-left-color: #ff9a44;
}

.sidebar-nav li.active a i, .sidebar-nav li a:hover i {
    color: #ff9a44;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.logout-link {
    display: flex;
    align-items: center;
    color: #fc6076;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.logout-link:hover {
    transform: translateX(5px);
}

.logout-link i {
    margin-right: 10px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden; 
    background: transparent;
}

/* Topbar */
.topbar {
    height: 140px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    padding: 0 30px;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 99;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex:1;
} */




.burger-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.burger-btn:hover {
    color: #ff9a44;
}

.topbar-title {
    font-size: 25px;
    font-weight: 700;
    color: #222;
    letter-spacing: 1px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.user-profile span {
    font-weight: 600;
    color: #444;
}

/* Dashboard Wrapper */
.content-wrapper {
    padding: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(255, 255, 255, 0.9);
    /* GSAP Initial State */
    opacity: 0; 
    transform: translateY(30px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-details h4 {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-details h2 {
    font-size: 24px;
    color: #222;
    font-weight: 700;
}

/* Clock Card Custom Styling */
.stat-card-clock {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(103, 58, 183, 0.05);
    padding: 6px 12px;
    border-radius: 12px;
    box-sizing: border-box;
    width: auto; /* Laptop/Desktop වලදී අමතර ඉඩ ගන්නේ නෑ */
}

/* Stock Alert & Notification Dropdowns - Desktop View */
.topbar-dropdown-panel {
    display: none;
    position: absolute;
    top: 54px;
    right: 0;
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    border: 1px solid #f0f0f0;
}

/* Mobile Screens Only Fixes (Under 768px) */
@media (max-width: 768px) {
    .topbar-right {
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    .stat-card-clock {
        flex: 1 !important; /* Mobile වලදී විතරක් ඉඩ පුරවනවා */
        min-width: 130px;
    }

    .topbar-dropdown-panel {
        position: fixed !important;
        top: 70px !important;
        left: 5% !important;
        right: 5% !important;
        width: 90% !important;
        max-width: 340px !important;
        margin: 0 auto !important;
    }
}


/* Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Period tab buttons */
.period-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    transition: all 0.2s;
}
.period-tab.active {
    background: #ff9a44;
    color: white;
    box-shadow: 0 2px 8px rgba(255,154,68,0.3);
}
.period-tab:hover:not(.active) {
    background: rgba(255,154,68,0.1);
    color: #ff9a44;
}

@media (max-width: 480px) {
    #notificationPanel, #stockAlertPanel {
        width: 280px !important;
        right: -60px !important;
    }
}

/* ============================================================== 
   CASHIER DASHBOARD STYLES
   ============================================================== */

.cashier-dashboard-body {
    background: linear-gradient(135deg, #fff7f1 0%, #f5f7ff 48%, #fff1f3 100%);
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.cashier-dashboard-body::before,
.cashier-dashboard-body::after {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: floatingGradient 12s ease-in-out infinite alternate;
}

.cashier-dashboard-body::before {
    background: rgba(255, 154, 68, 0.18);
    top: -160px;
    left: -120px;
}

.cashier-dashboard-body::after {
    background: rgba(87, 116, 238, 0.12);
    bottom: -160px;
    right: -120px;
    animation-delay: 5s;
}

.cashier-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.cashier-hero-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(35, 42, 68, 0.08);
    overflow: hidden;
}

.cashier-hero-copy {
    min-height: auto;
    padding: 30px 30px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.cashier-hero-copy__top {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cashier-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 154, 68, 0.12);
    color: #d46f1d;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 12px;
}

.cashier-hero h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3.6vw, 3.15rem);
    line-height: 0.98;
    letter-spacing: -1.8px;
    color: #172033;
}

.cashier-hero p {
    margin: 0;
    max-width: 540px;
    font-size: 15px;
    line-height: 1.8;
    color: #5f6677;
}

.cashier-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cashier-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cashier-action-btn.primary {
    min-width: 160px;
}

.cashier-action-btn.secondary {
    min-width: 190px;
}

.cashier-action-btn:hover {
    transform: translateY(-2px);
}

.cashier-action-btn.primary {
    background: linear-gradient(135deg, #ff9a44 0%, #fc6076 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(252, 96, 118, 0.28);
}

.cashier-action-btn.secondary {
    background: rgba(23, 32, 51, 0.06);
    color: #172033;
}

.cashier-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cashier-hero-footer {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 154, 68, 0.11), rgba(252, 96, 118, 0.08));
    border: 1px solid rgba(255, 154, 68, 0.12);
}

.cashier-hero-footer__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #d46f1d;
    margin-bottom: 6px;
}

.cashier-hero-footer__value {
    font-size: 1rem;
    font-weight: 700;
    color: #172033;
    line-height: 1.45;
}

.cashier-metric {
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(23, 32, 51, 0.06);
    box-shadow: 0 12px 25px rgba(23, 32, 51, 0.05);
}

.cashier-metric .label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #8a90a0;
    margin-bottom: 6px;
}

.cashier-metric .value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #172033;
}

.cashier-hero-visual {
    position: relative;
    min-height: 100%;
    padding: 15px;
}

.cashier-hero-visual .visual-wrap {
    position: relative;
    height: 100%;
    min-height: 600px;
    border-radius: 26px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(12, 16, 28, 0.22), rgba(12, 16, 28, 0.72)),
        url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1600&q=80') center/cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.cashier-hero-visual .visual-panel {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: rgba(10, 15, 28, 0.56);
    color: #fff;
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.cashier-hero-visual .visual-panel h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.cashier-hero-visual .visual-panel p {
    margin: 0;
    color: rgba(255,255,255,0.86);
    line-height: 1.6;
}

.visual-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.visual-panel__chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.visual-panel__chips i {
    color: #ffcf9f;
}

.visual-panel__article {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.visual-panel__article-title {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #ffcf9f;
}

.visual-panel__article p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
}

.cashier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

@media (min-width: 1200px) {
    .cashier-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .cashier-hero-visual {
        height: 380px;
        min-height: 380px;
        align-self: start;
    }

    .cashier-hero-visual .visual-wrap {
        height: 100%;
        min-height: 380px;
        background-position: center 22%;
    }
}

.cashier-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 35px rgba(35, 42, 68, 0.06);
}

.cashier-card .icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
    background: rgba(255, 154, 68, 0.12);
    color: #ff9a44;
}

.cashier-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #172033;
}

.cashier-card p {
    margin: 0;
    color: #677084;
    line-height: 1.7;
}

.cashier-empty-state {
    margin-top: 24px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,255,255,0.72));
    border: 1px dashed rgba(255, 154, 68, 0.35);
    color: #596273;
}

.cashier-empty-state strong {
    color: #172033;
}

/* ============================================================== 
   STOCK KEEPER DASHBOARD STYLES
   ============================================================== */

.stock-keeper-dashboard-body {
    background: linear-gradient(135deg, #f7faf3 0%, #eef4ff 46%, #fff8f2 100%);
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.stock-keeper-dashboard-body::before,
.stock-keeper-dashboard-body::after {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: floatingGradient 12s ease-in-out infinite alternate;
}

.stock-keeper-dashboard-body::before {
    background: rgba(46, 196, 182, 0.16);
    top: -160px;
    left: -120px;
}

.stock-keeper-dashboard-body::after {
    background: rgba(255, 154, 68, 0.12);
    bottom: -160px;
    right: -120px;
    animation-delay: 5s;
}

.stock-keeper-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(540px, 1.22fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.stock-keeper-hero-card {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(35, 42, 68, 0.08);
    overflow: hidden;
}

.stock-keeper-hero-copy {
    min-height: 380px;
    padding: 30px 30px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.stock-keeper-hero-copy__top {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stock-keeper-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(46, 196, 182, 0.12);
    color: #117d73;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-size: 12px;
}

.stock-keeper-hero h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3.6vw, 3.15rem);
    line-height: 0.98;
    letter-spacing: -1.8px;
    color: #172033;
}

.stock-keeper-hero p {
    margin: 0;
    max-width: 540px;
    font-size: 15px;
    line-height: 1.8;
    color: #5f6677;
}

.stock-keeper-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stock-keeper-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.stock-keeper-action-btn.primary {
    min-width: 160px;
    background: linear-gradient(135deg, #2ec4b6 0%, #36b37e 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(46, 196, 182, 0.28);
}

.stock-keeper-action-btn.secondary {
    min-width: 190px;
    background: rgba(23, 32, 51, 0.06);
    color: #172033;
}

.stock-keeper-action-btn:hover {
    transform: translateY(-2px);
}

.stock-keeper-hero-footer {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(46, 196, 182, 0.11), rgba(255, 154, 68, 0.08));
    border: 1px solid rgba(46, 196, 182, 0.12);
}

.stock-keeper-hero-footer__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #117d73;
    margin-bottom: 6px;
}

.stock-keeper-hero-footer__value {
    font-size: 1rem;
    font-weight: 700;
    color: #172033;
    line-height: 1.45;
}

.stock-keeper-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.stock-keeper-metric {
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(23, 32, 51, 0.06);
    box-shadow: 0 12px 25px rgba(23, 32, 51, 0.05);
}

.stock-keeper-metric .label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #8a90a0;
    margin-bottom: 6px;
}

.stock-keeper-metric .value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #172033;
}

.stock-keeper-hero-visual {
    position: relative;
    min-height: 100%;
    padding: 15px;
}

.stock-keeper-hero-visual .visual-wrap {
    position: relative;
    height: 100%;
    min-height: 380px;
    border-radius: 26px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(12, 16, 28, 0.18), rgba(12, 16, 28, 0.72)),
        url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1600&q=80') center/cover;
    background-position: center 24%;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.stock-keeper-hero-visual .visual-panel {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 18px 18px 16px;
    border-radius: 20px;
    background: rgba(10, 15, 28, 0.58);
    color: #fff;
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.stock-keeper-hero-visual .visual-panel h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.stock-keeper-hero-visual .visual-panel p {
    margin: 0;
    color: rgba(255,255,255,0.86);
    line-height: 1.6;
}

.stock-keeper-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.stock-keeper-panel__chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stock-keeper-panel__chips i {
    color: #b7ffe7;
}

.stock-keeper-panel__article {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stock-keeper-panel__article-title {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #b7ffe7;
}

.stock-keeper-panel__article p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.86);
}

.stock-keeper-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stock-keeper-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 35px rgba(35, 42, 68, 0.06);
}

.stock-keeper-card .icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
    background: rgba(46, 196, 182, 0.12);
    color: #2ec4b6;
}

.stock-keeper-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #172033;
}

.stock-keeper-card p {
    margin: 0;
    color: #677084;
    line-height: 1.7;
}

.stock-keeper-empty-state {
    margin-top: 24px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,255,255,0.72));
    border: 1px dashed rgba(46, 196, 182, 0.35);
    color: #596273;
}

.stock-keeper-empty-state strong {
    color: #172033;
}

@media (min-width: 1200px) {
    .stock-keeper-hero {
        grid-template-columns: minmax(0, 0.80fr) minmax(540px, 1.20fr);
        align-items: start;
    }

    .stock-keeper-hero-visual {
        height: 380px;
        min-height: 380px;
        align-self: start;
    }

    .stock-keeper-hero-visual .visual-wrap {
        height: 100%;
        min-height: 380px;
    }
}

@media (max-width: 1024px) {
    .stock-keeper-hero,
    .stock-keeper-grid {
        grid-template-columns: 1fr;
    }

    .stock-keeper-hero-copy,
    .stock-keeper-hero-visual {
        min-height: unset;
    }

    .stock-keeper-hero-visual .visual-wrap {
        min-height: 330px;
    }
}

@media (max-width: 768px) {
    .stock-keeper-hero-copy,
    .stock-keeper-hero-visual {
        padding: 18px;
    }

    .stock-keeper-metrics {
        grid-template-columns: 1fr;
    }

    .stock-keeper-action-btn.primary,
    .stock-keeper-action-btn.secondary {
        min-width: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .cashier-hero,
    .cashier-grid {
        grid-template-columns: 1fr;
    }

    .cashier-hero-copy,
    .cashier-hero-visual {
        min-height: unset;
    }

    .cashier-hero-visual .visual-wrap {
        min-height: 330px;
    }
}

@media (max-width: 768px) {
    .cashier-hero-copy,
    .cashier-hero-visual {
        padding: 18px;
    }

    .cashier-metrics {
        grid-template-columns: 1fr;
    }

    .cashier-action-btn.primary,
    .cashier-action-btn.secondary {
        min-width: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 2560px) {
    .content-wrapper {
        max-width: 1800px;   /* stretch වෙන්නෙ නැති ලෙස center කරන්න */
        margin: 0 auto;
    }
    .topbar-title { font-size: 32px; }
    .stat-details h2 { font-size: 30px; }
}


@media (max-width: 1440px) {
    .content-wrapper { padding: 25px; }
    .topbar-title { font-size: 22px; }
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
     .topbar-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .burger-btn {
        display: block;
    }

    .close-sidebar {
        display: block;
    }

    .topbar {
        padding: 0 20px;
        height: auto;        
        flex-wrap: wrap;     
        gap: 10px;
    }
    .topbar-title {
        font-size: 15px;
    }

    .content-wrapper {
        padding: 20px;
    }
}




/* @media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .topbar-title {
        font-size: 12px;
    }
} */

.title-short { display: none; }
.title-full { display: inline; }


@media (max-width: 480px) {
    .topbar {
        height: auto;
        flex-wrap: wrap;
        padding: 10px;
        gap: 8px;
    }
    .topbar-right {
        width: 100%;
        justify-content: space-between;
    }
    .user-profile span { display: none; }

    .title-full { display: none; }
    .title-short {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 16px;
        font-weight: 700;
        color: #ff9a44;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-card {
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }
    .stat-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}



@media (max-width: 375px) {
    .topbar {
        height: auto;
        flex-wrap: wrap;
        padding: 5px;
        gap: 8px;
    }
    .title-short { font-size: 14px !important; }
    .stats-grid { max-width: 90%; }
    .stat-card { padding: 12px; flex-direction: column; text-align: center; }
    .stat-icon { margin-right: 0; margin-bottom: 10px; }
}

/* ================= Mobile Small (320px) ================= */
@media (max-width: 320px) {

    .title-short { font-size: 12px; }
    .stats-grid { max-width: 95%; }
    .login-card { padding: 25px 15px; }
    .stat-details h2 { font-size: 18px; }
}




/* ==============================================================
   CUSTOMER MANAGEMENT PAGE STYLES
   ============================================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.page-header h2 {
    margin: 0;
    font-size: 2rem;
}

.btn-add {
    background: #ff9a44;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 154, 68, 0.3);
    transition: background 0.3s, transform 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-add:hover {
    background: #e88939;
    transform: translateY(-2px);
}

.customer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
/* Search bar row */
.customer-search-bar {

    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    min-width: 280px
}
.search-select-wrapper {
    flex: 1;
    max-width: 450px;
}
.btn-clear-search {
       background: #ff9a44;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 154, 68, 0.3);
    transition: background 0.3s, transform 0.3s;

}
.btn-clear-search:hover {
    background: #e88939;
    transform: translateY(-2px);
}

/* Chosen Search Styling */
.chosen-container {
    font-family: 'Poppins', sans-serif;
}
.chosen-container-single .chosen-single {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 154, 68, 0.2);
    border-radius: 8px;
    padding: 16px 15px;
    height: 60px;
    font-size: 15px;
    line-height: 50px;       /* 👈 text vertically center කරන්න */
    color: #555;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}
.chosen-container-single .chosen-single:hover {
    border-color: #ff9a44;
}
.chosen-container-single .chosen-single:focus,
.chosen-container-active .chosen-single {
    border-color: #ff9a44 !important;
    box-shadow: 0 0 0 3px rgba(255,154,68,0.1);
}
.chosen-container-single .chosen-single span {
    color: #555;
    font-size: 14px;
}
.chosen-drop {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 154, 68, 0.2);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-top: 5px;
}
.chosen-drop .result-selected {
    background: rgba(255, 154, 68, 0.1);
    color: #ff9a44;
}
.chosen-drop li:hover {
    background: rgba(255, 154, 68, 0.08) !important;
}
.chosen-drop li.highlighted {
    background: rgba(255, 154, 68, 0.15) !important;
    color: #ff9a44 !important;
}
.chosen-drop li em {
    background: rgba(255, 154, 68, 0.3);
    font-style: normal;
    color: #ff9a44;
}
.no-results {
    color: #999;
    padding: 10px 15px;
}

/* Table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
}


.table-scroll-top {
    width: 100%;
    height: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ff9a44 #f0f0f0;
}
.table-scroll-top > div {
    height: 1px;
}
.table-scroll-top::-webkit-scrollbar {
    height: 6px;
}
.table-scroll-top::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}
.table-scroll-top::-webkit-scrollbar-thumb {
    background: #ff9a44;
    border-radius: 10px;
}
.table-scroll-top::-webkit-scrollbar-thumb:hover {
    background: #e88939;
}



.items-page .top-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: #ff9a44 #f0f0f0;
}

.items-page .top-table-scroll-content {
    height: 1px;
}

.items-page .top-table-scroll::-webkit-scrollbar {
    height: 6px;
}

.items-page .top-table-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.items-page .top-table-scroll::-webkit-scrollbar-thumb {
    background: #ff9a44;
    border-radius: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 16px;
    white-space: nowrap;
}
.data-table th {
    background: rgba(0,0,0,0.02);
    font-weight: 600;
    color: #333;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 20px;
    font-size: 18px;
    transition: 0.2s;
    padding: 5px;
    border-radius: 4px;
}
.btn-edit { color: #2196F3; }
.btn-delete { color: #fc6076; }
.action-btn:hover {
    transform: scale(1.1);
    background: rgba(0,0,0,0.05);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.modal-box {
    background: #fff;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    opacity: 0;
    transform: scale(0.9);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
}
.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #555;
    font-weight: 500;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 18px;
}
.form-group textarea { resize: none; height: 80px; }
.submit-btn {
    width: 100%;
    box-sizing: border-box;
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
    font-size: 18px;
}
.submit-btn:hover { background: #45a049; }

/* Tablet: up to 1024px */
@media (max-width: 1024px) {
    .page-header h2 { font-size: 1.6rem; }
    .data-table th, .data-table td { padding: 12px; font-size: 14px; }
    .action-btn { font-size: 16px; }
}

/* Small Tablet: up to 768px */
@media (max-width: 768px) {
    .page-header { flex-direction: column; align-items: stretch; }
    .page-header h2 { font-size: 1.4rem; margin-bottom: 10px; }
    .btn-add { text-align: center; padding: 12px 20px; }

    .table-responsive { overflow-x: scroll; scrollbar-width: thin; scrollbar-color: #ff9a44 #f0f0f0; }
    .table-responsive::-webkit-scrollbar { height: 6px; }
    .table-responsive::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; }
    .table-responsive::-webkit-scrollbar-thumb { background: #ff9a44; border-radius: 10px; }
    .table-responsive::-webkit-scrollbar-thumb:hover { background: #e88939; }
    .data-table th, .data-table td { padding: 9px 8px; font-size: 12px; }
    .action-btn { font-size: 14px; margin-right: 5px; }

    .modal-overlay { padding: 8px; }
    .modal-box { width: 100%; padding: 12px; max-height: 85vh; }
    .modal-header { margin-bottom: 10px; }
    .modal-header h3 { font-size: 1rem; }
    .form-group { margin-bottom: 8px; }
    .form-group label { font-size: 11px; margin-bottom: 3px; font-weight: 500; }
    .form-group input, .form-group select, .form-group textarea { padding: 7px; font-size: 13px; }
    .form-group textarea { height: 55px; }
    .submit-btn { padding: 9px; font-size: 13px; min-height: 38px; }
}

/* Mobile: up to 480px */
@media (max-width: 480px) {
    .page-header { flex-direction: column; align-items: stretch; gap: 8px; }
    .page-header h2 { font-size: 1.2rem; margin: 0; }

    .customer-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .customer-search-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        min-width: 0;
    }
    .search-select-wrapper {
        max-width: 100%;
    }
    .btn-clear-search {
        width: 50%;
        align-self: flex-end;
        padding: 10px 10px;
        font-size: 13px;
    }
    .btn-add {
        width: 100%;
        padding: 10px 15px;
        font-size: 14px;
    }

    .table-responsive { overflow-x: scroll; scrollbar-width: thin; scrollbar-color: #ff9a44 #f0f0f0; }
    .table-responsive::-webkit-scrollbar { height: 5px; }
    .table-responsive::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; }
    .table-responsive::-webkit-scrollbar-thumb { background: #ff9a44; border-radius: 10px; }
    .table-responsive::-webkit-scrollbar-thumb:hover { background: #e88939; }
    .data-table th, .data-table td { padding: 7px 6px; font-size: 10px; }
    .action-btn { font-size: 12px; margin-right: 2px; padding: 3px; }

    .modal-overlay { padding: 6px; }
    .modal-box { width: 100%; padding: 10px; max-height: 90vh; border-radius: 12px; }
    .modal-header { margin-bottom: 8px; }
    .modal-header h3 { font-size: 0.95rem; }
    .close-modal { font-size: 15px; }

    .form-group { margin-bottom: 6px; }
    .form-group label { font-size: 10px; margin-bottom: 2px; font-weight: 500; display: block; }
    .form-group input, .form-group select, .form-group textarea {
        padding: 6px;
        font-size: 13px;
        border: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
        min-height: 34px;
    }
    .form-group textarea { height: 50px; min-height: 50px; }
    .submit-btn {
        padding: 12px 30px;
        font-size: 13px;
        margin-top: 6px;
        min-height: 36px;
        font-weight: 600;
    }
}

/* Extra Small: below 320px */
@media (max-width: 320px) {
    .page-header h2 { font-size: 1rem; }
    .btn-add { padding: 8px 12px; font-size: 12px; }
    .btn-clear-search { width: 100%; height: 50%; padding: 8px 12px; font-size: 12px; }

    .table-responsive { overflow-x: scroll; scrollbar-width: thin; scrollbar-color: #ff9a44 #f0f0f0; }
    .table-responsive::-webkit-scrollbar { height: 4px; }
    .table-responsive::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; }
    .table-responsive::-webkit-scrollbar-thumb { background: #ff9a44; border-radius: 10px; }
    .data-table th, .data-table td { padding: 5px 4px; font-size: 9px; }

    .modal-overlay { padding: 4px; }
    .modal-box { width: 100%; padding: 8px; max-height: 90vh; border-radius: 8px; }
    .modal-header { margin-bottom: 6px; }
    .modal-header h3 { font-size: 0.9rem; }
    .close-modal { font-size: 13px; }
    .form-group { margin-bottom: 4px; }
    .form-group label { font-size: 9px; margin-bottom: 1px; }
    .form-group input, .form-group select, .form-group textarea { padding: 5px; font-size: 12px; min-height: 30px; }
    .form-group textarea { height: 45px; }
    .submit-btn { padding: 7px; font-size: 12px; min-height: 32px; }
}


/* ==============================================================
   SUPPLIER MANAGEMENT PAGE STYLES (status badges - suppliers-only)
   ============================================================== */

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}
.status-active {
    background: rgba(76,175,80,0.15);
    color: #4CAF50;
}
.status-inactive {
    background: rgba(252,96,118,0.15);
    color: #fc6076;
}

@media (max-width: 480px) {
    .status-badge { padding: 3px 6px; font-size: 9px; }
}



/* ==============================================================
   ITEM MANAGEMENT PAGE STYLES (scoped to .items-page to avoid
   conflicts with Customer Management page classes above)
   ============================================================== */

.items-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.items-page .page-header h2 {
    margin: 0;
    font-size: 2rem;
}
.items-page .btn-add {
    background: #ff9a44;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 154, 68, 0.3);
    transition: background 0.3s, transform 0.3s;
    white-space: nowrap;
}
.items-page .btn-add:hover {
    background: #e88939;
    transform: translateY(-2px);
}

.items-page .table-responsive {
    width: 100%;
    overflow-x: auto;
}
.items-page .data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
.items-page .data-table th,
.items-page .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 16px;
    white-space: nowrap;
}
.items-page .data-table th {
    background: rgba(0,0,0,0.02);
    font-weight: 600;
    color: #333;
}
.items-page .item-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.items-page .action-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 8px;
    font-size: 18px;
    transition: transform 0.2s, background 0.2s;
    padding: 5px;
    border-radius: 4px;
}
.items-page .btn-edit { color: #2196F3; }
.items-page .btn-delete { color: #fc6076; }
.items-page .action-btn:hover {
    transform: scale(1.1);
    background: rgba(0,0,0,0.05);
}

/* --- Modal (this is the part that was clashing) --- */
.items-page .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.items-page .modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.items-page .modal-box {
    background: white;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    opacity: 1;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}
.items-page .modal-overlay.active .modal-box {
    transform: translateY(0);
}
.items-page .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff9a44;
}
.items-page .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 700;
}
.items-page .close-modal {
    background: #ff9a44;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.items-page .close-modal:hover { background: #e88939; }

/* --- Form Fields --- */
.items-page .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.items-page .form-group {
    margin-bottom: 20px;
}
.items-page .form-group.full-width {
    grid-column: span 2;
}
.items-page .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 600;
}
.items-page .form-group input,
.items-page .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s, background-color 0.3s;
}
.items-page .form-group input:focus,
.items-page .form-group textarea:focus {
    outline: none;
    border-color: #ff9a44;
    background-color: #fffbf7;
}
.items-page .form-group textarea {
    resize: vertical;
    height: 100px;
}

.items-page .readonly-input {
    background-color: #f5f5f5;
    color: #777;
    border-color: #e0e0e0 !important;
    cursor: not-allowed;
}

/* --- Custom Dropdown --- */
.items-page .search-select-container {
    position: relative;
}
.items-page .search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #ff9a44;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 110;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.items-page .search-dropdown.active {
    display: block;
}
.items-page .dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    font-size: 14px;
}
.items-page .dropdown-item:hover {
    background: #fff8f1;
    color: #ff9a44;
}

.items-page .new-badge {
    background: #ff9a44;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 5px;
}
.items-page .help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}
.items-page input[type="file"] {
    padding: 8px;
    border: 2px dashed #ff9a44;
    background: #fffbf7;
}
.items-page .submit-btn {
    padding: 12px 30px;
    background: #ff9a44;
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}
.items-page .submit-btn:hover { background: #e88939; }

@media (max-width: 768px) {
    .items-page .form-row { grid-template-columns: 1fr; gap: 0; }
    .items-page .form-group.full-width { grid-column: span 1; }
    .items-page .modal-box { width: 95%; padding: 20px; }
    .items-page .page-header { flex-direction: column; align-items: stretch; }
    .items-page .btn-add { width: 100%; text-align: center; }
}



/* ==============================================================
   PURCHASING MANAGEMENT PAGE STYLES (scoped to .purchasing-page)
   ============================================================== */

.purchasing-page .item-entry-deck .btn-wrapper .btn-add-line,
.purchasing-page button.btn-add-line {
    background-color: #39e75f !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 30px !important;
    min-width: 140px !important;
    height: 48px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.purchasing-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.purchasing-page .page-header h2 {
    margin: 0;
    font-size: 2rem;
    color: #333;
}
.purchasing-page .btn-add {
    background: #ff9a44;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 154, 68, 0.3);
    transition: background 0.3s, transform 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.purchasing-page .btn-add:hover {
    background: #e88939;
    transform: translateY(-2px);
}

.purchasing-page .action-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 20px 25px 25px 25px;
}
.purchasing-page .action-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.purchasing-page .btn-clickable {
    cursor: pointer;
}
.purchasing-page .btn-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}
.purchasing-page .active-context {
    border-left: 4px solid #ff9a44;
}
.purchasing-page .action-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 154, 68, 0.12);
    color: #ff9a44;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
}
.purchasing-page .action-icon-wrapper.stock-move {
    background: rgba(46, 196, 182, 0.12);
    color: #2ec4b6;
}
.purchasing-page .action-icon-wrapper.stock-return {
    background: rgba(252, 96, 118, 0.12);
    color: #fc6076;
}
.purchasing-page .action-details h4 {
    margin: 0 0 3px 0;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
}
.purchasing-page .action-details p {
    margin: 0;
    font-size: 0.82rem;
    color: #777;
}

.purchasing-page .purchasing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 25px;
    margin: 0 25px 25px 25px;
}
.purchasing-page .data-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    overflow: hidden;
    padding-bottom: 10px;
}
.purchasing-page .card-title-bar {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(0,0,0,0.01);
}
.purchasing-page .card-title-bar h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}
.purchasing-page .text-primary { color: #ff9a44; margin-right: 6px; }

.purchasing-page .table-responsive {
    width: 100%;
    overflow-x: auto;
}
.purchasing-page .data-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}
.purchasing-page .data-table th,
.purchasing-page .data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 15px;
    white-space: nowrap;
}
.purchasing-page .data-table th {
    background: rgba(0,0,0,0.02);
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}
.purchasing-page .data-table tbody tr:hover {
    background: rgba(255, 154, 68, 0.02);
}

.purchasing-page .action-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin: 0 4px;
    font-size: 17px;
    transition: transform 0.2s, background 0.2s;
    padding: 6px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.purchasing-page .btn-edit { color: #2196F3; }
.purchasing-page .btn-delete { color: #fc6076; }
.purchasing-page .action-btn:hover {
    transform: scale(1.12);
    background: rgba(0,0,0,0.05);
}

/* --- Modal (blur/opacity fix here) --- */
.purchasing-page .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.purchasing-page .modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.purchasing-page .modal-box {
    background: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    opacity: 1;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}
.purchasing-page .modal-overlay.active .modal-box {
    transform: translateY(0);
}
.purchasing-page .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff9a44;
}
.purchasing-page .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 700;
}
.purchasing-page .modal-header h3 i {
    color: #ff9a44;
    margin-right: 6px;
}
.purchasing-page .close-modal {
    background: #ff9a44;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.purchasing-page .close-modal:hover { background: #e88939; }

.purchasing-page .search-select-container {
    position: relative;
    width: 100%;
}
.purchasing-page .search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: none;
    margin-top: 4px;
}
.purchasing-page .search-dropdown.show {
    display: block;
}
.purchasing-page .dropdown-option-item {
    padding: 10px 14px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}
.purchasing-page .dropdown-option-item:hover {
    background: #ff9a44;
    color: #ffffff;
}
.purchasing-page .no-options-found {
    padding: 12px;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    font-style: italic;
}

.purchasing-page .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.purchasing-page .form-group {
    margin-bottom: 5px;
}
.purchasing-page .form-group.full-width {
    grid-column: span 2;
}
.purchasing-page .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 600;
}
.purchasing-page .form-group input,
.purchasing-page .form-group select,
.purchasing-page .custom-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.3s, background-color 0.3s;
    outline: none;
}
.purchasing-page .form-group input:focus,
.purchasing-page .form-group select:focus,
.purchasing-page .custom-select:focus {
    border-color: #ff9a44;
    background-color: #fffbf7;
}

.purchasing-page .new-badge {
    background: #ff9a44;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.purchasing-page .submit-btn {
    padding: 12px 30px;
    background: #ff9a44;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}
.purchasing-page .submit-btn:hover { background: #e88939; }

.purchasing-page .btn-add-line {
    background: #39e75f;
    color: #ffffff;
    border: none;
    padding: 14px 30px;
    min-width: 140px;
    height: 48px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(57, 231, 95, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.purchasing-page .btn-add-line:hover {
    background: #2ccb50;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(57, 231, 95, 0.35);
}
.purchasing-page .btn-add-line:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(57, 231, 95, 0.2);
}
.purchasing-page .item-entry-deck .btn-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .purchasing-page .form-row { grid-template-columns: 1fr; gap: 0; }
    .purchasing-page .form-group.full-width { grid-column: span 1; }
    .purchasing-page .modal-box { width: 95%; padding: 20px; }
    .purchasing-page .page-header { flex-direction: column; align-items: stretch; }
    .purchasing-page .btn-add { width: 100%; justify-content: center; }

    /* Action deck cards */
    .purchasing-page .action-deck {
        grid-template-columns: 1fr;
        margin: 15px 15px 20px 15px;
        gap: 12px;
    }
    .purchasing-page .action-card {
        padding: 15px;
    }

    /* Purchasing grid (table card) */
    .purchasing-page .purchasing-grid {
        grid-template-columns: 1fr;
        margin: 0 15px 20px 15px;
    }

    /* Filter deck */
    .purchasing-page .filter-deck {
        margin: 0 15px 15px 15px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 15px !important;
    }
    .purchasing-page .filter-field {
        min-width: 0 !important;
        width: 100%;
    }
    .purchasing-page .filter-deck > div[style*="padding-top: 22px"] {
        padding-top: 0 !important;
    }
    .purchasing-page #btnClearFilters {
        width: 100%;
    }

    /* Item entry deck (Add Line row inside modal) */
    .purchasing-page .item-entry-deck {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .purchasing-page .item-entry-deck .btn-add-line {
        width: 100%;
    }

    /* Modal footer buttons (Cancel / Save) */
    .purchasing-page .modal-footer {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .purchasing-page .modal-footer .btn-add,
    .purchasing-page .modal-footer .submit-btn {
        width: 100% !important;
        justify-content: center;
    }

    /* Modal section titles / table text sizing */
    .purchasing-page .data-table th,
    .purchasing-page .data-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .purchasing-page .page-header h2 { font-size: 1.4rem; }
    .purchasing-page .action-card { padding: 12px; gap: 10px; }
    .purchasing-page .action-icon-wrapper {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .purchasing-page .action-details h4 { font-size: 0.85rem; }
    .purchasing-page .action-details p { font-size: 0.72rem; }

    .purchasing-page .modal-box {
        width: 100%;
        padding: 15px;
        border-radius: 8px;
    }
    .purchasing-page .modal-header h3 {
        font-size: 1.1rem;
    }
    .purchasing-page .form-group input,
    .purchasing-page .form-group select {
        padding: 10px;
        font-size: 13px;
    }
    .purchasing-page .data-table th,
    .purchasing-page .data-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    .purchasing-page .btn-add-line {
        min-width: 0 !important;
        padding: 12px 20px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 320px) {
    .purchasing-page .action-deck { margin: 10px; gap: 8px; }
    .purchasing-page .purchasing-grid { margin: 0 10px 15px 10px; }
    .purchasing-page .filter-deck { margin: 0 10px 12px 10px !important; padding: 12px !important; }
    .purchasing-page .data-table th,
    .purchasing-page .data-table td { padding: 6px 8px; font-size: 11px; }
}

@media (max-width: 1024px) {
    .purchasing-page .purchasing-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .purchasing-page .form-row { grid-template-columns: 1fr; gap: 0; }
    .purchasing-page .form-group.full-width { grid-column: span 1; }
    .purchasing-page .modal-box { width: 95%; padding: 20px; }
    .purchasing-page .page-header { flex-direction: column; align-items: stretch; }
    .purchasing-page .btn-add { width: 100%; justify-content: center; }
}


/* ==============================================================
   MAIN WAREHOUSE STOCK PAGE STYLES (scoped to .warehouse-page)
   Uses .purchasing-page for shared layout (action-deck, page-header,
   btn-add, purchasing-grid, data-card, table-responsive, data-table)
   ============================================================== */

.warehouse-page .swal2-container {
    z-index: 99999 !important;
}

.warehouse-page .modal-mask {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.warehouse-page .modal-mask.active {
    opacity: 1;
    pointer-events: auto;
}

.warehouse-page .modal-mask .modal-box {
    background: #fff;
    width: 90%;
    max-width: 680px;
    min-height: 500px;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 1;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.warehouse-page .modal-mask.active .modal-box {
    transform: translateY(0);
}

.warehouse-page .modal-mask .modal-header {
    background: #ff9a44;
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    border-bottom: none;
}
.warehouse-page .modal-mask .modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}
.warehouse-page .modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.warehouse-page .modal-mask .modal-body {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto;
}

.warehouse-page .modal-mask .form-group {
    margin-bottom: 20px;
}
.warehouse-page .modal-mask .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.warehouse-page .modal-stock-scroll-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #f7fafc;
    padding: 5px;
}

.warehouse-page .modal-batch-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 12px 18px;
    margin-bottom: 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.warehouse-page .modal-batch-item-row:hover {
    border-color: #ff9a44;
    background: #fffaf0;
}

.warehouse-page .batch-details-meta {
    flex-grow: 1;
    padding-right: 15px;
}
.warehouse-page .batch-title-text {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    margin-bottom: 2px;
}
.warehouse-page .batch-sub-text {
    font-size: 0.82rem;
    color: #718096;
}

.warehouse-page .inline-qty-entry-field {
    width: 110px;
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 600;
    color: #2d3748;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.warehouse-page .inline-qty-entry-field:focus {
    border-color: #2ec4b6;
    outline: none;
    background: #f0fdfa;
}

.warehouse-page .modal-mask .modal-footer {
    padding: 20px 25px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 0;
}

.warehouse-page .btn-action-submit {
    background: #2ec4b6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}
.warehouse-page .btn-action-cancel {
    background: #a0aec0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.warehouse-page .selection-hint {
    font-size: 0.82rem;
    color: #ff9a44;
    margin-top: 8px;
    display: block;
    font-weight: 500;
}

/* --- Warehouse Page Responsive --- */
@media (max-width: 768px) {
    .warehouse-page .modal-mask .modal-box {
        width: 95%;
        min-height: 0;
        max-height: 90vh;
    }
    .warehouse-page .modal-mask .modal-header {
        padding: 15px 18px;
    }
    .warehouse-page .modal-mask .modal-header h3 {
        font-size: 1.05rem;
    }
    .warehouse-page .modal-mask .modal-body {
        padding: 15px;
    }
    .warehouse-page .modal-batch-item-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 12px;
    }
    .warehouse-page .batch-details-meta {
        padding-right: 0;
    }
    .warehouse-page .inline-qty-entry-field {
        width: 100%;
    }
    .warehouse-page .modal-mask .modal-footer {
        flex-direction: column;
        padding: 15px;
    }
    .warehouse-page .btn-action-submit,
    .warehouse-page .btn-action-cancel {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .warehouse-page .modal-mask .modal-box {
        width: 100%;
        border-radius: 0;
    }
    .warehouse-page .modal-mask .modal-header h3 {
        font-size: 0.95rem;
    }
    .warehouse-page .modal-stock-scroll-list {
        max-height: 220px;
    }
}



/* ==============================================================
   TRANSFER MANAGEMENT PAGE STYLES (scoped to .transfer-page)
   Reuses same design pattern as .purchasing-page
   ============================================================== */

.transfer-page .page-header {
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.transfer-page .page-header h2 {
    font-size: 2rem;
    color: #1e293b;
    margin: 0;
}
.transfer-page .btn-add {
    background: #ff9a44;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 154, 68, 0.3);
    transition: background 0.3s, transform 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.transfer-page .btn-add:hover {
    background: #e88939;
    transform: translateY(-2px);
}

/* Action deck (clickable card) */
.transfer-page .action-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.transfer-page .action-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.transfer-page .btn-clickable { cursor: pointer; }
.transfer-page .btn-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}
.transfer-page .action-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 154, 68, 0.12);
    color: #ff9a44;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
}
.transfer-page .action-icon-wrapper.stock-move {
    background: rgba(46, 196, 182, 0.12);
    color: #2ec4b6;
}
.transfer-page .action-details h4 {
    margin: 0 0 3px 0;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
}
.transfer-page .action-details p {
    margin: 0;
    font-size: 0.82rem;
    color: #777;
}

/* Filter deck */
.transfer-page .filter-deck {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.transfer-page .filter-group {
    flex: 1;
    min-width: 220px;
}
.transfer-page .filter-group label {
    font-weight: 600;
    font-size: 13px;
    color: #4a5568;
    display: block;
    margin-bottom: 6px;
}
.transfer-page .filter-group input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.transfer-page .btn-reset {
    background: #64748b;
    color: white;
    border: none;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
.transfer-page .btn-reset:hover { background: #475569; }

/* Table / data card */
.transfer-page .transfer-grid.single-column { margin-bottom: 30px; }
.transfer-page .data-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    padding: 20px;
}
.transfer-page .card-title-bar h3 {
    margin-top: 0;
    font-size: 18px;
    color: #334155;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}
.transfer-page .text-primary { color: #ff9a44; margin-right: 6px; }
.transfer-page .table-responsive { overflow-x: auto; width: 100%; }
.transfer-page .data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}
.transfer-page .data-table th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
}
.transfer-page .data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

/* Modal */
.transfer-page .modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.transfer-page .modal-overlay.active { opacity: 1; pointer-events: auto; }
.transfer-page .modal-box {
    background: #fff;
    width: 90%;
    max-width: 1050px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    overflow-y: auto;
    padding: 30px;
    position: relative;
}
.transfer-page .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.transfer-page .modal-header h3 { margin: 0; color: #0f172a; font-size: 20px; }
.transfer-page .close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
}
.transfer-page .close-modal:hover { color: #475569; }

.transfer-page .modal-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin: 20px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.transfer-page .form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.transfer-page .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}
.transfer-page .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 6px;
}
.transfer-page .form-group input {
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.transfer-page .form-group input:focus {
    border-color: #ff9a44;
    box-shadow: 0 0 0 3px rgba(255, 154, 68, 0.15);
}
.transfer-page .readonly-input {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
}

.transfer-page .search-select-container { position: relative; }
.transfer-page .search-dropdown {
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.transfer-page .item-entry-deck {
    display: flex;
    gap: 15px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.transfer-page .flex-3 { flex: 3; min-width: 250px; }
.transfer-page .flex-1 { flex: 1; min-width: 120px; }

.transfer-page .btn-add-line {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 11px 20px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.transfer-page .btn-add-line:hover { background-color: #059669; }

.transfer-page .inner-modal-table { margin-top: 10px; }
.transfer-page .grand-total-row {
    background: rgba(0,0,0,0.02);
    font-weight: 700;
}

.transfer-page .modal-footer {
    display: flex;

}


.return-page .modal-overlay {
    background: rgba(0,0,0,.45);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

.return-page .modal-overlay.active {
    display: flex;
}

.return-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.return-page .page-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #2d3748;
    font-weight: 700;
}

.return-page .btn-add {
    background: linear-gradient(135deg, #ff9a44, #ff6b35);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 154, 68, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.return-page .btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 154, 68, 0.45);
}

.return-page .btn-add:active {
    transform: translateY(0);
}

.return-page .action-deck {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.return-page .action-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.return-page .action-card.btn-clickable {
    cursor: pointer;
}

.return-page .action-card.btn-clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

.return-page .action-card.active-context {
    border: 2px solid rgba(255, 154, 68, 0.4);
    background: rgba(255, 248, 240, 0.9);
}

.return-page .action-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.return-page .action-icon-wrapper.stock-return {
    background: rgba(255, 154, 68, 0.12);
    color: #ff9a44;
}

.return-page .action-icon-wrapper.stock-move {
    background: rgba(46, 196, 182, 0.12);
    color: #2ec4b6;
}

.return-page .action-details h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.return-page .action-details p {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.return-page .search-bar-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.return-page .search-input-wrapper {
    flex: 1;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.return-page .search-input-wrapper:focus-within {
    border-color: #ff9a44;
    box-shadow: 0 0 0 3px rgba(255, 154, 68, 0.10);
}

.return-page .search-input-wrapper i {
    color: #aaa;
    font-size: 14px;
}

.return-page .search-input-wrapper input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
    color: #333;
    background: transparent;
    font-family: inherit;
}

.return-page .btn-clear {
    padding: 10px 18px;
    background: #718096;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.return-page .btn-clear:hover {
    background: #4a5568;
    transform: translateY(-1px);
}

.return-page .data-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 24px;
}

.return-page .card-title-bar {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: rgba(255, 255, 255, 0.6);
}

.return-page .card-title-bar h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.return-page .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.return-page .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 680px;
}

.return-page .data-table thead tr {
    background: #f8f9fa;
}

.return-page .data-table th {
    padding: 13px 16px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 13px;
    border-bottom: 2px solid #f0f0f0;
    white-space: nowrap;
}

.return-page .data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    vertical-align: middle;
}

.return-page .data-table tbody tr:hover {
    background: #fffaf5;
}

.return-page .data-table tbody tr:last-child td {
    border-bottom: none;
}

.return-page .return-code-cell {
    font-weight: 700;
    color: #ff9a44;
    font-size: 13px;
}

.return-page .badge-good {
    display: inline-block;
    background: #e6f4ea;
    color: #1a4731;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.return-page .badge-bad {
    display: inline-block;
    background: #fce8e6;
    color: #c0392b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.return-page .qty-cell {
    font-weight: 700;
    color: #2ec4b6;
    font-size: 15px;
    text-align: center;
}

.return-page .notes-cell {
    color: #888;
    font-size: 13px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.return-page .action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s, transform 0.15s;
}

.return-page .action-btn:hover {
    transform: scale(1.15);
}

.return-page .btn-view  { color: #2ec4b6; }
.return-page .btn-view:hover  { background: rgba(46, 196, 182, 0.10); }

.return-page .btn-print { color: #ff9a44; }
.return-page .btn-print:hover { background: rgba(255, 154, 68, 0.10); }

.return-page .btn-delete { color: #fc6076; }
.return-page .btn-delete:hover { background: rgba(252, 96, 118, 0.10); }

.return-page .modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    overflow-y: auto;
    opacity: 1;
    transform: none;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.return-page .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fff8f0, #ffffff);
    border-radius: 18px 18px 0 0;
}

.return-page .modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.return-page .close-modal {
    background: #f5f5f5;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    color: #888;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.return-page .close-modal:hover {
    background: #ffe0e0;
    color: #e74c3c;
}

.return-page .modal-box form {
    padding: 24px 28px;
}

.return-page .form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.return-page .form-row .form-group {
    flex: 1;
    min-width: 180px;
}

.return-page .form-group {
    margin-bottom: 16px;
}

.return-page .form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.return-page .form-group input,
.return-page .form-group select,
.return-page .form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.return-page .form-group input:focus,
.return-page .form-group select:focus,
.return-page .form-group textarea:focus {
    border-color: #ff9a44;
    box-shadow: 0 0 0 3px rgba(255, 154, 68, 0.10);
}

.return-page .form-group input[readonly] {
    background: #f8f8f8;
    color: #666;
    cursor: not-allowed;
}

.return-page .form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.return-page .form-group select {
    cursor: pointer;
}

.return-page .stock-info-badge {
    display: none;
    margin-bottom: 16px;
    background: #f0fff8;
    border: 1.5px solid #b2dfdb;
    border-radius: 10px;
    padding: 12px 16px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
}

.return-page .stock-info-badge .stock-qty-number {
    color: #2ec4b6;
    font-size: 18px;
    font-weight: 700;
}

.return-page .stock-info-badge i {
    color: #2ec4b6;
    font-size: 16px;
}

.return-page .submit-btn {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    background: linear-gradient(135deg, #ff9a44, #ff6b35);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 154, 68, 0.30);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.return-page .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 154, 68, 0.40);
}

.return-page .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.return-page .return-detail-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.return-page .detail-card {
    flex: 1;
    min-width: 130px;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
}

.return-page .detail-card.orange {
    background: #fff8f0;
    border: 1px solid #ffe0b2;
}

.return-page .detail-card.teal {
    background: #f0fff8;
    border: 1px solid #b2dfdb;
}

.return-page .detail-card.purple {
    background: #f5f0ff;
    border: 1px solid #d1c4e9;
}

.return-page .detail-card .card-label {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.return-page .detail-card .card-value {
    font-size: 17px;
    font-weight: 700;
}

.return-page .detail-card.orange .card-value { color: #ff9a44; }
.return-page .detail-card.teal .card-value { color: #2ec4b6; }
.return-page .detail-card.purple .card-value { color: #6b3fa0; }

.return-page .return-info-grid {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.return-page .return-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.return-page .return-info-row:last-child {
    border-bottom: none;
}

.return-page .return-info-row .info-label {
    color: #888;
    font-size: 13px;
}

.return-page .return-info-row .info-value {
    font-weight: 600;
    color: #2d3748;
}

.return-page .notes-box {
    background: #fffde7;
    border: 1px solid #fff59d;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.return-page .notes-box .notes-label {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.return-page .modal-footer-btns {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 28px;
    border-top: 1px solid #f0f0f0;
}

.return-page .btn-cancel {
    padding: 10px 20px;
    background: #e2e8f0;
    color: #555;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.return-page .btn-cancel:hover {
    background: #cbd5e0;
}

.return-page .btn-print-receipt {
    padding: 10px 20px;
    background: #2ec4b6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.2s;
}

.return-page .btn-print-receipt:hover {
    background: #1a9e92;
    transform: translateY(-1px);
}

.return-page #returnPrintArea {
    display: none;
}

@media print {
    body.return-page * {
        visibility: hidden;
    }

    body.return-page #returnPrintArea,
    body.return-page #returnPrintArea * {
        visibility: visible;
    }

    body.return-page #returnPrintArea {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 30px;
    }
}

.return-page .table-loading-text {
    text-align: center;
    color: #aaa;
    padding: 30px !important;
    font-size: 14px;
}

.return-page .table-loading-text i {
    margin-right: 8px;
}

.return-page .empty-state-cell {
    text-align: center;
    padding: 40px !important;
    color: #aaa;
}

.return-page .empty-state-cell i {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
    color: #ddd;
}

@media (max-width: 768px) {
    .return-page .page-header h2 {
        font-size: 1.4rem;
    }

    .return-page .btn-add {
        padding: 10px 18px;
        font-size: 13px;
    }

    .return-page .action-deck {
        flex-direction: column;
    }

    .return-page .form-row {
        flex-direction: column;
        gap: 0;
    }

    .return-page .modal-box {
        border-radius: 14px;
        max-height: 95vh;
    }

    .return-page .modal-header {
        padding: 16px 18px;
    }

    .return-page .modal-box form {
        padding: 18px;
    }

    .return-page .modal-footer-btns {
        padding: 14px 18px;
        flex-direction: column;
    }

    .return-page .btn-cancel,
    .return-page .btn-print-receipt {
        width: 100%;
        justify-content: center;
    }

    .return-page .return-detail-cards {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .return-page .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .return-page .btn-add {
        width: 100%;
        justify-content: center;
    }

    .return-page .search-bar-row {
        flex-direction: column;
    }

    .return-page .search-input-wrapper {
        max-width: 100%;
    }

    .return-page .btn-clear {
        width: 100%;
        justify-content: center;
    }

    .return-page .data-table th,
    .return-page .data-table td {
        padding: 10px 10px;
        font-size: 12px;
    }
}

/* --- Modal Blur Bug Fix --- */

/* 1. Modal Overlay එකේ Blur එක ඉවත් කර Dim effect එකක් පමණක් දීම */
.modal-overlay,
#itemTypeModal,
#sizeModal,
#colorModal {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.5) !important; /* Dark overlay without blur */
    z-index: 99999 !important; /* Topbar/Sidebar වලට උඩින් තැබීමට */
}

/* 2. Modal Card එක Blur වීම වැළැක්වීම සහ පැහැදිලිව පෙන්වීම */
.modal-overlay .modal-box,
.modal-overlay .modal-content,
#itemTypeModal .modal-box,
#sizeModal .modal-box,
#colorModal .modal-box {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: #ffffff !important; /* Modal card background */
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 100000 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* 3. Modal එක Active වූ විට Main Page එක Blur වීම වැළැක්වීම */
body.modal-open,
.settings-panel,
.main-content {
    filter: none !important;
    backdrop-filter: none !important;
}
