.nw_projects_panel_links {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.nw_projects_panel_links a {
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    border-radius: 6px;
    border: solid 1px var(--nw-panel-pri-5);
    font-size: 14px;

}

.nw_form_search_project {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 45px;
    align-items: end;
}

.nw_form_search_project > div {
    width: 100%;
    max-width: 250px;
}

.nw_form_search_project label {
    color: var(--nw-panel-neu-8);
    font-size: 15px;
    margin-bottom: 10px;
    display: block;
}

.nw_form_search_project input, .nw_form_search_project select {
    width: 100%;
    height: 42px;
    padding: 5px 8px;
    border-radius: 8px;
    border: solid 1px var(--nw-panel-neu-3);
    color: var(--nw-panel-neu-8);
    font-size: 15px;
    background: var(--nw-panel-neu-1);
}

.nw_form_search_project button {
    color: #ffffff;
    background-color: var(--nw-panel-pri-5);
    padding: 9px 20px;
    border: none;
    border-radius: 8px;
    display: block;
    width: max-content;
    cursor: pointer;
    font-size: 15px;
}

.nw_remove_search {
    border: solid 1px var(--nw-panel-pri-6);
    color: var(--nw-panel-pri-6);
    background: var(--nw-panel-pri-1);
    padding: 8px 18px;
    border-radius: 8px;
    display: block;
    width: max-content;
    cursor: pointer;
    font-size: 15px;
}

.nw_project_card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
}

.nw_project_card h4 {
    margin: 15px 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--nw-panel-neu-8);
}

.nw_project_card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nw_project_card ul li {
    font-size: 15px;
    color: var(--nw-panel-neu-8);
}

.nw_project_card ul strong {
    font-size: 14px;
    color: var(--nw-panel-neu-7);
    font-weight: 500;
}

.nw_project_card .project_image {
    aspect-ratio: 4 / 3;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    border-radius: 12px;
}

.nw_project_card .project_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.nw_project_list_card {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 14px;
}

.project_card_list_icons {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;

}

.project_card_list_icons button {
    background: none;
    border: none;
    display: block;
    width: max-content;
    cursor: pointer;

}

/**** end list *****/
/**** single *****/
ul.nw_builder {
    list-style: none;
    font-size: 15px;
    display: flex;
    flex-direction: column;
}
ul.nw_builder li {
    display: flex;
    gap: 5px;
    padding: 10px 5px;
    border-bottom: solid 1px #EEEEEE;
    width: max-content;
}
ul.nw_builder li:last-child{
    border-bottom: none;
}

.nw_project_single h2 {
    margin-bottom: 10px;
    font-size: 21px;
    color: var(--nw-panel-neu-8);
    font-weight: 500;
}

.nw_project_single .project_address {
    margin-bottom: 30px;
    font-size: 15px;
    color: var(--nw-panel-neu-6);
}

.nw_project_single_back {
    color: #ffffff;
    background: #941e1e;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    margin-bottom: 25px;
    border-radius: 6px;
    font-size: 15px;
}

.nw_project_single_content {
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.nw_project_single_image {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.nw_project_single_desc{
    flex: 1;
}


.project_single_box_properties {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    row-gap: 20px;
    background: var(--nw-panel-pri-1);
    border: solid 1px var(--nw-panel-pri-3);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
}


.project_single_box_builder {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    row-gap: 20px;
    background: #2c4772aa;
    border: solid 1px #2c4772;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    color: #ffffff;
}

.project_single_box_properties div,.project_single_box_builder div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project_single_box_properties .svg_box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nw-panel-pri-2);
    padding: 7px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.project_single_box_builder .svg_box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c4772;
    padding: 7px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.project_single_box_properties strong {
    font-size: 14px;
    color: #2b2b2b;
}

.project_single_box_builder strong {
    font-size: 14px;
    color: #ffffff;
}

.project_single_box_properties span {
    font-size: 15px;
    color: #5b5b5b;
}

.project_single_box_builder span {
    font-size: 15px;
    color: #EEEEEE;
}

.project_notice {
    margin-bottom: 30px;
}
.project_notice strong {
    font-size: 15px;
    margin-bottom: 5px;
    display: block;
}

.project_notice p {
    font-size: 13px;
    margin-bottom: 10px;
    display: block;
    color: #666666;
    font-weight: 300;
}

.project_notice button {
    background: var(--nw-panel-pri-6);
    padding: 8px 15px;
    border: solid 1px var(--nw-panel-pri-7);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
}

.project_notice textarea {
    min-height: 120px;
    padding: 12px;
    border-radius: 6px;
    border: solid 1px var(--nw-panel-neu-3);
    background: var(--nw-panel-neu-1);
    width: 100%;
    max-width: 100%;
    font-family: inherit;
}

.tab-container {
    direction: rtl;
    max-width: 100%;
    margin: 30px auto;
    font-family: sans-serif;
    overflow: hidden;
}

.tab-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.tab-menu li {
    text-align: center;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.3s;
    width: 120px;
    border: solid 1px var(--nw-panel-neu-3);
    font-size: 14px;
    border-radius: 5px 5px 0 0;
    border-bottom: none;

}

.tab-menu li:hover {
    background: #eee;
}

.tab-menu li.active {
    background: var(--nw-panel-pri-6);
    color: #fff;
    font-weight: bold;
}

.tab-content {
    padding: 20px;
    border: solid 1px var(--nw-panel-neu-3);
}

.tab {
    display: none;
}

.tab.active {
    display: block;
}
.nw_empty_note{
    font-size: 14px;
    color: #777777;
}
.nw_box_note {
    margin-bottom: 15px;
}
.nw_list_project_note h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
}
.nw_box_note p{
    padding: 15px;
    border-radius: 6px;
    font-weight: 300;
    background: #2C4872;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.8em;
}
.nw_box_note_head{
    width: 100%;
    display: flex;
    justify-content: start;
    color: #666666;
    font-size: 12px;
    margin-top: 5px;
}
/**/

.nw_project_single_image .swiper {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.nw_project_single_image .swiper-slide {
    display: block;
    width: 100%;
    height: auto;
}

.nw_project_single_image .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.nw_project_single_image .project_gallery_thumbs .swiper-slide {
    width: 100px;
    height: 100px;
    opacity: 0.4;
}

.nw_project_single_image .project_gallery_thumbs .swiper-slide-thumb-active {
    opacity: 1;
}
.nw_project_single_image .swiper-button-next:after,.nw_project_single_image .swiper-button-prev:after {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: var(--nw-panel-pri-5);
}

/************ single end *************/
/************ sms panel *************/
.nws_sms_card {
    background: #f6f6f6;
    border-radius: 12px;
    padding: 20px;
}

.nws_sms_card h4 {
    font-size: 18px;
    margin-bottom: 25px;
}

.nws_sms_card form {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.form_send_sms {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.form_send_sms div {
    flex: 1;
    padding: 15px;
}
.usp-group-buttons{
    padding: 0 !important;
}
.usp-group-bar{
    padding: 20px 0 !important;
}

.balance_card label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    width: 100%;
    max-width: 250px;
}

.form_send_sms label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    width: 100%;

}

.nws_sms_card input, .nws_sms_card select, .nws_sms_card textarea {
    font-family: inherit;
}

.sms_panel_page h2 {
    font-size: 21px;
    margin-bottom: 25px;
    font-weight: 600;
}

.usp-steps {
    display: flex;
    gap: 8px;
    margin: 8px 0
}

.usp-steps a {
    padding: 8px 20px;
    border-radius: 6px;
    background: #f3f4f6;
    text-decoration: none;
    font-size: 15px;
}

.usp-steps .active {
    background: var(--nw-panel-pri-6);
    color: #fff
}

.usp-btn {
    background: var(--nw-panel-pri-6);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer
}

.usp-input, .usp-select, .usp-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px
}


.usp-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 15px;
}

.usp-table th, .usp-table td {
    border: 1px solid #e5e7eb;
    padding: 8px;
    text-align: right
}

/**/
.usp-project-picker {
    position: relative;
}

/* Dropdown */
.usp-dropdown {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-top: 8px;
    height: 142px;
    overflow: auto;
    background: #ffffff;
}

.usp-dd-item {
    width: 100%;
    text-align: right;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-bottom: solid 1px #eee;
}

.usp-dd-item:last-child {
    border-bottom: none;
}

.usp-dd-item:hover {
    background: #f3f4f6;
}

.usp-dd-empty {
    padding: 12px;
    color: #6b7280;
}

/* Selected chips */
.usp-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    margin-top: 10px;
    min-height: 48px;
}

.usp-selected.is-empty {
    color: #9ca3af;
}

/* Chip */
.usp-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px !important;
    border-radius: 8px;
    background: var(--nw-panel-pri-2);
    border: 1px solid var(--nw-panel-pri-3);
    width: max-content;
    flex-direction: row-reverse;
    flex: 0 !important;
}

.usp-chip-title {
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2b2b2b;
}

.usp-chip-x {
    border: 0;
    background: var(--nw-panel-pri-7);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    cursor: pointer;
}

.usp-chip-x:hover {
    opacity: 0.85;
}

/************ sms panel end *************/
/************ dashboard *************/
.boxPanelLight {
    width: 100%;
}

.nws_dashboard_boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: start;
    justify-content: center;
    width: 100%;
}


.nws_dashboard_box {
    /* flex: 1; */
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 190px;
    /*border: solid 2px var(--nw-panel-pri-5);*/
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--nw-panel-neu-8);
    text-align: center;
    background: #f0f0f0;
    font-weight: 500;
}

.nws_dashboard_box:hover {
    background: var(--nw-panel-pri-6);
    color: #ffffff;
    cursor: pointer;
}

.nws_dashboard_box .icon_box {
    width: 60%;
    aspect-ratio: 1;
    background: #2c4772;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.nws_dashboard_current_product {
    width: 80%;
    margin: auto;
}
.nws_dashboard_current_product h3{
    margin-top: 25px;
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 15px;
}
.nws_dashboard_current_product_box{
    padding: 15px;
    border:solid 2px var(--nw-panel-pri-6);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nws_dashboard_current_product_box .title_icon{
    background: #2c4772;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nws_dashboard_current_product_box h4{
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
}
.nws_dashboard_current_product_box p{
    font-size: 15px;
    font-weight: 400;
}
p.main_title {
    font-size: 18px;
    font-weight: 700;
}
p.sub_title {
    font-size: 15px;
    color: #777;
    margin-bottom: 15px;
}
.box_subscription {
    background: #2c4772;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.box_subscription p {
    font-size: 15px;
    padding-right: 8px;
}
.box_subscription strong {
    width: 100%;
    display: block;
    font-size: 14px;
    margin-right: -8px;
}
/************ dashboard end *************/
/************ Reminder *************/
.nw_wrap {
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

.nw_page_title {
    font-size: 21px;
    margin-bottom: 25px;
    font-weight: 600;
}

.nw_top_bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.nw_add_reminder_btn,
.nw_submit_btn {
    background-color:  var(--nw-panel-pri-6);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.nw_add_reminder_btn:hover,
.nw_submit_btn:hover {
    background-color: var(--nw-panel-pri-6);
}

.nw_table_wrapper {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.nw_reminders_table {
    width: 100%;
    border-collapse: collapse;
}

.nw_reminders_table th,
.nw_reminders_table td {
    text-align: right;
    padding: 8px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
    font-size: 15px;
}

.nw_reminders_table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.nw_empty_row td {
    text-align: center;
    color: #777;
}

/* مودال */

.nw_modal {
    display: none; /* با JS باز و بسته می‌شود */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(178, 178, 178, 0.4);
    backdrop-filter: blur(5px);
}

.nw_modal_content {
    background-color: #fefefe;
    margin: 60px auto;
    padding: 20px 20px 25px;
    width: 500px;
    max-width: 95%;
    border-radius: 12px;
    position: relative;
}

.nw_modal_close {
    position: absolute;
    left: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.nw_modal_title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 17px;
}

/* فرم */

.nw_reminder_form {
    margin-top: 10px;
}

.nw_form_group {
    margin-bottom: 15px;
}

.nw_form_group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 15px;
}

.nw_select,
.nw_textarea,
.nw_date_input,
.nw_hour_select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 13px;
    font-family: inherit;
}

.nw_textarea {
    resize: vertical;
    min-height: 80px;
}

.nw_radio_group {
    display: flex;
    gap: 15px;
}

.nw_radio_label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
}

.nw_datetime_group {
    display: flex;
    gap: 10px;
}

.nw_hint {
    margin-top: 5px;
    font-size: 12px;
    color: #777;
}

.nw_form_actions {
    margin-top: 10px;
}

.nw_form_message {
    margin-top: 10px;
    font-size: 13px;
}

.nw_form_message.nw_success {
    color: #0a8a0a;
}

.nw_form_message.nw_error {
    color: #c00;
}

/************ Reminder end *************/

@media (max-width: 768px) {
    .nw_project_list_card {
        grid-template-columns: repeat(1, 1fr);
    }
    .nw_project_single_content,.form_send_sms {
        flex-wrap: wrap;
    }
    .nw_project_single_desc {
        flex: auto;
        width: 100%;
    }
    .project_single_box_properties ,.project_single_box_builder{
         grid-template-columns: repeat(1, 1fr);
    }
    .form_send_sms{
        flex-direction: column;
    }
    .form_send_sms  div{
        width: 100%;
    }
    .nw_reminders_table th, .nw_reminders_table td{
        min-width: 150px;
    }
}