/* ===================================================
   TEMPLE POS – style.css
   Theme: Sacred White | Saffron | Soft Green
   Font: Poppins
=================================================== */

:root {
    --saffron: #E8721C;
    --saffron-light: #FDF0E6;
    --saffron-mid: #F5A35C;
    --green: #2E7D5E;
    --green-light: #E8F5EF;
    --green-mid: #4CAF86;
    --gold: #C9921A;
    --gold-light: #FFF8E7;
    --white: #FFFFFF;
    --bg: #F7F4F0;
    --grey-50: #FAFAFA;
    --grey-100: #F3F3F3;
    --grey-200: #E8E8E8;
    --grey-400: #ABABAB;
    --grey-600: #6B6B6B;
    --grey-800: #2D2D2D;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --header-h: 64px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--grey-800);
    -webkit-font-smoothing: antialiased;
}

/* ===================== LOGIN PAGE ===================== */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FDF5EC 0%, #EFF8F4 50%, #FEF9F0 100%);
    position: relative;
    overflow: hidden;
}

.login-bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.mandala-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.12;
    animation: rotate 40s linear infinite;
}

.ring-1 {
    width: 500px;
    height: 500px;
    border-color: var(--saffron);
    top: -100px;
    right: -100px;
    animation-duration: 30s;
}

.ring-2 {
    width: 360px;
    height: 360px;
    border-color: var(--green);
    bottom: -80px;
    left: -80px;
    animation-duration: 50s;
    animation-direction: reverse;
}

.ring-3 {
    width: 200px;
    height: 200px;
    border-color: var(--gold);
    bottom: 20%;
    right: 10%;
    animation-duration: 20s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 24px 16px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(232,114,28,0.10);
    animation: cardFadeIn 0.6s cubic-bezier(.22,1,.36,1);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.temple-emblem {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(232,114,28,0.35);
    font-size: 28px;
    color: white;
}

.temple-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--grey-800);
    margin-top: 12px;
    line-height: 1.3;
}

.temple-subtitle {
    font-size: 0.8rem;
    color: var(--grey-400);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--grey-400);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

    .login-divider::before,
    .login-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--grey-200);
    }

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-600);
    margin-bottom: 6px;
}

.input-group-custom {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grey-400);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.custom-input {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    padding: 11px 42px;
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-sm);
    background: var(--grey-50);
    transition: all 0.2s;
    width: 100%;
    outline: none;
    box-shadow: none;
}

    .custom-input:focus {
        border-color: var(--saffron);
        background: var(--white);
        box-shadow: 0 0 0 3px rgba(232,114,28,0.12);
    }

    .custom-input.is-invalid-custom {
        border-color: #dc3545;
        background: #fff9f9;
    }

.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--grey-400);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: color 0.2s;
}

    .toggle-pw:hover {
        color: var(--saffron);
    }

.invalid-feedback-custom {
    color: #dc3545;
    font-size: 0.78rem;
    margin-top: 5px;
    font-weight: 500;
}

.forgot-link {
    color: var(--saffron);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

    .forgot-link:hover {
        opacity: 0.75;
    }

.btn-login {
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 13px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(232,114,28,0.30);
    letter-spacing: 0.03em;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(232,114,28,0.40);
    }

    .btn-login:active {
        transform: translateY(0);
    }

/* ===================== HEADER ===================== */
.pos-header {
    height: var(--header-h);
    background: var(--white);
    border-bottom: 2px solid var(--saffron-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 12px rgba(232,114,28,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}


.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.temple-logo-sm {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 2px 8px rgba(232,114,28,0.3);
}

.header-temple-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--grey-800);
    line-height: 1.2;
}

.header-sub {
    font-size: 0.68rem;
    color: var(--grey-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-center {
    text-align: center;
    /* margin-left: auto; */
}

.live-clock {
    font-size: 14px;
    font-weight: 600;
    color: var(--grey-800);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.live-date {
    font-size: 0.72rem;
    color: var(--grey-400);
    font-weight: 500;
    margin-top: 2px;
}
/* ================= HEADER ================= */
.pos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* LEFT */
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* CENTER */
.header-panchang {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 10px;
    min-width: 0;
}

/* RIGHT */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}


/* ================= PANCHANG CARD ================= */
.panchang-block {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 6px 14px;
    border-radius: 50px;
    background: linear-gradient(135deg, #fff, #ffffff);
    border: 1px solid rgb(232 232 232);
    max-width: 570px;
    width: 100%;
    transition: all 0.2s ease;
}




/* ================= COLUMNS ================= */
.panchang-col {
    flex: 1;
    min-width: 0;
    padding: 0 6px;
}

    .panchang-col:not(:last-child) {
        border-right: 1px solid rgba(0,0,0,0.08);
    }


/* ================= TEXT ================= */
.panchang-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--saffron);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

/* 🔥 KEY FIX: ROW LAYOUT */
.panchang-text {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}

    /* TEXT STYLE */
    .panchang-text p {
        margin: 0;
        font-size: 10px;
        color: var(--grey-600);
    }

        /* FIRST TEXT (Trayodasi / Hasta) */
        .panchang-text p:first-child {
            font-weight: 600;
            color: var(--grey-800);
        }

        /* SECOND TEXT (truncate if long) */
        .panchang-text p:last-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

@media (max-width: 991px) {
    .header-panchang {
        display: none !important;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: 16px;
}

.counter-badge {
    background: var(--saffron-light);
    color: var(--saffron);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.btn-logout {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid var(--grey-200);
    background: var(--white);
    color: var(--grey-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

    .btn-logout:hover {
        background: #FFF2F2;
        border-color: #dc3545;
        color: #dc3545;
    }

/* ===================== MAIN LAYOUT ===================== */
.dashboard-body {
    overflow: hidden;
    height: 100vh;
}

.pos-main {
    display: flex;
    height: calc(100vh - var(--header-h));
    overflow: hidden;
}

/* ===== SERVICE PANEL ===== */
.service-panel {
 /*   flex: 1;
    display: flex;
    flex-direction: column;*/
    overflow-y: auto;
    padding: 16px;
    width: 100%;
}
.service-panel>div:not(last-child) {
margin-bottom:15px
}
    /* Wrapper controls layout */
    .category-wrapper {
    width: 100%;
    overflow: hidden; /* prevents breaking layout */
}

/* Scroll only inside */
.category-bar {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    /*padding: 10px 10px 29px;*/
    margin-bottom: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.cat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1.5px solid var(--grey-200);
    background: var(--white);
    color: var(--grey-600);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex: 0 0 auto;
}

.category-bar::-webkit-scrollbar {
    height: 2px;
}

.category-bar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.cat-btn:hover {
    border-color: var(--saffron);
    color: var(--saffron);
    background: var(--saffron-light);
}

.cat-btn.active {
    background: var(--saffron);
    border-color: var(--saffron);
    color: white;
    box-shadow: 0 2px 10px rgba(232,114,28,0.30);
}

@media (max-width: 768px) {

    .category-wrapper {
        padding: 0 6px;
        overflow: visible;
        margin-bottom: -12px;
    }

    .category-bar {
        gap: 6px;
        padding: 6px 4px;
    }

    .cat-btn {
        flex: 0 0 auto;
        width: auto !important;
        padding: 5px 10px;
        font-size: 0.72rem;
        border-radius: 20px;
    }

        .cat-btn i {
            font-size: 11px;
        }
}
/* Search */
.search-wrap {
    position: relative;
    /* max-width: 400px; */
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grey-400);
    font-size: 0.9rem;
}

.search-bar {
    width: 100%;
    padding: 10px 40px;
    border: 1.5px solid var(--grey-200);
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    background: var(--white);
    outline: none;
    transition: all 0.2s;
}

    .search-bar:focus {
        border-color: var(--saffron);
        box-shadow: 0 0 0 3px rgba(232,114,28,0.10);
    }

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--grey-400);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

    .search-clear:hover {
        color: var(--saffron);
    }

/* Service grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    justify-content: start;
    gap: 14px;
    overflow-y: auto;
    padding-right: 4px;
    /* flex: 1; */
}

    .service-grid::after {
        content: "";
        display: block;
        height: 0px;
    }

    .service-grid::-webkit-scrollbar {
        width: 5px;
    }

    .service-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    .service-grid::-webkit-scrollbar-thumb {
        background: var(--grey-200);
        border-radius: 10px;
    }

/* Service card */
.seva-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    border: 1.5px solid var(--grey-100);
    transition: all 0.25s cubic-bezier(.22,1,.36,1);
    box-shadow: var(--shadow-sm);
    user-select: none;
    position: relative;
    overflow: hidden;
    animation: cardIn 0.3s ease both;
}

.seva-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-height: 180px;
    min-height: 180px;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* REMOVE this completely */
.seva-card::before {
    display: none;
}

/* Default */
.seva-card {
    border: 1.5px solid var(--grey-100);
    transition: all 0.25s ease;
}

    /* Hover → Green border */
    .seva-card:hover {
        border: 1px solid #e8721c;
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
    }

    /* Active (click) → Strong green */
    .seva-card:active {
        border: 1px solid var(--green);
        box-shadow: 0 0 0 3px rgba(46,125,94,0.2);
        transform: scale(0.97);
    }

/* badge style */
.add-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: var(--green);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 0px 0px 0px 4px;
    letter-spacing: 0.03em;
    display: none; /* hidden by default */
}

.seva-card .add-badge {
    display: none;
}

.seva-card.added .add-badge {
    display: block;
}
/* show when added */
.seva-card.added .add-badge {
    display: block;
}

/* your existing */
.seva-card.added {
    border: 1px solid var(--green);
    /* background: rgba(40, 160, 80, 0.014); */
}

.card-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 22px;
    transition: transform 0.25s;
}

.seva-card:hover .card-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
}

.card-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-800);
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--saffron);
    line-height: 1;
}

.card-duration {
    font-size: 0.7rem;
    color: var(--grey-400);
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

/* Category color themes */
.cat-abhishekam .card-icon-wrap {
    background: #E8F4FF;
    color: #1E78C8;
}

.cat-archana .card-icon-wrap {
    background: #FFF0F8;
    color: #C8287A;
}

.cat-homam .card-icon-wrap {
    background: #FFF4E6;
    color: #E06B00;
}

.cat-donation .card-icon-wrap {
    background: #F0FFF8;
    color: #1A9966;
}

.cat-annadanam .card-icon-wrap {
    background: #FFFAE6;
    color: #C8A000;
}

.cat-all .card-icon-wrap {
    background: var(--saffron-light);
    color: var(--saffron);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--grey-400);
}

    .no-results i {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .no-results p {
        font-weight: 500;
    }

/* ===== CART PANEL ===== */
.cart-panel {

    background: var(--white);
    border-left: 1.5px solid var(--grey-200);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -4px 0 20px rgba(0,0,0,0.05);

width: 380px;       
    min-width: 380px;   
    flex-shrink: 0; 
}

.cart-header {
    padding: 14px 16px;
    border-bottom: 1.5px solid var(--grey-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--grey-800);
    display: flex;
    align-items: center;
}

.btn-clear-cart {
    background: none;
    border: none;
    color: var(--grey-400);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

    .btn-clear-cart:hover {
        background: #FFF2F2;
        color: #dc3545;
    }

/* Devotee strip */
.devotee-strip {
    padding: 10px 14px;
    background: var(--green-light);
    border-bottom: 1px solid rgba(46,125,94,0.15);
    display: flex;
    gap: 8px;
}

.strip-field {
    flex: 1;
}

    .strip-field label {
        font-size: 0.65rem;
        font-weight: 600;
        color: var(--green);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: block;
        margin-bottom: 3px;
    }

.strip-input {
    width: 100%;
    padding: 6px 8px;
    border: 1.5px solid rgba(46,125,94,0.25);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

    .strip-input:focus {
        border-color: var(--green);
    }

/* Cart items */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

    .cart-items::-webkit-scrollbar {
        width: 4px;
    }

    .cart-items::-webkit-scrollbar-thumb {
        background: var(--grey-200);
        border-radius: 10px;
    }

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--grey-400);
}

    .cart-empty i {
        font-size: 2.5rem;
        margin-bottom: 10px;
        display: block;
    }

    .cart-empty p {
        font-weight: 600;
        font-size: 0.88rem;
    }

    .cart-empty span {
        font-size: 0.75rem;
    }

/* Cart item row */
.cart-item {
    background: var(--grey-50);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--grey-100);
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: slideIn 0.25s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.cart-item-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--grey-800);
    line-height: 1.3;
    flex: 1;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--grey-400);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .cart-item-remove:hover {
        background: #FFF2F2;
        color: #dc3545;
    }

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-meta {
    font-size: 0.7rem;
    color: var(--grey-400);
}

.cart-item-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--saffron);
}

/* Totals */
.cart-totals {
    padding: 10px 14px;
    border-top: 1.5px solid var(--grey-100);
    background: var(--white);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.82rem;
    color: var(--grey-600);
}

.total-row-main {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--grey-800);
    border-top: 1.5px dashed var(--grey-200);
    padding-top: 8px;
    margin-top: 4px;
}

    .total-row-main span:last-child {
        color: var(--saffron);
    }

/* Payment */
.payment-section {
    padding: 10px 14px;
    border-top: 1px solid var(--grey-100);
}

.payment-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--grey-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.payment-methods {
    display: flex;
    gap: 7px;
}

.pay-btn {
    flex: 1;
    padding: 8px 4px;
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--grey-600);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

    .pay-btn i {
        font-size: 1.1rem;
    }

    .pay-btn:hover {
        border-color: var(--saffron);
        color: var(--saffron);
        background: var(--saffron-light);
    }

    .pay-btn.active {
        border-color: var(--green);
        background: var(--green-light);
        color: var(--green);
        box-shadow: 0 0 0 2px rgba(46,125,94,0.15);
    }

/* Collect button */
.btn-collect {
    margin: 0px 14px 14px;
    width: calc(100% - 28px);
    background: linear-gradient(135deg, var(--green), #1A6645);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(46,125,94,0.30);
    letter-spacing: 0.03em;
}

    .btn-collect:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(46,125,94,0.40);
    }

    .btn-collect:active {
        transform: translateY(0);
    }

/* ===================== MODAL ===================== */
.custom-modal {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-header-custom {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--saffron-light), var(--gold-light));
    border-bottom: 1.5px solid rgba(232,114,28,0.12);
}

.modal-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.modal-seva-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--grey-800);
}

.modal-seva-cat {
    font-size: 0.75rem;
    color: var(--saffron);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.modal-close-btn {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: white;
    color: var(--grey-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

    .modal-close-btn:hover {
        background: #FFF2F2;
        color: #dc3545;
    }

.modal-body-custom {
    padding: 22px 24px;
    background: var(--white);
}

.modal-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--grey-600);
    display: block;
    margin-bottom: 5px;
}

.modal-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    background: var(--grey-50);
    outline: none;
    transition: all 0.2s;
}

    .modal-input:focus {
        border-color: var(--saffron);
        background: var(--white);
        box-shadow: 0 0 0 3px rgba(232,114,28,0.10);
    }

textarea.modal-input {
    resize: vertical;
    min-height: 60px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--grey-50);
}

    .qty-control button {
        width: 36px;
        height: 38px;
        border: none;
        background: var(--grey-100);
        color: var(--grey-800);
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.2s;
        font-weight: 700;
    }

        .qty-control button:hover {
            background: var(--saffron);
            color: white;
        }

    .qty-control input {
        flex: 1;
        border: none;
        outline: none;
        font-family: 'Poppins', sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        background: transparent;
        text-align: center;
    }

.modal-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--saffron-light);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-top: 16px;
    border: 1px solid rgba(232,114,28,0.15);
}

.modal-price-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--grey-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-price-val {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--saffron);
}

.modal-total-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--grey-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    text-align: right;
}

.modal-total-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--green);
    display: block;
    text-align: right;
}

.modal-footer-custom {
    padding: 14px 24px;
    background: var(--grey-50);
    border-top: 1.5px solid var(--grey-100);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-modal-cancel {
    padding: 9px 20px;
    border: 1.5px solid var(--grey-200);
    background: white;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-600);
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-modal-cancel:hover {
        border-color: var(--grey-400);
        color: var(--grey-800);
    }

.btn-modal-add {
    padding: 9px 24px;
    border: none;
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(232,114,28,0.30);
}

    .btn-modal-add:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(232,114,28,0.40);
    }

/* Toast */
.toast {
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--grey-200);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===================== PRINT BILL ===================== */
@media print {
    body * {
        visibility: hidden !important;
    }

    #printBill, #printBill * {
        visibility: visible !important;
    }

    #printBill {
        display: block !important;
        position: fixed;
        inset: 0;
        background: white;
        z-index: 9999;
        padding: 30px;
    }
}

.print-bill {
    max-width: 340px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #111;
}

    .print-bill .bill-header {
        text-align: center;
        border-bottom: 2px dashed #333;
        padding-bottom: 14px;
        margin-bottom: 14px;
    }

    .print-bill .bill-temple-name {
        font-size: 18px;
        font-weight: bold;
        letter-spacing: 0.05em;
    }

    .print-bill .bill-sub {
        font-size: 11px;
        color: #555;
        margin-top: 2px;
    }

    .print-bill .bill-address {
        font-size: 11px;
        color: #555;
        margin-top: 4px;
    }

    .print-bill .bill-meta {
        display: flex;
        justify-content: space-between;
        font-size: 11px;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px dashed #aaa;
    }

    .print-bill table {
        width: 100%;
        font-size: 12px;
        border-collapse: collapse;
    }

        .print-bill table th {
            border-bottom: 1px solid #333;
            padding: 4px 2px;
            text-align: left;
            font-size: 11px;
        }

            .print-bill table th:last-child,
            .print-bill table td:last-child {
                text-align: right;
            }

        .print-bill table td {
            padding: 5px 2px;
            border-bottom: 1px dashed #ddd;
        }

    .print-bill .bill-totals {
        margin-top: 12px;
        border-top: 2px dashed #333;
        padding-top: 10px;
    }

    .print-bill .tot-row {
        display: flex;
        justify-content: space-between;
        padding: 3px 0;
    }

        .print-bill .tot-row.grand {
            font-weight: bold;
            font-size: 15px;
            border-top: 1px solid #333;
            padding-top: 6px;
            margin-top: 4px;
        }

    .print-bill .bill-payment {
        margin-top: 12px;
        padding: 8px;
        background: #f5f5f5;
        border-radius: 4px;
        text-align: center;
        font-size: 12px;
        font-weight: bold;
        border: 1px solid #ddd;
    }

    .print-bill .bill-footer {
        text-align: center;
        margin-top: 18px;
        font-size: 11px;
        color: #666;
        border-top: 2px dashed #333;
        padding-top: 12px;
    }

        .print-bill .bill-footer .thanks {
            font-size: 14px;
            font-weight: bold;
            color: #333;
        }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .cart-panel {
        width: 260px;
        min-width: 240px;
    }

    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 700px) {
    .pos-main {
        flex-direction: column;
         height: calc(100vh - var(--header-h));
        overflow: auto;
    }

    .service-panel {
        height: 60vh;
    }

    .cart-panel {
        width: 100%;
        border-left: none;
        border-top: 2px solid var(--grey-200);
        min-height: 340px;
    }

    .pos-header {
        padding: 0 12px;
    }

    .header-center {
        display: none;
    }

    .login-card {
        padding: 32px 22px;
    }
}


/* ===============================
   LARGE SCREENS
================================ */
@media (min-width: 1200px) {
    .service-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===============================
   LAPTOP
================================ */
@media (max-width: 1199px) {
    .service-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===============================
   TABLET
================================ */
@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===============================
   SMALL TABLET
================================ */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 480px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ===============================
   VERY SMALL MOBILE
================================ */
@media (max-width: 360px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.receipt-items {
    max-height: 250px;
    overflow-y: auto;
    border-top: 1px dashed #ddd;
    border-bottom: 1px dashed #ddd;
    padding: 10px 0;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

    .receipt-row:not(:last-child) {
        border-bottom: 1px dashed #eee;
    }

.coupon-section {
    padding: 12px 16px;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
}

.coupon-input-group {
    display: flex;
    gap: 8px;
}

.coupon-input {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    font-size: 0.85rem;
    background: #f9fbfd;
}

.coupon-apply-btn {
    background: #6b3e2c;
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 500;
    transition: 0.2s;
    font-size: 11px;
}

    .coupon-apply-btn:hover {
        background: #8b5a3e;
    }

.discount-row {
    margin-top: 8px;
    color: #1a9966;
    font-weight: 500;
    justify-content: space-between;
    display: flex;
}

.coupon-section {
    padding: 12px 16px;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
}

.discount-row {
    color: #1a9966;
    font-weight: 500;
}

.total-row-main {
    margin-top: 8px;
    border-top: 1px dashed #ddd;
    padding-top: 8px;
}

/* Receipt discount row inside payment modal */
.receipt-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    /* border-top: 1px dashed #ddd; */
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a9966;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.85rem;
}

.receipt-items {
    max-height: 250px;
    overflow-y: auto;
    border-top: 1px dashed #ddd;
    /* border-bottom: 1px dashed #ddd; */
    padding: 8px 0;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.coupon-input {
    flex: 1;
    min-width: 0;
}

.coupon-apply-btn {
    padding: 10px 16px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

    .coupon-apply-btn i {
        display: none; /* hide icon on desktop */
    }

@media (max-width: 768px) {
    .coupon-input-group {
        flex-direction: row; /* 🔥 keep in one line */
        gap: 6px;
    }

    /* hide text, show icon */
    .coupon-apply-btn .btn-text {
        display: none;
    }

    .coupon-apply-btn i {
        display: block;
        font-size: 16px;
    }

    .coupon-apply-btn {
        width: 42px;
        height: 42px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0; /* 🔥 prevent shrinking */
    }
}

.devotee-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.strip-row {
    display: flex;
    gap: 10px;
}

.strip-field {
    flex: 1;
}

.full-width {
    flex: 100%;
}

.coupon-toggle {
    font-size: 14px;
    color: #1E78C8;
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
}

    .coupon-toggle.active {
        margin-bottom: 8px;
    }

    .coupon-toggle:hover {
        text-decoration: none;
    }

.cart-item-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}

.qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #e06b00d4;
    border-radius: 8px;
    overflow: hidden;
}

    .qty-box button {
        width: 24px;
        height: 24px;
        border: none;
        background: #f5f5f5;
        font-size: 16px;
        cursor: pointer;
    }

    .qty-box span {
        width: 32px;
        text-align: center;
        font-weight: 600;
        font-size: 12px;
    }

    .qty-box button:hover {
        background: #e0e0e0;
    }

    .qty-box span {
        transition: all 0.2s ease;
    }

.cart-item-type {
    font-size: 13px;
    color: rgb(66 65 65);
    font-weight: 600;
}
/* Panchang container */
.panchang-block {
    display: flex;
    gap: 18px;
    /* margin-left: 20px; */
    align-items: center;
}

.header-panchang {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}
/* Each column */
.panchang-col {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* Heading */
.panchang-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--saffron);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

/* Content */
.panchang-text {
    font-size: 10px;
    color: var(--grey-700);
    font-weight: 500;
}

.card-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #E8F4FF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* important */
}

    .card-icon-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


@media print {
    @page {
        size: 80mm auto;
        margin: 3mm 2mm;
    }

    body * {
        visibility: hidden;
    }

    #__receiptFrame,
    #__receiptFrame * {
        visibility: visible;
    }

    #__receiptFrame {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 80mm !important;
        height: auto !important;
        visibility: visible !important;
    }
}



.cart-empty {
  display: flex;
  flex-direction: column;
  gap: 0px;
}


















@media (max-width: 700px) {

    /* Full screen — no overflow */
    .dashboard-body {
        height: 100vh;
        overflow: hidden;
    }

    .pos-main {
        flex-direction: column;
        height: calc(100vh - var(--header-h));
        overflow: hidden;
        display: flex;
    }

    /* Service panel — top half, scrollable */
    .service-panel {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 10px;
        width: 100%;
    }

    /* Cart panel — bottom half, fixed, never cut off */
    .cart-panel {
    width: 100%;
    border-left: none;
    border-top: 2px solid var(--grey-200);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 410px;
    margin-bottom: 50px;
    }

    /* cp-panel flex fix */
    .cp-panel {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: hidden;
        min-height: 0;
    }

    /* Cart items — scroll inside */
    .cart-items {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
        padding: 8px;
    }

    /* Devotee strip — compact */
    .devotee-strip {
        flex-shrink: 0;
        padding: 8px 10px;
    }

    /* Totals — always visible */
    .cart-totals {
        flex-shrink: 0;
        padding: 6px 12px;
    }

    /* ✅ PROCEED BUTTON — always visible at bottom */
    .btn-collect {
        flex-shrink: 0;
        display: block !important;
        margin: 6px 12px 10px;
        width: calc(100% - 24px);
        padding: 12px;
        font-size: 13px;
    }

    /* Header */
    .pos-header {
        padding: 0 10px;
    }

    .header-center {
        display: none;
    }

    /* Cards — 2 columns */
    .service-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .seva-card {
        min-height: 130px !important;
        max-height: 150px !important;
        padding: 10px 8px !important;
    }

    .card-icon-wrap {
        width: 36px !important;
        height: 36px !important;
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }

    .card-name {
        font-size: 0.7rem !important;
    }

    .card-price {
        font-size: 0.82rem !important;
    }

    .login-card {
        padding: 32px 22px;
    }


.cart-header {
  padding: 6px 16px;
  border-bottom: 1.5px solid var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
}





@media (max-width: 700px) {
    .pos-main {
        flex-direction: column;
        height: auto;        /* ← ఇది key */
        overflow: visible;   /* ← ఇది key */
    }

    .service-panel {
        width: 100%;
        overflow: visible;
        height: auto;
    }

    .cart-panel {
        width: 100%;
        border-left: none;
        border-top: 2px solid var(--grey-200);
        height: auto;       
        margin-bottom: 0;
    }

    .dashboard-body {
        height: auto;        
        overflow: auto;
    }
}


.cart-item .card-icon-wrap {
  margin: 6px;
}


