/* BR Free Eye Checkup/Surgery & Opticals Spot — saffron/cream theme, no dark backgrounds */
.brop-root {
	max-width: 980px; margin: 0 auto; padding: 14px; background: #FFFDF7;
	font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #3a2c1a; box-sizing: border-box;
}
.brop-root * { box-sizing: border-box; }
.brop-hidden { display: none !important; }

.brop-header {
	display: flex; align-items: center; gap: 14px;
	background: linear-gradient(135deg, #FFF6E8, #FFFDF7);
	border: 2px solid #C97A1E; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
}
.brop-header h1 { margin: 0 0 4px; font-size: 20px; color: #A6531A; font-weight: 800; line-height: 1.25; }
.brop-org { margin: 0; font-size: 12.5px; color: #5a4326; }

.brop-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.brop-navbtn {
	flex: 1 1 150px; display: flex; align-items: center; justify-content: center; gap: 8px;
	background: #FFF6E8; border: 2px solid #C97A1E; color: #A6531A; font-weight: 800;
	padding: 10px 10px; border-radius: 12px; cursor: pointer; font-size: 13px;
}
.brop-navbtn.active, .brop-navbtn:hover { background: #C97A1E; color: #fff; }
.brop-navbtn.active svg, .brop-navbtn:hover svg { filter: brightness(0) invert(1); }

.brop-card {
	background: #fff; border: 1.5px solid #eddcb8; border-radius: 14px;
	padding: 16px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(166,83,26,0.08);
}
.brop-card-narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.brop-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.brop-card h2 { margin: 0 0 8px; color: #A6531A; font-size: 18px; }
.brop-muted { color: #7a6b52; font-size: 13px; }

.brop-freebadge {
	display: inline-block; background: #d9f2d9; color: #2c7a2c; font-weight: 800;
	padding: 4px 12px; border-radius: 20px; font-size: 12.5px; margin-bottom: 10px;
}

.brop-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.brop-field { flex: 1 1 220px; margin-bottom: 12px; }
.brop-field label { display: block; font-weight: 800; font-size: 13px; color: #7a4a12; margin-bottom: 4px; }
.brop-field input[type=text], .brop-field input[type=password], .brop-field select, .brop-field textarea {
	width: 100%; padding: 10px 11px; border: 2px solid #e2c89a; border-radius: 8px;
	font-size: 15px; font-weight: 700; color: #3a2c1a; background: #FFFDF7;
}
.brop-field input:focus, .brop-field select:focus, .brop-field textarea:focus {
	outline: none; background: #FFF9C4; border-color: #C97A1E;
}
.brop-hint { font-size: 12px; color: #A6531A; font-weight: 700; margin-top: 3px; min-height: 14px; }

.brop-aadhaar-boxes { display: flex; align-items: center; gap: 8px; }
.brop-aad-box {
	width: 80px; text-align: center; letter-spacing: 2px; padding: 10px 6px;
	border: 2px solid #e2c89a; border-radius: 8px; font-size: 16px; font-weight: 800; color: #3a2c1a; background: #FFFDF7;
}
.brop-aad-box:focus { background: #FFF9C4; border-color: #C97A1E; outline: none; }
.brop-aad-dash { color: #A6531A; font-weight: 800; }
.brop-aad-confirm { margin-top: 6px; font-size: 20px; font-weight: 900; color: #A6531A; letter-spacing: 2px; min-height: 26px; }

.brop-formmsg { min-height: 18px; font-weight: 700; font-size: 13px; margin: 6px 0; }
.brop-formmsg.error { color: #b23b1e; }
.brop-formmsg.ok { color: #2c7a2c; }

.brop-submit-btn, .brop-editbtn {
	width: 100%; background: linear-gradient(135deg, #C97A1E, #A6531A); color: #fff; font-weight: 900;
	border: none; padding: 13px; border-radius: 10px; font-size: 15.5px; cursor: pointer; margin-top: 6px;
}
.brop-submit-btn:hover, .brop-editbtn:hover { filter: brightness(1.08); }

.brop-success { text-align: center; padding: 20px 10px; }
.brop-success-icon { font-size: 42px; }
.brop-success-title { font-size: 18px; font-weight: 800; color: #2c7a2c; margin-top: 6px; }
.brop-success-ref { font-size: 22px; font-weight: 900; color: #A6531A; margin-top: 8px; letter-spacing: 1px; }
.brop-success-note { font-size: 13px; color: #7a6b52; margin-top: 6px; }

.brop-record-view table { width: 100%; }
.brop-record-view td { padding: 5px 4px; font-size: 13.5px; font-weight: 700; }
.brop-record-view td:first-child { color: #7a4a12; white-space: nowrap; }

.brop-table-wrap { overflow-x: auto; }
.brop-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.brop-table th, .brop-table td {
	border: 1px solid #eddcb8; padding: 7px 8px; font-size: 13px;
	word-break: break-word; text-align: left; color: #3a2c1a;
}
.brop-table th { background: #FFF6E8; color: #A6531A; font-weight: 800; }
.brop-table tr:nth-child(even) td { background: #FFFDF7; }

.brop-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.brop-stat-box {
	flex: 1 1 110px; background: #FFF6E8; border: 1.5px solid #C97A1E; border-radius: 10px;
	padding: 10px; text-align: center;
}
.brop-stat-box .num { font-size: 20px; font-weight: 900; color: #A6531A; }
.brop-stat-box .lbl { font-size: 11px; font-weight: 700; color: #7a4a12; }

.brop-admin-toolbar { align-items: flex-end; }
.brop-bulkbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0;
	background: #FFF6E8; border: 1px solid #e2c89a; border-radius: 10px; padding: 8px 10px;
	font-size: 13px; font-weight: 700;
}
.brop-bulkbar button {
	background: #C97A1E; color: #fff; border: none; padding: 7px 12px; border-radius: 7px;
	font-weight: 800; cursor: pointer; font-size: 12.5px;
}
.brop-bulkbar button.danger { background: #b23b1e; }

.brop-admin-tabs { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.brop-admintab {
	background: #FFF6E8; border: 2px solid #C97A1E; color: #A6531A; font-weight: 800;
	padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 13px;
}
.brop-admintab.active { background: #C97A1E; color: #fff; }

.brop-badge { padding: 2px 8px; border-radius: 12px; font-size: 11.5px; font-weight: 800; display: inline-block; }
.brop-badge.pending { background: #FFF3CD; color: #8a6d1a; }
.brop-badge.approved { background: #d9f2d9; color: #2c7a2c; }
.brop-badge.rejected { background: #fbdbd3; color: #b23b1e; }

.brop-rowbtn {
	border: none; color: #fff; font-weight: 800; padding: 5px 9px; border-radius: 6px;
	cursor: pointer; font-size: 11.5px; margin: 1px;
}
.brop-rowbtn.approve { background: #2c7a2c; }
.brop-rowbtn.edit { background: #C97A1E; }
.brop-rowbtn.pub { background: #1e7fb2; }
.brop-rowbtn.del { background: #b23b1e; }
.brop-rowbtn.pay { background: #087f23; }

.brop-logout-btn {
	background: #FFF6E8; border: 2px solid #b23b1e; color: #b23b1e; font-weight: 800;
	padding: 7px 14px; border-radius: 10px; cursor: pointer; font-size: 13px;
}

.brop-customer-card {
	background: #FFF6E8; border: 1.5px solid #e2c89a; border-radius: 12px; padding: 14px; margin-top: 10px;
}
.brop-ledger-mini {
	display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; font-weight: 800; font-size: 13.5px;
}
.brop-ledger-mini .pill {
	background: #fff; border: 1.5px solid #C97A1E; border-radius: 20px; padding: 6px 14px; color: #A6531A;
}
.brop-chargebox {
	margin-top: 10px; background: #fff; border: 1.5px dashed #C97A1E; border-radius: 10px; padding: 12px;
}

.brop-overlay {
	position: fixed; inset: 0; background: rgba(58,44,26,0.55);
	display: flex; align-items: center; justify-content: center; z-index: 999999; padding: 16px;
}
.brop-popup {
	background: #FFFDF7; border-radius: 14px; padding: 18px; max-width: 480px; width: 100%;
	max-height: 88vh; overflow-y: auto; box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.brop-popup h3 { margin: 0 0 10px; color: #A6531A; font-size: 17px; }
.brop-popup-actions { display: flex; gap: 10px; margin-top: 14px; }
.brop-popup-cancel, .brop-popup-ok {
	flex: 1; padding: 11px; border-radius: 8px; border: none; font-weight: 800; cursor: pointer; font-size: 14px;
}
.brop-popup-cancel { background: #FFF6E8; color: #A6531A; border: 2px solid #C97A1E; }
.brop-popup-ok { background: linear-gradient(135deg, #C97A1E, #A6531A); color: #fff; }

.brop-toast {
	position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(20px);
	background: #3a2c1a; color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 700;
	font-size: 13.5px; z-index: 9999999; opacity: 0; transition: all .25s ease; pointer-events: none;
}
.brop-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.brop-opticals-linkbox {
	margin-top: 16px; background: #FFF6E8; border: 1.5px dashed #C97A1E; border-radius: 10px; padding: 12px;
}
.brop-opticals-linkbox-title { font-weight: 800; color: #7a4a12; font-size: 12.5px; margin-bottom: 6px; }
.brop-opticals-linkbox input[type=text] {
	width: 100%; padding: 8px 10px; border: 2px solid #e2c89a; border-radius: 8px; font-size: 12.5px;
	font-weight: 700; color: #3a2c1a; background: #fff; margin-bottom: 6px;
}
.brop-opticals-linkbox-pw { font-size: 13.5px; font-weight: 800; color: #A6531A; }

.brop-op-actions { display: flex; gap: 8px; margin-top: 4px; }
.brop-op-actions .brop-editbtn, .brop-op-actions .brop-deliverbtn { flex: 1; margin-top: 0; }
.brop-deliverbtn {
	background: #087f23; color: #fff; font-weight: 900; border: none; padding: 13px; border-radius: 10px;
	font-size: 14.5px; cursor: pointer;
}
.brop-deliverbtn:hover { filter: brightness(1.08); }

@keyframes bropBlink { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0.4; } 100% { opacity: 1; } }
.brop-blink-stats .brop-stat-box { animation: bropBlink 1.3s infinite; background: #FFEB3B; border-color: #3a2c1a; }
.brop-blink-stats .brop-stat-box .num, .brop-blink-stats .brop-stat-box .lbl { color: #000; }

.brop-table tr.brop-delivered-row td { background: #FFFDE0 !important; }
.brop-delivered-text { color: #c0261b; font-weight: 900; }
.brop-refno-link { color: #A6531A; font-weight: 800; text-decoration: underline; cursor: pointer; background: none; border: none; padding: 0; font-size: 13px; }

.brop-footer {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	margin-top: 10px; padding: 10px; font-size: 12px; color: #7a6b52; font-weight: 700;
}

@media (max-width: 560px) {
	.brop-header { flex-direction: column; text-align: center; }
	.brop-navbtn { flex: 1 1 45%; }
	.brop-aad-box { width: 70px; }
}
