/* unipal staff panel */
.drm, .drm-login { --c: #2D3339; --y: #00C8D2; --yd: #00838A; --ys: #E6F8F9; --l: #DCE4E7; --b: #F5F8F9; --m: #5E6872; --r: #C2393E; --rs: #FCEBEC; font-size: 15px; }
.drm, .drm-login { font-family: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif; color: var(--c, #2D3339); }
.drm-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--l); margin: 0 0 18px; padding-bottom: 0; scrollbar-width: thin; }
.drm-tabs a { flex: none; text-decoration: none; color: var(--m); font-weight: 600; padding: 12px 14px 11px; border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.drm-tabs a:hover { color: var(--c); }
.drm-tabs a.is-on { color: var(--c); border-bottom-color: var(--y); }
.drm-tabs b { background: var(--r); color: #fff; font-size: 11px; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px; }
.drm-ok { background: #E7F6EC; color: #1E6B36; border: 1px solid #B9E2C6; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
.drm-warn { background: #FFF4D6; color: #7A4B00; border: 1px solid #F2C14E; border-inline-start: 4px solid #D98E04; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
.drm-err { background: var(--rs); color: var(--r); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.drm-h { font-size: 1.15rem; margin: 18px 0 10px; }
.drm-h3 { font-size: 1rem; margin: 18px 0 8px; }
.drm-muted { color: var(--m); font-size: .92rem; }
.drm-empty { background: #fff; border: 1px dashed var(--l); border-radius: 14px; padding: 22px; text-align: center; color: var(--m); }

.drm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.drm-card { background: #fff; border: 1px solid var(--l); border-radius: 14px; padding: 14px 16px; display: grid; gap: 2px; text-decoration: none; color: var(--c); }
.drm-card span { color: var(--m); font-size: .9rem; }
.drm-card b { font-size: 1.7rem; font-family: Outfit, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.drm-card em { font-style: normal; font-size: .85rem; color: var(--m); }
.drm-card.is-hot { border-color: var(--y); background: var(--ys); }
.drm-card.is-hot em { color: var(--yd); font-weight: 700; }

.drm-box { background: #fff; border: 1px solid var(--l); border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; }
.drm-box h3 { margin: 0; font-size: 1.05rem; display: inline; }
.drm-box h3 small { color: var(--m); font-weight: 400; font-size: .8rem; font-family: Outfit, sans-serif; }
.drm-box-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.drm-box-head > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
details.drm-box > summary { cursor: pointer; list-style: none; }
details.drm-box > summary::-webkit-details-marker { display: none; }
details.drm-box[open] > summary { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--l); }
.drm-pill { display: inline-block; background: #EEF2F3; color: var(--c); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; }
.drm-pill.is-cy { background: var(--ys); color: var(--yd); }
.drm-pill.is-red { background: var(--rs); color: var(--r); }
.drm-money { font-family: Outfit, sans-serif; font-size: 1.2rem; }
.drm-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin: 12px 0; }
.drm-info div { min-width: 0; }
.drm-info .is-wide { grid-column: 1 / -1; }
.drm-info dt { color: var(--m); font-size: .8rem; }
.drm-info dd { margin: 0; overflow-wrap: anywhere; }
.drm-info-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.drm-form { display: grid; gap: 10px; margin: 0; }
.drm-form input[type=text], .drm-form input[type=email], .drm-form input[type=password], .drm-form input[type=number], .drm-form input[type=search], .drm-form select,
.drm-rowform input, .drm-picker select, .drm-picker input[type=search] { font: inherit; width: 100%; box-sizing: border-box; border: 1px solid var(--l); border-radius: 10px; padding: 9px 11px; background: #fff; color: var(--c); min-height: 42px; }
.drm-form input:focus, .drm-form select:focus, .drm-rowform input:focus { outline: 2px solid var(--y); outline-offset: 0; border-color: var(--y); }
.drm-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.drm-row label { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; color: var(--m); }
.drm-row small { font-weight: 400; font-size: .78rem; }
.drm-lab { font-size: .88rem; font-weight: 600; color: var(--m); margin-top: 4px; }
.drm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.drm-inline { display: inline; margin: 0; }
.drm-rowform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.drm-rowform input { flex: 1 1 160px; width: auto; }
.drm-btn { font: inherit; font-weight: 700; border-radius: 999px; padding: 9px 18px; border: 1px solid var(--l); background: #fff; color: var(--c); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; min-height: 42px; box-sizing: border-box; }
.drm-btn:hover { border-color: var(--c); }
.drm-btn.is-main { background: var(--y); border-color: var(--y); color: #fff; }
.drm-btn.is-main:hover { background: var(--yd); border-color: var(--yd); }
.drm-btn.is-danger { color: var(--r); border-color: #F0C4C6; }
.drm-btn.is-armed { background: var(--r); color: #fff; border-color: var(--r); }
.drm-btn.is-sm { padding: 6px 14px; min-height: 36px; font-size: .9rem; }
.drm-btn:focus-visible, .drm-tabs a:focus-visible { outline: 2px solid var(--y); outline-offset: 2px; }
.drm-x { background: none; border: 0; color: var(--r); font-size: 18px; cursor: pointer; padding: 0 6px; }

.drm-picker { border: 1px solid var(--l); border-radius: 14px; padding: 10px; background: var(--b); display: grid; gap: 8px; }
.drm-chosen { display: flex; flex-wrap: wrap; gap: 6px; }
.drm-chip { font: inherit; font-size: .85rem; background: var(--c); color: #fff; border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.drm-pick-bar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.drm-pick-list { max-height: 260px; overflow: auto; background: #fff; border: 1px solid var(--l); border-radius: 10px; padding: 6px 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 12px; align-content: start; }
.drm-pick-item, .drm-pick-all { display: flex; gap: 6px; align-items: center; padding: 5px 0; cursor: pointer; }
.drm-pick-all { grid-column: 1 / -1; font-weight: 700; border-bottom: 1px solid var(--l); }
.drm-pick-year { grid-column: 1 / -1; font-size: .78rem; font-weight: 700; color: var(--yd); margin-top: 6px; }

.drm-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.drm-chips a { text-decoration: none; color: var(--c); background: #fff; border: 1px solid var(--l); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; }
.drm-chips a.is-on { background: var(--c); color: #fff; border-color: var(--c); }

.drm-split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.drm-list { display: grid; max-height: 460px; overflow: auto; background: #fff; border: 1px solid var(--l); border-radius: 14px; padding: 6px; }
.drm-list a { display: flex; justify-content: space-between; text-decoration: none; color: var(--c); padding: 8px 10px; border-radius: 9px; }
.drm-list a small { color: var(--m); }
.drm-list a:hover { background: var(--b); }
.drm-list a.is-on { background: var(--ys); color: var(--yd); font-weight: 700; }
.drm-add { background: #fff; border: 1px dashed var(--y); border-radius: 14px; padding: 12px; margin-top: 12px; }
.drm-add h3 { margin: 0; font-size: 1rem; }
.drm-cat-head { align-items: center; }
.drm-sub { background: #fff; border: 1px solid var(--l); border-radius: 12px; margin-bottom: 6px; padding: 0 12px; }
.drm-sub > summary { cursor: pointer; padding: 10px 0; display: flex; justify-content: space-between; gap: 10px; }
.drm-sub > summary small { color: var(--m); }
.drm-sub[open] { padding-bottom: 12px; }
.drm-lesson { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--l); padding: 4px 0; }
.drm-payrow { display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 10px; align-items: center; }
.drm-payrow .drm-info, .drm-payrow .drm-rowform { grid-column: 1 / -1; margin: 0; }

.drm-login { max-width: 400px; margin: 10px auto 30px; background: #fff; border: 1px solid #DCE4E7; border-radius: 18px; padding: 26px; display: grid; gap: 12px; }
.drm-login h2 { margin: 0; }
.drm-login label { font-weight: 600; font-size: .9rem; color: #5E6872; }
.drm-login .drm-check { display: flex; gap: 8px; align-items: center; }
.drm-login .drm-btn { justify-content: center; }

@media (max-width: 760px) {
	.drm-split { grid-template-columns: 1fr; }
	.drm-list { max-height: 220px; }
	.drm-info-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.drm-pick-bar { grid-template-columns: 1fr; }
	.drm-actions .drm-btn { flex: 1 1 auto; justify-content: center; }
}
.drm-ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.drm-ava-none { display: inline-grid; place-items: center; background: #EEF2F3; color: #5E6872; font-weight: 700; }

/* Top-ups, students table, notices */
.drm-btn.is-wa { background: #25D366; border-color: #25D366; color: #fff; }
.drm-btn.is-wa:hover { background: #1DA851; border-color: #1DA851; }
.drm-notify { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-color: #25D366; background: #EFFBF3; }
.drm-ok-box { border-color: #B9E2C6; background: #F1FAF4; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.drm-warn-box { border-color: #F3D9A4; background: #FFF8EA; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* 1.8.114: the review form («اكتب / عدّل المراجعة») takes the full card width instead of a squeezed flex item; buttons never park under the sticky header. */
.drm-ok-box > details, .drm-warn-box > details { flex: 1 1 100%; min-width: 0; }
.drm-form textarea { font: inherit; width: 100%; box-sizing: border-box; }
.drm .drm-btn, .drm [id^="drm-app-"] { scroll-margin-top: 90px; }
.drm-table-wrap { padding: 0; overflow-x: auto; }
.drm-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 760px; }
.drm-table th, .drm-table td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--l); vertical-align: middle; }
.drm-table th { color: var(--m); font-weight: 600; font-size: .8rem; background: var(--b); position: sticky; top: 0; }
.drm-table tr:last-child td { border-bottom: 0; }
.drm-nowrap { white-space: nowrap; }
.drm-nowrap .drm-btn { margin-inline-start: 4px; }
.drm-rowform .drm-lab { margin: 0; }

/* Tutor application documents (private) */
.drm-docs { margin: 10px 0 14px; padding: 12px; border: 1px dashed #C9D3D8; border-radius: 12px; background: #FAFCFD; }
.drm-docs-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.drm-doc { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 132px; text-decoration: none; color: #2D3339; }
.drm-doc img { width: 132px; height: 92px; object-fit: cover; border-radius: 10px; border: 1px solid #DCE4E7; background: #fff; }
.drm-doc small { font-size: 11px; text-align: center; }
.drm-doc-file { width: 132px; height: 92px; display: grid; place-items: center; border-radius: 10px; border: 1px solid #DCE4E7; background: #fff; font-weight: 700; }
.drm-mail-tutor { margin: 6px 0 4px; }
.drm-mail-tutor > summary { list-style: none; display: inline-block; cursor: pointer; }
.drm-mail-tutor > summary::-webkit-details-marker { display: none; }
.drm-mail-tutor textarea { width: 100%; box-sizing: border-box; }
