/* Import rounded friendly Fredoka font and premium Outfit font */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #cd853f;
    /* Warm gold accent */
    --primary-hover: #b8732e;
    --secondary: #deb887;
    /* Light gold */
    --secondary-hover: #cd853f;
    --accent: #8b5a2b;
    /* Deep wood brown */
    --sky: #deb887;
    /* Warm burlywood */
    --sky-light: #2b1a0e;
    /* Dark wood surface */
    --dark: #e8dfd5;
    /* Light text for dark backgrounds */
    --light: #ffffff;
    --gray-light: #231208;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.45);
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a0e05 0%, #2b1a0e 50%, #1a0e05 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Background decorations */
.wood-deco {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.deco-1 {
    width: 300px;
    height: 300px;
    background-color: #8b5a2b;
    top: -50px;
    left: -50px;
    animation: floatShape 8s ease-in-out infinite;
}

.deco-2 {
    width: 250px;
    height: 250px;
    background-color: #cd853f;
    bottom: -50px;
    right: -50px;
    animation: floatShape 12s ease-in-out infinite alternate;
}

.deco-3 {
    width: 150px;
    height: 150px;
    background-color: #a0522d;
    bottom: 30%;
    left: 10%;
    animation: floatShape 10s ease-in-out infinite 2s;
}

@keyframes floatShape {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-20px) rotate(180deg) scale(1.05);
    }

    100% {
        transform: translateY(0) rotate(360deg) scale(1);
    }
}

/* Container for glassmorphism card */
.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 10;
}

/* Glassmorphism Card Style */
.card {
    background: rgba(30, 20, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(205, 133, 63, 0.15);
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #8b5a2b, #cd853f, #deb887);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Header section styling */
.header {
    margin-bottom: 30px;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(205, 133, 63, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: bounce 4s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

.title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--dark);
    opacity: 0.7;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(205, 133, 63, 0.25);
    border-radius: 2px;
}

/* Form Styles */
.form-group {
    margin-bottom: 22px;
    text-align: left;
    position: relative;
}

.form-label {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--dark);
    padding-left: 5px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    color: rgba(222, 184, 135, 0.4);
    transition: var(--transition);
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 15px 15px 15px 48px;
    border: 2px solid rgba(205, 133, 63, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(205, 133, 63, 0.12);
}

.form-input:focus+.input-icon {
    color: var(--primary);
    opacity: 1;
}

/* Primary Action Button */
.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 20px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--light);
    background: linear-gradient(135deg, #8b5a2b 0%, #cd853f 100%);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.35);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.btn:hover::after {
    left: 120%;
}

.btn:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 90, 43, 0.5);
    background: linear-gradient(135deg, #a0522d 0%, #deb887 100%);
}

.btn:active {
    transform: scale(0.98) translateY(1px);
    box-shadow: 0 4px 10px rgba(139, 90, 43, 0.2);
}

/* Spinner for loading state */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Alert Notification popup styling */
.alert {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 20, 10, 0.95);
    padding: 16px 28px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    border: 2px solid rgba(205, 133, 63, 0.2);
    backdrop-filter: blur(20px);
}

.alert.show {
    top: 25px;
}

.alert-error {
    border-color: rgba(255, 107, 107, 0.4);
    color: #ff8a8a;
}

.alert-success {
    border-color: rgba(123, 234, 138, 0.4);
    color: #7bea8a;
}

.alert-icon {
    font-size: 1.3rem;
}

/* Home Page layout specific styling */
.home-card {
    max-width: 600px;
    width: 100%;
}

.home-illustration {
    margin: 20px 0;
    font-size: 4rem;
    animation: swing 3s ease-in-out infinite alternate;
    display: inline-block;
}

@keyframes swing {
    0% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(5deg);
    }
}

.welcome-msg {
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-secondary {
    background: linear-gradient(135deg, #8b5a2b 0%, #a0522d 100%);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #a0522d 0%, #cd853f 100%);
    box-shadow: 0 8px 25px rgba(139, 90, 43, 0.4);
}

.btn-secondary:active {
    box-shadow: 0 4px 10px rgba(139, 90, 43, 0.2);
}

.empty-state-box {
    border: 2px dashed rgba(205, 133, 63, 0.2);
    border-radius: 20px;
    padding: 40px 20px;
    margin: 25px 0;
    background: rgba(205, 133, 63, 0.03);
}

.empty-state-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: var(--dark);
    opacity: 0.8;
    margin-top: 10px;
}

.empty-state-desc {
    font-size: 0.9rem;
    color: var(--dark);
    opacity: 0.6;
    margin-top: 5px;
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .title {
        font-size: 1.5rem;
    }
}

/* Dashboard layout overrides */
body.dashboard-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    align-items: stretch;
    justify-content: stretch;
    background: #1a0e05;
    padding: 0;
    margin: 0;
    animation: none;
    /* Turn off rotation animation on body for dashboard */
}

/* Dashboard left sidebar pane */
.sidebar {
    background: rgba(30, 20, 10, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(205, 133, 63, 0.15);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
    justify-content: space-between;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 40px;
}

.sidebar-logo-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px auto;
}

.sidebar-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(205, 133, 63, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sidebar-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.sidebar-title .highlight {
    color: var(--primary);
}

/* Nav Menu links */
.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    margin-top: 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(222, 184, 135, 0.7);
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 16px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.sidebar-link svg {
    transition: var(--transition);
}

.sidebar-link:hover {
    background: rgba(205, 133, 63, 0.08);
    color: #deb887;
    transform: translateX(4px);
}

.sidebar-link.active {
    background: rgba(205, 133, 63, 0.12);
    color: #deb887;
    border-color: rgba(205, 133, 63, 0.25);
    box-shadow: 0 4px 12px rgba(205, 133, 63, 0.08);
}

.sidebar-link.active svg {
    color: #cd853f;
    transform: scale(1.1);
}

/* Sidebar Footer (Logout) */
.sidebar-footer {
    border-top: 2px dashed rgba(205, 133, 63, 0.1);
    padding-top: 20px;
}

.btn-sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    font-size: 0.95rem;
}

/* Main content pane */
.main-content {
    padding: 40px;
    overflow-y: auto;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    background: #1a0e05;
}


/* Dashboard Views */
.dashboard-view {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.dashboard-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Header with Add Button */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(205, 133, 63, 0.08);
}

.view-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.btn-add {
    background: linear-gradient(135deg, #8b5a2b 0%, #cd853f 100%);
    box-shadow: 0 5px 15px rgba(139, 90, 43, 0.3);
    padding: 12px 24px;
    font-size: 0.95rem;
    width: auto;
    display: inline-flex;
}

.btn-add:hover {
    background: linear-gradient(135deg, #a0522d 0%, #deb887 100%);
    box-shadow: 0 8px 20px rgba(139, 90, 43, 0.4);
}

/* Custom Table Layout */
.table-container {
    background: rgba(30, 20, 10, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(205, 133, 63, 0.12);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: visible;
    margin-top: 10px;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.inventory-table th {
    font-family: 'Fredoka', sans-serif;
    background: rgba(205, 133, 63, 0.08);
    color: #deb887;
    font-weight: 600;
    padding: 18px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(205, 133, 63, 0.12);
}

.inventory-table td {
    padding: 18px 24px;
    font-size: 0.95rem;
    color: var(--dark);
    border-bottom: 1px solid rgba(205, 133, 63, 0.06);
    background: transparent;
    transition: var(--transition);
}

.inventory-table tr:last-child td {
    border-bottom: none;
}

.inventory-table tr:hover td {
    background: rgba(205, 133, 63, 0.04);
}

.sku-badge {
    background: rgba(205, 133, 63, 0.12);
    color: #deb887;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: inline-block;
    border: 1px solid rgba(205, 133, 63, 0.2);
}

/* Modal Popup Window */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 5, 2, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #2b1a0e;
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    padding: 35px;
    border: 1px solid rgba(205, 133, 63, 0.2);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.4);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal-overlay.show .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(205, 133, 63, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(222, 184, 135, 0.6);
    opacity: 0.8;
    transition: var(--transition);
}

.modal-close:hover {
    opacity: 1;
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

.modal-header {
    margin-bottom: 25px;
}

.modal-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
}

.modal-subtitle {
    font-size: 0.9rem;
    color: rgba(222, 184, 135, 0.6);
    margin-top: 4px;
}

.form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(205, 133, 63, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    outline: none;
    transition: var(--transition);
    resize: vertical;
    min-height: 100px;
}

.form-textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(205, 133, 63, 0.12);
}

/* Home Card Override for Dashboard grid context */
.dashboard-view .card.home-card {
    margin: 0;
    max-width: 100%;
    background: rgba(30, 20, 10, 0.8);
    border: 1px solid rgba(205, 133, 63, 0.12);
}

/* Responsiveness overrides */
@media (max-width: 768px) {
    body.dashboard-body {
        grid-template-columns: 80px 1fr;
    }

    .sidebar-title,
    .sidebar-logo-wrapper {
        display: none;
    }

    .sidebar-link span {
        display: none;
    }

    .sidebar {
        padding: 20px 10px;
        align-items: center;
    }

    .sidebar-menu {
        align-items: center;
    }

    .sidebar-link {
        padding: 14px;
        justify-content: center;
        border-radius: 12px;
    }

    .btn-sidebar-logout span {
        display: none;
    }

    .btn-sidebar-logout {
        padding: 14px;
        border-radius: 12px;
    }
}

/* Custom Table Actions and Badge variations */
.btn-table {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    width: auto;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-table-primary {
    background: rgba(205, 133, 63, 0.1);
    color: #cd853f;
    border: 2px solid rgba(205, 133, 63, 0.2);
}

.btn-table-primary:hover {
    background: #cd853f;
    color: var(--light);
    border-color: #cd853f;
    transform: scale(1.04) translateY(-1px);
    box-shadow: 0 4px 12px rgba(205, 133, 63, 0.25);
}

.stock-badge {
    background: rgba(123, 234, 138, 0.1);
    color: #7bea8a;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    display: inline-block;
    border: 1px solid rgba(123, 234, 138, 0.2);
    text-align: center;
}

.stock-badge.empty {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.price-range-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--dark);
}

.price-empty {
    color: var(--dark);
    opacity: 0.4;
    font-style: italic;
    font-size: 0.9rem;
}

/* Custom Table Actions and Badge variations */
.actions-cell {
    position: relative;
    text-align: center;
}

.hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: rgba(222, 184, 135, 0.6);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hamburger-btn:hover {
    background: rgba(205, 133, 63, 0.1);
    color: #cd853f;
}

.actions-cell {
    position: relative;
}

.actions-dropdown {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: #2b1a0e;
    border: 1px solid rgba(205, 133, 63, 0.2);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 500;
    min-width: 160px;
    display: none;
    /* Controlled by JS toggling .show */
    flex-direction: column;
    padding: 8px;
    animation: dropFade 0.2s ease-out forwards;
}

.actions-dropdown.dropdown-up {
    top: auto;
    bottom: 20px;
    transform: none;
}

.actions-dropdown.show {
    display: flex;
}

@keyframes dropFade {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(205, 133, 63, 0.1);
    color: #deb887;
}

.dropdown-item-danger {
    color: #ff6b6b;
}

.dropdown-item-danger:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

/* Search bar styling */
.search-wrapper {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.search-input-container {
    position: relative;
    flex-grow: 1;
}

.search-input-container .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(222, 184, 135, 0.4);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 15px 14px 48px;
    border: 2px solid rgba(205, 133, 63, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(205, 133, 63, 0.1);
}

/* Product Stock Filter Dropdown beside Search Bar */
.product-stock-filter-wrapper {
    position: relative;
    min-width: 175px;
    flex-shrink: 0;
}

.product-filter-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(222, 184, 135, 0.6);
    pointer-events: none;
    z-index: 1;
}

.product-stock-filter-select {
    width: 100%;
    padding: 14px 40px 14px 44px;
    border: 2px solid rgba(205, 133, 63, 0.15);
    border-radius: 20px;
    background: rgba(30, 20, 10, 0.85);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: var(--transition);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24' stroke='%23deb887' stroke-width='2.5'><path stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.product-stock-filter-select:hover {
    border-color: var(--primary);
    background-color: rgba(45, 28, 14, 0.95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.product-stock-filter-select:focus {
    border-color: var(--primary);
    background-color: rgba(45, 28, 14, 0.95);
    box-shadow: 0 0 0 4px rgba(205, 133, 63, 0.15);
}

.product-stock-filter-select option {
    background-color: #231208;
    color: #e8dfd5;
    font-weight: 600;
    padding: 12px 16px;
}

/* Breadcrumbs subnavigation */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    color: #deb887;
    text-decoration: underline;
}

/* Table Button and Input Overrides */
.btn-table-danger {
    background: rgba(255, 107, 107, 0.08);
    color: #ff6b6b;
    border: 2px solid rgba(255, 107, 107, 0.15);
}

.btn-table-danger:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
    transform: scale(1.04) translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

.btn-table-secondary {
    background: rgba(222, 184, 135, 0.08);
    color: #deb887;
    border: 2px solid rgba(222, 184, 135, 0.15);
}

.btn-table-secondary:hover {
    background: #3c1e0a;
    color: #deb887;
    border-color: rgba(205, 133, 63, 0.3);
    transform: scale(1.04) translateY(-1px);
}

.btn-table:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.03) !important;
    color: rgba(222, 184, 135, 0.3) !important;
    border-color: rgba(205, 133, 63, 0.05) !important;
    box-shadow: none !important;
    transform: none !important;
}

.badge-soldout {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    display: inline-block;
    border: 1px solid rgba(255, 107, 107, 0.2);
    text-align: center;
}


/* ================================================================
   POS (Point of Sale) Home View
   ================================================================ */

/* The home view in POS mode fills the main content area as a flex column */
.pos-view {
    flex-direction: column;
    height: 100%;
    gap: 0;
    position: relative;
    padding-bottom: 80px;
    /* room for summary bar */
}

/* Only apply flex when the view is active */
.dashboard-view.active.pos-view {
    display: flex;
}


/* POS Header */
.pos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.pos-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pos-emoji {
    font-size: 2.8rem;
    animation: swing 3s ease-in-out infinite alternate;
    display: inline-block;
    line-height: 1;
}

.pos-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.1;
}

.pos-subtitle {
    font-size: 0.9rem;
    color: rgba(222, 184, 135, 0.6);
    margin-top: 2px;
}

/* Clear Order Button */
.btn-clear-cart {
    background: rgba(255, 107, 107, 0.08);
    color: #ff6b6b;
    border: 2px solid rgba(255, 107, 107, 0.2);
    border-radius: 14px;
    padding: 10px 18px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: auto;
    transition: var(--transition);
    box-shadow: none;
}

.btn-clear-cart:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
    transform: scale(1.03) translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.22);
}

.btn-clear-cart::after {
    display: none;
}

/* ----------------------------------------------------------------
   Search Section
   ---------------------------------------------------------------- */
.pos-search-section {
    flex-shrink: 0;
    margin-bottom: 20px;
    position: relative;
    z-index: 200;
}

/* POS Search Bar with Autocomplete Dropdown */
.pos-search-bar-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.pos-search-input-field {
    width: 100%;
    padding: 14px 48px 14px 48px;
    border: 2px solid rgba(205, 133, 63, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.pos-search-input-field:focus {
    border-color: #cd853f;
    box-shadow: 0 0 0 4px rgba(205, 133, 63, 0.12);
}

/* Autocomplete Search Dropdown Popup */
.pos-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #2b1a0e;
    border: 1px solid rgba(205, 133, 63, 0.2);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-height: 360px;
    overflow-y: auto;
    padding: 6px;
}

.search-drop-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-drop-item:hover,
.search-drop-item.active {
    background: rgba(205, 133, 63, 0.08);
}

.search-drop-img-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(205, 133, 63, 0.05);
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(205, 133, 63, 0.1);
}

.search-drop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-drop-info {
    flex: 1;
    margin-right: 12px;
}

.search-drop-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--dark);
}

.search-drop-meta {
    font-size: 0.78rem;
    color: rgba(222, 184, 135, 0.5);
    margin-top: 2px;
}

.search-drop-price {
    font-weight: 800;
    font-size: 0.95rem;
    color: #cd853f;
    font-family: 'Fredoka', sans-serif;
    flex-shrink: 0;
}

/* Selected Items List below Search Bar */
.pos-selected-rows-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pos-selected-item-row {
    background: rgba(30, 20, 10, 0.8);
    border: 1px solid rgba(205, 133, 63, 0.1);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pos-selected-item-row:hover {
    border-color: rgba(205, 133, 63, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.pos-item-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pos-item-left-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pos-item-thumb-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(205, 133, 63, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(205, 133, 63, 0.12);
}

.pos-item-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pos-item-title-name {
    font-weight: 700;
    font-size: 0.96rem;
    color: var(--dark);
    margin: 0;
    line-height: 1.2;
}

.pos-item-sub-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    font-size: 0.78rem;
}

.pos-item-sku-tag {
    color: rgba(222, 184, 135, 0.5);
}

.pos-item-stock-tag {
    background: rgba(123, 234, 138, 0.1);
    color: #7bea8a;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.72rem;
}

.pos-item-stock-tag.out {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.pos-item-godown-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.2);
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-item-godown-tag svg {
    flex-shrink: 0;
}

.pos-item-row-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.pos-item-body-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pos-item-body-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.pos-item-divider {
    height: 1px;
    border-top: 1px dashed rgba(205, 133, 63, 0.1);
    margin: 10px 0;
}

/* Autocomplete Suggestions Dropdown */
.pos-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #2b1a0e;
    border: 1px solid rgba(205, 133, 63, 0.2);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 999;
    overflow: hidden;
    animation: suggDropIn 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 320px;
    overflow-y: auto;
}

@keyframes suggDropIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pos-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(205, 133, 63, 0.06);
}

.pos-suggestion-item:last-child {
    border-bottom: none;
}

.pos-suggestion-item:hover,
.pos-suggestion-item.pos-suggestion-active {
    background: rgba(205, 133, 63, 0.08);
}

.pos-sug-sku {
    background: rgba(205, 133, 63, 0.12);
    color: #deb887;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.4px;
    white-space: nowrap;
    border: 1px solid rgba(205, 133, 63, 0.2);
    flex-shrink: 0;
}

.pos-sug-name {
    flex: 1;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
}

.pos-sug-price {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    white-space: nowrap;
}

.pos-sug-added {
    font-size: 0.75rem;
    font-weight: 700;
    color: #7bea8a;
    background: rgba(123, 234, 138, 0.1);
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.pos-suggestion-empty {
    padding: 18px 20px;
    text-align: center;
    color: rgba(222, 184, 135, 0.45);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

/* ----------------------------------------------------------------
   Cart / Items Area
   ---------------------------------------------------------------- */
.pos-items-area {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Empty cart placeholder */
.pos-empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 20px;
    color: rgba(222, 184, 135, 0.35);
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.pos-empty-cart svg {
    color: rgba(205, 133, 63, 0.3);
    opacity: 0.7;
}

.pos-empty-cart-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* POS Items Table */
.pos-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(30, 20, 10, 0.82);
    border: 1px solid rgba(205, 133, 63, 0.12);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    animation: fadeIn 0.3s ease;
}

.pos-th {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #deb887;
    padding: 16px 20px;
    background: rgba(205, 133, 63, 0.06);
    border-bottom: 1px solid rgba(205, 133, 63, 0.1);
    text-align: left;
    white-space: nowrap;
}

.pos-th-num {
    width: 48px;
    text-align: center;
    color: rgba(222, 184, 135, 0.5);
}

.pos-th-qty {
    width: 100px;
    text-align: center;
}

.pos-th-price {
    width: 130px;
    text-align: right;
}

.pos-th-del {
    width: 48px;
}

.pos-td {
    padding: 14px 20px;
    font-size: 0.93rem;
    color: var(--dark);
    border-bottom: 1px solid rgba(205, 133, 63, 0.06);
    vertical-align: middle;
    transition: background 0.15s ease;
}

.pos-table-row:last-child .pos-td {
    border-bottom: none;
}

.pos-table-row:hover .pos-td {
    background: rgba(205, 133, 63, 0.03);
}

.pos-td-num {
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    color: rgba(222, 184, 135, 0.4);
    font-weight: 600;
}

.pos-td-name {
    font-weight: 600;
    color: var(--dark);
}

.pos-td-qty {
    text-align: center;
}

.pos-td-price {
    text-align: right;
}

.pos-td-total {
    text-align: right;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.pos-td-del {
    text-align: center;
}

/* Editable Quantity Input */
.pos-qty-input {
    width: 68px;
    padding: 8px 10px;
    border: 2px solid rgba(205, 133, 63, 0.15);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    outline: none;
    transition: var(--transition);
}

.pos-qty-input:focus {
    border-color: #cd853f;
    box-shadow: 0 0 0 3px rgba(205, 133, 63, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

/* Editable Price Input */
.pos-price-input-wrapper {
    display: inline-flex;
    align-items: center;
    border: 2px solid rgba(205, 133, 63, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition);
    float: right;
}

.pos-price-input-wrapper:focus-within {
    border-color: #cd853f;
    box-shadow: 0 0 0 3px rgba(205, 133, 63, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.pos-price-symbol {
    padding: 0 6px 0 10px;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    color: #deb887;
    font-size: 1rem;
    line-height: 1;
    user-select: none;
}

.pos-price-input {
    width: 80px;
    padding: 8px 8px 8px 2px;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    background: transparent;
    outline: none;
    text-align: right;
}

/* Remove Row Button */
.pos-remove-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.08);
    color: #ff6b6b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.pos-remove-btn:hover {
    background: #ff6b6b;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.25);
}

/* ----------------------------------------------------------------
   Sticky Summary Bar (bottom of home view)
   ---------------------------------------------------------------- */
.pos-summary-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    background: rgba(30, 20, 10, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(205, 133, 63, 0.12);
    border-radius: 0 0 0 0;
    padding: 0 40px;
    height: 70px;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.pos-summary-bar.pos-summary-bar-active {
    background: rgba(30, 20, 10, 0.97);
    box-shadow: 0 -8px 32px rgba(205, 133, 63, 0.08);
}

.pos-summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
}

.pos-summary-divider {
    width: 1px;
    height: 32px;
    background: rgba(205, 133, 63, 0.12);
    flex-shrink: 0;
}

.pos-summary-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(222, 184, 135, 0.55);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.pos-summary-value {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
}

.pos-summary-total .pos-summary-label {
    opacity: 0.7;
}

.pos-summary-price {
    color: var(--primary);
    font-size: 1.5rem;
}

/* Number spinner arrows hidden for cleaner look */
.pos-qty-input::-webkit-inner-spin-button,
.pos-qty-input::-webkit-outer-spin-button,
.pos-price-input::-webkit-inner-spin-button,
.pos-price-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pos-qty-input,
.pos-price-input {
    -moz-appearance: textfield;
}

/* ============================================================
   Product Image Upload Zone (Add Product Modal)
   ============================================================ */
.image-upload-zone {
    border: 2px dashed rgba(205, 133, 63, 0.25);
    border-radius: 12px;
    padding: 20px 16px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(205, 133, 63, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    user-select: none;
}

.image-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(205, 133, 63, 0.06);
}

/* ============================================================
   Low Stock Row Blink Alert
   ============================================================ */
@keyframes lowStockBlink {
    0% {
        background-color: transparent;
    }

    40% {
        background-color: rgba(255, 107, 107, 0.08);
    }

    60% {
        background-color: rgba(255, 107, 107, 0.12);
    }

    100% {
        background-color: transparent;
    }
}

tr.row-low-stock {
    animation: lowStockBlink 1.4s ease-in-out infinite;
    outline: none;
}

tr.row-low-stock td {
    color: #ff6b6b !important;
}

tr.row-low-stock .stock-badge,
tr.row-low-stock .badge-soldout {
    background: rgba(255, 107, 107, 0.12) !important;
    color: #ff6b6b !important;
    border-color: rgba(255, 107, 107, 0.3) !important;
}

/* ============================================================
   Settings View
   ============================================================ */
.settings-card {
    background: #2b1a0e;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 32px 36px;
    max-width: 580px;
    border: 1px solid rgba(205, 133, 63, 0.12);
}

.settings-section-title {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.settings-section-desc {
    font-size: 0.875rem;
    color: rgba(222, 184, 135, 0.5);
    line-height: 1.6;
    margin-bottom: 20px;
}

.settings-field {
    margin-top: 4px;
}

.settings-input-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Dashboard View Hiding & Showing Control */
.dashboard-view {
    display: none !important;
}

.dashboard-view.active {
    display: block !important;
}

/* ============================================================
   POS SPLIT LAYOUT (Home View - Grid + Right Cart Sidebar)
   ============================================================ */
#homeView.pos-split-container.active {
    display: flex !important;
    gap: 24px;
    align-items: stretch;
    min-height: calc(100vh - 80px);
    width: 100%;
}

.pos-main-catalog {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* POS Search Bar */
.pos-search-bar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(30, 20, 10, 0.8);
    border: 1px solid rgba(205, 133, 63, 0.15);
    border-radius: 16px;
    padding: 4px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pos-search-bar-wrapper:focus-within {
    border-color: rgba(205, 133, 63, 0.3);
    box-shadow: 0 4px 16px rgba(205, 133, 63, 0.08);
}

.pos-search-icon {
    color: rgba(222, 184, 135, 0.4);
    margin-right: 12px;
    flex-shrink: 0;
}

.pos-search-input-field,
.pos-search-input-field:focus,
.pos-search-input-field:focus-visible {
    width: 100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.pos-search-input-field::placeholder {
    color: rgba(222, 184, 135, 0.35);
}

/* Filter Chips */
.pos-filter-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pos-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 24px;
    border: 1.5px solid rgba(205, 133, 63, 0.15);
    background: rgba(30, 20, 10, 0.8);
    color: rgba(222, 184, 135, 0.7);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.pos-chip:hover {
    border-color: #cd853f;
    color: #cd853f;
    background: rgba(205, 133, 63, 0.06);
}

.pos-chip.active {
    background: #cd853f;
    border-color: #cd853f;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(205, 133, 63, 0.3);
}

/* Square Product Cards Grid (Scaled down to 70%) */
.pos-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.pos-product-card {
    background: rgba(30, 20, 10, 0.8);
    border: 1px solid rgba(205, 133, 63, 0.1);
    border-radius: 14px;
    padding: 9px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    user-select: none;
}

.pos-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border-color: rgba(205, 133, 63, 0.35);
}

.pos-card-img-wrap {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    border-radius: 10px;
    background: rgba(205, 133, 63, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.pos-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.pos-card-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #cd853f;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 5px rgba(205, 133, 63, 0.3);
    z-index: 2;
}

.pos-card-badge.badge-out {
    background: rgba(222, 184, 135, 0.3);
    box-shadow: none;
}

.pos-card-title {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--dark);
    margin-bottom: 2px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-card-stock {
    font-size: 0.7rem;
    color: rgba(222, 184, 135, 0.5);
    margin-bottom: 6px;
}

.pos-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.pos-card-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: #cd853f;
    font-family: 'Fredoka', sans-serif;
}

.pos-card-add-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid rgba(205, 133, 63, 0.2);
    background: rgba(30, 20, 10, 0.8);
    color: #cd853f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pos-card-add-btn:hover {
    background: #cd853f;
    color: #ffffff;
    border-color: #cd853f;
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(205, 133, 63, 0.3);
}

/* RIGHT SIDEBAR: CART CONTAINER */
.pos-cart-sidebar {
    width: 470px;
    flex-shrink: 0;
    background: rgba(30, 20, 10, 0.9);
    border: 1px solid rgba(205, 133, 63, 0.12);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Customer Name Box */
.cart-customer-box {
    margin-bottom: 16px;
}

.cart-customer-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(222, 184, 135, 0.5);
    letter-spacing: 0.6px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-customer-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(205, 133, 63, 0.15);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s;
}

.cart-customer-input:focus {
    border-color: #cd853f;
}

/* Walk-in Customer Badge Indicator */
.walkin-badge-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #4ade80;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    animation: walkInPulse 2.5s ease-in-out infinite;
}

.walkin-badge-indicator svg {
    flex-shrink: 0;
    opacity: 0.8;
}

@keyframes walkInPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

/* Active Basket Header */
.cart-basket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(205, 133, 63, 0.1);
}

.cart-basket-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
}

.cart-badge-count {
    background: #cd853f;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 12px;
    font-family: 'Fredoka', sans-serif;
}

.btn-clear-cart-link {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.btn-clear-cart-link:hover {
    text-decoration: underline;
}

/* Cart Items Scroll Container */
.cart-items-scroll {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 460px);
    min-height: 160px;
    margin-bottom: 16px;
    padding-right: 2px;
}

.cart-empty-box {
    text-align: center;
    padding: 30px 10px;
}

/* Cart Item Card */
.cart-item-card {
    background: rgba(60, 30, 10, 0.5);
    border: 1px solid rgba(205, 133, 63, 0.1);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--dark);
}

.cart-item-trash-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    color: #ff6b6b;
}

.cart-item-trash-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cart-item-unit-price {
    font-size: 0.78rem;
    font-weight: 600;
    color: #cd853f;
}

/* Item Discount Controls inside Active Basket Card */
.cart-item-discount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px dashed rgba(205, 133, 63, 0.1);
}

.cart-item-discount-lbl {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(222, 184, 135, 0.6);
}

.cart-item-discount-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-discount-select {
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(205, 133, 63, 0.2);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.cart-item-discount-input {
    width: 75px;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(205, 133, 63, 0.2);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    text-align: right;
    outline: none;
    transition: border-color 0.2s;
}

.cart-item-discount-select:focus,
.cart-item-discount-input:focus {
    border-color: #cd853f;
}

.cart-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0;
}

.cart-step-btn {
    width: 28px;
    height: 28px;
    border: 1.5px solid rgba(205, 133, 63, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-step-btn:hover {
    border-color: #cd853f;
    color: #cd853f;
    background: rgba(205, 133, 63, 0.08);
}

.cart-step-input,
.cart-qty-input {
    width: 65px;
    padding: 5px 12px;
    border: 1.5px solid rgba(205, 133, 63, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}

.cart-step-input:focus,
.cart-qty-input:focus {
    border-color: #cd853f;
    box-shadow: 0 0 0 3px rgba(205, 133, 63, 0.12);
}

.cart-step-input::-webkit-inner-spin-button,
.cart-step-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.cart-item-line-total {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--dark);
}

/* Cart Footer Summary */
.cart-footer-summary {
    border-top: 1px solid rgba(205, 133, 63, 0.12);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: rgba(222, 184, 135, 0.7);
}

.summary-row.total-row {
    padding: 8px 0;
    border-top: 1px dashed rgba(205, 133, 63, 0.15);
    border-bottom: 1px dashed rgba(205, 133, 63, 0.15);
    margin: 4px 0;
}

.total-label {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
}

.total-amount-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #cd853f;
    font-family: 'Fredoka', sans-serif;
}

.discount-inline-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.discount-select {
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(205, 133, 63, 0.2);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    outline: none;
}

.discount-input,
.cart-num-input {
    width: 70px;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(205, 133, 63, 0.2);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    text-align: right;
    outline: none;
}

.discount-input:focus,
.cart-num-input:focus {
    border-color: #cd853f;
}

.change-row {
    color: rgba(222, 184, 135, 0.7);
}

.change-amount-val {
    font-size: 0.98rem;
    font-weight: 800;
    color: #7bea8a;
}

.btn-checkout-submit {
    width: 100%;
    padding: 13px;
    border-radius: 16px;
    background: linear-gradient(135deg, #8b5a2b 0%, #cd853f 100%);
    color: #ffffff;
    border: none;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    box-shadow: 0 4px 16px rgba(139, 90, 43, 0.35);
    transition: all 0.2s ease;
}

.btn-checkout-submit:hover {
    background: linear-gradient(135deg, #a0522d 0%, #deb887 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.45);
}

/* Print Godown Slip Button */
.btn-godown-slip {
    width: 100%;
    padding: 10px 13px;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 8px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-godown-slip:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.55);
    color: #c4b5fd;
    transform: translateY(-1px);
}

/* ============================================================
   GODOWN SLIP MODAL
   ============================================================ */
.godown-slip-modal-box {
    max-width: 700px;
    width: 95%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 0;
    border-radius: 20px;
    background: #1a1108;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.godown-slip-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.godown-slip-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #a78bfa;
}

.godown-slip-subtitle {
    padding: 10px 24px 14px;
    font-size: 0.8rem;
    color: rgba(167, 139, 250, 0.55);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.godown-slip-content {
    padding: 18px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.godown-slip-card {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 14px;
    overflow: hidden;
}

.godown-slip-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    background: rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.godown-slip-wh-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #c4b5fd;
}

.godown-slip-code-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.3);
    letter-spacing: 1px;
}

.btn-print-slip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.35);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.btn-print-slip:hover {
    background: rgba(139, 92, 246, 0.32);
    border-color: rgba(139, 92, 246, 0.6);
    color: #ede9fe;
}

.godown-slip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 10px 16px;
    font-size: 0.78rem;
    color: rgba(222, 184, 135, 0.75);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.godown-slip-meta span strong {
    color: rgba(222, 184, 135, 0.95);
    font-weight: 600;
}

.godown-slip-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.82rem;
}

.godown-slip-table thead th {
    padding: 8px 14px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(167, 139, 250, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.godown-slip-table thead th:last-child {
    text-align: center;
}

.godown-slip-table tbody td {
    padding: 9px 14px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

.godown-slip-table tbody td:last-child {
    text-align: center;
    font-weight: 700;
    color: #a78bfa;
    font-size: 0.88rem;
}

.godown-slip-table tbody tr:last-child td {
    border-bottom: none;
}

.godown-slip-table tbody tr:hover td {
    background: rgba(139, 92, 246, 0.05);
}

/* ============================================================
   SIDEBAR TOGGLE & COLLAPSED STATE
   ============================================================ */
.sidebar-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.sidebar-toggle-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(205, 133, 63, 0.2);
    background: rgba(30, 20, 10, 0.9);
    color: #deb887;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
    z-index: 10;
}

.sidebar-toggle-btn:hover {
    background: #cd853f;
    color: #ffffff;
    border-color: #cd853f;
    transform: translateY(-50%) scale(1.1);
}

#sidebarToggleIcon {
    transition: transform 0.3s ease;
}

/* Collapsed Sidebar Styles */
body.sidebar-collapsed {
    grid-template-columns: 80px 1fr !important;
}

body.sidebar-collapsed .sidebar {
    padding: 24px 12px;
    align-items: center;
}

body.sidebar-collapsed .sidebar-title,
body.sidebar-collapsed .sidebar-link span,
body.sidebar-collapsed .btn-sidebar-logout span {
    display: none !important;
}

body.sidebar-collapsed .sidebar-header {
    justify-content: center;
    margin-bottom: 30px;
    width: 100%;
}

body.sidebar-collapsed .sidebar-logo-wrapper {
    width: 44px;
    height: 44px;
    margin: 0;
}

body.sidebar-collapsed .sidebar-toggle-btn {
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
}

body.sidebar-collapsed #sidebarToggleIcon {
    transform: rotate(180deg);
}

body.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 12px;
}

body.sidebar-collapsed .btn-sidebar-logout {
    padding: 12px;
    justify-content: center;
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

.nav-due-badge {
    background: #e53935;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    margin-left: auto;
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.4);
    display: inline-block;
}

body.sidebar-collapsed .nav-due-badge {
    display: none !important;
}

/* ============================================================
   TRANSACTIONS HISTORY SCREEN
   ============================================================ */
.tx-header-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tx-header-left {
    flex: 1;
    min-width: 320px;
}

.tx-date-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.tx-date-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(222, 184, 135, 0.7);
}

.tx-date-input {
    padding: 7px 12px;
    border-radius: 10px;
    border: 1.5px solid rgba(205, 133, 63, 0.2);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    color: var(--dark);
    color-scheme: dark;
}

.tx-date-input:focus {
    border-color: #cd853f;
}

.btn-tx-filter {
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #8b5a2b 0%, #cd853f 100%);
    color: #ffffff;
    border: none;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3);
    transition: all 0.2s ease;
}

.btn-tx-filter:hover {
    background: linear-gradient(135deg, #a0522d 0%, #deb887 100%);
    transform: translateY(-1px);
}

.btn-tx-clear {
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(222, 184, 135, 0.6);
    border: 1.5px solid rgba(205, 133, 63, 0.15);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tx-clear:hover {
    border-color: rgba(205, 133, 63, 0.3);
    color: #deb887;
}

/* Stat Cards */
.tx-stat-cards {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.tx-stat-card {
    background: rgba(30, 20, 10, 0.8);
    border: 1px solid rgba(205, 133, 63, 0.1);
    border-radius: 16px;
    padding: 14px 20px;
    min-width: 140px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.tx-stat-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(222, 184, 135, 0.5);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.tx-stat-val {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: 'Fredoka', sans-serif;
}

.tx-stat-val.val-dark {
    color: var(--dark);
}

.tx-stat-val.val-gold {
    color: #deb887;
}

.tx-stat-val.val-green {
    color: #7bea8a;
}

/* Items Sold Summary Carousel */
.tx-summary-section {
    margin-bottom: 24px;
}

.tx-summary-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #deb887;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tx-items-summary-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.tx-summary-card {
    background: rgba(30, 20, 10, 0.8);
    border: 1px solid rgba(205, 133, 63, 0.1);
    border-radius: 16px;
    padding: 12px 18px;
    min-width: 150px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tx-sum-pname {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 4px;
    white-space: nowrap;
}

.tx-sum-qty {
    font-size: 0.88rem;
    font-weight: 800;
    color: #deb887;
}

/* Transaction Row Cards List */
.tx-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tx-row-card {
    background: rgba(30, 20, 10, 0.8);
    border: 1px solid rgba(205, 133, 63, 0.1);
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tx-row-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(205, 133, 63, 0.3);
}

.tx-row-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tx-row-id {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--dark);
}

.tx-row-sub {
    font-size: 0.82rem;
    color: rgba(222, 184, 135, 0.5);
}

.tx-row-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tx-row-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: #deb887;
    font-family: 'Fredoka', sans-serif;
}

.badge-success {
    background: rgba(123, 234, 138, 0.1);
    color: #7bea8a;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.btn-tx-del {
    background: rgba(255, 107, 107, 0.08);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.15);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-tx-del:hover {
    background: #ff6b6b;
    color: #ffffff;
}

.btn-tx-arrow {
    background: none;
    border: none;
    color: rgba(205, 133, 63, 0.3);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-tx-arrow:hover {
    color: #deb887;
}

.badge-deactive {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.badge-blocked {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.badge-admin {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.badge-cashier {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.badge-data-entry {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.badge-master-user {
    background: rgba(205, 133, 63, 0.15);
    color: #deb887;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.btn-tx-edit {
    background: rgba(56, 189, 248, 0.08);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-tx-edit:hover {
    background: #0284c7;
    color: #ffffff;
}

.btn-tx-reminder {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-tx-reminder:hover {
    background: #d97706;
    color: #ffffff;
    border-color: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.btn-tx-reminder.has-reminder {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.6);
    color: #fef3c7;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.cust-reminder-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    margin-top: 5px;
    cursor: pointer;
    width: fit-content;
    transition: all 0.2s ease;
    user-select: none;
}

.cust-reminder-indicator.reminder-upcoming {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.cust-reminder-indicator.reminder-upcoming:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: #fbbf24;
}

.cust-reminder-indicator.reminder-today {
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: #fef08a;
    animation: reminderPulse 2s infinite;
}

.cust-reminder-indicator.reminder-overdue {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.cust-reminder-indicator.reminder-overdue:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
}

@keyframes reminderPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(234, 179, 8, 0); }
}

.reminder-diff {
    font-size: 0.70rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.reminder-diff.upcoming {
    background: rgba(245, 158, 11, 0.25);
    color: #fef3c7;
}

.reminder-diff.today {
    background: #eab308;
    color: #1a0e05;
}

.reminder-diff.overdue {
    background: rgba(239, 68, 68, 0.3);
    color: #fee2e2;
}

.btn-reminder-preset {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(205, 133, 63, 0.2);
    color: var(--dark);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.15s ease;
}

.btn-reminder-preset:hover {
    background: rgba(205, 133, 63, 0.2);
    border-color: #cd853f;
    color: #deb887;
}

.btn-tx-ledger {
    background: rgba(205, 133, 63, 0.12);
    color: #deb887;
    border: 1px solid rgba(205, 133, 63, 0.25);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-tx-ledger:hover {
    background: #cd853f;
    color: #ffffff;
}

/* ==========================================
   POS THERMAL RECEIPT MODAL STYLING
   ========================================== */

.pos-receipt-card {
    background: #fdfdfc;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: 750px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #1a202c;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    border: 1px solid #e2e8f0;
}

.pos-receipt-body {
    padding: 15px 12px;
    overflow-y: auto;
    flex: 1;
    background: #ffffff;
    color: #000000;
    font-family: 'Courier New', Courier, monospace, Arial, sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
}

.pos-receipt-header {
    text-align: center;
    margin-bottom: 9px;
}

.pos-receipt-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.01rem;
    font-weight: 800;
    letter-spacing: 0px;
    color: #000000;
    margin: 0 0 3px 0;
    text-transform: uppercase;
    word-break: break-all;
}

.pos-receipt-subtitle {
    font-size: 1.44rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 3px 0;
    word-break: break-word;
}

.pos-receipt-info {
    font-size: 1.38rem;
    font-weight: 600;
    color: #000000;
    margin: 3px 0;
    line-height: 1.25;
    word-break: break-word;
}

.pos-receipt-dashed-divider {
    border-top: 1px dashed #000000;
    margin: 9px 0;
    width: 100%;
}

.pos-receipt-solid-divider {
    border-top: 1px solid #000000;
    margin: 9px 0;
    width: 100%;
}

.pos-receipt-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 1.44rem;
    color: #000000;
    font-weight: 600;
}

.pos-receipt-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    overflow: hidden;
}

.pos-receipt-meta-row strong {
    color: #000000;
    font-weight: 800;
}

.pos-receipt-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 1.44rem;
    color: #000000;
    margin: 6px 0;
}

.pos-receipt-table th {
    font-size: 1.44rem;
    font-weight: 800;
    color: #000000;
    border-bottom: 1px dashed #000000;
    padding-bottom: 6px;
    overflow: hidden;
}

.pos-receipt-table td {
    padding: 3px 0;
    vertical-align: top;
    font-size: 1.44rem;
    color: #000000;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-receipt-summary {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 1.50rem;
    color: #000000;
    font-weight: 600;
}

.pos-receipt-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.pos-receipt-summary-row strong {
    color: #000000;
    font-weight: 800;
}

.pos-receipt-total-row {
    font-size: 2.01rem;
    font-weight: 800;
    color: #000000;
    padding: 3px 0;
}

.pos-receipt-total-lbl {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    font-size: 2.10rem;
    color: #000000;
}

.pos-receipt-total-val {
    font-weight: 800;
    color: #000000;
    font-size: 2.10rem;
}

.pos-receipt-footer {
    text-align: center;
    font-size: 1.38rem;
    color: #000000;
    margin-top: 9px;
    line-height: 1.3;
    font-weight: 700;
    word-break: break-word;
}

.pos-receipt-footer p {
    margin: 1px 0;
}

.pos-receipt-actions {
    display: flex;
    width: 100%;
    border-top: 1px dashed rgba(205, 133, 63, 0.2);
}

.btn-rcpt-cancel {
    flex: 1;
    background: #3c1e0a;
    color: #deb887;
    border: none;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-rcpt-cancel:hover {
    background: #2b1a0e;
}

.btn-rcpt-godown {
    flex: 1;
    background: #5c3a1e;
    color: #ffd8a8;
    border: none;
    border-left: 1px solid rgba(205, 133, 63, 0.3);
    border-right: 1px solid rgba(205, 133, 63, 0.3);
    padding: 16px 14px;
    font-size: 0.90rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-rcpt-godown:hover {
    background: #734826;
    color: #ffffff;
}

.btn-rcpt-print {
    flex: 1;
    background: linear-gradient(135deg, #8b5a2b 0%, #cd853f 100%);
    color: #ffffff;
    border: none;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-rcpt-print:hover {
    background: linear-gradient(135deg, #a0522d 0%, #deb887 100%);
}

/* Print Rules - Targeted for 80mm Thermal Receipt Printer (Black Copper BC-85AC) */
@media print {
    @page {
        size: 80mm 210mm;
        margin: 0mm !important;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-sizing: border-box !important;
    }

    html {
        width: 80mm !important;
        max-width: 80mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body {
        width: 80mm !important;
        max-width: 80mm !important;
        height: 210mm !important;
        max-height: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
        overflow: hidden !important;
        font-family: 'Courier New', Courier, monospace !important;
        font-size: 6pt !important;
    }

    /* Hide absolutely everything that is not the receipt modal */
    body > *:not(#txDetailsModal) {
        display: none !important;
        visibility: hidden !important;
    }

    #txDetailsModal {
        display: block !important;
        visibility: visible !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 80mm !important;
        max-width: 80mm !important;
        height: 210mm !important;
        max-height: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border: none !important;
        overflow: hidden !important;
    }

    .pos-receipt-card {
        display: block !important;
        width: 80mm !important;
        max-width: 80mm !important;
        height: 210mm !important;
        max-height: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }

    #posReceiptContent {
        display: block !important;
        width: 76mm !important;
        max-width: 76mm !important;
        max-height: 205mm !important;
        margin: 0 auto !important;
        padding: 1mm 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        color: #000000 !important;
        font-family: 'Courier New', Courier, monospace !important;
        font-size: 6pt !important;
        line-height: 1.15 !important;
    }

    /* Reset all enlarged screen font sizes back to original thermal sizes for print */
    .pos-receipt-header { margin-bottom: 3px !important; }
    .pos-receipt-title { font-size: 0.67rem !important; margin: 0 0 1px 0 !important; }
    .pos-receipt-subtitle { font-size: 0.48rem !important; margin: 0 0 1px 0 !important; }
    .pos-receipt-info { font-size: 0.46rem !important; margin: 1px 0 !important; line-height: 1.15 !important; }
    .pos-receipt-dashed-divider { margin: 3px 0 !important; }
    .pos-receipt-solid-divider { margin: 3px 0 !important; }
    .pos-receipt-meta { gap: 1px !important; font-size: 0.48rem !important; }
    .pos-receipt-meta-row { gap: 2px !important; }
    .pos-receipt-table { font-size: 0.48rem !important; margin: 2px 0 !important; }
    .pos-receipt-table th { font-size: 0.48rem !important; padding-bottom: 2px !important; }
    .pos-receipt-table td { padding: 1px 0 !important; font-size: 0.48rem !important; }
    .pos-receipt-summary { gap: 1px !important; font-size: 0.50rem !important; }
    .pos-receipt-total-row { font-size: 0.67rem !important; padding: 1px 0 !important; }
    .pos-receipt-total-lbl { font-size: 0.70rem !important; }
    .pos-receipt-total-val { font-size: 0.70rem !important; }
    .pos-receipt-footer { font-size: 0.46rem !important; margin-top: 3px !important; line-height: 1.2 !important; }
    .pos-receipt-body { padding: 5px 4px !important; }

    #posReceiptContent * {
        color: #000000 !important;
        font-family: 'Courier New', Courier, monospace !important;
        font-size: inherit !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }

    #posReceiptContent img {
        max-height: 20px !important;
        width: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .pos-receipt-actions,
    .modal-close {
        display: none !important;
    }
}

/* ==========================================
   PAYMENT METHOD RADIO OPTIONS
   ========================================== */

.payment-method-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 10px 0 6px 0;
}

.payment-radio-group {
    display: flex;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
}

.payment-radio-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    user-select: none;
    padding: 7px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(205, 133, 63, 0.15);
    border-radius: 10px;
    flex: 1 1 0;
    min-width: 75px;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.payment-radio-btn:hover {
    border-color: #cd853f;
}

.payment-radio-btn input[type="radio"] {
    accent-color: #cd853f;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.payment-radio-btn:has(input[type="radio"]:checked) {
    background: rgba(205, 133, 63, 0.1);
    border-color: #cd853f;
    color: #deb887;
}

/* ============================================================
   DATA GRID TABLE SYSTEM — Classic DataTable Style
   (User Management, Customers, Ledger, Batches)
   ============================================================ */

/* ── Card Shell ─────────────────────────────────────────── */
.users-table-card,
.table-container {
    background: rgba(20, 11, 5, 0.96);
    border: 1px solid rgba(205, 133, 63, 0.35);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin-bottom: 24px;
}

/* ── Responsive wrapper ──────────────────────────────────── */
.table-responsive-container,
.ledger-table-wrap {
    width: 100%;
    overflow-x: auto;
}

/* ── Core Table ──────────────────────────────────────────── */
.users-table,
.ledger-table,
.inventory-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: left;
    min-width: 560px;
    table-layout: auto;
}

/* ── Column Header ───────────────────────────────────────── */
.users-table thead tr,
.ledger-table thead tr,
.inventory-table thead tr {
    background: rgba(45, 27, 12, 0.98);
}

.users-table th,
.ledger-table th,
.inventory-table th {
    padding: 11px 14px;
    font-size: 0.83rem;
    font-weight: 700;
    color: #deb887;
    border-bottom: 2px solid rgba(205, 133, 63, 0.5);
    border-right: 1px solid rgba(205, 133, 63, 0.2);
    text-transform: none;
    letter-spacing: 0.2px;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    position: relative;
    cursor: default;
    user-select: none;
}

.users-table th:last-child,
.ledger-table th:last-child,
.inventory-table th:last-child {
    border-right: none;
}

/* Sort icon in header */
.th-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.th-sort-icon {
    display: flex;
    flex-direction: column;
    gap: 1px;
    opacity: 0.5;
    flex-shrink: 0;
}

.th-sort-icon span {
    display: block;
    width: 0;
    height: 0;
}

.th-sort-icon span:first-child {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 5px solid #deb887;
}

.th-sort-icon span:last-child {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #deb887;
}

/* ── Data Rows ───────────────────────────────────────────── */
.users-table tbody tr,
.ledger-table tbody tr,
.inventory-table tbody tr {
    transition: background 0.12s ease;
    border-bottom: 1px solid rgba(205, 133, 63, 0.12);
}

.users-table tbody tr:nth-child(odd),
.ledger-table tbody tr:nth-child(odd),
.inventory-table tbody tr:nth-child(odd) {
    background: rgba(12, 7, 3, 0.6);
}

.users-table tbody tr:nth-child(even),
.ledger-table tbody tr:nth-child(even),
.inventory-table tbody tr:nth-child(even) {
    background: rgba(35, 20, 10, 0.55);
}

.users-table tbody tr:hover,
.ledger-table tbody tr:hover,
.inventory-table tbody tr:hover {
    background: rgba(205, 133, 63, 0.14) !important;
}

.users-table tbody tr:last-child,
.ledger-table tbody tr:last-child,
.inventory-table tbody tr:last-child {
    border-bottom: none;
}

.users-table td,
.ledger-table td,
.inventory-table td {
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #e8dfd5;
    border-right: 1px solid rgba(205, 133, 63, 0.1);
    vertical-align: middle;
    line-height: 1.4;
}

.users-table td:last-child,
.ledger-table td:last-child,
.inventory-table td:last-child {
    border-right: none;
}

/* ── Table ID Badge ──────────────────────────────────────── */
.table-id-badge {
    background: rgba(205, 133, 63, 0.15);
    color: #ecc94b;
    border: 1px solid rgba(236, 201, 75, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    display: inline-block;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
}

/* ============================================================
   DATA GRID PAGINATION TOOLBAR
   ============================================================ */

/* Toolbar wrapper — sits inside .users-table-card BELOW the table */
.dg-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 9px 14px;
    background: rgba(40, 24, 12, 0.95);
    border-top: 2px solid rgba(205, 133, 63, 0.3);
}

/* Left side: items-per-page */
.dg-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: rgba(222, 184, 135, 0.8);
    font-family: 'Outfit', sans-serif;
}

.dg-per-page select {
    background: rgba(20, 11, 5, 0.9);
    border: 1px solid rgba(205, 133, 63, 0.35);
    color: #deb887;
    padding: 3px 22px 3px 8px;
    border-radius: 4px;
    font-size: 0.83rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23deb887'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    outline: none;
    transition: border-color 0.2s;
}

.dg-per-page select:hover,
.dg-per-page select:focus {
    border-color: #deb887;
}

/* Right side: nav + item count */
.dg-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Navigation buttons group */
.dg-nav-btns {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Individual nav button */
.dg-nav-btn {
    background: rgba(35, 20, 10, 0.9);
    border: 1px solid rgba(205, 133, 63, 0.3);
    color: #deb887;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
    padding: 0;
}

.dg-nav-btn:hover:not(:disabled) {
    background: rgba(205, 133, 63, 0.25);
    border-color: #deb887;
    color: #fff;
}

.dg-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Current page input */
.dg-page-input {
    background: rgba(20, 11, 5, 0.9);
    border: 1px solid rgba(205, 133, 63, 0.4);
    color: #deb887;
    width: 40px;
    height: 28px;
    border-radius: 4px;
    font-size: 0.83rem;
    font-weight: 700;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    outline: none;
    padding: 0 4px;
    transition: border-color 0.2s;
}

.dg-page-input:focus {
    border-color: #cd853f;
}

.dg-page-sep {
    color: rgba(222, 184, 135, 0.6);
    font-size: 0.8rem;
    margin: 0 2px;
    font-family: 'Outfit', sans-serif;
}

/* Total count label (right-most) */
.dg-item-count {
    font-size: 0.82rem;
    color: rgba(222, 184, 135, 0.75);
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
}

/* ── Backwards compat — hide old pagination-bar if still present ── */
.pagination-bar {
    display: none !important;
}

/* ============================================================
   USER MANAGEMENT & ROLE BADGES
   ============================================================ */
.user-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.badge-admin {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.45);
}

.badge-cashier {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.45);
}

.badge-data-entry {
    background: rgba(52, 211, 153, 0.18);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.45);
}

.badge-master-user {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Outfit', sans-serif;
}

/* ── Action Buttons ──────────────────────────────────────── */
.btn-user-del {
    background: #e53935;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px 9px;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.35);
}

.btn-user-del:hover {
    background: #c62828;
    box-shadow: 0 3px 10px rgba(229, 57, 53, 0.5);
    transform: translateY(-1px);
}

.btn-table-edit {
    background: #1976d2;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px 9px;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.35);
}

.btn-table-edit:hover {
    background: #1565c0;
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.5);
    transform: translateY(-1px);
}

.btn-user-add {
    background: linear-gradient(135deg, #8b5a2b 0%, #cd853f 100%);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(139, 90, 43, 0.35);
    transition: all 0.2s ease;
}

.btn-user-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.5);
}

/* ============================================================
   CUSTOMER STATUS & BALANCE BADGES
   ============================================================ */
.customer-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.status-badge-active {
    background: rgba(34, 197, 94, 0.18);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.status-badge-deactive {
    background: rgba(222, 184, 135, 0.15);
    color: #deb887;
    border: 1px solid rgba(222, 184, 135, 0.35);
}

.status-badge-blocked {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.balance-pill {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.84rem;
    font-family: 'Fredoka', sans-serif;
    padding: 3px 10px;
    border-radius: 4px;
}

.balance-pill.due {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.balance-pill.advance {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.balance-pill.cleared {
    background: rgba(34, 197, 94, 0.14);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Ledger action button */
.btn-ledger-action {
    background: #1976d2;
    color: #ffffff;
    border: none;
    padding: 5px 11px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.35);
    font-family: 'Outfit', sans-serif;
}

.btn-ledger-action:hover {
    background: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.5);
}

/* Delete Ledger Entry Button */
.btn-delete-ledger-entry {
    background: rgba(255, 71, 87, 0.12);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-delete-ledger-entry:hover {
    background: #ff4757;
    color: #ffffff;
    border-color: #ff4757;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

/* ============================================================
   LEDGER CARD & ENTRY BOX
   ============================================================ */
.ledger-modal-card {
    max-width: 900px !important;
    width: 95% !important;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 28px !important;
    overflow: hidden;
}

.ledger-modal-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 6px;
    margin-top: 15px;
}

.ledger-entry-box {
    background: rgba(45, 27, 12, 0.5);
    border: 1px solid rgba(205, 133, 63, 0.25);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
}

/* ============================================================
   LEDGER TABLE (STATEMENT)
   ============================================================ */
.ledger-summary-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(205, 133, 63, 0.15);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.ledger-banner-item { display: flex; flex-direction: column; gap: 3px; }

.ledger-banner-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(222, 184, 135, 0.55);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ledger-banner-val {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Fredoka', sans-serif;
}

/* Transaction type badges */
.type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-family: 'Outfit', sans-serif;
}

.type-sale    { background: rgba(245,158,11,0.18); color:#f59e0b; border:1px solid rgba(245,158,11,0.35); }
.type-payment { background: rgba(34,197,94,0.18);  color:#4ade80; border:1px solid rgba(74,222,128,0.35); }
.type-opening { background: rgba(56,189,248,0.18); color:#38bdf8; border:1px solid rgba(56,189,248,0.35); }
.type-adj     { background: rgba(168,85,247,0.18); color:#c084fc; border:1px solid rgba(168,85,247,0.35); }

/* ============================================================
   BATCH / CATALOG BADGES
   ============================================================ */
.sku-badge {
    background: rgba(205,133,63,0.14);
    color: #deb887;
    border: 1px solid rgba(205,133,63,0.32);
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    display: inline-block;
    font-size: 0.82rem;
}

.stock-badge {
    background: rgba(34,197,94,0.14);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,0.32);
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.82rem;
}

.badge-soldout {
    background: rgba(239,68,68,0.14);
    color: #f87171;
    border: 1px solid rgba(248,113,113,0.32);
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.82rem;
}

/* ============================================================
   BUTTON HELPERS (table row)
   ============================================================ */
.btn-table {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-table-primary {
    background: rgba(205,133,63,0.2);
    color: #deb887;
    border-color: rgba(205,133,63,0.4);
}
.btn-table-primary:hover:not(:disabled) { background:#cd853f; color:#fff; }

.btn-table-secondary {
    background: rgba(255,255,255,0.06);
    color: #e8dfd5;
    border-color: rgba(205,133,63,0.22);
}
.btn-table-secondary:hover:not(:disabled) { background:rgba(205,133,63,0.2); color:#deb887; }

.btn-table-danger {
    background: #e53935;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 5px rgba(229,57,53,0.3);
}
.btn-table-danger:hover:not(:disabled) { background:#c62828; }

/* ============================================================
   DATA GRID / PAGINATION TOOLBAR STYLING
   ============================================================ */
.dg-toolbar,
#custPaginationBar,
#usersPaginationBar,
#ledgerPaginationBar,
#txPaginationBar {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 24px !important;
    background: rgba(30, 20, 10, 0.8) !important;
    border: 1px solid rgba(205, 133, 63, 0.2) !important;
    border-radius: 14px !important;
    font-size: 0.85rem !important;
    color: rgba(222, 184, 135, 0.85) !important;
    flex-wrap: wrap !important;
    gap: 32px !important;
    margin: 20px auto 0 auto !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

.dg-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dg-per-page select {
    background: rgba(45, 27, 12, 0.9);
    border: 1px solid rgba(205, 133, 63, 0.3);
    color: var(--dark);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.84rem;
    cursor: pointer;
    outline: none;
}

.dg-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dg-nav-btns {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dg-nav-btn {
    background: rgba(45, 27, 12, 0.8);
    border: 1px solid rgba(205, 133, 63, 0.25);
    color: #deb887;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dg-nav-btn:hover:not(:disabled) {
    background: rgba(205, 133, 63, 0.3);
    border-color: #deb887;
    color: #ffffff;
}

.dg-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.dg-page-input {
    width: 44px;
    height: 32px;
    background: rgba(45, 27, 12, 0.9);
    border: 1px solid rgba(205, 133, 63, 0.3);
    color: var(--dark);
    text-align: center;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    outline: none;
}

.dg-page-sep {
    font-weight: 600;
    color: rgba(222, 184, 135, 0.6);
    margin: 0 4px;
}

.dg-item-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(222, 184, 135, 0.8);
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: rgba(26,14,5,0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(205,133,63,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(205,133,63,0.55); }

/* ============================================================
   ADD STOCKS BUTTON (Products View Header)
   ============================================================ */
.btn-bulk-stocks {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-bulk-stocks:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ============================================================
   BULK STOCK INTAKE VIEW STYLES
   ============================================================ */

/* Header Section with Back Link + Save Button */
.bulk-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bulk-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #38bdf8;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
}

.bulk-back-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* Save Stocks Button */
.btn-save-bulk-stocks {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 6px;
}

.btn-save-bulk-stocks:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
}

.btn-save-bulk-stocks:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Filter Bar */
.bulk-filter-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(30, 20, 10, 0.8);
    border: 1px solid rgba(205, 133, 63, 0.12);
    border-radius: 14px;
    padding: 4px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bulk-filter-bar .input-icon {
    color: rgba(222, 184, 135, 0.35);
    margin-right: 10px;
    flex-shrink: 0;
    position: static;
}

.bulk-filter-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--dark);
    font-family: 'Outfit', sans-serif;
}

.bulk-filter-input::placeholder {
    color: rgba(222, 184, 135, 0.3);
}

/* Bulk Stocks Table */
.bulk-table-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(205, 133, 63, 0.1);
    background: rgba(30, 20, 10, 0.6);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.bulk-stocks-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.bulk-stocks-table thead th {
    padding: 14px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(222, 184, 135, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(30, 20, 10, 0.9);
    border-bottom: 1px solid rgba(205, 133, 63, 0.1);
    text-align: left;
    white-space: nowrap;
}

.bulk-stocks-table tbody tr {
    border-bottom: 1px solid rgba(205, 133, 63, 0.06);
    transition: background 0.15s ease;
}

.bulk-stocks-table tbody tr:nth-child(even) {
    background: rgba(205, 133, 63, 0.02);
}

.bulk-stocks-table tbody tr:hover {
    background: rgba(205, 133, 63, 0.05);
}

.bulk-stocks-table tbody td {
    padding: 10px 16px;
    vertical-align: middle;
    font-size: 0.88rem;
}

/* Bulk Input Fields */
.bulk-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1.5px solid rgba(205, 133, 63, 0.12);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Outfit', sans-serif;
    text-align: right;
    -moz-appearance: textfield;
}

.bulk-input::-webkit-inner-spin-button,
.bulk-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bulk-input::placeholder {
    color: rgba(222, 184, 135, 0.25);
}

.bulk-input:focus {
    border-color: #cd853f;
    box-shadow: 0 0 0 3px rgba(205, 133, 63, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

/* Unit Badge in Bulk Table */
.bulk-unit-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-left: 4px;
}

/* Status Badge */
.bulk-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.bulk-status-badge.empty {
    background: rgba(222, 184, 135, 0.06);
    color: rgba(222, 184, 135, 0.35);
    border: 1px solid rgba(222, 184, 135, 0.1);
}

.bulk-status-badge.filled {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.25);
}

/* Filled Row Highlight */
.bulk-row-filled {
    background: rgba(74, 222, 128, 0.03) !important;
}

.bulk-row-filled .bulk-input {
    border-color: rgba(74, 222, 128, 0.2);
}

select.bulk-input.bulk-warehouse {
    text-align: left;
    cursor: pointer;
    background: rgba(35, 20, 10, 0.9);
    color: var(--dark);
}

select.bulk-input.bulk-warehouse option {
    background: #1e140a;
    color: #f7ebe1;
    padding: 6px;
}
