/* Raju Driving School - student profile editor + admin calendar */
.profile-edit-card{margin-top:18px;background:#f7f9fb;border:1px solid #dce5ee;border-radius:16px;padding:18px}.profile-edit-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.profile-edit-grid label{display:block;font-size:.78rem;font-weight:800;color:#30455d}.profile-edit-grid input,.profile-edit-grid select,.profile-edit-grid textarea{width:100%;box-sizing:border-box;margin-top:7px;border:1px solid #d3dfe9;border-radius:10px;padding:11px 12px;background:#fff;font:inherit}.profile-edit-grid textarea{min-height:90px;resize:vertical}.profile-edit-wide{grid-column:1/-1}.profile-edit-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:14px}.profile-edit-actions button{border:0;border-radius:10px;padding:10px 15px;font:inherit;font-weight:800;cursor:pointer}.profile-edit-save{background:#0757c9;color:#fff}.profile-edit-cancel{background:#eaf0f5;color:#10243a}.readonly-email{background:#eef3f8!important;color:#657487}
.admin-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.admin-toolbar select{border:1px solid #dce5ee;border-radius:10px;padding:10px 12px;background:#fff;font:inherit;font-weight:700}.admin-calendar-wrap{overflow:auto;border:1px solid #dce5ee;border-radius:16px}.admin-calendar{min-width:980px;border-collapse:separate;border-spacing:0;background:#fff}.admin-calendar th,.admin-calendar td{border-right:1px solid #e7edf2;border-bottom:1px solid #e7edf2}.admin-calendar th{padding:12px 10px;background:#f7f9fb;text-align:center;font-size:.78rem;color:#42566e;position:sticky;top:0;z-index:2}.admin-calendar th:first-child{width:82px}.admin-calendar td{height:62px;min-width:155px;padding:7px;vertical-align:top}.admin-calendar .time-cell{background:#fbfcfd;text-align:center;font-size:.74rem;font-weight:800;color:#657487;vertical-align:middle;position:sticky;left:0;z-index:1}.calendar-cell{display:block;min-height:47px;border-radius:10px;padding:7px;box-sizing:border-box;font-size:.72rem;line-height:1.25}.calendar-cell.available{background:#eefaf3;color:#17633d;border:1px solid #bce8ce}.calendar-cell.booked{background:#fff0f2;color:#a62231;border:1px solid #f4a0aa}.calendar-cell.blocked{background:#edf0f4;color:#657487;border:1px solid #d4dbe3}.calendar-cell.pending{background:#fff7e6;color:#8a5a00;border:1px solid #f0d18a}.calendar-cell strong{display:block;font-size:.75rem}.calendar-cell small{display:block;margin-top:2px}.calendar-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px;color:#657487;font-size:.74rem;font-weight:700}.calendar-legend span{display:inline-flex;align-items:center;gap:6px}.legend-box{width:10px;height:10px;border-radius:3px;display:inline-block}.legend-box.available{background:#27ae60}.legend-box.booked{background:#f06a78}.legend-box.blocked{background:#b9c4d0}.legend-box.pending{background:#e7a600}
.instructor-table .active-toggle{display:inline-flex;align-items:center;gap:7px;font-size:.76rem;font-weight:800}.instructor-table input[type=checkbox]{width:18px;height:18px}.mini-form{display:flex;gap:8px;flex-wrap:wrap}.mini-form input{max-width:260px}.admin-note-input{min-width:180px}.filter-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.filter-row input,.filter-row select{border:1px solid #dce5ee;border-radius:10px;padding:10px 12px;font:inherit;background:#fff}.admin-table .admin-btn{padding:8px 10px;font-size:.75rem}.admin-actions .admin-btn{white-space:nowrap}.danger-outline{background:#fff!important;color:#b42318!important;border:1px solid #efb0aa!important}.success-btn{background:#16704a!important}.warning-btn{background:#8a5a00!important}.calendar-day-label{display:block;font-weight:900;color:#10243a}.calendar-date-label{display:block;font-weight:600;color:#657487;margin-top:2px}
@media(max-width:700px){.profile-edit-grid{grid-template-columns:1fr}.profile-edit-wide{grid-column:auto}.profile-edit-actions{justify-content:stretch}.profile-edit-actions button{flex:1}.admin-calendar-wrap{margin-left:-4px;margin-right:-4px}.admin-toolbar{align-items:stretch}.admin-toolbar>*{width:100%}.mini-form input{max-width:none;width:100%}}

/* Searchable student selector used by admin manual-payment form */
.student-picker-field{position:relative;z-index:20}.student-picker{position:relative}.student-picker input{width:100%;box-sizing:border-box}.student-picker-clear{position:absolute;right:9px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#657487;font-size:1.35rem;line-height:1;cursor:pointer;padding:3px 6px}.student-picker-results{display:none;position:absolute;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid #d3dfe9;border-radius:12px;box-shadow:0 14px 35px rgba(16,36,58,.14);overflow:hidden;max-height:280px;overflow-y:auto;z-index:50}.student-picker-results.open{display:block}.student-picker-option{display:flex;width:100%;box-sizing:border-box;flex-direction:column;align-items:flex-start;gap:3px;border:0;border-bottom:1px solid #edf1f5;background:#fff;padding:11px 13px;text-align:left;cursor:pointer;font:inherit;color:#10243a}.student-picker-option:last-child{border-bottom:0}.student-picker-option:hover,.student-picker-option:focus{background:#f3f7fb;outline:0}.student-picker-option strong{font-size:.86rem}.student-picker-option span{font-size:.72rem;color:#657487}.student-picker-empty,.student-picker-loading{padding:13px;color:#657487;font-size:.78rem}.student-selected-hint{display:block;margin-top:6px;color:#17633d;font-size:.72rem;font-weight:700;min-height:16px}

/* Student profile editor modal */
.profile-modal[hidden]{display:none}.profile-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.profile-modal-backdrop{position:absolute;inset:0;background:rgba(10,25,43,.48);backdrop-filter:blur(4px)}.profile-modal-dialog{position:relative;width:min(760px,100%);max-height:min(88vh,820px);overflow:auto;background:#fff;border:1px solid #dce5ee;border-radius:22px;box-shadow:0 28px 80px rgba(16,36,58,.25);padding:24px;box-sizing:border-box}.profile-modal-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.profile-modal-head .auth-kicker{display:block;margin-bottom:5px}.profile-modal-head h2{margin:0;color:#10243a;font-size:1.55rem}.profile-modal-head p{margin:6px 0 0;color:#657487;font-size:.9rem}.profile-modal-close{border:0;background:#eef3f8;color:#10243a;width:40px;height:40px;border-radius:12px;font-size:1.55rem;line-height:1;cursor:pointer;flex:0 0 auto}.profile-modal-close:hover{background:#e3ebf3}.profile-modal-open{overflow:hidden}.profile-modal .profile-edit-grid{gap:14px}.profile-modal .profile-edit-actions{padding-top:6px;border-top:1px solid #edf1f5}.profile-modal .profile-edit-cancel{border:1px solid #dce5ee}.profile-modal .profile-edit-save{box-shadow:0 8px 18px rgba(7,87,201,.18)}

/* Booking requests inbox */
.booking-inbox-card .admin-section-title{align-items:center}
.request-count-badge{display:inline-flex;align-items:center;margin-left:10px;padding:5px 9px;border-radius:999px;background:#eaf3ff;color:#0757c9;font-size:.62rem;font-weight:900;vertical-align:middle}
.booking-inbox{display:grid;gap:10px}
.booking-request-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;background:#fff;border:1px solid var(--rds-line);border-radius:18px;box-shadow:0 8px 24px rgba(10,48,105,.045);transition:.18s}
.booking-request-card:hover{transform:translateY(-1px);box-shadow:0 12px 30px rgba(10,48,105,.08)}
.booking-request-main{display:flex;align-items:center;gap:13px;min-width:0}
.booking-request-avatar{width:43px;height:43px;flex:0 0 43px;border-radius:14px;display:grid;place-items:center;background:#eaf3ff;color:#0757c9;font:900 .8rem Manrope}
.booking-request-copy{min-width:0}
.booking-request-top{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.booking-request-top strong{font:900 .9rem Manrope;color:var(--rds-dark)}
.request-status{padding:4px 8px;border-radius:999px;background:#fff4d9;color:#966100;font-size:.56rem;font-weight:900}
.request-status.ready{background:#e2f7ea;color:#17633d}
.booking-request-class{display:flex;align-items:center;gap:5px;margin-top:4px;color:#24405c;font-size:.72rem}
.booking-request-class strong{font-weight:900}
.booking-request-meta{margin-top:5px;color:#718299;font-size:.63rem}
.booking-request-contact{margin-top:3px;color:#8a99aa;font-size:.58rem}
.booking-request-action{flex:0 0 auto}
.booking-request-action .admin-btn{min-width:92px}
.booking-inbox-empty{display:flex;align-items:center;gap:15px;padding:22px 20px;border:1px dashed #cfdbe8;border-radius:18px;background:#f8fbfe}
.booking-inbox-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#e2f7ea;color:#17633d;font-weight:900}
.booking-inbox-empty strong{font:900 .85rem Manrope;color:var(--rds-dark)}
.booking-inbox-empty p{margin:4px 0 0;color:#718299;font-size:.65rem}
@media(max-width:650px){.booking-request-card{align-items:flex-start;flex-direction:column}.booking-request-action{width:100%}.booking-request-action .admin-btn{width:100%}}
