/* SALIHIN SPS Staff Directory page - clean light dashboard theme */
.sps-staff-page {
    background: #f7fbff;
    border-radius: 16px;
    padding: 14px;
    min-height: calc(100vh - 145px);
    color: #14203a;
    position: relative;
    overflow: hidden;
}

/*.sps-staff-page::before {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 0;*/
/*    right: 0;*/
/*    width: 390px;*/
/*    height: 145px;*/
/*    background-image:*/
/*        radial-gradient(circle, rgba(86, 170, 235, .18) 1.4px, transparent 1.6px),*/
/*        linear-gradient(135deg, transparent 0 42%, rgba(59, 160, 230, .09) 42% 43%, transparent 43% 100%);*/
/*    background-size: 12px 12px, 100% 100%;*/
/*    pointer-events: none;*/
/*}*/

.sps-staff-header-card,
.sps-staff-filter-card,
.sps-staff-toolbar-card,
.sps-staff-grid,
.sps-staff-list-wrap,
.sps-staff-empty,
.sps-staff-footer {
    position: relative;
    z-index: 1;
}

.sps-staff-header-card {
    min-height: 86px;
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(185,207,234,.72);
    box-shadow: 0 12px 30px rgba(28,78,136,.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    margin-bottom: 14px;
    overflow: hidden;
}

/*.sps-staff-header-card::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    right: 18px;*/
/*    bottom: -30px;*/
/*    width: 300px;*/
/*    height: 130px;*/
/*    background: repeating-radial-gradient(ellipse at right bottom, transparent 0 10px, rgba(25,155,215,.16) 11px 12px, transparent 13px 22px);*/
/*    pointer-events: none;*/
/*}*/

.sps-staff-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.sps-staff-title-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #16c4d4 0%, #2865ca 100%);
    color: #ffffff;
    display: grid;
    place-items: center;
    box-shadow: 0 16px 30px rgba(35,105,205,.23);
    flex: 0 0 auto;
}

.sps-staff-title-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2.35;
}

.sps-staff-title-wrap h4 {
    margin: 0 0 4px;
    color: #16213b;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
}

.sps-staff-title-wrap p {
    margin: 0;
    color: #425573;
    font-size: 13px;
}

.sps-staff-count-pill {
    position: relative;
    z-index: 1;
    min-width: 130px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #18c5d2 0%, #2866ca 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    box-shadow: 0 14px 26px rgba(35,105,205,.22);
}

.sps-staff-count-pill span {
    font-size: 14px;
    font-weight: 800;
}

.sps-staff-count-pill strong {
    min-width: 36px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.24);
    font-size: 14px;
    font-weight: 900;
}

.sps-staff-analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.sps-staff-analytics-card {
    min-height: 104px;
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(185,207,234,.72);
    box-shadow: 0 12px 30px rgba(28,78,136,.08);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    overflow: hidden;
    position: relative;
}

/*.sps-staff-analytics-card::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    right: -35px;*/
/*    bottom: -55px;*/
/*    width: 160px;*/
/*    height: 120px;*/
/*    background: repeating-radial-gradient(ellipse at right bottom, transparent 0 10px, rgba(25,155,215,.13) 11px 12px, transparent 13px 22px);*/
/*    pointer-events: none;*/
/*}*/

.sps-staff-analytics-icon {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: #e8f2ff;
    color: #2866bd;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

.sps-staff-analytics-icon.green { color: #20a858; background: #e8f8ef; }
.sps-staff-analytics-icon.purple { color: #6d47be; background: #f0ebff; }
.sps-staff-analytics-icon.amber { color: #c47a12; background: #fff3d9; }
.sps-staff-analytics-icon svg { width: 28px; height: 28px; stroke-width: 2.4; }

.sps-staff-analytics-card > div:last-child {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.sps-staff-analytics-card span {
    display: block;
    color: #50637d;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.sps-staff-analytics-card strong {
    display: block;
    color: #14203a;
    font-size: 27px;
    line-height: 1;
    margin-bottom: 6px;
    font-weight: 900;
}

.sps-staff-analytics-card p {
    margin: 0;
    color: #50637d;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sps-staff-dept-analytics-card {
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(185,207,234,.72);
    box-shadow: 0 12px 30px rgba(28,78,136,.08);
    padding: 18px;
    margin-bottom: 14px;
}

.sps-staff-dept-analytics-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.sps-staff-dept-analytics-head h5 {
    margin: 0;
    color: #16233d;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
}

.sps-staff-dept-analytics-head p {
    margin: 0;
    color: #51647e;
    font-size: 12px;
    font-weight: 700;
}

.sps-staff-dept-bars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.sps-staff-dept-bar-row {
    min-width: 0;
}

.sps-staff-dept-bar-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    color: #26344e;
    font-size: 12px;
    font-weight: 800;
}

.sps-staff-dept-bar-label span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sps-staff-dept-bar-label strong {
    min-width: 28px;
    height: 24px;
    border-radius: 999px;
    background: #e9f4ff;
    color: #2866bd;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
}

.sps-staff-dept-bar-track {
    height: 10px;
    border-radius: 999px;
    background: #e7f1fb;
    overflow: hidden;
}

.sps-staff-dept-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #18c5d2 0%, #2866ca 100%);
    box-shadow: 0 8px 18px rgba(35,105,205,.18);
}

.sps-staff-filter-card,
.sps-staff-toolbar-card,
.sps-staff-list-wrap {
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(185,207,234,.72);
    box-shadow: 0 12px 30px rgba(28,78,136,.08);
}

.sps-staff-filter-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(270px, .9fr);
    gap: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.sps-staff-filter-card select,
.sps-staff-search-wrap input {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #cfdaea;
    background: #ffffff;
    color: #25344f;
    padding: 0 12px;
    font-size: 13px;
}

.sps-staff-search-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
}

.sps-staff-search-wrap input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.sps-staff-search-wrap button {
    height: 42px;
    border: 0;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(135deg, #18c5d2 0%, #2866ca 100%);
    color: #ffffff;
    display: grid;
    place-items: center;
}

.sps-staff-search-wrap svg {
    width: 19px;
    height: 19px;
    stroke-width: 2.7;
}

.sps-staff-toolbar-card {
    min-height: 72px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.sps-staff-toolbar-card h5 {
    margin: 0;
    color: #16233d;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
}

.sps-staff-view-toggle {
    display: flex;
    gap: 6px;
}

.sps-staff-view-toggle button {
    width: 38px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(43,112,197,.18);
    background: #ffffff;
    color: #2866bd;
    display: grid;
    place-items: center;
}

.sps-staff-view-toggle button.active {
    background: linear-gradient(135deg, #18c5d2 0%, #2866ca 100%);
    color: #ffffff;
}

.sps-staff-view-toggle svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.6;
}

.sps-staff-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sps-staff-card {
    min-height: 405px;
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(185,207,234,.72);
    box-shadow: 0 12px 30px rgba(28,78,136,.08);
    padding: 22px 18px 18px;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/*.sps-staff-card::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    right: -34px;*/
/*    bottom: -46px;*/
/*    width: 180px;*/
/*    height: 130px;*/
/*    background: repeating-radial-gradient(ellipse at right bottom, transparent 0 10px, rgba(25,155,215,.14) 11px 12px, transparent 13px 22px);*/
/*    pointer-events: none;*/
/*}*/

.sps-staff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(28,78,136,.13);
    border-color: rgba(46,142,214,.45);
}

.sps-staff-photo-wrap {
    width: 118px;
    height: 118px;
    border-radius: 999px;
    margin: 0 auto 16px;
    padding: 4px;
    background: #ffffff;
    border: 1px solid rgba(138,168,202,.75);
    box-shadow: 0 12px 26px rgba(35,105,205,.14);
}

.sps-staff-photo-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.sps-staff-card h5 {
    margin: 0 0 10px;
    color: #16233d;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 900;
    text-transform: uppercase;
}

.sps-staff-card p {
    margin: 0 0 7px;
    color: #4f5f75;
    font-size: 12px;
    line-height: 1.35;
    text-transform: uppercase;
}

.sps-staff-dept,
.sps-staff-position {
    color: #263b5e !important;
    font-weight: 800;
}

.sps-staff-contact-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.sps-staff-contact-list a,
.sps-staff-contact-list span {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #41536e;
    font-size: 12px;
    line-height: 1.35;
    text-decoration: none;
    word-break: break-word;
}

.sps-staff-contact-list a:hover { color: #1267d7; }
.sps-staff-contact-list svg {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    flex: 0 0 auto;
    color: #2866bd;
    stroke-width: 2.5;
}

.sps-staff-list-wrap { padding: 16px; overflow-x: auto; }
.sps-staff-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e4edf7;
    background: #ffffff;
}
.sps-staff-table th,
.sps-staff-table td {
    border-bottom: 1px solid #e4edf7;
    border-right: 1px solid #e4edf7;
    padding: 12px;
    vertical-align: middle;
    font-size: 12px;
    color: #26344e;
}
.sps-staff-table th { background: #fbfdff; color: #17233e; font-weight: 900; }
.sps-staff-table a { color: #1267d7; text-decoration: none; font-weight: 800; }
.sps-staff-table-person { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.sps-staff-table-person img { width: 42px; height: 42px; border-radius: 999px; object-fit: cover; border: 1px solid #c7d9ed; }

.sps-staff-empty {
    min-height: 260px;
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(185,207,234,.72);
    box-shadow: 0 12px 30px rgba(28,78,136,.08);
    display: grid;
    place-items: center;
    text-align: center;
    color: #617089;
}
.sps-staff-empty svg { width: 52px; height: 52px; color: #2866bd; margin-bottom: 12px; }
.sps-staff-empty strong { display: block; color: #17233e; font-size: 20px; font-weight: 900; }
.sps-staff-empty p { margin: 6px 0 0; }

.sps-staff-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    color: #45566f;
    font-size: 12px;
}

.sps-staff-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sps-staff-pagination button {
    min-width: 34px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #d5e1ef;
    background: #ffffff;
    color: #2f5e9f;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 800;
}
.sps-staff-pagination button.active {
    background: #2866ca;
    border-color: #2866ca;
    color: #ffffff;
}
.sps-staff-pagination button:disabled { color: #98a6b7; }

.main-menu .menu-link.active,
.main-menu .menu-link[aria-current="page"] {
    background: rgba(255,255,255,.18);
    color: #ffffff !important;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

@media (max-width: 1500px) {
    .sps-staff-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sps-staff-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1199px) {
    .sps-staff-filter-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sps-staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sps-staff-dept-bars { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .sps-staff-page { padding: 12px; }
    .sps-staff-header-card { align-items: flex-start; flex-direction: column; padding: 16px; }
    .sps-staff-title-wrap h4 { font-size: 22px; }
    .sps-staff-count-pill { width: 100%; }
    .sps-staff-analytics-grid { grid-template-columns: 1fr; }
    .sps-staff-dept-analytics-head { align-items: flex-start; flex-direction: column; }
    .sps-staff-filter-card { grid-template-columns: 1fr; }
    .sps-staff-toolbar-card { align-items: flex-start; flex-direction: column; }
    .sps-staff-grid { grid-template-columns: 1fr; }
    .sps-staff-card { min-height: auto; }
    .sps-staff-table { min-width: 900px; }
    .sps-staff-footer { align-items: flex-start; flex-direction: column; }
}
