/* =====================================================
   PERSONEL PROFİLİ
===================================================== */

.oc-staff-profile {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    color: #222;
}

/* Profil üst alanı */
.oc-staff-profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    margin-bottom: 35px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

/* Profil fotoğrafı */
.oc-staff-profile-photo {
    flex: 0 0 180px;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    background: #f2f2f2;
}

.oc-staff-profile-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profil bilgileri */
.oc-staff-profile-info {
    flex: 1;
    min-width: 0;
}

.oc-staff-profile-info h1 {
    margin: 0 0 18px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: #222;
}

.oc-staff-profile-info p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.oc-staff-profile-info p strong {
    display: inline-block;
    min-width: 90px;
    color: #222;
}

/* Görev geçmişi */
.oc-staff-profile-assignments {
    margin-top: 30px;
}

.oc-staff-profile-assignments > h2 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e30613;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

/* Görev kartları */
.oc-staff-assignment-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.oc-staff-assignment {
    padding: 22px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #e30613;
    border-radius: 8px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.oc-staff-assignment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.07);
}

.oc-staff-assignment h3 {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.oc-staff-assignment p {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.oc-staff-assignment p strong {
    flex: 0 0 95px;
    color: #222;
}

/* Kayıt bulunamadı */
.oc-staff-profile-assignments > p {
    padding: 18px;
    margin: 0;
    background: #f7f7f7;
    border-radius: 8px;
    color: #666;
}

/* Mobil */
@media (max-width: 767px) {

    .oc-staff-profile-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 22px 18px;
        text-align: center;
    }

    .oc-staff-profile-photo {
        flex-basis: auto;
        width: 140px;
        height: 140px;
    }

    .oc-staff-profile-info h1 {
        font-size: 24px;
    }

    .oc-staff-profile-info p strong {
        min-width: auto;
    }

    .oc-staff-assignment-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .oc-staff-assignment {
        padding: 18px;
    }

    .oc-staff-profile-assignments > h2 {
        font-size: 20px;
    }
}
/* Profil başlığı */
.oc-staff-profile-header {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 25px 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
}

/* Profil fotoğrafı */
.oc-staff-profile-photo {
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
    overflow: hidden;
    border-radius: 50%;
    background: #f1f1f1;
}

.oc-staff-profile-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* İsim ve bilgiler */
.oc-staff-profile-info {
    flex: 1;
    min-width: 0;
}

.oc-staff-profile-info h1 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
}

.oc-staff-profile-info p {
    margin: 5px 0;
}

/* Mobil */
@media (max-width: 600px) {
    .oc-staff-profile-header {
        gap: 15px;
        padding: 18px;
    }

    .oc-staff-profile-photo {
        flex-basis: 80px;
        width: 80px;
        height: 80px;
    }

    .oc-staff-profile-info h1 {
        font-size: 21px;
    }
}

/* =====================================================
   CEZA GEÇMİŞİ
===================================================== */

.oc-staff-profile-penalties {
    margin-top: 35px;
}

.oc-staff-profile-penalties > h2 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e30613;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

/* Ceza tablosu kapsayıcı */
.oc-staff-penalties-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

/* Ceza tablosu */
.oc-staff-penalties-table {
    width: 100%;
    min-width: 700px;
    margin: 0;
    border-collapse: collapse;
    font-size: 14px;
    color: #444;
}

/* Başlık hücreleri */
.oc-staff-penalties-table thead th {
    padding: 14px 12px;
    background: #f5f5f5;
    border-bottom: 2px solid #e5e5e5;
    font-weight: 700;
    color: #222;
    text-align: left;
    white-space: nowrap;
}

/* Veri hücreleri */
.oc-staff-penalties-table tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

/* Son satır */
.oc-staff-penalties-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Satır hover */
.oc-staff-penalties-table tbody tr:hover {
    background: #fafafa;
}

/* Ceza kaydı bulunamadı */
.oc-staff-profile-penalties > .oc-staff-empty {
    padding: 18px;
    margin: 0;
    background: #f7f7f7;
    border-radius: 8px;
    color: #666;
}

/* Mobil */
@media (max-width: 767px) {

    .oc-staff-profile-penalties > h2 {
        font-size: 20px;
    }

    .oc-staff-penalties-table {
        font-size: 13px;
    }

    .oc-staff-penalties-table thead th,
    .oc-staff-penalties-table tbody td {
        padding: 11px 10px;
    }
}
/* =====================================================
   PROFİL KARTLARI
===================================================== */

.oc-staff-profile-card {
    margin-top: 30px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.oc-staff-profile-card > h2 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e30613;
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.oc-staff-profile-card .oc-staff-penalties-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.oc-staff-profile-card .oc-staff-penalties-table {
    width: 100%;
    min-width: 700px;
    margin: 0;
    border-collapse: collapse;
}

.oc-staff-profile-card .oc-staff-penalties-table th,
.oc-staff-profile-card .oc-staff-penalties-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    white-space: nowrap;
}

.oc-staff-profile-card .oc-staff-penalties-table th {
    background: #f5f5f5;
    color: #222;
    font-weight: 700;
}

.oc-staff-profile-card .oc-staff-penalties-table tbody tr:hover {
    background: #fafafa;
}

.oc-staff-profile-card .oc-staff-empty {
    padding: 18px;
    margin: 0;
    background: #f7f7f7;
    border-radius: 8px;
    color: #666;
}

@media (max-width: 767px) {
    .oc-staff-profile-card {
        padding: 18px;
    }

    .oc-staff-profile-card > h2 {
        font-size: 20px;
    }
}

/* =====================================================
   GÖREV GEÇMİŞİ - TEK SATIR
===================================================== */

.oc-staff-assignment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oc-staff-assignment {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 25px;
    padding: 16px 20px;
    border-left: 4px solid #e30613;
}

.oc-staff-assignment h3 {
    flex: 0 0 180px;
    margin: 0;
    font-size: 15px;
}

.oc-staff-assignment p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
}

.oc-staff-assignment p strong {
    flex: none;
}

/* Mobil */
@media (max-width: 767px) {
    .oc-staff-assignment {
        gap: 10px 15px;
        padding: 15px;
    }

    .oc-staff-assignment h3 {
        flex: 0 0 100%;
    }
}

/* =========================================
   GÖREV GEÇMİŞİ ANA KART
========================================= */

.oc-staff-profile-assignments {
    background: #fff;
    border: 1px solid #e2eaf3;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 2px 8px rgba(20, 40, 70, 0.04);
}

.oc-staff-profile-assignments h2 {
    position: relative;
    padding-left: 18px;
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
    color: #142b49;
}

.oc-staff-profile-assignments h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 5px;
    height: 30px;
    background: #e30613;
    border-radius: 5px;
}

/* =========================================
   GÖREV LİSTESİ
========================================= */

.oc-staff-assignment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* =========================================
   GÖREV KARTI
========================================= */

.oc-staff-assignment {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #e2eaf3;
    border-radius: 10px;
    padding: 18px 22px;
    box-shadow: 0 2px 6px rgba(20, 40, 70, 0.035);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.oc-staff-assignment:hover {
    border-color: #cbd8e8;
    box-shadow: 0 4px 12px rgba(20, 40, 70, 0.07);
}

/* Görev adı */

.oc-staff-assignment-role {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 25%;
    min-width: 180px;
}

.oc-staff-assignment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    background: #fff0f1;
    border-radius: 10px;
    color: #e30613;
}

.oc-staff-assignment-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.oc-staff-assignment-role h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #142b49;
}

/* Bilgi alanları */

.oc-staff-assignment-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    flex: 1;
    min-width: 0;
}

.oc-staff-assignment-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 18px;
    border-left: 1px solid #e2eaf3;
    min-width: 0;
}

.oc-staff-assignment-item > .dashicons {
    color: #536985;
    font-size: 19px;
    width: 19px;
    height: 19px;
    margin-top: 2px;
}

.oc-staff-assignment-item div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.oc-staff-assignment-item small {
    color: #71839c;
    font-size: 13px;
}

.oc-staff-assignment-item strong {
    color: #142b49;
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* Sağ ok */

.oc-staff-assignment-arrow {
    color: #71839c;
    flex: 0 0 18px;
}

.oc-staff-assignment-arrow .dashicons {
    font-size: 22px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {
    .oc-staff-assignment {
        flex-wrap: wrap;
    }

    .oc-staff-assignment-role {
        flex: 0 0 100%;
    }

    .oc-staff-assignment-info {
        flex: 1 1 100%;
    }

    .oc-staff-assignment-item:first-child {
        border-left: 0;
        padding-left: 0;
    }
}

/* =========================================
   MOBİL
========================================= */

@media (max-width: 767px) {
    .oc-staff-profile-assignments {
        padding: 16px;
    }

    .oc-staff-profile-assignments h2 {
        font-size: 20px;
    }

    .oc-staff-assignment {
        padding: 15px;
        gap: 16px;
    }

    .oc-staff-assignment-role {
        min-width: 0;
        gap: 12px;
    }

    .oc-staff-assignment-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .oc-staff-assignment-role h3 {
        font-size: 15px;
    }

    .oc-staff-assignment-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 18px;
    }

    .oc-staff-assignment-item {
        padding: 0 8px;
    }

    .oc-staff-assignment-item:nth-child(odd) {
        border-left: 0;
        padding-left: 0;
    }

    .oc-staff-assignment-arrow {
        display: none;
    }
}