/* BSS Stationery Wing - Plugin Styles */
* { box-sizing: border-box; }
.bss-sw-wrap {
    max-width: 560px;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
    padding: 10px;
}
.bss-sw-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.bss-sw-header {
    padding: 18px 14px 12px;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}
.bss-sw-header h1 { margin: 0; font-size: 22px; color: #b91c1c; line-height: 1.3; }
.bss-sw-header h2 { margin: 6px 0 0; font-size: 16px; color: #1d4ed8; line-height: 1.4; }
.bss-sw-header h3 { margin: 8px 0 0; font-size: 17px; color: #047857; letter-spacing: 0.4px; }
.bss-sw-body { padding: 14px; }

.bss-sw-notice {
    background: #fef08a;
    border: 1px solid #facc15;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
    line-height: 1.7;
    font-size: 15px;
    font-weight: 700;
}
.bss-sw-notice div { margin-bottom: 4px; }
.bss-sw-notice .ln1 { color: #7c2d12; }
.bss-sw-notice .ln2 { color: #0f172a; }
.bss-sw-notice .ln3 { color: #166534; }

.bss-sw-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 14px 0 10px;
    padding-left: 10px;
    border-left: 5px solid #2563eb;
}
.bss-sw-field { margin-bottom: 12px; }
.bss-sw-field label {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 6px;
}
.bss-sw-wrap input[type="text"],
.bss-sw-wrap input[type="tel"],
.bss-sw-wrap input[type="number"],
.bss-sw-wrap input[type="password"],
.bss-sw-wrap textarea,
.bss-sw-wrap select {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 17px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bss-sw-wrap input:focus,
.bss-sw-wrap textarea:focus,
.bss-sw-wrap select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.bss-sw-wrap textarea { min-height: 90px; resize: vertical; font-size: 16px; }
.bss-sw-small {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
    line-height: 1.5;
    font-weight: 600;
}

/* Aadhaar */
.bss-sw-aadhaar-wrap { display: flex; gap: 8px; }
.bss-sw-aadhaar-part {
    text-align: center !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    padding: 14px 6px !important;
}

/* Education */
.bss-sw-edu-box {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 10px;
}
.bss-sw-edu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

/* Rows */
.bss-sw-mobile-row,
.bss-sw-area-row { display: flex; gap: 8px; align-items: stretch; }
.bss-sw-mobile-row input,
.bss-sw-area-row select { flex: 1; }

/* Buttons */
.bss-sw-btn {
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    padding: 0 14px;
    min-height: 52px;
    white-space: nowrap;
    line-height: 1;
}
.bss-sw-btn-green  { background: #16a34a; color: #fff; }
.bss-sw-btn-blue   { background: #2563eb; color: #fff; }
.bss-sw-btn-red    { background: #dc2626; color: #fff; }
.bss-sw-btn-gray   { background: #475569; color: #fff; }
.bss-sw-btn-orange { background: #ea580c; color: #fff; }

.bss-sw-pen-box {
    padding: 14px;
    border: 1px dashed #16a34a;
    border-radius: 14px;
    background: #f0fdf4;
    color: #166534;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}
.bss-sw-submit-row { display: flex; gap: 8px; margin-top: 14px; }
.bss-sw-submit-row .bss-sw-btn { flex: 1; }

/* Messages */
.bss-sw-msg {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}
.bss-sw-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.bss-sw-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Mobile verify chip */
.bss-sw-verified-chip {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.6;
}
.bss-sw-verified-chip .r { color: #dc2626; }
.bss-sw-verified-chip .b { color: #1e3a8a; }
.bss-sw-verified-chip .g { color: #16a34a; }

/* Table */
.bss-sw-table-wrap {
    margin-top: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: auto;
    padding: 8px;
}
.bss-sw-table-wrap table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}
.bss-sw-table-wrap th,
.bss-sw-table-wrap td {
    border: 1px solid #e5e7eb;
    padding: 8px;
    text-align: left;
    font-size: 13px;
    vertical-align: top;
}
.bss-sw-table-wrap th {
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 800;
}

/* Admin */
.bss-sw-admin-box {
    margin-top: 18px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 12px;
}
.bss-sw-admin-row { display: flex; gap: 8px; align-items: flex-end; }
.bss-sw-admin-row .bss-sw-field { flex: 1; margin-bottom: 0; }
.bss-sw-hidden { display: none !important; }

/* Modal */
.bss-sw-modal {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
}
.bss-sw-modal.show { display: flex; }
.bss-sw-modal-box {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    padding-bottom: 18px;
}
.bss-sw-modal-head {
    text-align: center;
    padding: 16px 14px 6px;
    font-size: 19px;
    font-weight: 900;
    color: #0f172a;
}
.bss-sw-modal-num {
    text-align: center;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 4px;
    padding: 8px 10px;
}
.bss-sw-modal-colors {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 6px 0 10px;
}
.bss-sw-dot { width: 18px; height: 18px; border-radius: 50%; }
.bss-sw-dot.red   { background: #dc2626; }
.bss-sw-dot.green { background: #16a34a; }
.bss-sw-dot.blue  { background: #1d4ed8; }
.bss-sw-modal-text {
    text-align: center;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    padding: 0 16px 14px;
    font-weight: 700;
}
.bss-sw-modal-actions {
    padding: 0 16px 0;
    display: flex;
    justify-content: center;
}

/* Checkbox */
.bss-sw-cb-cell input[type="checkbox"] { width: auto; }

/* ── Status badges ── */
.bss-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.bss-status-pending  { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.bss-status-approved { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.bss-status-rejected { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Row action buttons ── */
.bss-row-actions { display: flex; gap: 4px; flex-wrap: wrap; min-width: 160px; }
.bss-row-actions .bss-sw-btn {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
    border-radius: 8px;
}

/* ── Admin wrap wider ── */
.bss-sw-admin-wrap { max-width: 1200px; }

/* ── Search result card ── */
.bss-search-result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.8;
}
.bss-search-result-card .bss-sr-row { display: flex; gap: 8px; }
.bss-search-result-card .bss-sr-label { font-weight: 800; color: #475569; min-width: 130px; }
.bss-search-result-card .bss-sr-value { color: #0f172a; font-weight: 700; }

/* ── Modify modal scrollable ── */
.bss-sw-modal-box { position: relative; }

/* ── Logout btn ── */
.bss-sw-btn-gray { background: #475569; color: #fff; }

/* ── Approve / Reject selected ── */
.bss-sw-btn-green { background: #16a34a; color: #fff; }
