/* =========================================================
   SALIHIN SPS HR
========================================================= */

html {
    scroll-behavior: smooth;
}

:root,
.sps-hr-page,
.sps-hr-modal-backdrop {
    --hr-page-bg: #f6fbff;
    --hr-card: #ffffff;
    --hr-card-soft: #f7fbff;
    --hr-card-muted: #eef7ff;
    --hr-line: rgba(185, 213, 235, .66);
    --hr-line-soft: rgba(185, 213, 235, .42);
    --hr-text: #16233d;
    --hr-heading: #111b31;
    --hr-muted: #5a6b7d;
    --hr-blue: #2866ca;
    --hr-cyan: #18c5d2;
    --hr-green: #21b957;
    --hr-red: #e45f7e;
    --hr-amber: #f4a335;
    --hr-purple: #7456d9;
    --hr-gradient: linear-gradient(135deg, #18c5d2 0%, #2866ca 100%);
    --hr-gradient-danger: linear-gradient(135deg, #ee88a8 0%, #cc4e7e 100%);
    --hr-shadow-card: 0 14px 30px rgba(28, 78, 136, .08);
    --hr-shadow-hover: 0 18px 42px rgba(28, 78, 136, .14);
    --hr-radius-xl: 26px;
}

html[data-bs-theme="dark"],
html[data-bs-theme="dark"] .sps-hr-page,
html[data-bs-theme="dark"] .sps-hr-modal-backdrop {
    --hr-page-bg: #0d141d;
    --hr-card: #172231;
    --hr-card-soft: #111b27;
    --hr-card-muted: #1c2a39;
    --hr-line: rgba(255, 255, 255, .12);
    --hr-line-soft: rgba(255, 255, 255, .08);
    --hr-text: #dfe8f3;
    --hr-heading: #f6f9fd;
    --hr-muted: #9aa8b8;
    --hr-blue: #68a7ff;
    --hr-cyan: #23d1df;
    --hr-green: #6ee08e;
    --hr-red: #ff8aa3;
    --hr-amber: #ffc063;
    --hr-purple: #b59dff;
    --hr-shadow-card: 0 14px 34px rgba(0, 0, 0, .24);
    --hr-shadow-hover: 0 20px 46px rgba(0, 0, 0, .38);
}

.sps-hr-page {
    min-height: calc(100vh - 145px);
    padding: 28px;
    border-radius: 30px;
    color: var(--hr-text);
    background:
        radial-gradient(circle at 8% 6%, rgba(24, 197, 210, .10), transparent 26%),
        radial-gradient(circle at 92% 0%, rgba(40, 102, 202, .09), transparent 28%),
        linear-gradient(180deg, var(--hr-page-bg), #edf6fc);
    position: relative;
    overflow: visible;
}

html[data-bs-theme="dark"] .sps-hr-page {
    background:
        radial-gradient(circle at 8% 6%, rgba(24, 197, 210, .10), transparent 26%),
        radial-gradient(circle at 92% 0%, rgba(40, 102, 202, .09), transparent 28%),
        linear-gradient(180deg, #0d141d, #101925);
}

.sps-hr-page *,
.sps-hr-page *::before,
.sps-hr-page *::after,
.sps-hr-modal-backdrop *,
.sps-hr-modal-backdrop *::before,
.sps-hr-modal-backdrop *::after {
    box-sizing: border-box;
}

@keyframes hrShine {
    0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
    45% { opacity: .55; }
    100% { transform: translateX(220%) skewX(-18deg); opacity: 0; }
}

.sps-section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    color: #0ca7b9;
    font-size: 10.5px;
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

html[data-bs-theme="dark"] .sps-section-kicker {
    color: var(--hr-cyan);
}

.sps-hr-header,
.sps-hr-action-card,
.sps-hr-list-card,
.sps-hr-filter-panel,
.sps-hr-modal,
.sps-hr-summary-item,
.sps-hr-log-item,
.sps-hr-info-item,
.sps-hr-preview-box {
    background: var(--hr-card);
    border: 1px solid var(--hr-line);
    box-shadow: var(--hr-shadow-card);
}

/* =========================================================
   Header
========================================================= */

.sps-hr-header {
    min-height: 136px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px;
    margin-bottom: 18px;
    border-radius: var(--hr-radius-xl);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.sps-hr-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(24, 197, 210, .10), rgba(40, 102, 202, .06)),
        radial-gradient(circle at 95% 10%, rgba(24, 197, 210, .15), transparent 26%);
}

.sps-hr-header::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70%;
    width: 42%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    transform: skewX(-18deg);
    opacity: 0;
}

.sps-hr-header:hover::after {
    animation: hrShine .9s ease;
}

.sps-hr-header > div:not(.sps-hr-header-icon),
.sps-hr-header-icon {
    position: relative;
    z-index: 2;
}

.sps-hr-header-icon {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background: var(--hr-gradient) !important;
    color: #ffffff !important;
    display: grid;
    place-items: center;
    flex: 0 0 70px;
    box-shadow: 0 18px 34px rgba(40, 102, 202, .20);
}

.sps-hr-header-icon svg {
    width: 34px;
    height: 34px;
    stroke-width: 2.5;
}

.sps-hr-header h4 {
    margin: 0 0 7px;
    color: var(--hr-heading);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.05em;
}

.sps-hr-header p {
    max-width: 720px;
    margin: 0;
    color: var(--hr-muted);
    font-size: 13.5px;
    line-height: 1.48;
}

/* =========================================================
   Action Cards
========================================================= */

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

.sps-hr-action-card {
    min-height: 112px;
    border-radius: 20px;
    color: var(--hr-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.sps-hr-action-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 45%),
        radial-gradient(circle at 96% 0%, rgba(24,197,210,.12), transparent 35%);
}

.sps-hr-action-card::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -70%;
    width: 42%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.26), transparent);
    transform: skewX(-18deg);
    opacity: 0;
}

.sps-hr-action-card:hover,
.sps-hr-action-card.is-active {
    color: var(--hr-text);
    transform: translateY(-4px);
    filter: saturate(1.05);
    box-shadow: var(--hr-shadow-hover);
}

.sps-hr-action-card:hover::after,
.sps-hr-action-card.is-active::after {
    animation: hrShine .85s ease;
}

.sps-hr-action-card > * {
    position: relative;
    z-index: 2;
}

.sps-hr-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--hr-gradient) !important;
    color: #ffffff !important;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 24px rgba(40, 102, 202, .18);
    flex: 0 0 auto;
}

.sps-hr-action-icon.danger {
    background: var(--hr-gradient-danger) !important;
}

.sps-hr-action-icon.green {
    background: linear-gradient(135deg, #20d790 0%, #1f9f62 100%) !important;
}

.sps-hr-action-icon.purple {
    background: linear-gradient(135deg, #9d74ff 0%, #6451d6 100%) !important;
}

.sps-hr-action-icon svg {
    width: 25px;
    height: 25px;
    stroke-width: 2.5;
}

.sps-hr-action-card h5 {
    margin: 0 0 6px;
    color: var(--hr-heading);
    font-size: 15.5px;
    font-weight: 950;
    line-height: 1.2;
}

.sps-hr-action-card h5 span {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 22px;
    padding: 0 7px;
    margin-left: 5px;
    border-radius: 999px;
    background: var(--hr-red);
    color: #ffffff;
    font-size: 12px;
}

.sps-hr-action-card p {
    margin: 0;
    color: var(--hr-muted);
    font-size: 12px;
    line-height: 1.35;
}

/* =========================================================
   List Card / Toolbar
========================================================= */

.sps-hr-list-card {
    border-radius: var(--hr-radius-xl);
    padding: 22px;
    overflow: visible;
}

.sps-hr-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hr-line-soft);
    margin-bottom: 18px;
}

.sps-hr-list-head h5 {
    margin: 0;
    color: var(--hr-heading);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -.035em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sps-hr-list-head h5 svg {
    width: 18px;
    height: 18px;
    color: var(--hr-cyan);
}

.sps-hr-head-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sps-hr-head-tools button,
.sps-hr-filter-clear,
.sps-hr-modal-btn {
    min-height: 38px;
    border: 1px solid var(--hr-line-soft);
    border-radius: 999px;
    background: var(--hr-card-soft);
    color: var(--hr-blue);
    padding: 0 15px;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 10px 20px rgba(28,78,136,.08);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.sps-hr-head-tools button:hover,
.sps-hr-filter-clear:hover,
.sps-hr-modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--hr-shadow-hover);
}

.sps-hr-head-tools button.primary,
.sps-hr-modal-btn.primary {
    border-color: transparent;
    color: #ffffff;
    background: var(--hr-gradient);
}

.sps-hr-modal-btn.danger {
    border-color: transparent;
    color: #ffffff;
    background: #dc2626;
}

.sps-hr-head-tools svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.7;
}

.sps-hr-table-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--hr-line-soft);
    border-radius: 16px;
    background: var(--hr-card-soft);
    color: var(--hr-text);
    font-size: 13px;
}

.sps-hr-table-tools label,
.sps-hr-search {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--hr-text);
    font-weight: 750;
}

.sps-hr-table-tools select,
.sps-hr-table-tools input,
.sps-hr-filter-field select,
.sps-hr-form-field input,
.sps-hr-form-field select,
.sps-hr-form-field textarea {
    height: 38px;
    border: 1px solid var(--hr-line);
    background: var(--hr-card);
    border-radius: 10px;
    padding: 0 11px;
    color: var(--hr-text);
    font-size: 13px;
    outline: none;
}

.sps-hr-form-field textarea {
    min-height: 94px;
    height: auto;
    padding-top: 10px;
    resize: vertical;
}

.sps-hr-table-tools select {
    min-width: 72px;
}

.sps-hr-search input {
    min-width: 220px;
}

.sps-hr-table-tools select:focus,
.sps-hr-table-tools input:focus,
.sps-hr-filter-field select:focus,
.sps-hr-form-field input:focus,
.sps-hr-form-field select:focus,
.sps-hr-form-field textarea:focus {
    border-color: rgba(24, 153, 220, .64);
    box-shadow: 0 0 0 4px rgba(24,197,210,.12);
}

/* =========================================================
   Filter Panel
========================================================= */

.sps-hr-filter-panel {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
    margin: -2px 0 16px;
    padding: 14px;
    border-radius: 18px;
    box-shadow: none;
}

.sps-hr-filter-panel.is-open {
    display: grid;
}

.sps-hr-filter-field {
    display: grid;
    gap: 7px;
}

.sps-hr-filter-field span,
.sps-hr-form-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--hr-heading);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.sps-hr-filter-field span::before,
.sps-hr-form-field label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--hr-gradient);
    box-shadow: 0 0 0 4px rgba(24,197,210,.10);
}

/* =========================================================
   Table
========================================================= */

.sps-hr-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--hr-line-soft);
    border-radius: 18px;
    background: var(--hr-card);
}

.sps-hr-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--hr-text);
}

.sps-hr-table th,
.sps-hr-table td {
    border-bottom: 1px solid var(--hr-line-soft);
    padding: 15px 14px;
    vertical-align: middle;
    color: var(--hr-text);
}

.sps-hr-table thead th {
    background: var(--hr-card-soft);
    color: var(--hr-heading);
    font-size: 13px;
    font-weight: 950;
    text-align: left;
    white-space: nowrap;
}

.sps-hr-table tbody tr:hover {
    background: rgba(24,197,210,.045);
}

html[data-bs-theme="dark"] .sps-hr-table tbody tr:hover {
    background: rgba(24,197,210,.07);
}

.sps-hr-table tbody tr:last-child td {
    border-bottom: 0;
}

.sps-hr-table td:first-child {
    width: 75px;
    font-weight: 800;
}

.sps-hr-table td:nth-child(5) {
    text-align: center;
    white-space: nowrap;
}

.sps-hr-table td strong {
    display: block;
    color: var(--hr-heading);
    font-size: 13px;
    font-weight: 900;
}

.sps-hr-table td span {
    display: inline-block;
    margin-top: 6px;
    color: var(--hr-muted);
    font-size: 11.5px;
}

.sps-hr-code,
.sps-hr-category,
.sps-hr-status {
    display: inline-grid !important;
    place-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 11px !important;
    font-weight: 950;
    margin: 0 !important;
}

.sps-hr-code,
.sps-hr-category {
    color: var(--hr-blue) !important;
    background: rgba(40, 102, 202, .10);
}

.sps-hr-status {
    color: #159947 !important;
    background: rgba(33, 185, 87, .12);
}

html[data-bs-theme="dark"] .sps-hr-status {
    color: #6ee08e !important;
}

.sps-hr-table thead th[data-hr-sort] {
    cursor: pointer;
    user-select: none;
}

.sps-hr-table thead th[data-hr-sort]::after {
    content: "↕";
    float: right;
    color: #9fb1c7;
    font-size: 11px;
    font-weight: 700;
}

.sps-hr-table thead th.is-sort-asc::after {
    content: "↑";
    color: var(--hr-blue);
}

.sps-hr-table thead th.is-sort-desc::after {
    content: "↓";
    color: var(--hr-blue);
}

.sps-hr-empty-row td {
    padding: 34px 16px !important;
    color: var(--hr-muted) !important;
    text-align: center;
    font-weight: 850;
}

/* =========================================================
   Buttons / Pagination
========================================================= */

.sps-hr-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.sps-hr-icon-btn {
    min-width: 32px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 7px;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(30, 89, 160, .12);
}

.sps-hr-icon-btn.green { background: #21a94e; }
.sps-hr-icon-btn.info { background: #17a6bd; }
.sps-hr-icon-btn.blue { background: #2079f2; }
.sps-hr-icon-btn.amber { background: #f4a335; }

.sps-hr-icon-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

.sps-hr-icon-btn em {
    min-width: 16px;
    height: 16px;
    border-radius: 5px;
    background: #ffbd1d;
    color: #17304c;
    font-size: 10px;
    display: grid;
    place-items: center;
    font-style: normal;
    padding: 0 4px;
}

.sps-hr-pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}

.sps-hr-pagination-row p {
    margin: 0;
    color: var(--hr-muted);
    font-size: 13px;
    font-weight: 750;
}

.sps-hr-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.sps-hr-pagination button,
.sps-hr-pagination span {
    min-width: 34px;
    height: 34px;
    border: 1px solid var(--hr-line);
    background: var(--hr-card);
    color: var(--hr-blue);
    border-radius: 9px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
}

.sps-hr-pagination button.active {
    color: #ffffff;
    border-color: transparent;
    background: var(--hr-gradient);
}

.sps-hr-pagination button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* =========================================================
   Modal / Form / Summary
========================================================= */

.sps-hr-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sps-hr-modal-backdrop.is-open {
    display: flex;
}

.sps-hr-modal {
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: hidden;
    border: 1px solid var(--hr-line);
    border-radius: 22px;
    background: var(--hr-card);
    color: var(--hr-text);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}

.sps-hr-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--hr-line-soft);
}

.sps-hr-modal-head h5 {
    margin: 0;
    color: var(--hr-heading);
    font-size: 18px;
    font-weight: 950;
}

.sps-hr-modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--hr-line);
    border-radius: 999px;
    background: var(--hr-card-soft);
    color: var(--hr-muted);
    font-size: 20px;
    line-height: 1;
}

.sps-hr-modal-body {
    max-height: calc(100vh - 210px);
    overflow: auto;
    padding: 20px;
    color: var(--hr-text);
}

.sps-hr-modal-body p {
    color: var(--hr-muted);
}

.sps-hr-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--hr-line-soft);
    background: var(--hr-card-soft);
}

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

.sps-hr-form-field {
    display: grid;
    gap: 7px;
}

.sps-hr-form-field.full {
    grid-column: 1 / -1;
}

.sps-hr-summary-grid,
.sps-hr-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sps-hr-summary-item,
.sps-hr-info-item {
    padding: 14px;
    border-radius: 16px;
    box-shadow: none;
}

.sps-hr-summary-item span,
.sps-hr-info-item span {
    display: block;
    color: var(--hr-muted);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.sps-hr-summary-item strong,
.sps-hr-info-item strong {
    display: block;
    margin-top: 6px;
    color: var(--hr-heading);
    font-size: 26px;
    font-weight: 950;
    line-height: 1;
}

.sps-hr-log-list {
    display: grid;
    gap: 10px;
}

.sps-hr-log-item {
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: none;
}

.sps-hr-log-item strong {
    display: block;
    color: var(--hr-heading);
    font-size: 13px;
    font-weight: 950;
}

.sps-hr-log-item span {
    display: block;
    margin-top: 3px;
    color: var(--hr-muted);
    font-size: 12px;
}

.sps-hr-preview-box {
    padding: 18px;
    border-radius: 16px;
    box-shadow: none;
}

.sps-hr-preview-box h6 {
    margin: 0 0 8px;
    color: var(--hr-heading);
    font-size: 14px;
    font-weight: 950;
}

.sps-hr-preview-box p {
    margin: 0 0 10px;
    color: var(--hr-muted);
    font-size: 13px;
    line-height: 1.55;
}

.sps-hr-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1080;
    display: none;
    max-width: 360px;
    padding: 13px 16px;
    border-radius: 16px;
    background: #16233d;
    color: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
    font-size: 13px;
    font-weight: 850;
}

.sps-hr-toast.is-open {
    display: block;
}

html[data-bs-theme="dark"] .sps-hr-toast {
    background: #223146;
}

/* =========================================================
   Active Menu
========================================================= */

.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);
}

/* =========================================================
   Print
========================================================= */

@media print {
    body.sps-hr-printing .main-menu,
    body.sps-hr-printing .navbar-custom,
    body.sps-hr-printing .sps-hr-header,
    body.sps-hr-printing .sps-hr-action-grid,
    body.sps-hr-printing .sps-hr-head-tools,
    body.sps-hr-printing .sps-hr-table-tools,
    body.sps-hr-printing .sps-hr-filter-panel,
    body.sps-hr-printing .sps-hr-pagination-row,
    body.sps-hr-printing .footer {
        display: none !important;
    }

    body.sps-hr-printing .page-content,
    body.sps-hr-printing .container-fluid,
    body.sps-hr-printing .px-3,
    body.sps-hr-printing .sps-hr-page {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    body.sps-hr-printing .sps-hr-list-card {
        border: 0 !important;
        box-shadow: none !important;
    }
}

/* =========================================================
   Responsive
========================================================= */

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

@media (max-width: 991px) {
    .sps-hr-page {
        padding: 22px;
    }

    .sps-hr-header,
    .sps-hr-list-head,
    .sps-hr-table-tools,
    .sps-hr-pagination-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .sps-hr-filter-panel {
        grid-template-columns: 1fr;
    }

    .sps-hr-search,
    .sps-hr-search input {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .sps-hr-page {
        padding: 16px;
        border-radius: 24px;
    }

    .sps-hr-header {
        min-height: auto;
        padding: 18px;
    }

    .sps-hr-header-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 18px;
    }

    .sps-hr-header-icon svg {
        width: 28px;
        height: 28px;
    }

    .sps-hr-header h4 {
        font-size: 27px;
    }

    .sps-hr-header p {
        font-size: 12.5px;
    }

    .sps-hr-action-grid,
    .sps-hr-form-grid,
    .sps-hr-summary-grid,
    .sps-hr-info-grid {
        grid-template-columns: 1fr;
    }

    .sps-hr-list-card {
        padding: 16px;
    }

    .sps-hr-head-tools {
        width: 100%;
    }

    .sps-hr-head-tools button {
        flex: 1 1 auto;
    }

    .sps-hr-pagination {
        width: 100%;
    }

    .sps-hr-modal {
        max-height: calc(100vh - 24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sps-hr-header::after,
    .sps-hr-action-card::after,
    .sps-hr-action-card,
    .sps-hr-head-tools button,
    .sps-hr-filter-clear,
    .sps-hr-modal-btn {
        animation: none !important;
        transition: none !important;
    }
}
