/* ===================== BRAHMINS SUBSIDY STORE — Saffron / Cream / Gold Theme ===================== */
#bss-root, #bss-root * { box-sizing: border-box; }

#bss-root {
    max-width: 920px;
    margin: 20px auto;
    font-family: 'Segoe UI', 'Noto Sans Telugu', Arial, sans-serif;
    background: linear-gradient(180deg, #fffaf0 0%, #fff3d9 100%);
    border: 2px solid #e6b400;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 24px rgba(230, 126, 0, 0.18);
}

.bss-header { text-align: center; margin-bottom: 14px; }
.bss-header h1 { margin: 0 0 4px; color: #b34700; letter-spacing: 2px; font-size: 24px; }
.bss-header p { margin: 0; color: #8a5300; font-weight: 600; font-size: 14px; }

/* Top nav buttons */
.bss-topbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.bss-topbtn {
    flex: 1 1 180px; padding: 14px 10px; font-size: 14px; font-weight: 700;
    border: none; border-radius: 10px; cursor: pointer; color: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.bss-topbtn:hover { filter: brightness(1.06); }
.bss-topbtn-admin    { background: linear-gradient(135deg, #6a3d9a, #8e5cd9); order: 1; }
.bss-topbtn-approved { background: linear-gradient(135deg, #1e8449, #27ae60); order: 2; }
.bss-topbtn-delivery { background: linear-gradient(135deg, #d35400, #f39c12); order: 3; }
.bss-topbtn.active-view { outline: 3px solid #ffd700; }

.bss-view { display: none; }
.bss-view.bss-active { display: block; }

/* Cards */
.bss-card {
    background: #fffdf7; border: 1px solid #f2d38a; border-radius: 12px;
    padding: 18px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.bss-card h3 { margin: 0 0 14px; color: #a3400a; font-size: 17px; border-bottom: 2px solid #f6d98a; padding-bottom: 8px; }

.bss-search-input {
    width: 100%; padding: 12px 14px; border: 1.5px solid #e8c877; border-radius: 8px;
    font-size: 16px; background: #fff; margin-bottom: 6px;
}
.bss-search-input:focus { outline: none; border-color: #d35400; }
.bss-search-hint { font-size: 11px; color: #a06a00; margin-bottom: 10px; }

.bss-search-results { display: flex; flex-direction: column; gap: 8px; }
.bss-result-row {
    display: flex; justify-content: space-between; align-items: center;
    background: #fff8e8; border: 1px solid #f0dca0; border-radius: 8px; padding: 10px 14px; flex-wrap: wrap; gap: 8px;
}
.bss-result-info { font-size: 13px; color: #5a3a00; }
.bss-result-info b { color: #a3400a; }
.bss-select-btn {
    background: #27ae60; color: #fff; border: none; border-radius: 6px;
    padding: 8px 16px; font-weight: 700; cursor: pointer; font-size: 12px;
}
.bss-select-btn:hover { filter: brightness(1.08); }
.bss-no-results { color: #a06a00; font-size: 13px; padding: 8px 0; }

.bss-applicant-box {
    background: #fef3d0; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; color: #5a3a00;
}
.bss-applicant-box div { margin-bottom: 4px; }

.bss-coupon-big {
    text-align: center; font-size: 40px; font-weight: 900; letter-spacing: 3px;
    color: #b34700; background: #fff; border: 3px dashed #e6b400; border-radius: 12px;
    padding: 24px 10px; margin: 10px 0 16px; word-break: break-word;
}

.bss-btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.bss-submit-btn {
    flex: 1 1 160px; padding: 14px; font-size: 16px; font-weight: 800;
    background: linear-gradient(135deg, #d35400, #e67e22); color: #fff;
    border: none; border-radius: 10px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}
.bss-submit-btn:hover { filter: brightness(1.08); }
.bss-back-btn {
    flex: 1 1 140px; padding: 14px; font-size: 14px; font-weight: 700;
    background: #fff; color: #a3400a; border: 1.5px solid #e8c877; border-radius: 10px; cursor: pointer;
}
.bss-back-btn:hover { background: #fff3d0; }

.bss-area-selected {
    background: #e8f8ee; border: 1px solid #a3e0bb; border-radius: 8px;
    padding: 10px 14px; margin: 10px 0; font-size: 13px; color: #1e6b3a; font-weight: 600;
}

.bss-msg { margin-top: 10px; font-weight: 600; font-size: 14px; min-height: 18px; }
.bss-msg.success { color: #1e8449; }
.bss-msg.error { color: #c0392b; }
.bss-msg.warn { color: #b8860b; }

/* Coupon Preview Slip */
.bss-coupon-preview {
    background: #fffef8; border: 2px solid #e6b400; border-radius: 10px;
    padding: 22px; max-width: 460px; margin: 0 auto 12px; text-align: center;
}
.bss-coupon-org { font-weight: 800; font-size: 17px; color: #b34700; }
.bss-coupon-loc { font-weight: 700; font-size: 13px; color: #8a5300; margin-top: 2px; }
.bss-coupon-web, .bss-coupon-wa { font-size: 12px; color: #a06a00; margin-top: 2px; }
.bss-coupon-preview hr { border: none; border-top: 1px dashed #e8c877; margin: 14px 0; }
.bss-coupon-row { display: flex; justify-content: space-between; text-align: left; font-size: 14px; margin-bottom: 10px; }
.bss-coupon-row .lbl { color: #8a5300; font-weight: 600; }
.bss-coupon-row .val { color: #b34700; font-weight: 800; }
.bss-coupon-sign { margin-top: 24px; font-size: 12px; color: #8a5300; }
.bss-sign-line { border-top: 1px solid #333; width: 160px; margin: 0 auto 6px; }

.bss-done-tick { text-align: center; font-size: 50px; margin-bottom: 8px; }
#bss-step-done h3 { text-align: center; border: none; }
#bss-step-done .bss-submit-btn { display: block; margin: 12px auto 0; max-width: 260px; }

/* Tables */
.bss-table-scroll { overflow-x: auto; }
.bss-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bss-table th, .bss-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid #f0dca0; word-break: break-word; font-size: 13px; }
.bss-table th { background: #fbe6b0; color: #7a3b00; font-weight: 700; }
.bss-table tr:hover { background: #fffaf0; }

.status-pill { padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; color: #fff; }
.status-pill.approved { background: #27ae60; }
.status-pill.pending { background: #e67e22; }
.status-pill.rejected { background: #c0392b; }

/* Admin */
.bss-admin-topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.bss-filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bss-filter-btn { padding: 6px 14px; border: 1.5px solid #e8c877; background: #fff; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: 700; color: #8a5300; }
.bss-filter-btn.active { background: #d35400; color: #fff; border-color: #d35400; }
#bss-admin-search, #bss-approved-search, #bss-delivery-search { padding: 6px 12px; border: 1.5px solid #e8c877; border-radius: 20px; font-size: 12px; }
.bss-logout-btn { background: #c0392b; color: #fff; border: none; border-radius: 8px; padding: 8px 18px; font-weight: 700; cursor: pointer; }

.bss-stats { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 16px; }
.bss-stat { flex: 1 1 120px; background: #fff; border: 1px solid #f0c674; border-radius: 10px; padding: 10px 14px; text-align: center; }
.bss-stat .lbl { display: block; font-size: 11px; color: #a06a00; font-weight: 600; }
.bss-stat .val { display: block; font-size: 20px; font-weight: 800; color: #b34700; margin-top: 4px; }

.bss-bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; font-size: 13px; }
.bss-bulk-btn { border: none; border-radius: 6px; padding: 6px 12px; cursor: pointer; color: #fff; font-weight: 700; font-size: 12px; }
.bss-bulk-btn.approve { background: #27ae60; }
.bss-bulk-btn.reject { background: #e67e22; }
.bss-bulk-btn.delete { background: #c0392b; }
.bss-bulk-btn.edit { background: #2980b9; }
.bss-selcount { color: #8a5300; font-weight: 600; }

.row-approve-btn, .row-edit-btn, .row-delete-btn {
    border: none; border-radius: 6px; padding: 5px 10px; margin: 2px; color: #fff; font-weight: 700; cursor: pointer; font-size: 11px;
}
.row-approve-btn { background: #27ae60; }
.row-edit-btn { background: #e67e22; }
.row-delete-btn { background: #c0392b; }

.inline-edit-strip { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-edit-strip input { width: 100px; padding: 4px 6px; border: 1px solid #e8c877; border-radius: 5px; }

.bss-delivery-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.bss-download-btns { display: flex; gap: 8px; }

@media (max-width: 640px) {
    #bss-root { padding: 12px; margin: 10px; }
    .bss-header h1 { font-size: 19px; }
    .bss-topbtn { font-size: 13px; padding: 12px 8px; }
    .bss-coupon-big { font-size: 26px; padding: 18px 8px; }
    .bss-admin-topbar { flex-direction: column; align-items: stretch; }
}
