@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

* {
    direction: rtl;
    outline: none;
}

*,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Tajawal', sans-serif;
}

h4,
h3 {
    font-weight: 600;
}

.supplier_card_documents:hover {
    background-color: #efefef;
}

.card-link:hover .card-body {
    background-color: #000000 !important;
}

.table thead tr th,
.table tfoot tr td {
    text-align: center !important;
}

.text-end {
    text-align: left !important;
}

.w-5 {
    width: 5%;
}

.w-10 {
    width: 10%;
}

.w-15 {
    width: 15%;
}

.w-20 {
    width: 20%;
}


.login-register {
    background-color: #EFF5F9;
    border: 1px solid #c9c9c9;
    box-shadow: 3px 3px 3px 3px #a6a6a6;

    border-radius: 10px;
    margin-top: 20px;
    /*    background-color: #FFF;*/

}

.error-control {
    border-color: #F00;
}

.float-end {
    float: left;
}

.inquiry {
    padding: 10px;
}

.inquiry:hover {
    background-color: #efefef;
}


.topheader {
    background-color: #EFF5F9 !important;
}

.topheader .nav-item a.nav-link {
    color: #27897C;
    border-bottom: 4px solid transparent;

}

.topheader .nav-item a.nav-link:hover {
    /*color: #27897C;*/
    background-color: rgba(255, 255, 255, 0.1);
    /*border-bottom: 4px solid #27897C;*/
}

.text-primary-summit {
    color: #27897C;
}

.bg-primary-summit {
    background-color: #27897C !important;
}

.bg-gold {
    background-color: #27897C !important;
}

.bg-secondary-summit {
    background-color: #27897C !important;
}

.btn-primary-summit {
    background-color: #27897C;
    border: 0;
    color: #FFF;
}

.btn-primary-summit.focus,
.btn-primary-summit:focus,
.btn-primary-summit:hover {
    background-color: rgba(48, 119, 107, 0.8);
    border: 0;
    opacity: 1;
    color: #FFF;
}

.btn-secondary-summit {
    background-color: #27897C;
    border: 0;
    color: #FFF;
}

.btn-secondary-summit.focus,
.btn-secondary-summit:focus,
.btn-secondary-summit:hover {
    background-color: rgba(48, 119, 107, 0.8);
    border: 0;
    opacity: 1;
    color: #FFF;
}

.text-primary-summit {
    color: #27897C !important;
}

.text-secondary-summit {
    color: #27897C !important;
}

.text-white-summit {
    color: #ffffff !important;
}

.footer {
    margin-top: 0;
    padding: 70px 70px 30px 30px;
    background: #EFF5F9 url("./images/page-wrapper-side-bg1.png");
    background-repeat: repeat-x;

}

.footer .sub-footer {
    border: 0;
}

.footer .sub-footer a {
    color: #27897C;
}

.footer .sub-footer a:hover {
    color: #27897C;
}

.page-wrapper {
    background: #EFF5F9;
    /*background: #f1ecf1 url("./images/page-wrapper-side-bg.jpg");*/
    /* background-repeat: repeat-y; */
    background-position: center;
    /*padding-right: 80px;*/
    padding-bottom: 80px;
    margin-bottom: 0;
}

.btn {
    border-radius: 50px;
}

.mw150 {
    min-width: 150px;
}

.bg-light-primary {
    background-color: rgba(53, 123, 123, 0.2) !important;
}

.bg-light-primary a {
    color: #27897C
}

.bg-light-primary a:hover,
.bg-light-primary a.active {
    color: #357b7b;
    font-weight: bold;
}

.mt-m-30 {
    margin-top: -30px;
}

.card {
    border-color: #a6a6a6;
    border-radius: 5px;
}

.card .card-header {
    border-radius: 4px 4px 0px 0px;
}

.mb-70 {
    margin-bottom: 70px;
}

.disabled {
    cursor: not-allowed !important;
}

.float-start {
    float: right;
}

.float-end {
    float: left;
}

.notification {
    background-color: #357b7b;
    color: white;
    text-decoration: none;
    padding: 15px 18px;
    position: relative;
    display: inline-block;
    border-radius: 50%;
    height: 50px;
    width: 50px;
}

.notification:hover {
    background: #1c4646;
}

.notification .badge {
    position: absolute;
    top: -10px;
    right: -10px;
    padding: 5px 10px;
    border-radius: 50%;
    background-color: red;
    color: white;
}


:root {
    --main-green: #27897C;
    --light-gray: #f1f5f9;
    --border-radius: 12px;
    --white: #f1f5f9;
}

* {
    box-sizing: border-box;
}



.tabs {
    text-align: center;
    margin: 2rem auto 1rem;
}

.tabs button {
    padding: 10px 20px;
    border: 1px solid var(--main-green);
    border-radius: var(--border-radius);
    margin: 0 5px;
    width: 47%;
    cursor: pointer;
    font-weight: bold;
    background-color: var(--white);
    color: var(--main-green);
    outline: none;

}

.tabs .active {
    background-color: var(--main-green);
    color: white;
}

.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.filters input,
.filters button {
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
}


.filters label {
    color: var(--main-green);
}

.filters button {
    background-color: var(--main-green);
    color: white;
    border: none;
    cursor: pointer;
}

.main-content {
    display: flex;
    flex-direction: row-reverse;
    padding: 0 2rem 3rem;
    align-items: flex-start;

}

.job-list {
    width: 30%;
    background-color: var(--main-green);
    color: white;
    padding: 1rem;
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    max-height: 600px;
    overflow-y: auto;
    direction: ltr;
    text-align: right;
}

.job-list,
.job-details,
.job-list1,
.job-details1 {
    align-self: stretch;
}



.job-list h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.job-card {
    background-color: white;
    color: var(--main-green);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.job-card:hover {
    background-color: #e0f2f1;
}

.job-card.active {
    background-color: var(--main-green);
    color: white;
    border-right: 6px solid white;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-right: -6px;
}

.job-details {
    flex: 1;
    background-color: var(--main-green);
    color: white;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    padding: 2rem;
    line-height: 1.6;
    width: 90%;
    max-height: 600px;
    overflow-y: auto;

    /* ✅ الحلول المضافة */
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
}

.job-details h2 {
    margin-top: 0;
}

.job-details p {
    margin-bottom: 1rem;
}





.job-list1 {
    width: 30%;
    background-color: var(--main-green);
    color: white;
    padding: 1rem;
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    max-height: 600px;
    overflow-y: auto;
    direction: ltr;
    text-align: right;
}

.job-list1 h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.job-card1 {
    background-color: white;
    color: var(--main-green);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.job-card1:hover {
    background-color: #e0f2f1;
}

.job-card1.active {
    background-color: var(--main-green);
    color: white;
    border-right: 6px solid white;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-right: -6px;
}

.job-details1 {
    flex: 1;
    background-color: var(--main-green);
    color: white;
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    padding: 2rem;
    line-height: 1.6;
    max-height: 600px;
    overflow-y: auto;


    /* ✅ الحلول المضافة */
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
}

.job-details1 h2 {
    margin-top: 0;
}

.job-details1 p {
    margin-bottom: 1rem;
}

/* ✅ Responsive styles */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 1rem;
    }

    .job-list {
        width: 100%;
        max-height: none;
    }

    .job-details {
        width: 100%;
        padding: 1.5rem;
    }

    .job-list1 {
        width: 100%;
        max-height: none;
    }

    .job-details1 {
        width: 100%;
        padding: 1.5rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }



    .tabs {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .tabs button {
        width: 100%;
    }
}


.filters1 {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.filters1 select {
    padding: 8px 12px;
    width: 100%;
    margin: 8px 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 14px;
}

.filters1 input {
    padding: 8px 12px;
    width: 100%;
    margin: 8px 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 14px;
}



.details-panel1 {
    flex: 1;
    background-color: #27897C;
    color: white;
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
    min-width: 300px;
}

.details-panel1 div {
    margin-bottom: 10px;
}

.jobs-panel1 {
    flex: 1.5;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
    height: 100%;
    box-shadow: 0 2px 6px rgba(13, 107, 57, 0.1);
}

.job-card1 {
    border: 1px solid #27897C;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.job-line {
    display: flex;
    justify-content: space-between;
    /* border-bottom: 1px solid #eee; */
    padding-bottom: 6px;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    /* border-bottom: 1px solid #eee; */
    padding-bottom: 6px;
    font-size: 15px;
    color: #777777;
}

.job-type {
    display: flex;
    justify-content: start;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
    color: #27897C;
    font-weight: bold;
}

.job-text {
    display: flex;
    justify-content: start;
    /* border-bottom: 1px solid #eee; */
    padding-bottom: 6px;
    color: black;
    font-weight: bold;
    font-size: 20px;
}

.job-line:last-child {
    border: none;
}

.job-line span:first-child {
    font-weight: bold;
}

hr {
    background-color: #fff;
}

.details-btn {
    align-self: flex-start;
    background-color: #ffffff;
    color: #27897C;
    border: 1px solid #27897C;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.details-text {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.details-btn:hover {
    background-color: #155951;
    color: #ffffff;
}