/* =========================================================
   HR PORTAL
   Main Stylesheet
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 16px;
}

body {
    min-height: 100vh;
    background: #f5f7f7;
    color: #243434;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   APP LAYOUT
   ========================================================= */

.app {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.main-wrapper {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-left: 250px;
}

.content-wrapper {
    flex: 1;
    width: 100%;
    padding: 25px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: 250px;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    border-right: 1px solid #e1e7e7;

    z-index: 1000;
}


/* =========================================================
   SIDEBAR LOGO
   ========================================================= */

.sidebar-logo {
    height: 72px;

    display: flex;
    align-items: center;

    padding: 0 22px;

    border-bottom: 1px solid #e8eeee;
}

.sidebar-logo a {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 11px;
}

.logo-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #006b68;
    color: #ffffff;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 700;
}

.logo-text {
    color: #243434;
    font-size: 17px;
    font-weight: 700;
}


/* =========================================================
   SIDEBAR NAVIGATION
   ========================================================= */

.sidebar-nav {
    flex: 1;

    overflow-y: auto;

    padding: 18px 12px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-title {
    padding: 0 11px;
    margin-bottom: 8px;

    color: #899696;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .8px;
    text-transform: uppercase;
}

.nav-link {
    min-height: 42px;

    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 3px;
    padding: 9px 11px;

    color: #5c6d6d;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 500;

    transition:
        background .15s ease,
        color .15s ease;
}

.nav-link:hover {
    background: #f1f7f7;
    color: #006b68;
}

.nav-link.active {
    background: #eaf5f4;
    color: #006b68;
    font-weight: 600;
}

.nav-icon {
    width: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #7d8d8d;

    font-size: 15px;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    color: #006b68;
}


/* =========================================================
   SIDEBAR BOTTOM
   ========================================================= */

.sidebar-bottom {
    padding: 14px 12px;

    border-top: 1px solid #e8eeee;
}

.sidebar-user {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 9px;
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #006b68;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}

.sidebar-user-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.sidebar-user-info strong {
    overflow: hidden;

    color: #263636;

    font-size: 12px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-info span {
    color: #899696;

    font-size: 11px;
}


/* =========================================================
   HEADER
   ========================================================= */

.top-header {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 25px;

    background: #ffffff;

    border-bottom: 1px solid #e1e7e7;
}

.header-logo {
    display: none;

    color: #006b68;
    font-size: 17px;
    font-weight: 700;
}

.header-right {
    margin-left: auto;
}

.user-menu {
    display: flex;
    align-items: center;

    gap: 18px;
}

.user-info {
    display: flex;
    flex-direction: column;

    text-align: right;
}

.user-info strong {
    color: #263636;

    font-size: 13px;
    font-weight: 600;
}

.user-info span {
    color: #899696;

    font-size: 11px;
}

.logout-link {
    padding: 7px 13px;

    color: #657575;

    border: 1px solid #dce4e4;
    border-radius: 6px;

    font-size: 12px;
    font-weight: 500;

    transition: .15s ease;
}

.logout-link:hover {
    color: #006b68;
    border-color: #a9cdcb;
    background: #f4f9f9;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 25px;

    background: #ffffff;

    border-top: 1px solid #e1e7e7;

    color: #8a9898;

    font-size: 12px;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    margin-bottom: 5px;

    color: #243434;

    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

.page-header p {
    color: #7b8a8a;
    font-size: 13px;
}

.page-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 8px 16px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-size: 13px;
    font-weight: 600;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.btn-primary {
    background: #006b68;
    border-color: #006b68;
    color: #ffffff;
}

.btn-primary:hover {
    background: #005856;
    border-color: #005856;
}

.btn-secondary {
    background: #ffffff;
    border-color: #d7e0e0;
    color: #566666;
}

.btn-secondary:hover {
    background: #f4f7f7;
    border-color: #c6d2d2;
}

.btn-danger {
    background: #ffffff;
    border-color: #e1bcbc;
    color: #a33b3b;
}

.btn-danger:hover {
    background: #fff5f5;
    border-color: #d99e9e;
}

.btn-success {
    background: #ffffff;
    border-color: #b9d9ce;
    color: #237055;
}

.btn-success:hover {
    background: #f1faf6;
}

.btn-sm {
    min-height: 32px;
    padding: 6px 11px;
    font-size: 12px;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    background: #ffffff;

    border: 1px solid #e1e7e7;
    border-radius: 8px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 17px 20px;

    border-bottom: 1px solid #e8eeee;
}

.card-header h2,
.card-header h3 {
    color: #293939;

    font-size: 15px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}


/* =========================================================
   DASHBOARD STATS
   ========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 24px;
}

.stat-card {
    background: #ffffff;

    border: 1px solid #e1e7e7;
    border-radius: 8px;

    padding: 20px;
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;
}

.stat-card-title {
    color: #7c8a8a;

    font-size: 12px;
    font-weight: 500;
}

.stat-card-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: #edf7f6;
    color: #006b68;

    font-size: 14px;
}

.stat-card-value {
    color: #263636;

    font-size: 25px;
    font-weight: 700;
}


/* =========================================================
   GRID
   ========================================================= */

.grid-2 {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.grid-3 {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;

    border-collapse: collapse;

    background: #ffffff;
}

.table th {
    padding: 12px 15px;

    background: #fafcfc;

    border-bottom: 1px solid #dfe7e7;

    color: #718080;

    font-size: 11px;
    font-weight: 700;

    text-align: left;
    white-space: nowrap;
}

.table td {
    padding: 13px 15px;

    border-bottom: 1px solid #edf1f1;

    color: #3f5050;

    font-size: 13px;

    vertical-align: middle;
}

.table tbody tr:hover {
    background: #fbfdfd;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table-actions {
    display: flex;
    align-items: center;

    gap: 6px;
}


/* =========================================================
   FORMS
   ========================================================= */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    color: #485858;

    font-size: 12px;
    font-weight: 600;
}

.form-label .required {
    color: #b54b4b;
}

.form-control {
    width: 100%;
    min-height: 40px;

    padding: 9px 11px;

    background: #ffffff;

    border: 1px solid #d7e0e0;
    border-radius: 6px;

    color: #2c3c3c;

    font-size: 13px;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.form-control:focus {
    border-color: #72aaa7;

    box-shadow:
        0 0 0 3px
        rgba(0, 107, 104, .08);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

.form-help {
    color: #899696;
    font-size: 11px;
}

.form-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 22px;
    padding-top: 18px;

    border-top: 1px solid #e8eeee;
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-box {
    display: flex;
    align-items: center;

    gap: 8px;
}

.search-box .form-control {
    min-width: 260px;
}


/* =========================================================
   BADGES / STATUS
   ========================================================= */

.badge {
    display: inline-flex;
    align-items: center;

    min-height: 24px;

    padding: 3px 8px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 600;
}

.status-active {
    background: #eaf7f1;
    color: #277052;
}

.status-blocked {
    background: #fff0f0;
    color: #a03d3d;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-size: 13px;
}

.alert-success {
    background: #eef9f4;
    border-color: #c4e1d4;
    color: #276a4f;
}

.alert-danger {
    background: #fff2f2;
    border-color: #e7c0c0;
    color: #963c3c;
}

.alert-warning {
    background: #fff9eb;
    border-color: #ead9a9;
    color: #76601d;
}

.alert-info {
    background: #eef7f8;
    border-color: #c7dddf;
    color: #27636a;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    padding: 50px 20px;

    color: #8a9999;

    text-align: center;
}

.empty-state-title {
    margin-bottom: 6px;

    color: #586969;

    font-size: 15px;
    font-weight: 600;
}

.empty-state-text {
    font-size: 12px;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    display: flex;
    align-items: center;

    gap: 5px;

    margin-top: 18px;
}

.pagination a,
.pagination span {
    min-width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;

    border: 1px solid #dce4e4;
    border-radius: 5px;

    color: #687777;

    font-size: 12px;
}

.pagination a:hover {
    background: #f2f7f7;
    color: #006b68;
}

.pagination .active {
    background: #006b68;
    border-color: #006b68;
    color: #ffffff;
}


/* =========================================================
   PROFILE
   ========================================================= */

.profile-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.profile-item {
    padding-bottom: 12px;

    border-bottom: 1px solid #edf1f1;
}

.profile-item-label {
    display: block;

    margin-bottom: 3px;

    color: #899696;

    font-size: 11px;
}

.profile-item-value {
    display: block;

    color: #354646;

    font-size: 13px;
    font-weight: 500;
}


/* =========================================================
   MODAL
   ========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(20, 35, 35, .35);

    z-index: 2000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 550px;

    background: #ffffff;

    border-radius: 9px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, .15);

    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 17px 20px;

    border-bottom: 1px solid #e7eeee;
}

.modal-header h3 {
    color: #293939;

    font-size: 15px;
}

.modal-close {
    border: 0;
    background: transparent;

    color: #899696;

    font-size: 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;

    gap: 8px;

    padding: 15px 20px;

    border-top: 1px solid #e7eeee;
}


/* =========================================================
   DOCUMENTS
   ========================================================= */

.document-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 11px 13px;

    background: #fafcfc;

    border: 1px solid #e5ebeb;
    border-radius: 6px;
}

.document-info {
    min-width: 0;
}

.document-name {
    display: block;

    overflow: hidden;

    color: #425353;

    font-size: 12px;
    font-weight: 600;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-meta {
    color: #899696;
    font-size: 10px;
}


/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background: #f5f7f7;
}

.login-box {
    width: 100%;
    max-width: 400px;

    background: #ffffff;

    border: 1px solid #e1e7e7;
    border-radius: 10px;

    padding: 32px;

    box-shadow:
        0 8px 35px
        rgba(0, 0, 0, .05);
}

.login-logo {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    background: #006b68;
    color: #ffffff;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;
}

.login-title {
    margin-bottom: 5px;

    color: #263636;

    font-size: 21px;
    font-weight: 700;

    text-align: center;
}

.login-subtitle {
    margin-bottom: 25px;

    color: #899696;

    font-size: 12px;

    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;

    gap: 15px;
}

.login-form .btn {
    width: 100%;
    margin-top: 5px;
}


/* =========================================================
   UTILITY
   ========================================================= */

.text-muted {
    color: #899696 !important;
}

.text-primary {
    color: #006b68 !important;
}

.text-danger {
    color: #a03d3d !important;
}

.text-success {
    color: #277052 !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.hidden {
    display: none !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .profile-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 850px) {

    .sidebar {
        width: 220px;
    }

    .main-wrapper {
        margin-left: 220px;
    }

    .content-wrapper {
        padding: 20px;
    }

    .grid-3 {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 700px) {

    .sidebar {
        width: 210px;
    }

    .main-wrapper {
        margin-left: 210px;
    }

    .top-header {
        padding: 0 15px;
    }

    .content-wrapper {
        padding: 15px;
    }

    .page-header-flex {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 0 15px;
    }

}


@media (max-width: 550px) {

    .sidebar {
        position: static;

        width: 100%;
        min-height: auto;
    }

    .app {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .sidebar-nav {
        max-height: none;
    }

    .sidebar-bottom {
        display: none;
    }

    .top-header {
        height: 60px;
    }

    .header-logo {
        display: block;
    }

    .user-info {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        width: 100%;
    }

    .search-box .form-control {
        min-width: 0;
    }

    .footer {
        min-height: 50px;

        flex-direction: column;
        justify-content: center;

        gap: 2px;

        padding: 10px;
    }

}

/* =========================================================
   GROUPS PAGE
   admin/groups/index.php
   ========================================================= */

.table-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 24px;
}

.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.table-card-header h2 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
    color: #172033;
}

.table-card-header p {
    margin: 0;
    font-size: 13px;
    color: #7b8494;
}

.table-card-header > div:last-child {
    color: #5f6b7a;
    font-size: 14px;
}

.table-card-header > div:last-child strong {
    color: #007f78;
    font-size: 18px;
}


/* Table */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.table-card .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table-card .data-table thead th {
    padding: 13px 16px;
    background: #f8fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #596273;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.table-card .data-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f2;
    color: #344054;
    font-size: 13px;
    vertical-align: middle;
}

.table-card .data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-card .data-table tbody tr:hover {
    background: #fafcfc;
}

.table-card .data-table tbody td strong {
    color: #172033;
    font-weight: 600;
}


/* Description */

.table-card .text-muted {
    color: #98a2b3;
}


/* Status */

.table-card .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.table-card .badge-success {
    color: #087443;
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

.table-card .badge-danger {
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
}


/* Actions */

.table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.table-actions .btn {
    margin: 0;
}


/* Small buttons */

.table-card .btn-small {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 6px;
}


/* Secondary button */

.table-card .btn-secondary {
    background: #ffffff;
    color: #344054;
    border: 1px solid #d0d5dd;
}

.table-card .btn-secondary:hover {
    background: #f9fafb;
    border-color: #98a2b3;
}


/* Danger button */

.table-card .btn-danger {
    background: #ffffff;
    color: #b42318;
    border: 1px solid #f0a8a2;
}

.table-card .btn-danger:hover {
    background: #fef3f2;
    border-color: #d92d20;
}


/* Empty state */

.table-card .empty-state {
    padding: 60px 30px;
    text-align: center;
}

.table-card .empty-state h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 18px;
    font-weight: 600;
}

.table-card .empty-state p {
    margin: 0 0 20px;
    color: #7b8494;
    font-size: 13px;
}


/* Mobile */

@media (max-width: 768px) {

    .table-card {
        margin-top: 18px;
        border-radius: 8px;
    }

    .table-card-header {
        padding: 16px;
    }

    .table-card .data-table thead th,
    .table-card .data-table tbody td {
        padding: 11px 12px;
    }

    .table-card .data-table {
        min-width: 850px;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

}

/* =========================================================
   GROUP CREATE / EDIT FORM
   Digər create səhifələri ilə eyni dizayn
   ========================================================= */

.form-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #dfe5e7;
    border-radius: 9px;
    overflow: hidden;
    margin-top: 28px;
    box-sizing: border-box;
}

.form-section {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Bölmə başlığı */
.form-section h2 {
    margin: 0;
    padding: 17px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #172b3a;
    border-bottom: 1px solid #e3e8ea;
    background: #ffffff;
}

/* Form sahələrinin əsas hissəsi */
.form-section .form-group {
    margin: 0;
    padding: 18px 20px 0;
    box-sizing: border-box;
}

/* Label */
.form-section .form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #263746;
}

/* Input / Select / Textarea */
.form-section .form-group input,
.form-section .form-group select,
.form-section .form-group textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;

    padding: 10px 12px;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;

    color: #172b3a;
    background: #ffffff;

    border: 1px solid #cfd8dc;
    border-radius: 5px;

    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

/* Input */
.form-section .form-group input {
    height: 42px;
}

/* Select */
.form-section .form-group select {
    height: 42px;
    cursor: pointer;
}

/* Textarea */
.form-section .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Fokus */
.form-section .form-group input:focus,
.form-section .form-group select:focus,
.form-section .form-group textarea:focus {
    border-color: #00857f;
    box-shadow: 0 0 0 3px rgba(0, 133, 127, 0.10);
}

/* Son form sahəsindən sonra düymə hissəsi */
.form-section .form-actions {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 22px 20px 0;
    padding: 18px 0;

    border-top: 1px solid #e3e8ea;
}

/* Düymələr */
.form-section .form-actions .btn {
    min-height: 38px;
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 5px;
}

/* Primary */
.form-section .form-actions .btn-primary {
    background: #007f78;
    border-color: #007f78;
    color: #ffffff;
}

.form-section .form-actions .btn-primary:hover {
    background: #006f69;
    border-color: #006f69;
}

/* Secondary */
.form-section .form-actions .btn-secondary {
    background: #ffffff;
    border: 1px solid #d4dde0;
    color: #34495e;
}

.form-section .form-actions .btn-secondary:hover {
    background: #f5f7f8;
}


/* =========================================================
   GROUP FORM - 2 SÜTUN
   Qrup adı + Departament
   Açıqlama + Status
   ========================================================= */

@media (min-width: 800px) {

    .form-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 18px;
    }

    .form-section h2 {
        grid-column: 1 / -1;
    }

    .form-section .form-group {
        padding-top: 18px;
    }

    .form-section .form-actions {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width: 799px) {

    .form-card {
        margin-top: 20px;
    }

    .form-section .form-group {
        padding-left: 16px;
        padding-right: 16px;
    }

    .form-section .form-actions {
        margin-left: 16px;
        margin-right: 16px;
        flex-wrap: wrap;
    }

    .form-section .form-actions .btn {
        flex: 0 0 auto;
    }
}

/* =========================================================
   EMPLOYEE GROUPS — DEPARTMENT STRUCTURE
========================================================= */

.groups-structure {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* =========================================================
   DEPARTMENT
========================================================= */

.department-group {
    width: 100%;
}


/* =========================================================
   DEPARTMENT HEADER
========================================================= */

.department-toggle {
    width: 100%;
    min-height: 58px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid #e4e7ec;
    border-radius: 10px;

    background: #ffffff;
    color: #101828;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.department-toggle:hover {
    background: #f9fafb;
    border-color: #d0d5dd;
}

.department-toggle[aria-expanded="true"] {
    border-color: #d0d5dd;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}


/* =========================================================
   LEFT SIDE
========================================================= */

.department-toggle-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}


/* =========================================================
   ARROW
========================================================= */

.department-arrow {
    width: 18px;
    min-width: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #667085;

    font-size: 11px;
    line-height: 1;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.department-toggle:hover .department-arrow {
    color: #344054;
}


/* =========================================================
   DEPARTMENT NAME
========================================================= */

.department-name {
    color: #101828;

    font-size: 14px;
    font-weight: 600;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   GROUP COUNT
========================================================= */

.department-group-count {
    flex-shrink: 0;

    padding: 4px 10px;

    border: 1px solid #eaecf0;
    border-radius: 20px;

    background: #f9fafb;
    color: #475467;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   OPENED GROUPS
========================================================= */

.department-groups {
    width: 100%;

    margin-top: 8px;
    padding-left: 24px;

    animation: departmentSlideDown 0.18s ease;
}

.department-groups[hidden] {
    display: none;
}


/* =========================================================
   TABLE CARD INSIDE DEPARTMENT
========================================================= */

.department-groups .table-card {
    width: 100%;
    overflow: hidden;
}

.department-groups .table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.department-groups .table {
    width: 100%;
    margin: 0;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .department-toggle {
        min-height: 54px;
        padding: 0 14px;
    }

    .department-toggle-left {
        gap: 9px;
    }

    .department-name {
        font-size: 13px;
    }

    .department-group-count {
        padding: 3px 8px;
        font-size: 11px;
    }

    .department-groups {
        padding-left: 8px;
    }

}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes departmentSlideDown {

    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}