/* === BSS Billing Plugin Styles === */
.bss-wrap {
    max-width: 960px;
    margin: 20px auto;
    font-family: Arial, Helvetica, sans-serif;
    background: #f9fff8;
    border: 1px solid #d7ead2;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    overflow: hidden;
}
.bss-header {
    background: linear-gradient(90deg, #fff6d9, #f2fff0);
    padding: 20px 18px;
    text-align: center;
    border-bottom: 1px solid #dbe9d8;
}
.bss-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #8b0000;
}
.bss-sub {
    font-size: 18px;
    font-weight: 700;
    color: #1f4d1f;
    margin-top: 5px;
}
.bss-body {
    padding: 20px;
}
.bss-label {
    font-weight: 700;
    font-size: 15px;
    display: block;
    margin-bottom: 5px;
    color: #222;
}
.bss-input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #b7cdb7;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
}
.bss-input:focus {
    outline: none;
    border-color: #1f6f1f;
    box-shadow: 0 0 0 2px rgba(31,111,31,0.15);
}
.bss-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .bss-grid2 { grid-template-columns: 1fr; }
    .bss-title  { font-size: 22px; }
    .bss-summary-row { flex-direction: column; }
}
.bss-btn-red {
    background: #8b0000;
    color: #fff;
    border: none;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.bss-btn-red:hover { background: #a00000; }
.bss-btn-green {
    background: #1f6f1f;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s;
}
.bss-btn-green:hover { background: #256d25; }
.bss-status-bad { color: #8b0000; font-size: 13px; font-weight: 700; margin-top: 6px; }
.bss-status-ok  { color: #1f6f1f; font-size: 13px; font-weight: 700; margin-top: 6px; }
.bss-hint       { margin-top: 5px; font-size: 13px; color: #555; }
.bss-section-title { font-size: 20px; font-weight: 800; color: #1f4d1f; margin-bottom: 12px; }
.bss-bag-box { padding: 12px; background: #f4faf4; border: 1px solid #d9e9d9; border-radius: 8px; }
.bss-bill-box { background: #fff; border: 1px solid #cfe0cf; border-radius: 10px; padding: 14px; }
.bss-bill-title { font-size: 17px; font-weight: 800; color: #8b0000; margin-bottom: 10px; }

/* Tables */
.bss-table { width: 100%; border-collapse: collapse; background: #fff; }
.bss-table th, .bss-table td { border: 1px solid #d6e6d3; padding: 9px 10px; text-align: left; font-size: 14px; }
.bss-table thead tr { background: #eef8ee; }
.bss-total-row { background: #fff9e8; font-weight: 800; }
.bss-table tbody tr:hover { background: #f5fcf5; }

/* Overlay / popups */
.bss-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.bss-overlay[style*="flex"] { display: flex !important; }
.bss-popup {
    background: #fff;
    max-width: 520px;
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    padding: 24px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.bss-popup-title {
    font-size: 22px;
    font-weight: 800;
    color: #8b0000;
    margin-bottom: 14px;
    text-align: center;
}
.bss-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    color: #444;
    line-height: 1;
    padding: 0;
}

/* Badges */
.bss-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.bss-badge-pending  { background: #fff3cd; color: #856404; }
.bss-badge-approved { background: #d4edda; color: #155724; }
.bss-badge-rejected { background: #f8d7da; color: #721c24; }

/* Admin summary */
.bss-summary-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.bss-sum-card    { background: #fff; border: 1px solid #d7ead2; border-radius: 10px; padding: 14px 18px; text-align: center; flex: 1; min-width: 110px; }
.bss-sum-num     { font-size: 24px; font-weight: 800; color: #1f4d1f; }
.bss-sum-lbl     { font-size: 11px; color: #666; margin-top: 4px; }

/* Filter bar */
.bss-filter-bar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.bss-filter-btn { border: 1px solid #b7cdb7; background: #fff; border-radius: 6px; padding: 6px 14px; font-size: 13px; font-weight: 700; cursor: pointer; color: #444; }
.bss-filter-btn.active { background: #1f4d1f; color: #fff; border-color: #1f4d1f; }

/* Action buttons in admin table */
.bss-act { border: none; border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 700; cursor: pointer; margin-right: 3px; margin-bottom: 2px; }
.bss-act-approve { background: #d4edda; color: #155724; }
.bss-act-reject  { background: #f8d7da; color: #721c24; }
.bss-act-delete  { background: #fde2c8; color: #7a3c00; }
.bss-act:hover   { opacity: .85; }
