/* Scoped student/teacher directory styles; independent of the BDITHOME theme templates. */
.bdsc-profiles-theme-page .max-w-5xl {max-width: 1400px!important}
.bdsc-profiles-theme-page .prose {max-width: none!important}
.bdsc-profiles-theme-page .prose table {margin: 0!important}
.bdsc-profiles-theme-page .prose p {margin: 0}
.bdsc-profile-app {color:#17243b;font-size:15px;line-height:1.55;width:100%;max-width:100%;font-family:inherit}
.bdsc-profile-app * {box-sizing:border-box}
.bdsc-profile-app .bdsc-heading {display:block;background:#111747;color:#fff;padding:11px 17px;margin:0 0 12px!important;font-size:20px!important;font-weight:800!important;letter-spacing:0}
.bdsc-profile-app .bdsc-filters {display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:13px 16px;border:1px solid #e3e7ef;padding:20px;background:#fff;border-radius:6px;margin:0 0 20px}
.bdsc-filter-field {position:relative;min-width:0}
.bdsc-profile-app label {display:block;font-size:14px;font-weight:800;color:#1c2b3f;margin:0 0 7px}
.bdsc-profile-app select,.bdsc-profile-app input[type="text"],.bdsc-profile-app input[type="search"] {display:block;width:100%;min-height:44px;padding:9px 11px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#1e293b;font:inherit;font-size:14px;outline:0;box-shadow:none;margin:0}
.bdsc-profile-app select:focus,.bdsc-profile-app input:focus {outline:2px solid #93c5fd;outline-offset:1px;border-color:#0284c7}
.bdsc-search-group {display:flex;align-items:stretch;width:100%}
.bdsc-search-group input {border-radius:5px 0 0 5px!important;min-width:0;flex:1}
.bdsc-search-group button {color:#fff!important;background:#278bbd!important;border:0;border-radius:0 5px 5px 0;padding:0 14px;font-size:17px;cursor:pointer;min-width:48px}
.bdsc-search-group button:hover {background:#116c9a!important}
.bdsc-filter-actions {display:flex;align-items:center;gap:13px;grid-column:1/-1;padding-top:1px}
.bdsc-profile-app .bdsc-btn {display:inline-block;background:#06734f!important;color:#fff!important;text-decoration:none!important;border:0;border-radius:6px;padding:10px 19px;font-weight:800;font-size:14px;cursor:pointer;line-height:1.45}
.bdsc-profile-app .bdsc-btn:hover {background:#045738!important;color:#fff!important}
.bdsc-filter-actions a:not(.bdsc-btn) {color:#2563eb;text-decoration:none;font-weight:600}
.bdsc-suggestions {position:absolute;top:100%;left:0;right:0;z-index:50;max-height:260px;overflow-y:auto;border:1px solid #cbd5e1;background:#fff;box-shadow:0 12px 20px rgba(2,6,23,.14);border-radius:0 0 6px 6px}
.bdsc-suggestions[hidden] {display:none!important}
.bdsc-suggestions a {display:block;padding:10px 12px;text-decoration:none!important;color:#0f172a!important;border-bottom:1px solid #f1f5f9}
.bdsc-suggestions a:hover,.bdsc-suggestions a:focus {background:#e7f4ff!important}
.bdsc-suggestions .bdsc-suggestion-name {display:block;font-weight:700}
.bdsc-suggestions .bdsc-suggestion-desc {display:block;font-size:12px;color:#64748b}
.bdsc-suggestions .bdsc-no-suggestions {padding:12px;color:#64748b}
.bdsc-mobile-hint {display:none!important;font-size:12px;color:#64748b;margin:0 0 7px!important}
.bdsc-table-wrap {width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.bdsc-profile-app table.bdsc-directory-table {width:100%;border-collapse:collapse;border-spacing:0;table-layout:auto;background:#fff;color:#1b2b43;border:0;font-size:14px}
.bdsc-profile-app .bdsc-directory-table th {background:#f0f3f9;color:#14213b;font-size:14px;font-weight:800;text-align:left;padding:13px 11px;white-space:nowrap;border:0;border-bottom:1px solid #d7dee8}
.bdsc-profile-app .bdsc-directory-table td {padding:12px 11px;border:0;border-bottom:1px solid #edf1f5;vertical-align:middle;line-height:1.5;min-width:58px}
.bdsc-profile-app .bdsc-directory-table tbody tr:nth-child(odd) {background:#f7f8fa}
.bdsc-profile-app .bdsc-directory-table tbody tr:hover {background:#eaf6f3}
.bdsc-profile-app .bdsc-name-link {color:#1672ac!important;text-decoration:none!important;font-weight:700}
.bdsc-profile-app .bdsc-name-link:hover {text-decoration:underline!important}
.bdsc-photo-link,.bdsc-avatar-fallback {display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;overflow:hidden}
.bdsc-photo-link {width:52px;height:58px;border-radius:4px;text-decoration:none!important}
.bdsc-avatar-img {display:block;width:100%;height:100%;object-fit:cover;margin:0!important;max-width:100%;border:0;border-radius:4px}
.bdsc-avatar-fallback {width:100%;height:100%;background:#d8e7ee;color:#3b728f;font-size:27px;border-radius:5px}
.bdsc-pagination-row {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 3px 6px;font-size:14px;color:#334155;flex-wrap:wrap}
.bdsc-pagination {display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin:12px 0}
.bdsc-pagination .page-numbers {display:inline-flex;justify-content:center;align-items:center;min-width:36px;height:36px;border:1px solid #e2e8f0;border-radius:10px;color:#1f6fa5!important;font-weight:700;text-decoration:none!important;background:#fff;padding:0 7px}
.bdsc-pagination .page-numbers.current {background:#d7dee7;color:#24364b!important}
.bdsc-pagination .page-numbers:hover {background:#eef5fb}
.bdsc-profile-detail {border:1px solid #cfd8e0;border-radius:5px;padding:22px;background:#fff}
.bdsc-profile-top {display:flex;flex-direction:column;align-items:center;text-align:center;margin:0 0 15px}
.bdsc-detail-avatar {width:125px;height:140px;border-radius:6px;overflow:hidden;background:#e2eff5;box-shadow:0 0 0 1px #e5ebf0;margin:0 0 9px}
.bdsc-detail-avatar .bdsc-avatar-img {object-fit:cover}
.bdsc-profile-top h2 {font-size:22px!important;font-weight:800!important;color:#087849!important;margin:0!important;line-height:1.3}
.bdsc-student-reg {font-size:15px;color:#6b7280;font-weight:800;margin:1px 0 0!important}
.bdsc-detail-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;padding:0;margin:0}
.bdsc-detail-row {display:flex;min-width:0;gap:10px;padding:10px 13px;background:#f5f6f8;align-items:baseline}
.bdsc-detail-row:nth-child(4n + 3),.bdsc-detail-row:nth-child(4n + 4) {background:#fff}
.bdsc-detail-row dt {text-align:right;min-width:40%;font-weight:800;color:#17243b}
.bdsc-detail-row dd {font-weight:600;color:#27364c;margin:0;min-width:0;overflow-wrap:anywhere}
.bdsc-back {padding-top:22px;text-align:center}
.bdsc-private-message,.bdsc-empty {padding:24px;text-align:center;color:#475569;background:#f7fafc;border:1px solid #e2e8f0;border-radius:7px}
.bdsc-teacher-search {display:flex;max-width:450px;flex-direction:column;gap:3px;margin:15px 0 20px}
.bdsc-teacher-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:18px}
.bdsc-teacher-card {display:flex;min-width:0;flex-direction:column;align-items:center;gap:7px;border:1px solid #d9e5e3;background:#fff;border-radius:12px;padding:20px 12px;text-align:center;text-decoration:none!important;color:#163046!important;box-shadow:0 3px 9px rgba(15,23,42,.05);transition:box-shadow .2s,transform .2s}
.bdsc-teacher-card:hover {transform:translateY(-3px);box-shadow:0 8px 22px rgba(15,23,42,.14)}
.bdsc-teacher-avatar {width:115px;height:115px;overflow:hidden;border-radius:50%;border:3px solid #0a8c66;background:#e3edf3;display:flex;align-items:center;justify-content:center;margin:0 0 7px}
.bdsc-teacher-avatar img {border-radius:50%}
.bdsc-teacher-card strong {font-size:17px;color:#11345a}
.bdsc-teacher-card>span:not(.bdsc-teacher-avatar) {color:#087a52;font-weight:700;font-size:14px}
.bdsc-teacher-card small {color:#64748b}
.bdsc-hub-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.bdsc-hub-link {display:flex;flex-direction:column;align-items:center;padding:28px 18px;border:1px solid #d7e7e1;border-radius:12px;text-decoration:none!important;background:#f6faf9;color:#163a54!important;gap:8px;min-width:0;text-align:center}
.bdsc-hub-link:hover {background:#e8f6ef}
.bdsc-hub-icon {font-size:42px}
.bdsc-hub-link strong {font-size:22px}
.bdsc-hub-link small {font-size:13px;color:#64748b}
@media(max-width:1050px) {.bdsc-profile-app .bdsc-filters {grid-template-columns:repeat(3,minmax(0,1fr))}.bdsc-search-field {grid-column:span 2}}
@media(max-width:700px) {
 .bdsc-mobile-hint {display:block!important}
 .bdsc-profile-app .bdsc-filters {grid-template-columns:repeat(2,minmax(0,1fr));padding:13px;gap:12px}
 .bdsc-search-field {grid-column:1/-1}
 .bdsc-detail-grid {grid-template-columns:1fr}
 .bdsc-detail-row:nth-child(odd) {background:#f5f6f8}
 .bdsc-detail-row:nth-child(even) {background:#fff}
 .bdsc-hub-grid {grid-template-columns:1fr}
 .bdsc-profile-app table.bdsc-directory-table {min-width:690px}
 .bdsc-profile-app .bdsc-heading {font-size:18px!important}
}
@media(max-width:420px) {
 .bdsc-profile-app .bdsc-filters {grid-template-columns:1fr}
 .bdsc-filter-field,.bdsc-search-field {grid-column:1/-1}
 .bdsc-profile-detail {padding:13px}
 .bdsc-detail-row {padding:9px 6px}
 .bdsc-detail-row dt {min-width:38%;font-size:13px}
 .bdsc-detail-row dd {font-size:13px}
}

/* Employee directory addition (v1.4.2) */
.bdsc-profile-app .bdsc-staff-bio {border-top:1px solid #e2e8f0;margin-top:18px;padding-top:17px;color:#334155;overflow-wrap:anywhere}
.bdsc-profile-app .bdsc-staff-bio h3 {font-size:17px;font-weight:800;color:#064e3b;margin:0 0 9px}
.bdsc-profile-app .bdsc-staff-bio p {margin:0 0 12px}
@media(min-width:900px){.bdsc-hub-grid {grid-template-columns:repeat(3,minmax(0,1fr))}}
