/*
Theme Name: Staff Theme
Theme URI: http://www.negahenoco.com
Author: Negaheno
Author URI: http://www.negahenoco.com
Description: Staff Theme Programming By Negaheno Digital Marketing Agacy
Version: 1.0
*/

* {
    outline: none !important;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

main {
    min-height: 100vh;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inherit !important;
    border-radius: 100px !important;
    width: 5px;
    background-color: #FFF;
}

::-webkit-scrollbar {
    width: 4px;
    height: 5px;
    background-color: #FFF;
}

::-webkit-scrollbar-thumb {
    border-radius: 100px !important;
    -webkit-box-shadow: inherit !important;
    background-color: var(--secondary) !important;
}

.nav-container .nav-content::-webkit-scrollbar-track {
    display: block;
    -webkit-box-shadow: inherit !important;
    border-radius: var(--border-radius-md) !important;
    background-color: #FFF;
}

.nav-container .nav-content::-webkit-scrollbar {
    display: block;
    width: 4px;
    background-color: #FFF;
}

.nav-container .nav-content::-webkit-scrollbar-thumb {
    display: block;
    border-radius: var(--border-radius-md) !important;
    -webkit-box-shadow: inherit !important;
    background-color: var(--background-theme) !important;
}

.h-100 {
    height: 100vh !important;
}

.login-form,
.reset-form,
.register-form {
    max-width: 360px;
    margin: auto;
}

.login-box-wrapper,
.reset-box-wrapper,
.register-box-wrapper {
    padding: 5% 0 0 !important;
    margin: auto !important;
}

.login-btn.disabled,
.reset.disabled,
.register-btn.disabled,
.reset-btn.disabled {
    cursor: not-allowed;
}

.login-password,
.login-username,
.reset-login-password,
.reset-username,
.register-field,
.login-field,
.reset-field {
    position: relative;
}

.login-password svg,
.login-username svg,
.reset-login-password svg,
.reset-username svg,
.register-field svg,
.login-field svg {
    position: absolute;
    top: 42px;
    right: 12px;
}

.login-password .show-password,
.login-password .hide-password,
.reset-login-password .show-password,
.reset-login-password .hide-password,
.register-field .show-password,
.register-field .hide-password,
.login-field .show-password,
.login-field .hide-password,
.reset-field .show-password,
.reset-field .hide-password {
    left: 10px;
    right: inherit;
    display: none;
}

.login-password .show-password.active,
.login-password .hide-password.active,
.reset-login-password .show-password.active,
.reset-login-password .hide-password.active,
.register-field .show-password.active,
.register-field .hide-password.active,
.login-field .show-password.active,
.login-field .hide-password.active,
.reset-field .show-password.active,
.reset-field .hide-password.active {
    display: block;
    cursor: pointer;
}

.btn-primary.back-reset {
    width: 100% !important;
    display: block;
}

.register-field input[type="email"],
.login-field input[type="email"],
.reset-field input[type="email"] {
    direction: ltr;
    text-align: left;
}

.register-field input[type="email"]::placeholder,
.login-field input[type="email"]::placeholder,
.reset-field input[type="email"]::placeholder {
    direction: rtl;
    text-align: right;
}

.register-field input[type="email"]::-webkit-input-placeholder,
.login-field input[type="email"]::-webkit-input-placeholder,
.reset-field input[type="email"]::-webkit-input-placeholder {
    direction: rtl;
    text-align: right;
}

.register-field input[type="email"]:-ms-input-placeholder,
.login-field input[type="email"]:-ms-input-placeholder,
.reset-field input[type="email"]:-ms-input-placeholder {
    direction: rtl;
    text-align: right;
}

.reset-field svg {
    position: absolute;
    top: 48px;
    right: 12px;
}

#loginform .register-login-link {
    padding-top: 15px;
    margin-bottom: 5px;
    text-align: right !important;
    width: 100%;
}

#user_pass {
    padding-left: 40px;
}

#user_pass:focus+svg {
    background: var(--foreground) !important;
}

.auth-logo {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo img {
    max-width: 270px;
}

.login-message,
.reset-message,
.register-message {
    color: var(--danger);
    line-height: 27px;
    font-size: 13px;
    padding-bottom: 10px;
}

.login-status-message {
    padding-top: 15px;
    margin-bottom: -15px;
}

#loginform label,
#resetform label,
#registerform label,
#resetpassform label {
    display: block;
    padding-bottom: 10px;
}

#rememberme {
    float: right;
    margin-left: 7px;
    position: relative;
    top: 2px;
}

.login-remember,
.reset-remember {
    float: right;
    margin-bottom: 0px;
}

.reset-password,
.register-login-link {
    float: left;
    position: relative;
}

.login-remember,
.reset-password,
.register-login-link {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.login-submit #wp-submit,
.resetsubmit #wp-submit,
.registersubmit #wp-submit,
.login-otp #wp-submit,
.reset-submit #wp-submit {
    min-width: 90px;
    display: block;
    margin-right: auto;
}

.login-submit button,
.reset-submit button,
.register-submit button,
.login-otp button,
.reset-submit button {
    width: 100%;
    margin-top: 15px;
}

.login-submit button[type="button"],
.reset-submit button[type="button"],
.back-reset,
.register-submit button[type="button"],
.login-otp button[type="button"],
.reset-submit button[type="button"] {
    background-color: var(--primary);
    border-radius: 3px !important;
    transition: .4s !important;
    font-size: 14px;
    padding: 10px;
    border: none;
    color: #FFF;
}

.login-submit button[type="button"]:hover,
.reset-submit button[type="button"]:hover,
.back-reset:hover,
.register-submit button[type="button"]:hover,
.login-otp button[type="button"]:hover,
.reset-submit button[type="button"]:hover {
    background: var(--secondary);
}

.login-otp {
    margin-bottom: 0px;
}

#otp-login-btn {
    margin-bottom: 0px !important;
    margin-top: 0px !important;
}

.return-loggin {
    float: left;
}

.nav-container .nav-content .user-container .user .name {
    padding-top: 10px;
}

.glide__arrows {
    display: none;
}

.card .card-body p {
    line-height: 37px;
    font-size: 15px;
    text-align: justify;
}

.comment-box-wrapper .card {
    border: 1px solid #f2f2f2;
}

div#glideBlogDetail * {
    cursor: default;
}

.glide__slides {
    padding-bottom: 0px;
    margin-bottom: 0px;
}

.card-footer .btn-primary svg {
    position: relative;
    top: -4px;
    right: -5px;
}

.card-footer .btn-primary {
    line-height: 20px;
}

.breadcrumbs a,
.breadcrumbs span {
    font-size: 16px;
}

#accordionCards {
    margin-bottom: 25px;
}

#accordionCards .card-body {
    padding: 15px;
}

#accordionCards .list-item-heading {
    font-size: 14px;
}

.profile {
    border-radius: 50% !important;
    background: var(--primary);
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    line-height: 52px;
}

.single-post img {
    display: flex;
    margin: auto;
}

.single-post ol {
    line-height: 40px;
}

.card-body .single-post ul li {
    line-height: 36px;
}

.single-post tr:first-child {
    background-color: var(--primary);
    color: #fff;
    font-weight: 500;
    text-align: center;
}

.single-post table {
    margin: auto !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.single-post tr td {
    text-align: right !important;
}

.single-post tr td:first-child {
    text-align: center !important;
}

.single-post tr:nth-child(even) {
    background-color: #f1f1f1 !important;
}

body.single-post strong {
    font-weight: 600;
}

body.single-post .col-12 .card h1 {
    font-size: 20px;
    line-height: 2.2;
}

body.single-post .col-12 .card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.5rem;
    padding: 15px 0;
    margin-top: 20px;
}

body.single-post .col-12 .card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5rem;
    padding: 10px 0;
    margin-top: 20px;
}

body.single-post .col-12 .card h3 strong {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5rem;
    padding: 10px 0;
    margin-top: 20px;
}

body.single-post .col-12 .card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5rem;
    padding: 5px 0;
    margin-top: 20px;
}

body.single-post .col-12 .card h5 {
    font-size: 16px;
    font-weight: 700;
}

body.single-post .col-12 .card h6 {
    font-size: 14px;
    font-weight: 700;
}

html[data-placement='vertical'][data-behaviour='unpinned']:not([data-menu-animate='show']) .nav-container .nav-content .user .profile {
    width: 30px;
    height: 30px;
    line-height: inherit;
}

footer {
    position: fixed !important;
    bottom: 0px !important;
    background: #FFF;
    box-shadow: 4px 10px 10px #f4f4f4;
    border-top: 1px solid #e3e3e3 !important;
    width: 100%;
    height: 55px;
    display: flex;
    padding-right: calc(var(--nav-size) + var(--main-spacing-horizontal));
    padding-left: var(--main-spacing-horizontal);
    line-height: 55px;
    margin-right: -10px !important;
    z-index: 1;
}

html[data-footer='true'] #root>footer {
    bottom: inherit;
    width: 100%;
    height: 55px;
}

.edit_status {
    padding-bottom: 1px;
    color: var(--primary);
    cursor: pointer;
}

.edit_status.cancel {
    color: var(--danger);
}

.inline_task_status {
    display: none;
}

.inline_task_status.active {
    display: block;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    min-width: 145px;
}

.alert {
    font-size: 13px;
}

.task-btn,
.time-btn,
.delete-time-btn {
    background: none !important;
    padding: 0px !important;
    margin-right: 5px !important;
}

.task-modal-content .modal-body p,
.task-modal-content .modal-body ul li,
.task-modal-content .modal-body ol li {
    font-size: 14px;
    line-height: 31px;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.task-modal-content .modal-title {
    font-size: 15px !important;
    font-weight: 500;
}

.task-modal-content .heading {
    font-size: 16px;
    color: var(--primary);
}

.task-modal-content .task_comment_actions {
    width: 100%;
    display: inline-flex;
    justify-content: end;
    margin-bottom: -30px;
    position: relative;
    z-index: 1;
    position: absolute;
    left: 20px;
}

.task-modal-content .task_comment_actions a {
    margin-right: 10px;
}

.task-modal-content .task_comment_actions .edit-comments {
    background: none;
    padding: 0px;
    margin-right: 10px;
}

.task-modal-content .text-alternate {
    font-size: 14px;
}

.task-modal-content .text-muted {
    font-size: 13px;
    padding-top: 10px;
    color: var(--body) !important;
    line-height: 29px;
    text-align: justify;
}

.task-modal-content .bg-gradient-primary {
    font-size: 15px;
    padding-top: 7px;
}

#ChangeTaskStatusModal label {
    padding-top: 10px;
}

#ChangeTaskStatusModal .form-control[type=file] {
    margin-bottom: 10px;
}

.changelog-modal-content .modal-body p,
.changelog-modal-content .modal-body ul li,
.changelog-modal-content .modal-body ol li,
.edit-modal-content .modal-body p,
.edit-modal-content .modal-body ul li,
.edit-modal-content .modal-body ol li {
    font-size: 14px;
    line-height: 31px;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.changelog-modal-content .modal-title,
.edit-modal-content .modal-title {
    font-size: 15px !important;
    font-weight: 500;
}

.changelog-modal-content .heading,
.edit-modal-content .heading {
    font-size: 16px;
    color: var(--primary);
}

#companyDeleteDepsModal button.close {
    color: #AFAFAF;
    font-size: 13px;
    border: 2px solid #AFAFAF;
    border-radius: 50px !important;
    background: none;
    font-weight: bold;
    padding: 2px;
    margin-left: -10px;
    margin-top: -4px;
    width: 25px !important;
    height: 25px !important;
}

#companyDeleteDepsModal .modal-footer .btn {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    height: 34px !important;
}

.changelog-modal-content-btn {
    text-align: left;
}

.changelog-modal-content-btn a {
    background: var(--primary);
    display: inline;
    line-height: 20px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.changelog-modal-content-btn a:hover {
    background: var(--secondary);
}

.task-modal-change-status .modal-body p,
.task-modal-change-status .modal-body ul li,
.task-modal-change-status .modal-body ol li {
    font-size: 13px;
    line-height: 31px;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.task-modal-change-status .modal-title {
    font-size: 15px !important;
    font-weight: 500;
}

.task-modal-change-status .btn-close:hover::after {
    color: #222f3e !important;
}

.task-modal-change-status .form-label {
    display: inline-block;
    font-size: 14px;
}

.task-modal-change-status textarea {
    padding-right: 13px !important;
    font-size: 13px;
}

.task-modal-change-status input[type="file"] {
    font-size: 13px;
    overflow: hidden;
    min-height: inherit;
    direction: ltr;
    margin-bottom: 10px;
}

.task-modal-change-status select {
    margin-bottom: 10px;
}

.transfer_task_label {
    display: block;
    font-size: 11px;
    padding-top: 10px;
    margin-bottom: 10px;
    color: var(--danger);
}

.task-list-wrapper form {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.task-list-wrapper form>div {
    width: 23% !important;
    max-width: available !important;
    max-width: -webkit-fill-available !important;
    margin: 0 0 24px !important;
}

.task-list-wrapper form>div label,
.task-list-wrapper input[type="checkbox"]+label {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 6px;
    padding-bottom: 4px;
    padding-right: 7px;
    color: Black;
}

html[data-color='dark-blue'] .task-list-wrapper form>div label,
html[data-color='dark-blue'] .task-list-wrapper input[type="checkbox"]+label,
html[data-color='dark-green'] .task-list-wrapper form>div label,
html[data-color='dark-green'] .task-list-wrapper input[type="checkbox"]+label,
html[data-color='dark-red'] .task-list-wrapper form>div label,
html[data-color='dark-red'] .task-list-wrapper input[type="checkbox"]+label,
html[data-color='dark-purple'] .task-list-wrapper form>div label,
html[data-color='dark-purple'] .task-list-wrapper input[type="checkbox"]+label,
html[data-color='dark-pink'] .task-list-wrapper form>div label,
html[data-color='dark-pink'] .task-list-wrapper input[type="checkbox"]+label {
    color: var(--light);
}

body:not(.page-template-companies-list) .task-list-wrapper button,
body:not(.page-template-companies-list) .task-list-wrapper .button,
body:not(.page-template-companies-list) input[type="submit"] {
    background-color: var(--primary);
    transition: .4s !important;
    font-size: 13px;
    padding: 10px;
    border: none;
    color: #FFF;
    border-radius: 5px;
}

.task-list-wrapper .button:hover,
.task-list-wrapper input[type="submit"]:hover {
    background: var(--secondary);
}

.task-list-wrapper input[type="text"],
.task-list-wrapper input[type="search"],
.task-list-wrapper select,
.task-list-wrapper select.input-timesheet {
    outline: none;
    font-size: 14px;
    padding: 5px 5px;
    border-radius: 4px;
    border-color: #dddddd;
    border: 1px solid #dddddd;
    font-family: 'YekanBakhRegular';
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
}

.task-list-wrapper .input-timesheet {
    -webkit-appearance: auto;
}

.task-list-wrapper input[type="text"]:focus,
.task-list-wrapper input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
}

.task-list-wrapper .widget_search .search-field {
    margin: 0;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.task-list-wrapper .search-form .search-submit {
    margin: 0;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding: 12px 35px;
}

.task-list-wrapper .displaying-num {
    font-size: 13px;
    font-weight: bolder;
    color: #2a2a2a;
    margin-bottom: 10px;
    padding: 14px;
}

.task-list-wrapper .pagination-links {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.task-list-wrapper .pagination-links button {
    display: block;
    margin: auto;
    color: #ffffff;
    background-color: var(--primary);
    font-size: 14px;
    padding: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.task-list-wrapper .this-page-num {
    margin: auto;
    position: relative;
    display: block;
    width: max-content;
    font-size: 12px;
    font-weight: 600;
    color: #b1b1b1;
}

.task-list-wrapper select {
    padding: 4px 5px !important;
}

.task-list-wrapper form>div.deadline {
    width: 11% !important;
}

.task-list-wrapper select,
.task-list-wrapper input[type="text"] {
    color: #777777;
    font-size: 13px;
    font-weight: 400;
    padding-right: 8px !important;
    padding-left: 8px !important;
    min-height: 36px !important;
}

.task-list-wrapper .sort_btn {
    position: relative;
    top: 7px;
}

.task-list-wrapper .sub-btn {
    position: relative;
    top: 15px;
}

.sub-btn.active {
    pointer-events: none;
    cursor: default;
}

.task-list-wrapper input[type="checkbox"]+label {
    display: inline;
    font-weight: 400;
    margin-right: 0.5rem;
}

.task-list-wrapper input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    top: 2px;
    display: inline-block;
    margin: 0;
    width: 1.5rem;
    min-width: 1.5rem;
    height: 1.5rem;
    background: #fff;
    border-radius: 0;
    border-style: solid;
    border-width: 0.1rem;
    border-color: #dcd7ca;
    box-shadow: none;
    cursor: pointer;
}

.task-list-wrapper input[type="checkbox"]:checked::before {
    content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23000000%27%2F%3E%3C%2Fsvg%3E");
    position: absolute;
    display: inline-block;
    margin: 0.8125rem -0.25rem 0 0;
    height: 1.3rem;
    width: 1.3rem;
    top: -18px;
}

.task-list-wrapper .input-timesheet:focus {
    border: 1px solid var(--secondary);
}

.task-list-wrapper .input-timesheet {
    border-radius: 5px;
    min-height: 100px;
    border: 1px solid #dddddd;
    padding: 15px;
    outline: none !important;
}

.user-notes-box {
    padding: 0px !important;
}

.user-notes-box .card-body {
    padding: 20px;
}

.user-notes-box .card {
    box-shadow: none !important;
    margin-bottom: 0px !important;
}

.user-notes-box textarea {
    min-height: 200px !important;
}

.note-user-box-bottom {
    text-align: left;
}

.user-notes-message {
    text-align: right;
    padding-top: 10px;
}

.user-today-tasks-widget a {
    padding-right: 5px;
    font-weight: 900;
    line-height: 23px;
}

.user-today-task-wrapper {
    padding-bottom: 15px !important;
}

.task-list-wrapper .select2-hidden-accessible {
    display: none;
}

.select2-container {
    display: block;
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
    z-index: 1050;
}

.modal .select2-container,
.dropdown-menu .select2-container {
    z-index: 1062 !important;
}

input[type="url"],
input[type="file"],
.selected_attachment_file,
#form_at,
#to_at {
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
}

.timesheet-main-wrapper select,
.timesheet-main-wrapper input[type="text"] {
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
}

.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single {
    height: 37px !important;
    border: 1px solid #dddddd !important;
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
}

.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic1-container,
.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic2-container,
.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic3-container,
.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic4-container,
.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic5-container,
.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic6-container,
.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic7-container,
.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic8-container,
.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic9-container,
.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic10-container,
.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic11-container,
.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic12-container,
.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic13-container,
.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic14-container,
.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic15-container {
    font-size: 14px;
    color: #7a7a7a;
    direction: rtl;
    font-family: 'YekanBakhRegular';
    padding: 6px 10px;
}

.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic1-container,
.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic2-container,
.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic3-container,
.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic4-container,
.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic5-container,
.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic6-container,
.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic7-container,
.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic8-container,
.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic9-container,
.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic10-container,
.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic11-container,
.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic12-container,
.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic13-container,
.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic14-container,
.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span#select2-select2Basic15-container {
    font-size: 14px;
    color: var(--body);
    direction: rtl;
    font-family: 'YekanBakhRegular';
}

.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span.select2-selection__arrow {
    right: inherit;
}

.task-list-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span.select2-selection__arrow b {
    left: 15px;
}

.select2-container--bootstrap4 .select2-results>.select2-results__options {
    direction: rtl !important;
    text-align: right !important;
}

.select2-search--dropdown .select2-search__field {
    direction: rtl !important;
    text-align: right !important;
}

.timesheet-main-wrapper .select2-hidden-accessible {
    display: none;
}

.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single {
    height: 37px !important;
    border: 1px solid #dddddd !important;
}

.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span.select2-selection__arrow {
    right: inherit;
}

.timesheet-main-wrapper .select2.select2-container.select2-container--bootstrap4 .select2-selection--single span.select2-selection__arrow b {
    border-top: 1px solid var(--alternate);
    border-left: 1px solid var(--alternate);
    width: 6px;
    height: 6px;
    left: 15px;
}

.delete-company-btn *,
.delete-task-btn *,
.edit-task-btn *,
.delete-time-btn *,
.edit-time-btn *,
.delete-contract-btn * {
    outline: none !important;
}

.delete-company-btn {
    border: none;
    background: none;
    position: relative;
    top: 2px;
    margin-right: 10px;
}

#company_search_btn {
    background-color: var(--primary);
    transition: .4s !important;
    font-size: 14px;
    padding: 10px;
    border: none;
    color: #FFF;
    padding-right: 20px;
    padding-left: 20px;
    border-radius: 5px !important;
    margin-left: 10px;
}

.edit-modal-content button,
.view-modal-content button {
    font-size: 14px;
}

.add_task_btn,
.add_company_btn,
.add_time_btn,
.add_contract_btn,
.add_post_btn {
    background-color: var(--primary);
    transition: .4s !important;
    font-size: 14px;
    padding: 10px;
    border: none;
    color: #FFF;
    padding-right: 20px;
    padding-left: 20px;
    border-radius: 5px !important;
    margin-left: 10px;
}

.add_task_btn:hover,
.add_company_btn:hover,
.add_time_btn:hover,
.add_contract_btn:hover,
.add_post_btn:hover {
    background: var(--secondary);
    color: #FFF;
}

.add_task_btn {
    padding-right: 20px !important;
    padding-left: 20px !important;
}

.page-item {
    box-shadow: 0 2px 12px rgb(165 165 165 / 27%);
}

.page-content-wrapper form>div label,
.page-content-wrapper input[type="checkbox"]+label {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 6px;
    padding-bottom: 4px;
    padding-right: 7px;
    color: Black;
}

.page-content-wrapper .select2-hidden-accessible {
    display: none;
}

html[data-color='dark-blue'] .page-content-wrapper form>div label,
html[data-color='dark-blue'] .page-content-wrapper input[type="checkbox"]+label,
html[data-color='dark-green'] .page-content-wrapper form>div label,
html[data-color='dark-green'] .page-content-wrapper input[type="checkbox"]+label,
html[data-color='dark-red'] .page-content-wrapper form>div label,
html[data-color='dark-red'] .page-content-wrapper input[type="checkbox"]+label,
html[data-color='dark-purple'] .page-content-wrapper form>div label,
html[data-color='dark-purple'] .page-content-wrapper input[type="checkbox"]+label,
html[data-color='dark-pink'] .page-content-wrapper form>div label,
html[data-color='dark-pink'] .page-content-wrapper input[type="checkbox"]+label {
    color: var(--light);
}

.page-content-wrapper button,
.page-content-wrapper .button,
input[type="submit"] {
    background-color: var(--primary);
    border-radius: 3px !important;
    transition: .4s !important;
    font-size: 13px;
    padding: 10px;
    border: none;
    color: #FFF;
}

.page-content-wrapper .button:hover,
.page-content-wrapper input[type="submit"]:hover {
    background: var(--secondary);
}

.page-content-wrapper input[type="text"],
.page-content-wrapper input[type="search"],
.page-content-wrapper select,
.page-content-wrapper select.input-timesheet {
    outline: none;
    font-size: 14px;
    padding: 7px 10px;
    border-radius: 4px;
    border-color: #dddddd;
    border: 1px solid #dddddd;
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
}

.page-content-wrapper .select2-container--bootstrap4 .select2-selection__arrow {
    left: 5px;
    right: inherit;
}

.page-content-wrapper input[type="text"]:focus,
.page-content-wrapper input[type="search"]:focus {
    outline: none;
    border-color: var(--primary);
}

.page-content-wrapper select {
    padding: 4px 5px !important;
}

.page-content-wrapper input[type="checkbox"]+label {
    display: inline;
    font-weight: 400;
    margin-right: 0.5rem;
}

.page-content-wrapper input[type="checkbox"] {
    /*-webkit-appearance: none;*/
    /*-moz-appearance: none;*/
    /*position: relative;*/
    /*top: 2px;*/
    /*display: inline-block;*/
    /*margin: 0;*/
    /*width: 1.5rem;*/
    /*min-width: 1.5rem;*/
    /*height: 1.5rem;*/
    /*background: #fff;*/
    /*border-radius: 0;*/
    /*border-style: solid;*/
    /*border-width: 0.1rem;*/
    /*border-color: #dcd7ca;*/
    /*box-shadow: none;*/
    /*cursor: pointer;*/
}

.page-content-wrapper input[type="checkbox"]:checked::before {
    /*content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23000000%27%2F%3E%3C%2Fsvg%3E");*/
    /*position: absolute;*/
    /*display: inline-block;*/
    /*margin: 0.8125rem -0.25rem 0 0;*/
    /*height: 1.3rem;*/
    /*width: 1.3rem;*/
    /*top: -18px;*/
}

.page-content-wrapper .input-timesheet {
    -webkit-appearance: auto;
}

.page-content-wrapper .input-timesheet:focus {
    border: 1px solid var(--secondary);
}

.page-content-wrapper .input-timesheet {
    border-radius: 5px;
    min-height: 100px;
    border: 1px solid #dddddd;
    padding: 15px;
    outline: none !important;
}

.pagination-links {
    margin-top: 30px;
    margin-bottom: 30px !important;
}

.page-dots {
    margin: 7px !important;
    outline: initial !important;
    border: initial;
    padding: 8px 9px !important;
    line-height: 1.5;
    font-size: 1em !important;
    min-width: var(--input-height);
    height: var(--input-height);
    border-radius: var(--border-radius-md) !important;
    background: var(--foreground);
    margin-right: -1px !important;
    color: var(--primary-darker) !important;
    box-shadow: inset 0 0 0 1px var(--primary-darker) !important;
    background-color: transparent !important;
    text-align: center;
}

.page-dots.pag {
    box-shadow: initial !important;
    background: var(--primary) !important;
    color: var(--light-text) !important;
}

.timesheet-main-wrapper .pagination-links button {
    margin: 7px !important;
    outline: initial !important;
    border: initial;
    padding: 8px 9px !important;
    line-height: 1.5;
    font-size: 1em !important;
    min-width: var(--input-height);
    height: var(--input-height);
    border-radius: var(--border-radius-md) !important;
    background: var(--foreground);
    margin-right: -1px !important;
    color: var(--primary) !important;
    box-shadow: inset 0 0 0 1px var(--primary) !important;
    background-color: transparent !important;
}

.timesheet-main-wrapper .pagination-links button.pag,
.timesheet-main-wrapper .pagination-links button:hover {
    box-shadow: initial !important;
    background: var(--primary) !important;
    color: var(--light-text) !important;
}

.timesheet-main-wrapper .pagination-links {
    justify-content: center !important;
}

.timesheet-main-wrapper .pagination-links button svg {
    width: 16px !important;
}

.os-viewport .text-alternate {
    line-height: 52px;
}

.os-viewport {
    overflow: initial;
}

.os-viewport .card {
    min-height: 74px;
    padding-top: 15px;
}

.main-home-section {
    overflow: hidden;
}

.main-home-section img {
    background: #fef7ff;
    filter: inherit !important;
    height: 100%;
}

.task-modal-content .bg-gradient-primary.bg-gradient-primary.rounded-md {
    position: relative;
    margin-right: -50px;
    margin-top: 70px;
}

.comment_bold_lable {
    font-weight: 700;
    font-size: 14px;
    padding-right: 5px;
    padding-left: 5px;
    border-bottom: 1px dashed;
}

.task-modal-content .heading .comment_bold_lable {
    border: none !important;
    font-size: 14px !important;
}

.task_comment_user_avatar,
.task-modal-content .avatar {
    border-radius: 100px;
    top: 15px;
    width: 56px;
    height: 56px;
    border: 1px solid #d0d0d0;
    margin-right: 3px;
}

.task-modal-content .bg-gradient-primary.rounded-xl {
    margin-top: -60px;
    right: 10px;
}

.task_comment_text {
    position: relative;
    top: 10px;
    background: var(--secondary);
    padding: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
    color: #FFF;
    border-radius: 5px;
    font-size: 12px;
    min-height: 80px;
    margin-bottom: 20px;
}

.task_comment_text p {
    line-height: 35px !important;
}

.item-align-center {
    min-height: 150px;
}

html[data-placement=horizontal] .nav-container .user-container .user .profile {
    display: none;
}

.tox-tinymce {
    border: 1px solid #f0f0f0 !important;
    border-radius: 5px !important;
}

.tox-statusbar__branding {
    display: none;
}

.tox .tox-statusbar {
    display: none;
}

.send_whatsapp_row {
    text-align: right;
}

.send_whatsapp_row label {
    padding-right: 5px;
    position: relative;
    top: 3px;
}

.add_upload_file svg {
    height: 15px;
    position: relative;
    top: -2px;
    right: -2px;
}

.add_upload_file {
    display: inline-flex;
    float: left;
    font-size: 13px;
    margin-top: 10px;
}

html[data-placement='vertical'] .nav-container .nav-content,
html[data-placement='horizontal'] .nav-container.mobile-side-ready .nav-content,
html[data-placement='vertical'] .nav-container.mobile-side-ready .nav-content {
    overflow-y: scroll;
    overflow-x: hidden !important;
}

.selected_attachment_file {
    border: 1px solid var(--separator);
    padding: 7px;
    border-radius: var(--border-radius-md);
}

.selected_attachment_file,
.selected_attachment_file * {
    outline: none !important;
}

.attchment_file_remove {
    float: left;
    cursor: pointer;
}

.task_files.hidden-field,
.selected_attachment_file.hidden-field,
.contract_files.hidden-field {
    display: none;
}

.required {
    position: relative;
    top: 3px;
    padding-right: 3px;
    color: red;
}

.tg-dialog .tg-dialog-header .tg-dialog-title {
    margin-right: 0px;
    margin-left: auto;
}

.tg-dialog .tg-dialog-footer {
    direction: ltr;
}

.tg-dialog .tg-dialog-body {
    text-align: justify;
    line-height: 28px;
    white-space: break-spaces;
}

.tg-dialog .tg-dialog-header .tg-dialog-close-btn {
    margin-left: 0px;
    margin-top: -10px;
}

.tg-backdrop,
.tg-dialog {
    z-index: 1001 !important;
}

.tour-col {
    text-align: left;
    position: relative;
    top: -15px;
}

.tour-col button {
    color: var(--body) !important;
    border: 1px solid var(--body);
}

.tour-col button:hover {
    color: var(--primary) !important;
    border: 1px solid var(--primary);
}

.tour-col button:hover svg {
    color: var(--primary) !important;
}

.tour-col button svg {
    position: relative;
    right: -7px;
    margin-bottom: 0 !important;
}

.tour-col button span {
    position: relative;
    top: -6px;
}

/* ============================================
   Hide scrollbar but keep scroll functional
============================================ */

/* برای div#append_ajax */
div#append_ajax {
    overflow-x: auto;
    -ms-overflow-style: none;
    /* IE و Edge */
    scrollbar-width: none;
    /* Firefox */
}

div#append_ajax::-webkit-scrollbar {
    display: none;
}

.post-list-wrapper::-webkit-scrollbar,
.task-list-wrapper::-webkit-scrollbar {
    display: none;
}

#append_here_box {
    padding-top: 20px;
}

.modal-dialog-scrollable.full .modal-body {
    overflow: scroll;
}

#menu .current-menu-item a {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: var(--border-radius-lg);
}

html[data-placement='vertical'][data-behaviour='unpinned']:not([data-menu-animate='show']) .nav-container .nav-content .menu-container .menu ul {
    padding-right: 0px !important;
}

.Tour_Started {
    pointer-events: none;
}

.Tour_Started .tg-dialog {
    pointer-events: auto !important;
}

html[data-placement='vertical'] .nav-container .nav-content .menu-container .menu>li a {
    padding-top: 14px;
    padding-bottom: 11px;
}

html[data-placement='vertical'] .nav-container .nav-content .menu-container .menu>li a svg {
    margin-bottom: 3px;
}

.user-today-tasks-widget .text-muted {
    direction: ltr;
}

.user-today-tasks-widget .task_date {
    padding-left: 5px;
}

html[data-placement='vertical'][data-behaviour='unpinned']:not([data-menu-animate='show']) .nav-container li {
    margin-right: 1px !important;
}

html[data-placement='vertical'][data-behaviour='unpinned']:not([data-menu-animate='show']) .nav-container a svg {
    margin-left: 35px !important;
}

html[data-placement='vertical'][data-behaviour='unpinned']:not([data-menu-animate='show']) .nav-container {
    overflow: hidden;
}

html[data-placement='vertical'][data-behaviour='unpinned']:not([data-menu-animate='show']) .dropdown-menu.dropdown-menu-end.user-menu.wide.show {
    box-shadow: none !important;
    top: -65px !important;
    margin-right: -2px !important;
    right: 0px !important;
    margin-top: 140px !important;
    transform: inherit !important;
}

html[data-placement='vertical'][data-behaviour='unpinned']:not([data-menu-animate='show']) .nav-container .nav-content .menu-icons,
html[data-placement='vertical'][data-behaviour='unpinned']:not([data-menu-animate='show']) .nav-container .nav-content .language-switch-container {
    visibility: visible;
    opacity: 1;
    margin-right: 33px;
    margin-top: 5px;
    margin-bottom: -15px;
}

html[data-placement='vertical'] .nav-container .nav-content .user-container .dropdown-menu,
html[data-placement='horizontal'] .nav-container.mobile-side-ready .nav-content .user-container .dropdown-menu,
html[data-placement='vertical'] .nav-container.mobile-side-ready .nav-content .user-container .dropdown-menu {
    margin-top: 70px !important;
    right: 15px;
}

html[data-placement='vertical'] .nav-container .nav-content .user-container .user-menu.wide.show {
    margin-top: 0px !important;
}

body.spinner:before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #898989;
    opacity: 0.7 !important;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1062;
}

body.spinner:after {
    z-index: 1003;
}

.deadline_time_expired {
    color: var(--danger);
}

.modal-backdrop {
    background: #898989;
    opacity: 0.7 !important;
    z-index: 1060;
}

.modal {
    z-index: 1062;
}

.modal-header {
    background: #F9F9F9;
    border-color: #AFAFAF;
    padding: 10px;
    padding-right: 24px;
    padding-left: 24px;
    padding-top: 15px;
}

.modal-header svg {
    margin-top: -5px;
}

.modal-content {
    border: none;
}

.modal-content .form-label {
    text-align: right !important;
}

.modal-header .btn-close {
    color: #AFAFAF !important;
    font-size: 13px !important;
    border: 2px solid #AFAFAF !important;
    border-radius: 50px !important;
    background: none !important;
    font-weight: bold !important;
    padding: 1px !important;
    margin-left: -5px !important;
    margin-top: -13px !important;
}

.modal-header .btn-close:hover {
    color: #222f3e !important;
    border-color: #222f3e !important;
}

.modal-body {
    padding: 24px;
    min-height: 100px;
}

.modal-body .select2-search--inline {
    display: none !important;
}

#cart_tasks_edit_section .select2-search--inline {
    display: inline-block !important;
}

.modal-body .input-group .pwt-datepicker-input-element {
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.modal-body .select2-selection__arrow {
    right: inherit !important;
    left: 5px !important;
}

.modal-body .selection {
    text-align: right;
}

.modal-body .form-control {
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus,
.modal-body .custom-select:focus {
    border-color: var(--primary) !important;
}

.modal-body .form-control {
    text-align: right !important;
    direction: rtl;
}

.btn-close:hover:after {
    color: #222f3e !important;
}

.article-card .card-body {
    padding: 1rem;
}

.is_sticky_badge {
    position: absolute;
    left: 5px;
    top: 5px;
}

.is_sticky_badge i {
    font-size: 25px;
    color: #FFC107;
}

.update_notification_description {
    color: var(--alternate) !important;
    padding-right: 32px;
}

.update_notification_head_title {
    color: var(--body);
    font-weight: bold;
}

.update_notification {
    background: #FFF;
    padding: 24px;
    padding-top: 18px;
    padding-bottom: 18px;
    margin-bottom: 35px;
    line-height: 33px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--primary);
    position: relative;
    z-index: 1002;
}

.update_notification button,
.update_notification a {
    background-color: var(--primary);
    border-radius: var(--border-radius-md) !important;
    transition: .4s !important;
    font-size: 13px;
    padding: 10px;
    padding-right: 30px;
    padding-left: 30px;
    border: none;
    color: #FFF;
    float: left;
    margin-top: 14px;
    margin-left: 5px;
}

.update_notification button:hover,
.update_notification a:hover {
    background: var(--secondary);
}

.update_notification_head_title svg {
    margin-left: 10px;
    position: relative;
    top: 5px;
    stroke: var(--primary);
}

body.update-notification:before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #898989;
    opacity: 0.7 !important;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1002;
}

.changelog-item * {
    line-height: 30px;
}

.changelog_version {
    color: var(--dark-text);
    font-weight: bold;
    margin-top: -5px;
    font-size: 15px;
}

.changelog-content li:before {
    content: "\2022";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: 0em;
    font-size: 19px;
    position: relative;
    top: -1px;
    margin-right: -15px;
}

.change_log_version_number {
    color: var(--alternate);
}

.user-today-task-wrapper-item .home-task-item a:before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 4px;
    margin-top: 8px;
    margin-left: 5px;
    display: inline-block;
    position: relative;
    right: -3px;
}

.user-today-task-wrapper-item {
    border-bottom: 0.5px solid #DDD;
    padding-bottom: 5px;
    padding-top: 2px;
    font-size: 14px;
}

.user-today-tasks-widget .card {
    max-height: 515px;
    overflow: scroll;
}

.task_status_count,
.doc-status-count {
    font-size: 24px;
    font-weight: 400;
}

.task_status_label,
.doc-status-label {
    color: var(--alternate) !important;
    font-size: 15px;
    padding-top: 3px;
}

.colored-label {
    color: var(--primary) !important;
}

.task_status_icon,
.doc_status_icon {
    background: #F9F9F9;
    padding: 20px;
    text-align: center;
    border-radius: var(--border-radius-md);
}

.doc_status_icon {
    stroke: var(--primary);
}

.doc-status-badge {
    font-size: 14px;
    border: 1px solid var(--primary);
    text-align: center;
    width: 50px;
    display: inline-block;
    margin-right: 10px;
    position: relative;
    top: -4px;
    border-radius: var(--border-radius-md);
    color: var(--primary);
}

.home-task-stats-widget .card-body,
.home-docc-stats-widget .card-body {
    padding: 30px;
}

.words-elders-content {
    padding-top: 5px;
    line-height: 30px;
}

.words-elders-name {
    text-align: left;
    position: relative;
    top: -10px;
    font-weight: bold;
}

.words-elders-quote-left {
    font-size: 67px;
    display: inline-block;
    color: var(--primary);
    height: 10px;
    margin-left: -5px;
    margin-top: -17px;
    float: left;
}

.words-elders {
    padding: 20px;
    margin-top: 15px;
    padding-bottom: 35px;
    padding-top: 23px;
    border: 1px solid #D4D4D4;
    border-radius: 4px;
    position: relative;
    background: #FFF;
}

.words-elders-quote-right {
    font-size: 67px;
    display: inline-block;
    color: var(--primary);
    height: 10px;
    margin-right: -2px;
    margin-top: -25px;
    float: right;
}

.faq-tabs-content .card-body {
    padding: 20px !important;
    padding-right: 30px !important;
}

.faq-tabs-tab .nav-tabs a.active {
    font-weight: 700;
}

.faq-tabs-tab .nav-tabs a {
    font-size: 15px;
}

.faq-tabs-tab .nav-tabs {
    margin-bottom: 0px;
    border: none !important;
    padding: 20px;
    padding-right: 0px;
    padding-left: 0px;
    direction: rtl;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.faq-tabs-tab {
    margin-top: 20px;
}

.faq-tabs-content .faq-tabs-tab-level-2 .nav-tabs .nav-item .nav-link.active:after {
    bottom: 0px;
    height: 2px;
    border-radius: var(--border-radius-md);
    width: calc(100% + 1px);
}

.faq-tabs-content .faq-tabs-tab-level-2 .nav-tabs {
    padding-bottom: 10px;
    border-bottom-width: 2px !important;
    border-color: #AFAFAF !important;
    direction: rtl;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.faq-tabs-tab-level-3 .nav-tabs {
    direction: rtl;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.faq-tabs-tab .nav-tabs .nav-link.active:after {
    height: 0px;
}

.faq-tabs-tab .nav-tabs .nav-item a {
    height: inherit;
    padding: 20px !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    border-top-right-radius: var(--border-radius-md);
    border-top-left-radius: var(--border-radius-md);
    margin-bottom: -13px;
    color: #AFAFAF;
}

.faq-tabs-content .card {
    box-shadow: 0px 7px 10px rgba(0, 0, 0, 0.03) !important;
    border-top-right-radius: 0px !important;
    border-top-left-radius: 0px !important;
}

.faq-tabs-tab .nav-tabs .nav-item a:hover svg,
.faq-tabs-tab .nav-tabs .nav-item a.active svg {
    stroke: var(--primary);
}

.faq-tabs-tab .nav-tabs .nav-item a svg {
    stroke: #AFAFAF;
    margin-left: 10px;
    position: relative;
    top: -2px;
}

.faq-tabs-tab .nav-tabs .nav-item a:hover {
    color: var(--primary) !important;
}

.faq-tabs-tab .nav-tabs .nav-item a.active {
    background: #FFF;
    color: var(--primary) !important;
}

.faq-tabs-tab .nav-tabs li {
    padding-left: 5px;
    padding-right: 5px;
}

.faq-tabs-tab .nav-tabs li:last-child {
    padding-left: 0px !important;
}

.faq-tabs-tab .nav-tabs li:first-child {
    padding-right: 0px !important;
}

.faq-tabs-tab-level-2 .nav-item a:hover {
    color: var(--primary);
}

.faq-tabs-tab-level-2 .nav-item a {
    color: #AFAFAF;
}

.faq-tabs-tab-level-3 .nav-tabs {
    border-bottom: none !important;
    margin-bottom: 20px;
}

.faq-tabs-tab-level-3 .nav-tabs .nav-link.active:after {
    height: 0px;
}

.faq-search-filter {
    margin-top: 15px;
    margin-bottom: 10px !important;
}

.faq-search-filter:hover .search-magnifier-icon,
.faq-search-filter:hover input {
    border-color: var(--primary);
    color: var(--primary) !important;
}

.faq-search-filter .search-magnifier-icon {
    border: 1px solid #AFAFAF;
    border-bottom-left-radius: var(--border-radius-md);
    border-top-left-radius: var(--border-radius-md);
    border-right: none;
}

.faq-search-filter input:focus {
    border: 1px solid var(--primary);
    border-left: none;
}

.faq-search-filter input:focus+.search-magnifier-icon {
    border-color: var(--primary) !important;
}

.faq-search-filter input {
    padding-top: 8px;
    padding-bottom: 8px;
    border: 1px solid #AFAFAF;
    border-left: none;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    color: var(--primary);
    transition: none;
}

.faq-accordions .card {
    box-shadow: none !important;
    border: 1px solid #AFAFAF;
    border-radius: var(--border-radius-md) !important;
    margin-bottom: 10px !important;
}

.faq-accordions .card-body {
    padding: 15px !important;
}

.faq-accordions .card-body .list-item-heading {
    color: var(--body) !important;
    font-size: 15px !important;
    font-weight: 700;
}

.faq-accordions .card-body p {
    font-weight: 400;
    color: var(--alternate);
    margin-bottom: 0px !important;
    padding-right: 32px;
    padding-left: 32px;
}

.faq-accordions .card-body svg {
    stroke: var(--primary) !important;
    margin-left: 10px;
    position: relative;
    top: -1px;
}

.faq-accordions .card-body.py-4:hover .list-item-heading {
    color: var(--primary) !important;
}

.faq-accordions .card-body.py-4:after {
    content: ' ';
    position: absolute;
    left: 17px;
    border: initial;
    border-top: 1px solid var(--alternate);
    border-left: 1px solid var(--alternate);
    width: 7px;
    height: 7px;
    margin-top: 0px;
    top: 20px;
}

.faq-accordions .d-flex[aria-expanded="true"] .py-4:after {
    transform: rotate(45deg);
}

.faq-accordions .d-flex[aria-expanded="false"] .py-4:after {
    transform: rotate(225deg);
}

.faq-tabs-tab-level-3 .nav-tabs a:before {
    content: ' ';
    width: 15px;
    height: 15px;
    background: #FFF;
    border: 2px solid #AFAFAF;
    display: inline-block;
    margin-left: 10px;
    position: relative;
    top: 4px;
    border-radius: 2px;
}

.faq-tabs-tab-level-3 .nav-tabs a.active {
    color: var(--alternate);
}

.faq-tabs-tab-level-3 .nav-tabs a.active:after {
    content: '\2713';
    color: #FFF;
    display: inline-block;
    position: absolute;
    top: 10px;
    font-size: 10px;
    right: 4px;
    font-weight: bold;
}

.faq-tabs-tab-level-3 .nav-tabs a.active:before {
    background: var(--primary);
    border-color: var(--primary);
}

.faq-page_wrapper .card {
    background: none !important;
    box-shadow: none !important;
}

.faq-page_wrapper {
    box-shadow: 0px 7px 10px rgba(0, 0, 0, 0.03) !important;
    border-top-right-radius: 0px !important;
    border-top-left-radius: 0px !important;
    background: #FFF;
    padding-top: 45px;
}

.contract_services_items {
    margin-top: 15px;
}

.contract_services_item {
    display: inline-block;
    margin-left: 15px;
    margin-bottom: 15px;
}

.page-content-wrapper form .bulkactions label {
    padding-right: 0px !important;
}

label[for="contract_services"] {
    color: black;
}

.contract_description:focus,
.contract_notes:focus {
    border-color: var(--primary);
    color: var(--primary);
}

.contract_description,
.contract_notes {
    display: block;
    width: 100%;
    border: 1px solid #DDD;
    border-radius: var(--border-radius-md);
    min-height: 130px;
    color: var(--body);
    outline: none;
    padding: 15px;
    padding-top: 11px;
    padding-bottom: 11px;
}

.contract_payment_row {
    margin-bottom: 20px;
}

.contract_payment_row input[type="checkbox"] {
    margin-top: 42px;
}

#add_contract_form .select2,
#edit_contract_form .select2 {
    width: 100% !important;
}

.contract_services_item input[type="checkbox"] {
    position: relative;
    top: -3px;
}

.contract-list #search_form,
.post-list-wrapper #search_form {
    display: block;
}

.contract-list .row,
.all-time-report-list .row,
.post-list-wrapper .row {
    width: 100% !important;
}

.contract-list .top-filters .select2-container,
.all-time-report-list .top-filters .select2-container,
.post-list-wrapper .top-filters .select2-container {
    width: 100% !important;
}

.contract-list .select2-selection__arrow,
.all-time-report-list .select2-selection__arrow,
.post-list-wrapper .select2-selection__arrow {
    left: 0px !important;
}

.contract-list .col-md-3,
.all-time-report-list .contract-list .col-md-3,
.post-list-wrapper .col-md-3 {
    margin-bottom: 15px;
}

.contract-list .contract_service_name:last-child:after {
    display: none;
}

.contract_service_name:after {
    content: '،';
    margin-left: 5px;
}

.contract-list .contract_payment_status:first-child:before {
    display: none;
}

.contract_payment_status:before {
    content: '-';
}

.contract_payment_status.payment_success {
    color: var(--success);
}

.contract-list .sub-btn,
.all-time-report-list .sub-btn,
.post-list-wrapper .sub-btn {
    margin-top: 9px;
}

.contract-list .task-btn,
.all-time-report-list .task-btn,
.post-list-wrapper .task-btn {
    position: relative;
    top: 6px;
    left: 5px;
}

.task-modal-content b {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
    color: black;
}

.task-modal-content .modal_contract_description {
    margin-bottom: 15px;
}

.contact_filters_btn_wrapper {
    min-width: 130px;
}

.contact_filters .dropdown-menu.show {
    margin-top: 2px !important;
}

.view_contact .card {
    min-height: 301px;
}

.top_filters .dropdown-menu.show button.btn {
    box-shadow: none !important;
    border: 1px solid var(--primary);
}

.top_filters .dropdown-menu.show button.btn:hover {
    background: var(--primary) !important;
    color: #FFF !important;
}

.contact_filters_btn.active:before,
.top_filters_btn.active:before {
    content: '';
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    position: absolute;
    width: 13px;
    height: 13px;
    left: 0px;
    top: 0px;
}

.contact_filters_btn.active,
.top_filters_btn.active {
    background: var(--primary);
}

.contact_filters_btn,
.top_filters_btn {
    width: 16px;
    height: 16px;
    display: inline-block;
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-md);
    float: right;
    position: relative;
    margin-left: 0px;
    right: -8px;
}

.contact_filters .form-check,
.top_filters .form-check {
    padding-right: 0px;
    padding-top: 9px !important;
    padding-left: 20px;
}

.contact_filters .btn:hover .contact_filters_btn,
.top_filters .btn:hover .top_filters_btn {
    border-color: #FFF;
}

.contact_filters .btn-group:hover .btn.dropdown-toggle-split,
.top_filters .btn-group:hover .btn.dropdown-toggle-split {
    background: var(--primary);
    border-right: 0.5px solid #FFF;
}

.contact_filters .btn-group:hover .btn.dropdown-toggle-split::after,
.top_filters .btn-group:hover .btn.dropdown-toggle-split::after {
    color: #FFF;
}

.contact_filters .btn-group:hover,
.top_filters .btn-group:hover {
    background: var(--border-radius-md);
    border-radius: 4px;
}

.contact_filters,
.top_filters {
    text-align: left;
}

.contact_filters button,
.top_filters button {
    background: inherit !important;
}

.contact_filters .dropdown-toggle-split,
.top_filters .dropdown-toggle-split {
    border: 1px solid var(--primary);
}

.contact_filters .dropdown-toggle-split:after,
.top_filters .dropdown-toggle-split:after {
    color: var(--primary) !important;
}

.contact_filters .btn-outline-primary:hover,
.top_filters .btn-outline-primary:hover {
    background: inherit !important;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
}

.contact_filters_btn_wrapper:hover,
.contact_filters_btn_wrapper:hover::after,
.top_filters_btn_wrapper:hover,
.top_filters_btn_wrapper:hover::after {
    background: var(--primary);
    color: #FFF;
}

.contact_filters_btn_wrapper:before,
.top_filters_btn_wrapper:before {
    border: initial;
    transform: rotate(-45deg);
    border-top: 1px solid;
    border-left: 1px solid;
    margin-top: initial;
    margin-bottom: 2px;
    left: 0;
}

.contact_filters_btn_wrapper:after,
.top_filters_btn_wrapper:after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0;
    width: 38px;
    height: 35px;
    border: 1px solid var(--primary);
    border-right: none;
    border-top-left-radius: var(--border-radius-md);
    border-bottom-left-radius: var(--border-radius-md);
}

.contact_filters_btn_wrapper,
.top_filters_btn_wrapper {
    border: 1px solid var(--primary);
    padding: 7px;
    padding-right: 20px;
    padding-left: 20px;
    padding-bottom: 5px;
    border-radius: var(--border-radius-md);
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
    margin-left: 35px;
    cursor: pointer;
    color: var(--primary);
}

.contact_filters_btn_wrapper:hover .contact_filters_btn,
.top_filters_btn_wrapper:hover .top_filters_btn {
    border: 1px solid #FFF !important;
}

.contact_filters_btn_wrapper:before,
.top_filters_btn_wrapper:before {
    content: '';
    display: inline-block;
    margin-right: 0;
    width: 5px;
    height: 5px;
    border: initial;
    transform: rotate(-45deg);
    border-top: 1px solid;
    border-left: 1px solid;
    margin-top: initial;
    vertical-align: middle;
    margin-bottom: 2px;
    position: absolute;
    left: 18px;
    top: 14px;
    z-index: 1;
}

.contact_filters_btn_wrapper:hover::after,
.top_filters_btn_wrapper:hover::after {
    border-right-color: #FFF !important;
}

html .contact_filters_btn_wrapper:hover:before,
html .top_filters_btn_wrapper:hover:before {
    color: #FFF !important;

}

.contact_filters .dropdown-menu.show,
.top_filters .dropdown-menu.show {
    left: -32px !important;
    top: -2px !important;
    border-color: var(--primary);
    padding: 12px;
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
    min-width: 215px;
    padding-top: 5px;
    padding-bottom: 10px;
}

.contact_filters_btn_wrapper.show,
.top_filters_btn_wrapper.show {
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-bottom: 0px;
}

.contact_filters_btn_wrapper.show:after,
.top_filters_btn_wrapper.show:after {
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-bottom: 0px;
}

.contact_filters .dropdown-menu.show .actions,
.top_filters .dropdown-menu.show .actions {
    margin-bottom: 3px !important;
    ;
}

.contact_filters .dropdown-menu.show label,
.top_filters .dropdown-menu.show label {
    line-height: 30px !important;
}

.contact_filters .select2-selection__arrow,
.top_filters .select2-selection__arrow {
    left: 5px !important;
    right: inherit !important;
}

.contact_filters .sub-btn,
.top_filters .sub-btn {
    border-radius: 3px !important;
    transition: .4s !important;
    font-size: 13px;
    padding: 10px;
    border: none;
    color: #FFF;
    background: var(--primary) !important;
    padding-top: 8px;
    padding-bottom: 8px;
    margin-top: 12px;
}

.contact_filters .sub-btn:hover,
.top_filters .sub-btn:hover {
    background: var(--secondary) !important;
}

.top_filters .btn-group {
    width: 100%;
}

.top_filters_btn_wrapper,
.top_filters_btn_wrapper.show {
    margin-left: 37px !important;
    padding-left: 50px !important;
    z-index: 0;
}

.top_filters .dropdown-menu.show li.nav-item .active {
    position: relative;
}

.top_filters .dropdown-menu .form-label {
    color: black;
}

.cart-filter-checkbox {
    position: relative;
    right: 25px;
    margin-bottom: 3px !important;
}

#cart_filter_form .btn {
    box-shadow: none !important;
    border: 1px solid var(--primary);
}

#cart_filter_form .btn:hover {
    background: var(--primary) !important;
    color: #FFF !important;
}

.top_filters .dropdown-menu .form-label.small {
    margin-bottom: 1px;
}

.top_filters .dropdown-menu li.nav-item {
    font-weight: bold !important;
}

.top_filters .dropdown-menu.show {
    right: -105px !important;
    top: 32px !important;
    left: 3px !important;
    min-width: 200px !important;
    transform: inherit !important;
}

.top_filters .dropdown-menu.show li.nav-item .nav-link {
    width: 100%;
}

.top_filters .dropdown-menu.show li.nav-item .active:after {
    content: '';
    position: absolute;
    height: 2px;
    width: 65px;
    background: var(--primary);
    bottom: -3px;
    right: 25%;
    border-radius: 10px;
}

.top_filters .dropdown-menu.show li.nav-item {
    width: 50% !important;
    text-align: center !important;
    padding-bottom: 3px;
}

.top_filters .dropdown-menu.show li.nav-item .active {
    font-weight: bold;
}

.top_filters {
    display: flex;
    justify-content: end;
}

#filter-tabs {
    margin-bottom: 5px;
}

#cart_from_display,
#cart_to_display {
    color: #777777;
    font-size: 13px;
    font-weight: 400;
    padding-right: 8px !important;
    padding-left: 8px !important;
    min-height: 36px !important;
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
}

.top_filters .dropdown-menu.show .filter_from_date input,
.top_filters .dropdown-menu.show .filter_to_date input {
    color: #777777;
    font-weight: 400;
    padding-right: 8px !important;
    padding-left: 8px !important;
    min-height: 36px !important;
    outline: none;
    font-size: 14px;
    padding: 5px 5px;
    border-radius: 4px;
    border-color: #dddddd;
    border: 1px solid #dddddd;
    font-family: 'YekanBakhRegular';
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
}

#contact_search_form,
#card_search_form {
    margin-top: 10px;
}

.contact_character_filters {
    margin-bottom: 40px;
}

.contact_character_filters ul li {
    display: inline-block;
}

.contact_character_filters ul {
    list-style: none;
    text-align: right;
    padding-right: 0px;
    padding-left: 0px;
    padding-bottom: 5px;
    padding-top: 10px;
}

.contact_character_filters ul li a:hover,
.contact_character_filters ul li a.active {
    background: var(--primary);
    color: #FFF;
}

.contact_character_filters ul li a {
    font-size: 14px;
    margin-left: 4px;
    color: var(--alternate);
    padding: 3px;
    padding-bottom: 1px;
    padding-right: 6px;
    padding-left: 6px;
    border-radius: var(--border-radius-md);
}

.contact_list_items {
    margin-top: 10px;
    margin-bottom: 30px;
}

.contact_list_items .card:hover {
    border: 1px solid var(--primary);
}

.contact_list_items .card:hover::after {
    box-shadow: none !important;
}

.company_icon svg path {
    stroke: var(--primary) !important;
}

.company-item {
    padding-top: 40px !important;
    padding-bottom: 85px !important;
}

.company_icon {
    background: #F9F9F9;
    border-radius: 100px;
    height: 100px;
    width: 100px;
    padding-top: 25px;
}

.company_icon svg {
    margin-bottom: 24px;
    padding: 33px;
}

.person_of_company {
    font-size: 15px;
    line-height: 30px !important;
    font-weight: bold;
    margin-bottom: 15px !important;
    margin-top: 10px !important;
}

.copmany_info_name {
    font-size: 14px !important;
    color: #AFAFAF !important;
}

.copmany_info_name:hover {
    color: #AFAFAF !important;
}

.company-item:hover .person_of_company {
    color: var(--primary) !important;
}

.company_user {
    position: absolute;
    bottom: 15px;
    left: 15px;
    font-size: 14px;
    color: #AFAFAF;
}

.company_tel_number {
    display: none;
    position: absolute;
    bottom: 12px;
    right: 15px;
    font-size: 14px;
    color: #FFF;
    background: #334155;
    padding-top: 5px;
    padding-bottom: 3px;
    padding-right: 20px;
    padding-left: 20px;
    line-height: 20px;
    border-radius: var(--border-radius-md);
}

.contact_list_items .card:hover .company_tel_number {
    display: block;
}

.company_actions {
    text-align: left;
    padding-left: 15px;
    padding-top: 6px;
    position: relative;
    margin-bottom: -37px;
    z-index: 1;
}

.company_actions svg:hover {
    stroke: var(--primary) !important;
}

.company_actions svg {
    stroke: #4E4E4E !important;
}

.contacts_top_filter li a:hover svg {
    stroke: var(--primary);
}

.contacts_top_filter li svg {
    margin-left: 10px;
    stroke: #AFAFAF;
    position: relative;
    top: -3px;
}

.contacts_top_filter li a:hover,
.contacts_top_filter li a.active {
    color: var(--primary);
    font-weight: bold;
}

.contacts_top_filter li a {
    color: #AFAFAF;
}

.contacts_top_filter li {
    list-style: none;
    display: inline-block;
    margin-top: 22px;
    font-size: 14px;
    font-weight: 400;
    margin-left: 15px;
}

.contacts_top_filter li a.active svg {
    stroke: var(--primary);
}

.contacts_top_filter ul {
    padding-right: 0px;
}

.company_actions a {
    position: relative;
    top: 2px;
}

.task-list-wrapper .add-modal-content .row,
.task-list-wrapper .edit-modal-content .row {
    width: 100% !important;
    margin: 0px;
    font-size: 14px;
}

.add-modal-content .actions,
.edit-modal-content .actions {
    margin-bottom: 15px;
    position: relative;
}

.add-modal-content .select2-selection__arrow,
.edit-modal-content .select2-selection__arrow {
    left: 5px !important;
    right: inherit !important;
}

.add-modal-content .modal-dialog,
.edit-modal-content .modal-dialog {
    max-width: 650px;
}

.modal-tabs {
    position: relative;
    top: 5px;
    padding-right: 10px;
    padding-left: 10px;
}

.modal-tabs .nav-tabs-line-title {
    border-bottom: none !important;
}

.modal-tabs .nav-tabs-line-title svg {
    stroke: #AFAFAF;
    margin-left: 10px;
    height: 20px;
    position: relative;
    top: -3px;
}

.modal-tabs .nav-tabs-line-title a:hover svg,
.modal-tabs .nav-tabs-line-title a.active svg {
    stroke: var(--primary);
}

.modal-tabs .nav-tabs-line-title>li>.nav-link.active:after {
    bottom: -5px;
    height: 2px;
    border-radius: var(--border-radius-md);
}

.add-modal-content .modal-body,
.edit-modal-content .modal-body {
    padding-right: 0px;
    padding-left: 0px;
}

.modal-footer {
    background: #F9F9F9;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
}

.edit-modal-content .modal-footer .btn,
.add-modal-content .modal-footer .btn {
    height: 34px;
    padding-right: 24px;
    padding-left: 24px;
    margin-right: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

.edit-modal-content .modal-footer .btn-primary:hover,
.add-modal-content .modal-footer .btn-primary:hover {
    background-color: var(--secondary-darker);
    border-color: var(--secondary-darker);
}

.edit-modal-content .modal-footer .btn-primary,
.add-modal-content .modal-footer .btn-primary {
    border: 1px solid var(--primary);
}

.edit-modal-content .modal-footer .btn-secondary,
.add-modal-content .modal-footer .btn-secondary {
    background: none;
    border: 1px solid #AFAFAF;
    color: #AFAFAF !important;
}

.edit-modal-content .modal-footer .btn-secondary:hover,
.add-modal-content .modal-footer .btn-secondary:hover {
    background: #222f3e !important;
    color: #FFF !important;
    border-color: #222f3e !important;
}

.edit-modal-content input[type="text"],
.edit-modal-content input[type="search"],
.edit-modal-content select {
    outline: none;
    color: #777777;
    font-size: 13px;
    font-weight: 400;
    padding: 4px 8px !important;
    border-radius: 4px;
    border: 1px solid #dddddd !important;
    font-family: 'YekanBakhRegular';
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
    min-height: 36px !important;
    width: 100%;
    box-sizing: border-box;
}

.edit-modal-content input[type="text"]:focus,
.edit-modal-content input[type="search"]:focus {
    outline: none;
    border-color: var(--primary) !important;
}

.company_instagram_field_person,
.company_whatsapp_field_person,
.company_birth_date_field_person,
.company_instagram_field_company,
.company_whatsapp_field_company,
.company_birth_date_field_company {
    position: relative;
}

.company_instagram_field_person svg,
.company_whatsapp_field_person svg,
.company_birth_date_field_person svg,
.company_instagram_field_company svg,
.company_whatsapp_field_company svg,
.company_birth_date_field_company svg {
    stroke: #AFAFAF;
    position: absolute;
    top: 35px;
    left: 10px;
}

.company_whatsapp_field_person svg,
.company_birth_date_field_person svg,
.company_whatsapp_field_company svg,
.company_birth_date_field_company svg {
    top: 42px;
}

.company_birth_date_field_person svg,
.company_birth_date_field_company svg {
    top: 35px;
}

.company_whatsapp_field_person i,
.company_birth_date_field_person i,
.company_whatsapp_field_company i,
.company_birth_date_field_company i {
    position: absolute;
    top: 36px;
    left: 10px;
    font-size: 18px !important;
    color: #AFAFAF !important;
}

.company_whatsapp_field_person i:hover,
.company_birth_date_field_person i,
.company_whatsapp_field_company i:hover,
.company_birth_date_field_company i {
    color: #AFAFAF !important;
}

#company_instagram_person,
#company_whatsapp_person,
#company_birth_date_field_person,
#company_instagram_company,
#company_whatsapp_company,
#company_birth_date_field_company {
    padding-right: 10px !important;
    padding-left: 38px !important;
    text-align: left;
    direction: ltr;
}

.edit-modal-content .company_whatsapp_field_company i {
    top: 37px;
}

.edit-modal-content .company_instagram_field_company svg {
    left: 9px;
    top: 36px;
}

.company_description_wrapper.disabled {
    cursor: default;
    pointer-events: none;
}

.company_website_field {
    direction: ltr;
    text-align: left;
}

.check_validate {
    pointer-events: none;
}

.spinner_validate {
    position: absolute;
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 0.25em solid rgba(0, 0, 0, 0.5);
    border-left-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner-border 0.75s linear infinite;
    animation: spinner-border 0.75s linear infinite;
    left: 10px;
    top: 38px;
    border-width: 0.13em;
}

.validate_result {
    position: absolute;
    left: 10px;
    top: 38px;
}

.validate_result.error {
    color: var(--danger);
}

.validate_result.success {
    color: var(--success);
}

.website_field .validate_result,
.website_field .spinner_validate {
    left: inherit;
    right: 10px;
}

#menu-2681 #menu-item-3636 a:after {
    display: none;
}

.task_calendar_reports .fc-col-header-cell a {
    cursor: none !important;
    pointer-events: none;
}

.task_calendar_reports .fc-event-time {
    display: none;
}

.task_calendar_reports .fc-daygrid-event-dot,
.time-calendar-view .fc-daygrid-event-dot,
.time-calendar-view .fc-daygrid-dot-event .fc-event-title:before {
    display: none;
}

.task_calendar_reports .undone-task {
    margin: 0px !important;
    background: #7886cc;
    color: #FFF;
    padding: 10px;
    padding-top: 8px;
    padding-bottom: 7px;
    border-radius: 0px;
}

.task_calendar_reports .doned-task {
    margin: 0px !important;
    background: #69be44;
    color: #FFF;
    padding: 10px;
    padding-top: 8px;
    padding-bottom: 7px;
    border-radius: 0px;
}

.task_calendar_reports .waited-task {
    margin: 0px !important;
    background: #ed9f58;
    color: #FFF;
    padding: 10px;
    padding-top: 8px;
    padding-bottom: 7px;
    border-radius: 0px;
}

.task_calendar_reports .canceled-task {
    margin: 0px !important;
    background: #ff0405;
    color: #FFF;
    padding: 10px;
    padding-top: 8px;
    padding-bottom: 7px;
    border-radius: 0px;
}

.task_calendar_reports .confirm-task {
    margin: 0px !important;
    background: #a1999a;
    color: #FFF;
    padding: 10px;
    padding-top: 8px;
    padding-bottom: 7px;
    border-radius: 0px;
}

.task_calendar_reports .transfer-task {
    margin: 0px !important;
    background: #9900ab;
    color: #FFF;
    padding: 10px;
    padding-top: 8px;
    padding-bottom: 7px;
    border-radius: 0px;
}

/* Calendar events: full width with a 5px gap above and below each item */
.task_calendar_reports .fc-daygrid-event-harness,
.time-calendar-view .fc-daygrid-event-harness {
    width: 100% !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    inset-inline: 0 !important;
}

.task_calendar_reports .fc-daygrid-event,
.time-calendar-view .fc-daygrid-event,
.task_calendar_reports .fc-daygrid-event .fc-event-main,
.time-calendar-view .fc-daygrid-event .fc-event-main {
    width: 100% !important;
    display: block !important;
    white-space: normal !important;
}

.time-calendar-view .fc-daygrid-event {
    padding: 8px 10px !important;
    border-radius: 0 !important;
    color: #FFF !important;
}

.task_calendar_reports .undone-task:hover {
    background: #7886cc !important;
    color: #FFF !important;
}

.task_calendar_reports .transfer-task:hover {
    background: #9900ab !important;
    color: #FFF !important;
}

.task_calendar_reports .doned-task:hover {
    background: #69be44 !important;
    color: #FFF !important;
}

.task_calendar_reports .waited-task:hover {
    background: #ed9f58 !important;
    color: #FFF !important;
}

.task_calendar_reports .canceled-task:hover {
    background: #ff0405 !important;
    color: #FFF !important;
}

.task_calendar_reports .confirm-task:hover {
    background: #a1999a !important;
    color: #FFF !important;
}

.fc-button-group {
    background: #FFF;
}

.fc-button-group button {
    background: #FFF !important;
    color: #7E7E7E !important;
    border-color: #AFAFAF !important;
    padding-top: 8px !important;
    padding-bottom: 7px !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
}

.fc-toolbar-chunk button {
    background: #FFF !important;
    color: #7E7E7E !important;
    border-color: #AFAFAF !important;
    padding-top: 8px !important;
    padding-bottom: 7px !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
}

.fc-toolbar-chunk {
    background: #FFF;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFF !important;
}

.fc .fc-button-primary:hover {
    color: #FFF !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.fc .fc-toolbar-title {
    font-size: 18px !important;
    color: #7E7E7E !important;
    position: relative !important;
    top: 7px !important;
}

.fc .fc-toolbar.fc-header-toolbar {
    padding-right: 10px;
    padding-left: 10px;
}

.fc .fc-view-harness {
    border: 0px solid #DDD;
    margin-top: 20px;
    margin-right: 30px;
    margin-left: 30px;
}

.fc .fc-list-event:hover td a {
    text-decoration: none !important;
}

.fc .fc-list-event:hover td {
    background: inherit !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
    border-color: #DDD;
    width: 235px !important;

}

.tg-backdrop.tg-backdrop-animate,
.Tour_Started .tg-dialog {
    z-index: 1050 !important;
}

body.page-template-companies-list .btn-icon-start,
body.page-template-cart-list-page .btn-icon-start,
.company-toolbar-left-btns {
    margin-left: -10px;
}

body.page-template-list-all-time-calendar-admin .fc-event td.fc-list-event-title,
body.page-template-list-all-time-calendar-user .fc-event td.fc-list-event-title,
body.page-template-task-calendar-reports .fc-event td.fc-list-event-title {
    padding: 10px !important;
}

body.page-template-list-all-time-calendar-admin td.fc-list-event-time,
body.page-template-list-all-time-calendar-admin td.fc-list-event-graphic,
body.page-template-list-all-time-calendar-user td.fc-list-event-time,
body.page-template-list-all-time-calendar-user td.fc-list-event-graphic,
body.page-template-task-calendar-reports td.fc-list-event-time,
body.page-template-task-calendar-reports td.fc-list-event-graphic {
    display: none !important;
}

/* Add Media button wrapper: cancel the core float so it sits below the "محتوا" label */
.wp-media-buttons {
    float: none !important;
}

/* List view (هفتگی/ماهانه/...): make each event span the full calendar width.
   Overrides the fixed `.fc-theme-standard td { width:235px }` that constrains list cells. */
.fc .fc-list-table {
    width: 100% !important;
    table-layout: auto !important;
}

.fc .fc-list-table td,
.fc .fc-list-table th {
    width: auto !important;
}

.fc .fc-list-table td.fc-list-event-title,
.fc .fc-list-table td.fc-list-event-title a {
    width: 100% !important;
    display: block !important;
}

.fc .fc-list-table .fc-list-day-cushion {
    width: 100% !important;
}

.crm-add-media {
    padding-left: 20px !important;
}

@media (max-width: 768px) {
    .faq-accordions .card-body p {
        padding-right: 10px;
        padding-left: 10px;
    }

    .fc-theme-standard td,
    .fc-theme-standard th {
        width: auto !important;
    }

    .fc-view-harness {
        overflow-x: auto !important;
    }
}

.fc a.fc-col-header-cell-cushion {
    color: #7E7E7E;
    padding-top: 5px;
    padding-bottom: 5px;
}

.fc .fc-daygrid-day-top {
    display: none !important;
}

.calendar-help-color-title {
    color: #4E4E4E;
    font-size: 14px;
    padding-right: 30px;
    padding-left: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.row.calendar-help-color-items ul {
    list-style: none;
    margin-right: 40px;
    margin-left: 40px;
    margin-bottom: 30px;
    border-radius: 4px;
    border: 0.5px solid #DDD;
    background: #F9F9F9;
    padding-top: 14px;
    padding-bottom: 11px;
    width: 93%;
}

.row.calendar-help-color-items ul li {
    display: inline-block;
    margin-left: 20px;
}

.row.calendar-help-color-items ul li .task-doned:before {
    content: ' ';
    width: 7px;
    height: 7px;
    background: #69be44;
    display: inline-block;
    border-radius: 10px;
    margin-left: 10px;
    margin-right: 5px;
}

.row.calendar-help-color-items ul li .task-undone:before {
    content: ' ';
    width: 7px;
    height: 7px;
    background: #7886cc;
    display: inline-block;
    border-radius: 10px;
    margin-left: 10px;
    margin-right: 5px;
}

.row.calendar-help-color-items ul li .task-waited:before {
    content: ' ';
    width: 7px;
    height: 7px;
    background: #ed9f58;
    display: inline-block;
    border-radius: 10px;
    margin-left: 10px;
    margin-right: 5px;
}

.row.calendar-help-color-items ul li .task-canceled:before {
    content: ' ';
    width: 7px;
    height: 7px;
    background: #ff0405;
    display: inline-block;
    border-radius: 10px;
    margin-left: 10px;
    margin-right: 5px;
}

.row.calendar-help-color-items ul li .task-transfer:before {
    content: ' ';
    width: 7px;
    height: 7px;
    background: #9900ab;
    display: inline-block;
    border-radius: 10px;
    margin-left: 10px;
    margin-right: 5px;
}

.row.calendar-help-color-items ul li .task-confirm:before {
    content: ' ';
    width: 7px;
    height: 7px;
    background: #a1999a;
    display: inline-block;
    border-radius: 10px;
    margin-left: 10px;
    margin-right: 5px;
}

.fc-daygrid-dot-event .fc-event-title:before {
    content: '';
    background: url(assets/img/background/task-item-calendar-icon.svg);
    width: 10px;
    height: 10px;
    display: inline-flex;
    margin-left: 10px;
    position: relative;
    top: 3px;
    background-size: cover;
    filter: brightness(3.5);
}

.calendar-task-report-filters form,
.calendar-time-report-filters form {
    margin-bottom: 0px !important;
}

.calendar-task-report-filters {
    padding: 30px;
    padding-bottom: 1px;
}

.calendar-task-report-filters label,
.calendar-time-report-filters label {
    margin-bottom: 13px;
}

.calendar-task-report-filters .col-md-3,
.calendar-time-report-filters .col-md-3 {
    display: inline-block;
}

.calendar-task-report-filters #select2-select2Basic1-container,
.calendar-time-report-filters #select2-select2Basic1-container {
    direction: rtl !important;
}

.calendar-task-report-filters .select2-selection__arrow,
.calendar-time-report-filters .select2-selection__arrow {
    right: inherit !important;
    left: 8px !important;
}

.calendar-task-report-filters .col-md-3:last-child button,
.calendar-time-report-filters .col-md-3:last-child button {
    background-color: var(--primary);
    border-radius: 3px !important;
    transition: .4s !important;
    font-size: 13px;
    padding: 10px;
    border: none;
    color: #FFF;
}

.calendar-task-report-filters .col-md-3:last-child,
.calendar-time-report-filters .col-md-3:last-child {
    float: left;
    margin-top: 32px;
    position: relative;
}

.calendar-task-report-filters .col-md-3:last-child button:hover,
.calendar-time-report-filters .col-md-3:last-child button:hover {
    background: var(--secondary);
}

.task_calendar_reports .fc-daygrid-dot-event.fc-event-mirror,
.fc-daygrid-dot-event:hover {
    background: #FFF;
    color: black;
}

.task_calendar_reports .fc .fc-view-harness {
    overflow: scroll !important;
}

.fc .fc-scrollgrid-liquid {
    table-layout: auto !important;
    height: 100% !important;
    overflow: scroll !important;
}

.fc .fc-view-harness {
    overflow: scroll !important;
    position: relative;
    display: flow-root;
    min-height: 100vh !important;
    height: auto !important;
}

.task_calendar_reports .fc .fc-view-harness {
    overflow: scroll !important;
    position: relative;
    display: flow-root;
    min-height: 255px !important;
    height: auto !important;
}

.time-calendar-view .fc-view-harness {
    min-height: inherit !important;
}

.fc .fc-list-event-dot {
    display: none !important;
}

.fc .fc-scrollgrid-section-body table tr {
    display: inline-flex;
}

.fc .fc-daygrid-day-bottom {
    padding: 0px !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
    border-top: 0px !important;
    border-left: 0px !important;
}

.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    min-height: inherit;
}

.fc .fc-daygrid-day.fc-day-today {
    background: #FFF !important;
}

.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    position: relative;
    min-height: 2em;
}

.fc .fc-daygrid-event-harness {
    position: relative;
}

.fc .fc-daygrid-day-events {
    margin-top: 0px;
}

td.fc-list-event-time {
    display: none;
}

.fc-direction-rtl .fc-list-table .fc-list-event-graphic {
    display: none;
}

.fc-direction-ltr .fc-list-day-side-text,
.fc-direction-rtl .fc-list-day-text {
    cursor: default;
    pointer-events: none;
}

.fc-view-harness.fc-view-harness-active {
    border: 1px solid #DDD;
    border-radius: 2px;
}

.fc-theme-standard .fc-list {
    border: none !important;
}

#calendar {
    display: inline;
    padding: 30px;
    padding-top: 10px;
}

button.fc-timeGridDay-button.fc-button.fc-button-primary {
    display: none;
}

.time-calendar-view {
    padding: 0px !important;
    display: block !important;
}

.time-calendar-view .fc-header-toolbar {
    padding-right: 0px !important;
    padding-left: 0px !important;
}

.time-calendar-view .fc-view-harness {
    margin-right: 0px;
    margin-left: 0px;
}

.day-header-time-col {
    float: left;
    padding-right: 15px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 18px;
    border-right: 1px solid #f1f1f1;
    color: #7E7E7E;
}

.fc .fc-daygrid-day-frame {
    position: relative;
    min-height: 100%;
    width: 100%;
}

.fc-daygrid-dot-event .fc-event-title {
    margin-left: 20px;
}

.event_title_time {
    position: relative;
}

.event_title_time:after {
    content: '';
    position: absolute;
    left: 45px;
    top: -7px;
    width: 1px;
    height: 31px;
    z-index: 1;
    background: #cacaca;
}

.event_title_time span {
    padding-left: 8px;
}

.fc .fc-daygrid-event-harness {
    border-bottom: 1px solid #f1f1f1;
}

.fc-scrollgrid-sync-inner,
.day-header-time-col {
    display: inline-block;
}

.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events:after {
    content: '';
    position: absolute;
    left: 55px;
    top: -3px;
    width: 1px;
    height: 40px;
    background: #f1f1f1;
}

.toast-notification {
    position: fixed;
    text-decoration: none;
    z-index: 999999;
    width: 350px !important;
    max-width: calc(100vw - 20px) !important;
    background-color: #fff !important;
    box-shadow: 1px 7px 14px -5px rgb(0 0 0 / 10%);
    border-radius: 4px;
    display: flex;
    padding: 10px;
    transform: translate(0, -150%);
}

.toast-notification .toast-notification-wrapper {
    flex: 1;
    padding-right: 10px;
    overflow: hidden;
}

.toast-notification .toast-notification-wrapper .toast-notification-header {
    padding: 5px 0px 5px 0px;
    margin: 0;
    font-size: 15px;
    word-break: break-all;
    color: #262626;
    font-weight: 900;
    margin-bottom: 5px;
}

.toast-notification .toast-notification-wrapper .toast-notification-content {
    font-size: 14px;
    margin: 0;
    padding: 0;
    word-break: break-all;
    color: #878787 !important;
}

.toast-notification .toast-notification-close {
    appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 24px;
    line-height: 24px;
    padding-bottom: 4px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.2);
}

.toast-notification .toast-notification-close:hover {
    color: rgba(0, 0, 0, 0.4);
}

.toast-notification.toast-notification-top-center {
    transform: translate(calc(50vw - 50%), -150%);
}

.toast-notification.toast-notification-bottom-left,
.toast-notification.toast-notification-bottom-right {
    transform: translate(0, 150%);
}

.toast-notification.toast-notification-bottom-center {
    transform: translate(calc(50vw - 50%), 150%);
}

.toast-notification.toast-notification-warning {
    background-color: #2d2e31;
    border-left: 4px solid #f2b707;
}

.toast-notification.toast-notification-warning .toast-notification-wrapper .toast-notification-header {
    color: #f2b707;
}

.toast-notification.toast-notification-warning .toast-notification-wrapper .toast-notification-content {
    color: #edeff3;
}

.toast-notification.toast-notification-warning .toast-notification-close {
    color: rgba(255, 255, 255, 0.2);
}

.toast-notification.toast-notification-warning .toast-notification-close:hover {
    color: rgba(255, 255, 255, 0.4);
}

.toast-notification.toast-notification-success {
    background-color: #C3F3D7;
    border-left: 4px solid #28a536;
}

.toast-notification.toast-notification-success .toast-notification-wrapper .toast-notification-header {
    color: #28a536;
}

.toast-notification.toast-notification-success .toast-notification-wrapper .toast-notification-content {
    color: #51a775;
}

.toast-notification.toast-notification-success .toast-notification-close {
    color: rgba(0, 0, 0, 0.2);
}

.toast-notification.toast-notification-success .toast-notification-close:hover {
    color: rgba(0, 0, 0, 0.4);
}

.toast-notification.toast-notification-error {
    background-color: #f3c3c3;
    border-left: 4px solid #9a0a0a;
}

.toast-notification.toast-notification-error .toast-notification-wrapper .toast-notification-header {
    color: #9a0a0a;
}

.toast-notification.toast-notification-error .toast-notification-wrapper .toast-notification-content {
    color: #a75151;
}

.toast-notification.toast-notification-error .toast-notification-close {
    color: rgba(0, 0, 0, 0.2);
}

.toast-notification.toast-notification-error .toast-notification-close:hover {
    color: rgba(0, 0, 0, 0.4);
}

.toast-notification.toast-notification-info {
    background-color: #d0eaff;
    border-left: 4px solid #1561d4;
}

.toast-notification.toast-notification-info .toast-notification-wrapper .toast-notification-header {
    color: #1561d4;
}

.toast-notification.toast-notification-info .toast-notification-wrapper .toast-notification-content {
    color: #6097b8;
}

.toast-notification.toast-notification-info .toast-notification-close {
    color: rgba(0, 0, 0, 0.2);
}

.toast-notification.toast-notification-info .toast-notification-close:hover {
    color: rgba(0, 0, 0, 0.4);
}

.toast-notification.toast-notification-dimmed {
    opacity: .3;
}

.toast-notification.toast-notification-dimmed:hover,
.toast-notification.toast-notification-dimmed:active {
    opacity: 1;
}

.task-calendar-report-page .popper,
.task-calendar-report-page .tooltip {
    top: -65px !important;
    opacity: 1 !important;
}

.task-calendar-report-page .popper .popper__arrow,
.task-calendar-report-page .tooltip .tooltip-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    margin: 5px;
}

.task-calendar-report-page .tooltip .tooltip-arrow,
.task-calendar-report-page .popper .popper__arrow {
    border-color: var(--primary);
}

.task-calendar-report-page .tooltip[x-placement^="bottom"] .tooltip-arrow,
.task-calendar-report-page .popper[x-placement^="bottom"] .popper__arrow {
    border-width: 5px 5px 0 5px;
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    bottom: -5px;
    left: calc(50% - 5px);
    margin-top: 0;
    margin-bottom: 0;
}

.edit-page-form .form-check-input {
    border-radius: 5px !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin-left: 10px !important;
    top: 0px !important;
}

.role-permission-field h4 {
    padding-top: 10px;
    padding-bottom: 10px;
    font-weight: bold;
    color: black;
    font-size: 16px;
    padding-right: 6px;
}

.edit-page-form .form-check-input:checked {
    background: #7d2a8a;
}

.edit-page-form input[type="checkbox"]:checked::before {
    top: -12px !important;
    right: 5px !important;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
    width: 15px !important;
    height: 15px !important;
}

.timesheet-main-wrapper input[type="email"],
.timesheet-main-wrapper input[type="password"] {
    min-height: 14px;
    padding: 7px;
    position: relative;
    direction: rtl;
}

.select2-container--bootstrap4 .select2-dropdown {
    border-color: var(--primary) !important;
}

.task-list-wrapper form {
    padding-right: 10px;
    padding-left: 10px;
}

/* All Table Style */
div#append_ajax {
    overflow: scroll;
    padding: 0 10px;
}

table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    table-layout: auto;
    font-size: 14px;
    padding: 0 0px;
    box-sizing: border-box;
}

table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) thead tr {
    background: linear-gradient(135deg, var(--primary), var(--primary));
}

table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) thead th,
table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) thead td {
    padding: 14px 16px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) thead th:first-child,
table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) thead td:first-child {
    border-radius: 0 10px 10px 0;
}

table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) thead th:last-child,
table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) thead td:last-child {
    border-radius: 10px 0 0 10px;
}

table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) tbody {
    display: table-row-group;
    padding: 0;
    margin: 0;
}

table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) tbody tr {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    margin: 0 10px;
}

table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) tbody td {
    padding: 12px 20px;
    vertical-align: middle;
    white-space: nowrap;
    color: #111827;
    text-align: center;
}

table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) tbody td:first-child {
    border-radius: 0 10px 10px 0;
    color: #6b7280;
    font-weight: 500;
}

table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) tbody td:last-child {
    border-radius: 10px !important;
}

table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) thead td:last-child {
    text-align: left !important;
}

table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) tbody a {
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

table:not(.fc-col-header):not(.fc-scrollgrid):not(.fc-scrollgrid-sync-table):not(.table-days) tbody tr td {
    padding-left: 10px;
    padding-right: 10px;
}

tbody {
    display: table-row-group !important;
}

/* Reset generic table styles inside FullCalendar containers */
.fc table,
.task_calendar_reports table,
.time-calendar-view table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    font-size: inherit !important;
}

.fc table thead tr,
.task_calendar_reports table thead tr,
.time-calendar-view table thead tr {
    background: none !important;
}

.fc table tbody tr,
.task_calendar_reports table tbody tr,
.time-calendar-view table tbody tr {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    border-radius: 0 !important;
}

.fc table thead th,
.fc table thead td,
.fc table tbody td,
.task_calendar_reports table thead th,
.task_calendar_reports table thead td,
.task_calendar_reports table tbody td,
.time-calendar-view table thead th,
.time-calendar-view table thead td,
.time-calendar-view table tbody td {
    color: inherit !important;
    white-space: inherit !important;
    border-radius: 0 !important;
    font-weight: inherit !important;
    padding: inherit !important;
    text-align: inherit !important;
}

.task-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    width: auto !important;
}

.task-actions a,
.task-actions button {
    background: #f3f4f6 !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px !important;
    cursor: pointer !important;
    line-height: 0 !important;
    transition: all 0.2s ease !important;
}

.task-actions a:hover {
    background: #e0e7ff !important;
    color: #2563eb !important;
}

.task-actions button:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.task-actions svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

.post-list-wrapper {
    overflow: scroll;
}

.post_category option,
.document_categories option,
.faq_category option {
    padding: 5px !important;
}

.mce-widget button {
    background: inherit !important;
}

.mce-btn.mce-active button,
.mce-btn.mce-active:hover button,
.mce-btn.mce-active i,
.mce-btn.mce-active:hover i {
    color: #6d6565 !important;
}

.post_files.hidden-field {
    display: none;
}

.current_thumbnail img {
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    display: block;
    margin-top: 20px;
}

.current_thumbnail {
    position: relative;
}

.remove_thumbnail {
    position: absolute;
    top: 6px;
    right: 10px;
    background: #FFF;
    padding: 2px 3px;
    border-radius: 5px;
    border: 1px solid #dddddd;
    cursor: pointer;
}

.post-filter-row label {
    padding-bottom: 0px;
    position: relative;
    right: -5px;
}

.post-filter-row * {
    direction: rtl;
    text-align: right;
}

.post-list-wrapper #post_search_btn {
    text-align: center;
    top: -15px !important;
}

.post-list-wrapper .row {
    gap: 15px;
}

.list-all-categories-wrapper {
    padding: 5px 10px;
}

#add-category-form {
    padding: 5px;
}

#add-category-form .select2-container .select2-selection__arrow {
    left: 7px;
    right: inherit;
}

#add-category-form .select2-container {
    width: 100% !important;
}

#add-category-form label {
    padding-bottom: 10px;
}

.category-page-wrapper h5 {
    font-weight: bolder;
    color: black;
}

#all-categories-list ul {
    padding-right: 15px;
}

#all-categories-list {
    line-height: 30px;
    margin-top: 15px;
}

.list-all-categories-wrapper tbody tr td:first-child {
    padding-right: 30px !important;
}

.category-page-wrapper thead tr th:first-child {
    text-align: right !important;
    padding-right: 15px;
}

.category-page-wrapper thead tr th:last-child {
    text-align: left !important;
    padding-left: 15px;
}

.category-page-wrapper thead tr th {
    color: #FFF;
}

.category-page-wrapper tbody tr,
.category-page-wrapper tbody td {
    background: #FFF !important;
    text-align: right !important;
    padding-right: 20px;
}

.category-page-wrapper tbody td {
    box-shadow: none !important;
}

body.page-template-plans-page footer {
    display: none !important;
}

.plans-head-title {
    text-align: center;
    font-weight: bolder;
    padding-bottom: 0px;
    padding-top: 20px;
    padding-bottom: 50px;
    font-size: 30px;
}

.plans-type-value span {
    background: var(--primary);
    color: #FFF;
    padding: 4px 15px;
    border-radius: 32px;
    font-size: 14px;
    position: relative;
    top: -2px;
}

.package-wrapper {
    border-radius: 12px;
    background: #FFF;
    box-shadow: -4px 4px 25px -4px rgba(0, 0, 0, 0.03);
}

.package-top,
.package-features,
.package-order-button {
    padding: 20px;
}

.package-order-button button:active,
.package-order-button button:focus {
    color: #FFF !important;
}

.package-head-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
}

.package-head-title .package-title {
    border-radius: 24px;
    background: #EFFCF6;
    display: block;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-right: 15px;
    padding-left: 15px;
    font-size: 14px;
    font-weight: 700;
    color: #004440;
    margin-bottom: 0;
}

.package-price {
    font-size: 23px;
    font-weight: bolder;
    color: #000000;
    margin-bottom: 0px;
    text-align: right;
}

.free-package .package-price {
    font-size: 35px;
    font-weight: 600;
}

.free-package .package-order-button a {
    border-color: #7d7979;
    color: #7d7979;
}

.free-package .package-order-button a:hover {
    background: #7d7979;
}

.price-number {
    font-size: 35px;
    font-weight: 500;
    padding-left: 5px;
}

.package-top {
    border-bottom: 1px solid #F0F4F8;
    margin-bottom: 0px;
}

.package-features {
    margin-bottom: 0px;
    padding-right: 10px;
    padding-left: 10px;
}

.package-features-item {
    font-size: 14px;
    font-weight: 300;
    line-height: 42px;
    color: #2F2F2F;
    padding-right: 5px;
    padding-left: 5px;
}

.package-order-button {
    text-align: center;
}

.package-order-button button {
    width: 100%;
    padding: 13px 20px !important;
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    font-size: 16px !important;
}

.package-order-button button:hover {
    background: var(--primary) !important;
    color: #FFF !important;
    border-color: var(--primary) !important;
}

.status-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    margin-right: 8px;
    margin-left: 8px;
}

.status-circle.green {
    background: #28a745;
}

.status-circle.red {
    background: #dc3545;
}

.status-circle img {
    filter: brightness(10);
    width: 9px !important;
    height: 9px !important;
}

.register-login-link span {
    color: var(--body);
}

.register-login-link a {
    color: var(--primary);
}

#verify-section #timer {
    text-align: center;
    padding-top: 10px;
    font-size: 16px;
}

#verify-section #resend-code-btn {
    text-align: center;
    background: none;
    border: none;
    width: 100%;
    padding-top: 10px;
    color: var(--primary);
}

.register-field input.disabled,
.register-submit button[type="button"].disabled,
.login-field input.disabled,
.reset-field input.disabled,
.login-submit button[type="button"].disabled,
.reset-submit button[type="button"].disabled {
    pointer-events: none;
    cursor: default;
}

.reset-field label {
    padding-bottom: 15px;
}

.checklist-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
}

.checklist-item {
    flex: 0 0 250px;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
    margin-bottom: 20px;
}

.checklist-item a {
    height: inherit !important;
    padding: 12px 20px !important;
    margin-top: 10px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
}

.checklist-intro {
    text-align: right;
    margin-bottom: 35px;
    font-size: 14px;
    font-weight: bold;
    background: #386e86;
    border-radius: 6px;
    padding: 9px 15px;
    color: #FFF;
    line-height: 30px;
}

.checklist-icon {
    font-size: 26px;
    margin-bottom: 10px;
}

.checklist-label {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.checklist-status {
    margin-bottom: 10px;
    font-size: 14px;
}

.payment-result {
    max-width: 560px;
    margin: 70px auto;
    padding: 30px 30px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
    box-shadow: 0 20px 40px rgb(0 0 0 / 3%);
    position: relative;
    overflow: hidden;
    flex-direction: column;
}

.payment-result::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
}

.payment-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
}

.payment-message {
    color: #1f2937;
}

.payment-result.success {
    background: #f0fdf4;
}

.payment-result.success::before {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.payment-result.success .payment-icon {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
}

.payment-result.success .payment-icon::before {
    content: "✓";
}

.payment-result.failed {
    background: #fef2f2;
}

.payment-result.failed::before {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.payment-result.failed .payment-icon {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #ffffff;
}

.payment-result.failed .payment-icon::before,
.payment-result.success .payment-icon::before {
    content: "✕";
    padding-top: 10px;
}

.top-bar-nav {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1;
    background: #FFF;
    margin-right: 288px;
    direction: ltr;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    box-shadow: 4px 10px 10px #f4f4f4;
    margin-bottom: 15px;
    z-index: 2;
}

main {
    padding-top: 90px;
}

.top-bar-nav .profile {
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin-top: 2px;
    background: #F9F9F9 !important;
}

.profile svg {
    stroke: #FFF !important;
    z-index: 1;
    position: relative;
    top: 7px;
    padding: 0px !important;
}

.top-bar-nav .profile svg {
    stroke: var(--primary) !important;
}

html[data-placement='vertical'] .nav-container .nav-content .user-container .user-menu.wide.show {
    z-index: 10000 !important;
    right: -52px !important;
}

html[data-placement='vertical'] .nav-container .nav-content .user-container .dropdown-menu,
html[data-placement='horizontal'] .nav-container.mobile-side-ready .nav-content .user-container .dropdown-menu,
html[data-placement='vertical'] .nav-container.mobile-side-ready .nav-content .user-container .dropdown-menu {
    margin-top: 0px !important;
    right: -54px !important;
}

html[data-placement=horizontal] .nav-container .user-container .user .profile {
    display: block !important;
}

.top-bar-nav .notification-pan {
    position: relative;
    top: 7px;
    padding-left: 15px;
    margin-bottom: 0px;
}

.top-bar-nav .user-container .user-menu {
    line-height: 26px;
    padding-right: 15px;
    padding-left: 15px;
    margin-left: 8px !important;
    margin-top: 3px !important;
    border: 1px solid #dcdcdc;
}

.top-bar-nav .user-container .user-menu ul {
    padding: 0px;
}

.top-bar-nav .user-container .name {
    color: var(--primary);
}

.top-bar-nav .user-container li:last-child {
    width: 100%;
    direction: rtl !important;
}

.notification-pan #notifications {
    left: 7px !important;
    top: -6px !important;
    line-height: 26px;
    padding-right: 15px;
    padding-left: 15px;
}

.expire_day_left {
    background: red;
    border-radius: 3px;
    color: #FFF;
    min-width: 40px;
    height: 20px;
    line-height: 20px;
    position: absolute;
    top: -9px !important;
    right: -40px !important;
    direction: rtl !important;
    font-size: 12px;
    padding-right: 5px;
    padding-left: 5px;
}

.renew_subscription_btn a {
    background: red;
    border-radius: 3px;
    color: #FFF;
    min-width: 90px;
    line-height: 20px;
    direction: rtl !important;
    font-size: 12px;
    padding: 5px 10px;
    position: relative;
    top: -1px;
}

.renew_subscription_btn a:hover {
    background: #dd0808;
}

.nav-container .nav-shadow {
    display: none !important;
}

.nav-container {
    border-radius: 0px !important;
    box-shadow: 4px 10px 10px #f4f4f4;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

html[data-placement='horizontal'] .nav-container {
    height: 50px;
}

#mobileMenuButton:hover {
    color: var(--primary) !important;
}

#mobileMenuButton {
    background: #FFF !important;
    box-shadow: none !important;
    color: #575454 !important;
}

.renew-page-wrapper {
    padding: 2rem 0;
}

.subscription-status {
    text-align: center;
    padding: 1rem;
    border-radius: 15px;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.subscription-status-icon {
    margin-bottom: 1.5rem;
}

.subscription-status.active .subscription-status-icon svg {
    color: #4caf50;
}

.subscription-status.expired .subscription-status-icon svg {
    color: #c62828;
}

.subscription-status-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
}

.subscription-status.active .subscription-status-title {
    color: #2e7d32;
}

.subscription-status.expired .subscription-status-title {
    color: #c62828;
}

.subscription-status-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center !important;
}

.days-count {
    min-width: 30px;
    font-size: 16px;
    font-weight: 700;
    color: #2e7d32;
    border: 2px solid #2e7d32;
    padding: 6px !important;
    line-height: 16px !important;
    background: #fff;
    border-radius: 50px;
    display: inline-block;
    margin: 0 0.5rem;
}

.subscription-status-note {
    text-align: center !important;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px dashed #ddd;
}

.urgent-message {
    font-size: 1.2rem;
    color: #d32f2f;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: center;
    padding: 1.5rem;
    background: #fff3f3;
    border-radius: 10px;
    border-right: 4px solid #f44336;
    text-align: center !important;
}

.renew-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    background-color: var(--primary);
    transition: .4s !important;
    font-size: 14px;
    padding: 10px;
    border: none;
    color: #FFF;
    padding-right: 20px;
    padding-left: 20px;
    border-radius: 5px !important;
}

.renew-btn:hover {
    background: var(--secondary);
    color: #FFF;
}

.renew-btn-icon {
    height: 24px;
    line-height: 25px;
    margin-left: 7px !important;
    padding: 0px !important;
    font-size: 23px !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.subscription-status.expired .status-icon {
    animation: pulse 2s infinite;
}

.profile-avatar-wrapper {
    text-align: center;
    width: 100%;
    padding-top: 45px;
    padding-bottom: 15px;
}

.profile-avatar {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image {
    background: #F9F9F9;
    padding: 25px 30px;
    padding-bottom: 10px;
    border-radius: 200px;
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.profile-avatar.active-profile-image .profile-image {
    padding: 0px;
}

.profile-image img {
    max-width: 100px;
    height: 100px;
    display: block;
}

.profile-image svg {
    margin-top: 10px;
    stroke: var(--primary);
}

.profile-avatar .camera-icon-profile {
    margin-top: -17px;
    margin-right: -45px;
}

.profile-avatar-add-avatar,
.profile-avatar-remove-avatar {
    margin-top: -15px;
    font-size: 15px;
}

.profile-avatar-wrapper i {
    color: var(--primary) !important;
}

.profile-avatar-add-avatar:hover,
.profile-avatar-remove-avatar:hover {
    color: var(--primary) !important;
}

.profile-avatar.active-profile-image svg {
    display: none !important;
}

.mobile-user-container .profile,
.top-bar-nav .profile,
html[data-placement='vertical'] .nav-container .nav-content .user-container .user .profile,
html[data-placement='horizontal'] .nav-container.mobile-side-ready .nav-content .user-container .user .profile,
html[data-placement='vertical'] .nav-container.mobile-side-ready .nav-content .user-container .user .profile {
    overflow: hidden;
}

html[data-placement='vertical'] .nav-container .nav-content .user-container .user .profile img,
html[data-placement='horizontal'] .nav-container.mobile-side-ready .nav-content .user-container .user .profile,
html[data-placement='vertical'] .nav-container.mobile-side-ready .nav-content .user-container .user .profile img,
html[data-placement='vertical'] .nav-container .nav-content .user-container .user .profile img,
html[data-placement='horizontal'] .nav-container.mobile-side-ready .nav-content .user-container .user .profile img,
html[data-placement='vertical'] .nav-container.mobile-side-ready .nav-content .user-container .user .profile img {
    max-width: 50px;
}

html[data-placement='vertical'] .nav-container .nav-content .user-container .user .profile,
html[data-placement='horizontal'] .nav-container.mobile-side-ready .nav-content .user-container .user .profile,
html[data-placement='vertical'] .nav-container.mobile-side-ready .nav-content .user-container .user .profile {
    margin-right: 8px;
}

html[data-placement='horizontal'] .nav-container .dropdown-menu a,
html[data-placement='vertical'] .nav-container .dropdown-menu a {
    display: block;
    padding-bottom: 0px;
}

.top-bar-nav .profile img,
.mobile-user-container .profile img {
    max-width: 30px;
    border-radius: 20px;
}

.nav-content .user-container .user-menu.show li:last-child,
.mobile-buttons-container .dropdown-menu li:last-child {
    margin-bottom: 0px;
}

.nav-content .user-container .user-menu.show li {
    margin-bottom: 5px;
}

.mobile-buttons-container .dropdown-menu li {
    margin-bottom: 20px;
}

#scrollSpyMenu li a,
html .nav-container .mobile-buttons-container .dropdown-menu li a {
    display: block;
    padding-bottom: 10px;
}

.faq_actions button {
    border: none;
    background: none;
}

.faq_actions {
    text-align: left;
    margin-bottom: -25px;
    padding-left: 20px;
    position: relative;
    top: -3px;
}


body.page-template-contracts-list .task-actions button:first-child {
    position: relative;
    top: 0px;
    padding: 7px !important;
}

@media (max-width: 768px) {
    table thead {
        display: none;
    }

    table,
    table tbody,
    table tr,
    table td {
        display: block;
        width: 100%;
    }

    table tbody tr {
        padding: 14px;
        margin: 0 0 12px 0 !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
        border-radius: 10px;
    }

    table tbody td {
        padding: 8px 0;
        white-space: normal;
    }

    table tbody td:first-child,
    table tbody td:last-child {
        border-radius: 0;
    }

    .task-actions {
        justify-content: flex-start;
        margin-top: 10px;
    }

    footer {
        padding-right: 20px !important;
    }
}

@media (max-width: 991px) {
    .page-title-container {
        margin-top: 20px;
    }

    .tour-col {
        top: 0px;
    }

    body.home .tour-col {
        margin-top: -20px !important;
    }

    .home-task-stats-widget {
        padding-top: 85px;
        margin-bottom: -15px;
    }

    .user-today-tasks-widget {
        margin-bottom: 40px !important;
    }

    .contact_filters,
    .top_filters {
        padding-top: 20px;
    }

    .contacts_top_filter {
        padding-top: 20px;
        width: 63%;
    }

    .company-toolbar-search input#keyword {
        margin-bottom: 10px;
    }

    .top-bar-nav {
        display: none !important;
    }

    .mobile-user-container .profile svg {
        stroke: #575454 !important;
    }

    .mobile-user-container .profile svg:hover {
        stroke: var(--primary) !important;
    }

    .mobile-user-container .profile {
        width: 36px;
        height: 36px;
        line-height: 36px;
        margin-top: 2px;
        background: #FFF !important;
        margin-right: 5px !important;
    }

    html .mobile-user-menu {
        line-height: 40px;
        padding-top: 5px !important;
        padding-bottom: 10px !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
        margin-left: 4px !important;
        margin-top: 3px !important;
        border: 1px solid #dcdcdc !important;
        box-shadow: none !important;
    }

    .mobile-buttons-container {
        direction: ltr !important;
    }

    .mobile-user-container {
        padding-left: 5px;
    }

    html .mobile-user-menu .name,
    html .mobile-user-menu a:hover {
        color: var(--primary);
    }

    html .mobile-user-menu a {
        color: var(--body) !important;
    }

    .mobile-menu-icons {
        margin-top: 25px !important;
        padding-left: 0px !important;
    }

    .subscription-status {
        padding: 2rem 1rem;
    }

    .subscription-status-title {
        font-size: 1.8rem;
    }

    .subscription-status-message {
        font-size: 1rem;
    }

    .days-count {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {

    .company-search-input,
    .company-search-btn {
        margin-bottom: 25px;
    }

    .fc-toolbar-chunk {
        width: 100%;
        margin-bottom: 15px;
        margin-top: 15px;
    }

    .fc .fc-toolbar.fc-header-toolbar {
        display: block;
        width: 100%;
        text-align: center;
    }

    .timesheet-main-wrapper form>div label,
    .timesheet-main-wrapper input[type="checkbox"]+label {
        padding-top: 10px;
    }

    .task-list-wrapper .select2-container {
        width: 100% !important;
    }

    .login-form,
    .reset-form,
    .register-form {
        max-width: 96%;
    }

    .task_status_icon,
    .doc_status_icon {
        margin-top: 20px;
        display: inline-block;
    }

    .home-task-stats-widget .row .col-md-8 {
        display: inline-block;
        width: 70%;
    }

    .home-task-stats-widget .row .col-md-4 {
        display: inline-block;
        width: 30%;
        text-align: left;
        margin-top: -20px;
    }

    .home-doc-stats-widget .col-md-3 {
        width: 24%;
    }

    .doc_status_icon {
        margin-top: 0px;
        float: left;
        margin-left: -15px;
    }

    .home-doc-stats-widget .col-md-3:last-child {
        margin-left: 0px;
        padding-left: 0px;
    }

    .home-doc-stats-widget .small-title {
        margin-top: 20px;
    }

    .words-elders {
        margin-top: -10px;
    }

    .words-elders-content {
        margin-bottom: -20px;
    }

    .faq-tabs-tab .col-md-12 {
        display: flex;
        justify-content: center;
    }

    .faq-tabs-tab svg {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #DDD;
        padding: 15px;
        width: 60px;
        height: 60px;
        border-radius: var(--border-radius-md);
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .faq-tabs-tab .nav-tabs .nav-item a.active svg,
    .faq-tabs-tab .nav-tabs .nav-item a:hover svg {
        border-color: var(--primary);
    }

    .faq-tabs-tab {
        position: relative;
        top: 140px;
        z-index: 1;
        margin-top: -130px;
        background: #FFF;
        margin-right: 0px;
        margin-left: 0px;
    }

    .faq-tabs-tab .nav-tabs .nav-item a {
        text-align: center;
        padding: 10px !important;
    }

    .faq-tabs-tab .nav-tabs li {
        padding: 0px !important;
    }

    .faq-tabs-tab .nav-tabs li:first-child {
        padding-right: 10px !important;
    }

    .faq-tabs-tab .nav-tabs li {
        margin-bottom: 10px !important;
    }

    .faq-tabs-tab-level-3 {
        padding-bottom: 0px !important;
        margin-bottom: 0px !important;
    }

    .faq-tabs-tab-level-3 .nav-item {
        margin-bottom: 10px !important;
        margin-right: 0px !important;
        padding-right: 0px !important;
    }

    .faq-page_wrapper {
        padding-top: 150px;
    }

    #add_contract_form .col-md-3,
    #edit_contract_form .col-md-3,
    #add_contract_form .col-md-6,
    #edit_contract_form .col-md-6 {
        margin-bottom: 15px;
    }

    #add_contract_form .fileuploads,
    #edit_contract_form .fileuploads {
        margin-top: 15px;
        margin-bottom: 25px !important;
    }

    #add_contract_form br,
    #edit_contract_form br {
        display: none;
    }

    .contract_payment_row .col-md-9 {
        width: 70%;
    }

    .contract_payment_row .col-md-2 {
        width: 20%;
    }

    .contract_payment_row .col-md-1 {
        width: 10%;
    }

    .contract_payment_row {
        margin-bottom: 0px;
    }

    #add_contract_form button.sub-btn,
    #edit_contract_form button.sub-btn {
        margin-top: 30px;
    }

    .contract-list,
    .all-time-report-list,
    .post-list-wrapper {
        overflow: scroll;
    }

    .contact_character_filters ul li {
        margin-bottom: 15px;
    }

    .contact_list_items .col-md-3 {
        width: 50%;
        margin-bottom: 25px;
    }

    .contact_list_items {
        margin-bottom: -6px;
    }

    .contact_filters,
    .top_filters {
        width: 33%;
    }

    .contacts_top_filter {
        width: 67%;
    }

    .all-time-report-list .bulkactions {
        margin-top: 20px;
    }

    .home-doc-stats-widget .col-md-6 {
        width: 20%;
    }

    .home-doc-stats-widget .col-md-2 {
        width: 26%;
    }

    .package-wrapper {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .task-list-wrapper form>div {
        width: 49% !important;
    }

    .task-list-wrapper form>div.deadline {
        width: 22% !important;
    }

    .task-list-wrapper table {
        width: 900px !important;
    }

    .task-list-wrapper {
        overflow-x: scroll;
    }

    .faq-tabs-tab .nav-tabs li {
        padding-right: 0px !important;
    }

    .home-doc-stats-widget .col-md-6 {
        width: 22%;
    }

    .home-doc-stats-widget .col-md-2 {
        width: 24%;
    }
}

/* ════════════════════════════════════════════════════════════
   Cart Kanban Board
════════════════════════════════════════════════════════════ */

/* Add Cart main button (outside top_filters to avoid bg:inherit override) */
.btn-cart-add-main {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    padding: 9px 22px;
    font-size: 14px;
    border-radius: var(--border-radius-md, 4px);
}

.btn-cart-add-main:hover {
    background: var(--primary-darker, var(--primary)) !important;
}

.btn-kariz-add {
    padding: 9px 22px;
    font-size: 14px;
    border-radius: var(--border-radius-md, 4px);
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.btn-kariz-add:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* Board outer (flex for scroll buttons on mobile) */
.kanban-board-outer {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
}

/* Scroll buttons — همیشه نمایش (برای کاریزهای اضافی) */
/* دکمه‌های ناوبری — همیشه در دو طرف بورد، چسبیده به بالا */
.kanban-scroll-btn,
.kanban-nav-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid var(--primary, #7d2a8a);
    border-radius: var(--border-radius-sm, 3px);
    color: var(--primary, #7d2a8a);
    cursor: pointer;
    position: absolute;
    top: 50%;
    align-self: flex-start;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.kanban-scroll-btn:hover,
.kanban-nav-btn:hover {
    background: var(--primary, #7d2a8a);
    color: #fff;
}

.kanban-scroll-prev {
    right: 4px;
}

.kanban-scroll-next {
    left: 4px;
}

/* Board */
.kanban-board {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    flex: 1;
    min-width: 0;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.kanban-board::-webkit-scrollbar {
    height: 5px;
}

.kanban-board::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-board::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Column */
.kanban-column {
    flex: 1 1 0;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

/* Column header — کادر کامل مستقل (مطابق Figma) */
.kanban-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border: 1px solid var(--primary);
    border-radius: var(--border-radius-md, 4px);
    background: none;
    margin-bottom: 8px;
}

.kanban-col-title {
    font-weight: bold;
    font-size: 14px;
    color: var(--primary);
}

.kanban-col-count {
    font-size: 13px;
    color: var(--primary);
}

.btn-kariz-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    color: #aaa;
    border-radius: 4px;
    transition: color .15s, background .15s;
    margin-right: auto;
    flex-shrink: 0;
    transform: scale(1.3);
    padding: 0px;
    margin-left: 0px;
}

.btn-kariz-delete:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, .08);
}

#team_kariz_list .btn-kariz-delete {
    margin-left: 0px !important;
    padding: 10px !important;
}

/* Column body — بدون border خارجی، فقط کارت‌ها */
.kanban-col-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 60px;
    flex: 1;
}

.kanban-col-body.sortable-over .kanban-card:last-child {
    margin-bottom: 4px;
}

/* Card — flex-column so bottom section always sticks to bottom */
.kanban-card {
    background: #fff;
    border-radius: var(--border-radius-md, 4px);
    padding: 10px 12px 12px;
    transition: box-shadow 0.2s ease;
    position: relative;
    border: 1px solid #e0e0e0;
    margin-top: 7px;
    min-height: 139px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.kanban-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    border-color: var(--primary, #7d2a8a);
}

/* Bottom section — pushed to end */
.kanban-card-bottom {
    margin-top: auto;
    padding-top: 0px;
    margin-bottom: -3px;
    border-top: 1px solid #f0f0f0;
}

/* Task count badge */
.cart-task-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 4px;
}

/* Card drag states */
.kanban-card-ghost {
    opacity: 0.4;
    background: #ede7f6;
}

.kanban-card-chosen {
    box-shadow: 0 4px 16px rgba(125, 42, 138, 0.2);
}

.kanban-card-drag {
    opacity: 0.95;
}

/* Card top row: priority (right) + kebab (left, flex-end in RTL) */
.kanban-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    min-height: 20px;
}

/* Priority dot */
.cart-priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.cart-priority-dot.priority-high {
    background: #df3951;
}

.cart-priority-dot.priority-medium {
    background: #ffb800;
}

.cart-priority-dot.priority-low {
    background: #28a536;
}

/* Kebab menu button */
.kanban-card-menu {
    margin-inline-start: auto;
}

.btn-kebab {
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 1px 0px;
    color: #000000;
    border-radius: var(--border-radius-sm, 3px);
    line-height: 1;
    transition: color 0.15s, background 0.15s !important;
    display: inline-flex;
    align-items: center;
    position: relative;
    left: -7px;
}

.kanban-card-menu .dropdown-menu {
    left: 5px !important;
    top: 4px !important;
    box-shadow: 0 2px 12px rgb(0 0 0 / 7%) !important;
    border: none;
}

.kanban-card-menu .dropdown-menu svg {
    transform: scale(1.1);
    position: relative;
    right: -6px;
}

.kanban-card-menu svg {
    transform: scale(1.5);
}

.btn-kebab:hover,
.btn-kebab:focus {
    outline: none;
}

/* Card title (drag handle) */
.kanban-card-title {
    font-size: 14px;
    font-weight: bold;
    color: #4E4E4E;
    line-height: 1.5;
    margin-bottom: 8px;
    direction: rtl;
    text-align: right;
    cursor: grab;
    user-select: none;
}

.kanban-card-title:active {
    cursor: grabbing;
}

/* Card info rows */
.kanban-card-row {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
    margin-top: 9px;
}

.kc-assignee {}

/* مهلت تاریخ روی کارت */
.kc-deadline {
    font-size: 12px;
    color: #777;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-top: 10px;
    margin-bottom: 10px;
}

.kc-deadline svg {
    flex-shrink: 0;
    color: var(--primary, #7d2a8a);
}

.kc-name {
    font-size: 13px;
    color: #4e4e4e;
}

/* لیست وظایف در مودال نمایش (view mode) */
.cart-tasks-list-view {
    display: flex;
    flex-direction: column;
    gap: 6px;
    direction: rtl;
}

.cart-task-view-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f0f7ff;
    border-radius: var(--border-radius-md, 4px);
    border: 1px solid #cce3f9;
    text-decoration: none;
    color: #1d4ed8;
    direction: rtl;
    text-align: right;
    font-size: 13px;
    transition: background 0.15s;
}

.cart-task-view-item:hover {
    background: #dbeafe;
    color: #1d4ed8;
    text-decoration: none;
}

.cart-task-view-item span {
    flex: 1;
}

.cart-task-icon {
    color: var(--primary, #7d2a8a);
    flex-shrink: 0;
}

.cart-task-arrow {
    flex-shrink: 0;
}

/* Assignee avatar */
.cart-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e8e8e8;
    display: inline-block;
}

.cart-avatar-initials {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--primary, #7d2a8a);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
}

/* Label badge روی کارت */
.cart-label-badge {
    display: inline-block;
    padding: 3px 15px;
    border-radius: var(--border-radius-sm, 3px);
    font-weight: bold;
    font-size: 12px;
}

.cart-label-bug {
    background: #fde8eb;
    color: #c0223a;
}

.cart-label-feature {
    background: #dbeafe;
    color: #1d4ed8;
}

.cart-label-improvement {
    background: #dcfce7;
    color: #166534;
}

.cart-label-blocker {
    background: #fff3cd;
    color: #92400e;
}

/* Card title cursor (کلیک برای جزئیات) */
.kanban-card-clickable {
    cursor: pointer;
}

.kanban-card-clickable:hover {
    color: var(--primary, #7d2a8a);
}

/* Avatar — مثل navbar */
.cart-avatar.profile-avatar-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

/* Add placeholder */
.kanban-add-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px;
    border: 1.5px dashed #7E7E7E;
    border-radius: var(--border-radius-md, 4px);
    color: #7E7E7E;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    margin-top: 15px;
    user-select: none;
    direction: rtl;
    min-height: 72px;
}

.kanban-add-placeholder:hover {
    border-color: var(--primary, #7d2a8a);
    color: var(--primary, #7d2a8a);
}

/* Cart filter dropdown override */
.cart-filter-dropdown.dropdown-menu {
    min-width: 295px !important;
}

/* Cart modal — plain input style matching Figma */
#cartModal .form-label {
    font-weight: bold;
    font-size: 13px;
    color: #444;
    margin-bottom: 4px;
    display: block;
}

#cartModal .form-control {
    border-radius: var(--border-radius-md, 4px);
    font-size: 14px;
}

/* Delete modal centered text */
#cartDeleteModal .modal-body p {
    line-height: 1.8;
}

#cart_description_input_ifr.disabled {
    pointer-events: none;
}

.modal-body .select2-selection__clear {
    display: none !important;
}

.modal-body .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered .select2-search__field {
    padding-right: 0px;
}

#cart_tasks_edit_section small {
    text-align: right !important;
    padding-top: 10px;
}

body.page-template-company-profile-page .edit-modal-content .company_whatsapp_field_company i {
    top: 40px !important;
}

body.page-template-company-profile-page .Edit_CompanyModal_Ajax .tab-pane {
    padding-right: 10px;
    padding-left: 10px;
}

body.page-template-company-profile-page .Edit_CompanyModal_Ajax .col-md-12 {
    margin-top: 0px !important;
}

body.page-template-company-profile-page .Edit_CompanyModal_Ajax .col-md-12 .row {
    padding-right: 15px !important;
    padding-left: 15px !important;
}

body.page-template-company-profile-page .Edit_CompanyModal_Ajax .modal-body {
    overflow-x: hidden !important;
    padding-top: 20px;
    padding-bottom: 20px;
}

body.page-template-company-profile-page .Edit_CompanyModal_Ajax .modal-body .actions label {
    padding-bottom: 10px;
    padding-right: 2px;
    padding-left: 2px;
}

body.page-template-company-profile-page .Edit_CompanyModal_Ajax .col-md-6 {
    padding-left: 10px;
    padding-right: 10px;
}

#cpPostponeDateDisplay {
    background: #FFF !important;
}

#CpPostponeModal .modal-body {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .kanban-column {
        flex: 0 0 280px;
    }
}

@media (max-width: 575px) {
    .kanban-column {
        flex: 0 0 calc(100vw - 90px);
        min-width: calc(100vw - 90px);
    }
}

/* ── Task Date & Type Filter Pills ─────────────────────────── */
.task-date-filter-pills {
    padding-right: 12px;
    padding-left: 12px;
    display: flex;
    gap: 0px;
}

.task-date-filter-pills button {
    background: none !important;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    border-radius: 0px !important;
    border-left: 0px !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    font-size: 14px !important;
}

.task-type-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    align-items: center;
    padding-right: 0px;
    padding-left: 12px;
    margin-top: 30px !important;
    margin-bottom: 10px !important;
}

.task-type-filter-pills button {
    background: none !important;
    color: var(--alternate) !important;
    border-radius: 0px !important;
    border-left: 0px !important;
    padding-right: 11px !important;
    padding-left: 11px !important;
    font-size: 14px !important;
}

.task-date-pill:first-child {
    border-top-right-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
}

.task-date-pill:last-child {
    border-left: 1px solid var(--primary) !important;
    border-top-left-radius: 5px !important;
    border-bottom-left-radius: 5px !important;
}

.task-date-pill,
.task-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}

.task-date-pill:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.task-type-filter-pills button:hover {
    color: var(--primary) !important;
    font-weight: bold !important;
}

button.task-type-pill.active {
    color: var(--primary) !important;
    font-weight: bold !important;
}

.task-date-pill.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.task-type-pill.active svg {
    stroke: var(--primary) !important;
}

.task-type-pill-icon svg,
.task-date-pill-icon svg {
    transform: scale(1.3);
}

.task-type-pill-icon,
.task-date-pill-icon {
    display: inline-flex;
    align-items: center;
    padding-left: 6px;
}

/* ── Task Type Icon Column ──────────────────────────────────── */
.task-type-icon-cell,
.task-date-icon-cell {
    text-align: center !important;
    padding: 8px 10px !important;
    min-width: 36px;
}

.task-type-icon-cell svg,
.task-date-icon-cell svg {
    color: var(--primary);
    stroke: var(--primary);
    vertical-align: middle;
}

td.task-type-icon-cell svg {
    transform: scale(1.5);
    position: relative;
    top: -2px;
}

/* ── Responsible filter buttons ─────────────────────────────── */
.task-responsible-filter .btn {
    text-align: right;
    font-size: 14px;
}

/* ── Select2 for task type in forms ────────────────────────── */
.select2BasicTaskType+.select2-container {
    min-width: 100% !important;
    max-width: 100% !important;
}

#task-filters-pane input[type="text"] {
    line-height: 26px !important;
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
}

#task-filters-pane input[type="text"]:focus {
    border-color: var(--primary) !important;
}

#task-filters-pane .btn,
#task-persons-pane .btn {
    box-shadow: none !important;
    border: 1px solid var(--primary);
}

#task-filters-pane .btn:hover,
#task-persons-pane .btn:hover {
    background: var(--primary) !important;
    color: #FFF !important;
}

#append_here_box label[for="just_time"] {
    margin-top: 0px !important;
    padding-top: 0px !important;
    position: relative !important;
    top: -5px !important;
}

#append_here_box tfoot tr td,
.all-time-report-list tfoot tr td {
    background: linear-gradient(135deg, var(--primary), var(--primary)) !important;
    padding: 10px !important;
    color: #ffffff;
    border: none !important;
}

#append_here_box tfoot tr td:first-child,
.all-time-report-list tfoot tr td:first-child {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
    border-right: 2px solid #570d70 !important;
    padding: 24px !important;
}

.all-time-report-list tfoot tr td:first-child {
    padding: 14px !important;
}

#append_here_box tfoot tr td:last-child,
.all-time-report-list tfoot tr td:last-child {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    border-left: 2px solid #570d70 !important;
}

.timesheet-main-wrapper .sub-btn {
    padding: 13px !important;
    border-radius: 6px !important;
}

#LogoutModal svg {
    stroke: #e30d0d !important;
    margin-right: -6px;
}

.task-do-time-field {
    border: 1px solid #dddddd;
    border-radius: 4px;
    background: #fff;
    cursor: text;
    direction: ltr;
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
}

.task-do-time-field input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.task-do-time-field input[type="number"]::-webkit-outer-spin-button,
.task-do-time-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.task-do-time-field input[type="number"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== Notification Bell ==================== */
.notification-bell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s;
    color: inherit;
    text-decoration: none !important;
    margin-left: 15px;
    margin-top: 4px;
    top: 1px;
}

.notification-bell-btn:hover {
    background: rgba(var(--primary-rgb, 105, 56, 239), 0.08);
}

#mobileNotificationBellBtn {
    margin-top: 0px;
    margin-left: 3px;
    top: -10px;
    padding: 6px;
}

.notification-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--danger, #dc3545);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
}

.desktop-notif-bell-pan {
    margin: 0;
    padding: 0;
}

.mobile-notif-bell-pan {
    margin: 0;
    padding: 0;
    margin-left: 0px;
    margin-right: 4px;
}

/* ==================== Notification Panel ==================== */
.notification-panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 10000;
    transition: opacity 0.25s;
}

.notification-panel-overlay.active {
    display: block;
}

.notification-panel {
    position: fixed;
    top: 0;
    left: -400px;
    width: 360px;
    max-width: 100vw;
    height: 100vh;
    background: var(--background, #fff);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.13);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transition: left 0.3s cubic-bezier(.4, 0, .2, 1);
    border-right: 1px solid var(--border-color, #e9ecef);
}

.notification-panel.open {
    left: 0;
}

/* Panel header */
.notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border-color, #e9ecef);
    flex-shrink: 0;
}

.notification-panel-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.notification-panel-close {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    opacity: 0.6;
    transition: opacity 0.2s, background 0.2s;
}

.notification-panel-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

/* Tabs */
.notification-panel-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 16px 0;
    border-bottom: 1px solid var(--border-color, #e9ecef);
    flex-shrink: 0;
}

.notif-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 6px 12px 8px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--muted, #6c757d);
    transition: color 0.2s, border-color 0.2s;
    font-family: inherit;
}

.notif-tab.active {
    color: var(--primary, #6938ef);
    border-bottom-color: var(--primary, #6938ef);
    font-weight: 600;
}

.notif-tab:hover:not(.active) {
    color: var(--body-color, #333);
}

/* Mark all row */
.notification-mark-all-row {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color, #e9ecef);
    text-align: left;
    flex-shrink: 0;
}

.notif-mark-all-link {
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary, #6938ef);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding-top: 10px;
    width: 100%;
}

.notif-mark-all-link:hover {
    opacity: 1;
    text-decoration: none;
}

/* Panel body / scrollable list */
.notification-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 0px 0;
}

.notif-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.notif-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted, #6c757d);
    font-size: 0.9rem;
}

/* Individual notification item */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, #e9ecef);
    transition: background 0.15s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: rgba(var(--primary-rgb, 105, 56, 239), 0.04);
}

.notif-item.is-read {
    opacity: 0.55;
}

.notif-item.is-read:hover {
    opacity: 0.75;
}

/* Avatar */
.notif-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notif-avatar-default {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
}

/* Content */
.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-message {
    font-size: 0.8rem;
    color: var(--body-color, #444);
    line-height: 1.45;
    margin-bottom: 4px;
}

.notif-time {
    font-size: 0.72rem;
    color: var(--muted, #6c757d);
    direction: ltr;
    text-align: right;
}

/* Read button */
.notif-read-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    color: var(--primary, #6938ef);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s, background 0.2s;
    margin-top: 0px !important;

}

.notif-read-btn:hover {
    opacity: 1;
    background: rgba(var(--primary-rgb, 105, 56, 239), 0.08);
}

.notif-read-btn.hidden {
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 768px) {
    .notification-panel {
        width: 100vw;
        left: -100vw;
    }

    .notification-panel.open {
        left: 0;
    }
}

/* ── Company Toolbar ───────────────────────────────────────────────────── */

/* ردیف اول: import/export سمت چپ */
.company-toolbar-row-1 {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.company-toolbar-left-btns {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* ردیف دوم: جستجو سمت راست، افزودن سمت چپ */
.company-toolbar-row-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.company-toolbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.company-toolbar-search form {
    width: 320px;
    max-width: 100%;
    padding-right: 0px;
}

.company-toolbar-add {
    flex-shrink: 0;
}

/* ── Company Import / Export ────────────────────────────────────────────── */
#ExportCompanyModal .actions label {
    padding-bottom: 6px;
}

.import_company_btn,
.export_company_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.import_company_btn {
    background: #e8f4fd;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.import_company_btn:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.export_company_btn {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.export_company_btn:hover {
    background: #dcfce7;
    color: #15803d;
}

/* Stepper */
.import-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    gap: 0;
    direction: rtl;
}

.import-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.import-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.import-step-item.active .import-step-circle {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}

.import-step-item.done .import-step-circle {
    background: #10b981;
    color: #fff;
}

.import-step-label {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.import-step-item.active .import-step-label {
    color: var(--primary);
    font-weight: 600;
}

.import-step-item.done .import-step-label {
    color: #10b981;
}

.import-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 8px;
    margin-bottom: 22px;
    min-width: 40px;
    max-width: 80px;
}

/* Upload area */
.import-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: #6b7280;
    margin-bottom: 16px;
    width: 100%;
}

.import-upload-area:hover,
.import-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), .04);
}

.import-upload-area.has-file {
    border-color: #10b981;
    background: #f0fdf4;
}

.import-upload-area svg {
    display: block;
    margin: 0 auto 12px;
}

.import-upload-area p {
    margin: 0;
    font-size: 14px;
}

.import-file-name {
    margin-top: 10px;
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}

/* Options */
.import-options-row {
    margin-bottom: 8px;
}

.import-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    direction: rtl;
}

.import-checkbox-label input {
    margin-top: 3px;
}

.import-checkbox-label small {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    position: relative;
    top: 3px;
}

/* Sample box */
.import-sample-box {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #78350f;
    margin-bottom: 16px;
    line-height: 1.8;
    direction: rtl;
}

.import-sample-link {
    color: #92400e;
    font-weight: 600;
    text-decoration: underline;
}

/* Preview toolbar: دکمه‌ها راست، آمار چپ */
.import-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* Summary */
.import-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0;
    direction: rtl;
}

.import-stat {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f3f4f6;
}

.import-stat.new {
    background: #d1fae5;
    color: #065f46;
}

.import-stat.dup {
    background: #fef3c7;
    color: #92400e;
}

.import-stat.inv {
    background: #fee2e2;
    color: #991b1b;
}

/* Table actions */
.import-table-actions {
    display: flex;
    gap: 8px;
    direction: rtl;
}

/* Preview table */
.import-table-wrapper {
    overflow-x: auto;
    max-height: 320px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.import-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    direction: rtl;
}

.import-preview-table {
    margin-top: -12px;
    padding: 10px !important;
}

.import-preview-table th,
.import-preview-table td {
    padding: 8px 12px;
    text-align: right;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
}

.import-preview-table thead th {
    background: linear-gradient(135deg, var(--primary), var(--primary)) !important;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.import-preview-table tbody tr:hover {
    background: #f9fafb;
}

/* Badges */
.import-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.import-badge-new {
    background: #d1fae5;
    color: #065f46;
}

.import-badge-dup {
    background: #fef3c7;
    color: #b45309;
}

/* Result */
.import-result-box {
    text-align: center;
    padding: 24px 16px;
    direction: rtl;
}

.import-result-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    padding-top: 10px;
}

.import-result-icon.success {
    background: #d1fae5;
    color: #065f46;
}

.import-result-stats {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* ─── Add Task Modal (all-tasks-list) ────────────────────────────────────── */
#AddTaskModal .atm-dialog {
    max-width: 1100px;
    width: 96vw;
    margin: 2vh auto;
    height: 94vh;
    max-height: 94vh;
}

#AddTaskModal .atm-content {
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.atm-layout {
    display: flex;
    height: 100%;
    overflow: hidden;
}

/* Form column (right in RTL) */
.atm-form-col {
    flex: 0 0 55%;
    max-width: 55%;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-left: 1px solid #e9ecef;
}

.atm-form-col .modal-header {
    flex-shrink: 0;
    padding: 14px 20px 10px;
}

.atm-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}

.atm-form-col .modal-footer {
    flex-shrink: 0;
    border-top: 1px solid #e9ecef;
}

.atm-lbl {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

/* Task type icon buttons */
.atm-type-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 4px;
}

.tox-tinymce {
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
}

.atm-type-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1.5px solid #dee2e6;
    background: #fff;
    cursor: pointer;
    color: #6c757d;
    transition: all .15s;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
}

.atm-type-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.atm-type-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.atm-type-btn svg {
    width: 17px;
    height: 17px;
}

/* File */
.atm-add-file-lbl {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.atm-file-lbl {
    font-size: 13px;
    color: #adb5bd;
}

/* Voice */
.atm-voice-bar {
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.atm-vbtn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: color .15s;
}

.atm-vbtn:hover {
    color: var(--primary);
}

.atm-v-rec {
    color: #dc3545 !important;
}

.atm-v-rec.atm-rec-active {
    animation: atm-pulse 1s ease-in-out infinite;
}

@keyframes atm-pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .25
    }
}

/* Calendar column (left in RTL) */
.atm-cal-col {
    flex: 0 0 45%;
    max-width: 45%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.atm-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4.3px 14px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
    background: #fff;
}

.atm-cal-nav {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 4px 6px;
    border-radius: 6px;
    line-height: 1;
    transition: background .15s;
}

.atm-cal-nav:hover {
    background: #f0f0f0;
}

.atm-cal-title-wrap {
    text-align: center;
}

.atm-cal-date {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.atm-cal-wday {
    font-size: 11px;
    color: #888;
    margin-top: 1px;
}

/* Calendar body / grid */
.atm-cal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background: #FFF;
}

.atm-cal-row:hover .atm-cal-hour-lbl,
.atm-cal-row:hover .atm-cal-slot {
    background: #FFF !important;
}

.atm-cal-grid {
    position: relative;
    padding: 0 8px;
}

.atm-ev.atm-ev-preview {
    height: 35px !important;
    margin-top: 8px;
    margin-left: 10px;
    padding-right: 10px !important;
    padding-left: 10px !important;
}

.atm-cal-row {
    display: flex;
    align-items: stretch;
    height: 52px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    position: relative;
}

.atm-cal-row:hover .atm-cal-slot {
    background: rgba(0, 0, 0, .02);
}

.atm-cal-hour-lbl {
    flex: 0 0 46px;
    font-size: 11px;
    color: #585353;
    padding-top: 4px;
    text-align: center;
    display: flex;
    align-items: center;
    padding-right: 2px;
}

.atm-cal-slot {
    flex: 1;
}

/* Events layer */
.atm-ev-layer {
    position: absolute;
    top: 0;
    right: 46px;
    left: 8px;
    pointer-events: none;
}

.atm-ev {
    position: absolute;
    right: 0;
    left: 0;
    border-radius: 5px;
    padding: 3px 11px;
    font-size: 11px;
    color: #fff;
    overflow: hidden;
    pointer-events: all;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--primary);
}

.atm-ev-saved {
    cursor: grab;
}

.atm-ev-saved:active,
.atm-ev-dragging {
    cursor: grabbing;
    opacity: .7;
}

.atm-ev-saved {
    height: 35px !important;
    margin-top: 8px;
    margin-left: 10px;
    background: #F9F9F9 !important;
    color: #7e7e7e !important;
    border: 1px solid #b4b3b3 !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
}

.atm-ev-preview {
    background: var(--primary) !important;
    border: 1px dashed rgb(255 255 255 / 60%);
    pointer-events: none;
}

.atm-ev-time {
    font-size: 10px;
    opacity: .85;
}

.atm-ev-title {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#atm_form .pwt-datepicker-input-element {
    border-top-right-radius: var(--border-radius-sm) !important;
    border-bottom-right-radius: var(--border-radius-sm) !important;
    background: #FFF !important;
    border-color: #dddddd !important;
}

#atm_form .input-group,
#atm_form .input-timesheet,
#atm_form .select2-container {
    box-shadow: 0 2px 12px rgb(165 165 165 / 7%) !important;
}

/* Two-field time inputs (HH : MM): let the hour/minute fields shrink so the
   digits and the colon stay aligned and never overflow onto the neighbor field. */
.atm-do-h,
.atm-do-m,
.atm-dur-h,
.atm-dur-m,
.at-time-h,
.at-time-m {
    min-width: 0 !important;
    flex: 1 1 0 !important;
    width: auto !important;
    box-sizing: border-box !important;
}

.form-check,
.form-check-label {
    cursor: pointer !important;
}

.atm-ev-saved .atm-ev-icon {
    margin-top: -9px;
    margin-right: -3px !important;
}

.atm-ev-saved .atm-ev-title,
.atm-ev-saved .atm-ev-time {
    font-size: 12px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .atm-layout {
        flex-direction: column;
    }

    .atm-form-col,
    .atm-cal-col {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .atm-cal-col {
        height: 280px;
    }

    #AddTaskModal .atm-dialog {
        height: auto;
        max-height: 95vh;
    }
}

/* ─── Add Task Modal — Supplement Styles ─────────────────────────────────── */

/* File dropzone */
.atm-file-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 14px 12px;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    color: #6c757d;
    font-size: 13px;
    transition: border-color .15s, background .15s;
    width: 100%;
}

.atm-file-dropzone:hover {
    border-color: var(--primary);
    background: rgba(127, 71, 221, .04);
    color: var(--primary);
}

.atm-file-dropzone svg {
    color: inherit;
}

.atm-file-dropzone small {
    font-size: 11px;
    opacity: .7;
}

/* File list items */
.atm-file-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.atm-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 12px;
}

.atm-file-icon {
    color: #6c757d;
    flex-shrink: 0;
}

.atm-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

.atm-file-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #adb5bd;
    padding: 2px;
    border-radius: 3px;
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color .12s;
}

.atm-file-remove-btn:hover {
    color: #dc3545;
}

/* Calendar event icon */
.atm-ev-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    margin-top: -10px;
    opacity: .9;
    transform: scale(1.5);
}

/* ─── Company Profile Page ──────────────────────────────────────────────────── */

/* Page header */
.cprofile-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    direction: rtl;
}

.cprofile-title-col {
    text-align: right;
    direction: rtl;
}

.cprofile-header-btns {
    display: flex;
    gap: 8px;
    align-items: center;
    direction: ltr;
}

.cprofile-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

/* ── Tab Navigation ───────────────────────────────────────────────────────── */
/* dir="rtl" is on the wrapper; ul uses flex row so first item (پروفایل) is rightmost */
.cprofile-tabs-wrapper {
    border-bottom: 2px solid #f0f0f0;
    padding: 1px 20px;
}

.cprofile-tabs {
    flex-wrap: nowrap;
    gap: 0;
    border-bottom: none;
    margin-bottom: -2px;
}

.cprofile-tabs .nav-item {
    direction: rtl;
}

.cprofile-tabs .nav-link {
    color: #AFAFAF;
    font-size: 14px;
    padding: 15px 20px !important;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
    font-weight: 400;
}

.cprofile-header-btns button {
    direction: rtl !important;
}

.cprofile-tabs .nav-link:hover {
    color: var(--primary, #7c3aed);
}

.cprofile-tabs .nav-link.active {
    color: var(--primary, #7c3aed);
    border-bottom-color: var(--primary, #7c3aed);
    font-weight: 700;
}

/* ── Tab Content ─────────────────────────────────────────────────────────── */
.cprofile-tab-content {
    padding: 25px 24px;
}

/* ── Tab 1: Profile ──────────────────────────────────────────────────────── */
/* dir="rtl" on row → identity on right, actions on left */
.cprofile-tab1-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 4px;
}

/* Contact identity — right side */
.cprofile-identity-col {
    display: flex;
    align-items: center;
    gap: 20px;
    direction: rtl;
}

.cprofile-contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #F9F9F9 !important;
    border: 1px solid #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cprofile-contact-icon svg {
    color: var(--primary, #7c3aed);
    width: 24px;
}

.cprofile-identity-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    direction: rtl;
}

.cprofile-display-name {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.cprofile-display-sub {
    font-size: 13px;
    color: #888;
}

.cprofile-level-badge {
    display: inline-block;
    background: #f3f0ff;
    color: var(--primary, #7c3aed);
    font-size: 11px;
    padding: 4px 15px;
    border-radius: 20px;
    width: fit-content;
}

/* Creator — center */
.cprofile-creator-col {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
}

.cprofile-creator-avatar img,
.cprofile-creator-avatar a img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ebebeb;
    display: block;
}

.cprofile-creator-no-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0ebff;
    border: 2px solid #ede9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #7c3aed);
    flex-shrink: 0;
}

.cprofile-creator-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cprofile-creator-info strong {
    font-size: 14px;
    color: #333;
}

.cprofile-creator-info span {
    font-size: 12px;
    color: #aaa;
}

/* Actions — left side (dir="ltr" so افزودن وظیفه on right, ... on left) */
.cprofile-actions-col {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    direction: rtl;
}

.cprofile-more-dropdown ul {
    padding: 5px !important;
}

.cprofile-more-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 10px;
    margin-right: 0px;
    color: #555 !important;
    cursor: pointer !important;
    line-height: 1;
}

.cprofile-more-dropdown ul a {
    padding-right: 10px;
    padding-left: 10px;
}

.cprofile-more-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* ── Tab 2: Info Grid ────────────────────────────────────────────────────── */
.cprofile-info-grid {
    display: flex;
    flex-direction: column;
    direction: rtl;
}

.cprofile-field-row {
    display: flex;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 16px;
}

.cprofile-field-row:last-child {
    border-bottom: none;
}

.cprofile-field-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: black;
    min-width: 120px;
    flex-shrink: 0;
    text-align: right;
}

.cprofile-field-label svg {
    flex-shrink: 0;
    opacity: 1;
    stroke: var(--primary);
    margin-left: 5px;
    transform: scale(1.2);
}

.cprofile-field-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    flex: 1;
}

.cprofile-field-value a {
    color: var(--primary, #7c3aed);
    text-decoration: none;
}

.cprofile-field-value a:hover {
    text-decoration: underline;
}

.cprofile-field-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;
}

.cprofile-copy-btn,
.cprofile-wa-btn,
.cprofile-sms-btn {
    background: none;
    border: none;
    padding: 5px 6px;
    cursor: pointer;
    color: #bbb;
    border-radius: 5px;
    line-height: 1;
    display: flex;
    align-items: center;
}

.cprofile-copy-btn:hover,
.cprofile-wa-btn:hover,
.cprofile-sms-btn:hover {
    color: var(--primary, #7c3aed);
    background: #f3f0ff;
}

.cprofile-field-full {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.cprofile-field-full .cprofile-field-value {
    flex-direction: column;
    align-items: flex-start;
}

/* ── Tab 3: Process ──────────────────────────────────────────────────────── */
.cprofile-process-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    direction: rtl;
}

.cprofile-process-builtin {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.cprofile-builtin-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cprofile-builtin-icon {
    color: var(--primary, #7c3aed);
    flex-shrink: 0;
    margin-top: 2px;
}

.cprofile-builtin-label {
    font-size: 12px;
    color: #aaa;
    display: block;
}

.cprofile-builtin-val {
    font-size: 14px;
    color: #333;
    display: block;
}

.cprofile-process-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* Custom fields */
.cprofile-custom-fields {
    display: flex;
    flex-direction: column;
    direction: rtl;
}

.cprofile-cf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cprofile-cf-item:last-child {
    border-bottom: none;
}

.cprofile-cf-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f5f3ff;
    color: var(--primary, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cprofile-cf-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cprofile-cf-name {
    font-size: 12px;
    color: #aaa;
}

.cprofile-cf-value {
    font-size: 14px;
    color: #333;
}

.cprofile-cf-value a {
    color: var(--primary, #7c3aed);
    text-decoration: none;
}

.cprofile-cf-actions {
    display: flex;
    gap: 4px;
}

.cprofile-cf-edit-btn,
.cprofile-cf-del-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #ccc;
    border-radius: 4px;
}

.cprofile-cf-edit-btn:hover {
    color: var(--primary, #7c3aed);
    background: #f3f0ff;
}

.cprofile-cf-del-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Custom field type selector (modal) */
.cpfield-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    padding: 8px;
    direction: rtl;
}

.cpfield-type-option {
    cursor: pointer;
}

.cpfield-type-option input[type="radio"] {
    display: none;
}

.cpfield-type-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e9e9e9;
    transition: all .15s;
    height: 100%;
}

.cpfield-type-option input:checked+.cpfield-type-inner {
    border-color: var(--primary, #7c3aed);
    background: #f5f3ff;
}

.cpfield-type-inner:hover {
    border-color: #c4b5fd;
    background: #faf7ff;
}

.cpfield-type-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f0ebff;
    color: var(--primary, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.cpfield-type-option input:checked+.cpfield-type-inner .cpfield-type-icon {
    background: var(--primary, #7c3aed);
    color: #fff;
}

.cpfield-type-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.cpfield-type-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.cpfield-type-desc {
    font-size: 11px;
    color: #aaa;
    line-height: 1.3;
}

/* ── Tab 4: Scheduled ────────────────────────────────────────────────────── */
.cprofile-scheduled-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cprofile-scheduled-header button {
    height: 37px;
    padding-right: 15px;
    padding-left: 15px;
}

.cprofile-scheduled-date-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cprofile-scheduled-icon {
    color: var(--primary, #7c3aed);
}

/* ── Undone Tasks Section ────────────────────────────────────────────────── */
.cprofile-undone-section {
    border-top: 1px solid #f5f5f5;
    padding: 0 24px;
}

/* ── Task / Activity Items (shared) ─────────────────────────────────────── */
.cprofile-task-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    direction: rtl;
}

.cprofile-task-item:last-child {
    border-bottom: none;
}

.cprofile-task-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex-shrink: 0;
}

.cprofile-task-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.cprofile-task-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cprofile-task-desc svg {
    transform: scale(1.3);
    position: relative;
    top: 3px;
    margin-left: 3px;
}

.cprofile-task-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f5f3ff;
    color: var(--primary, #7c3aed);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.cprofile-task-type-badge svg {
    flex-shrink: 0;
}

.cprofile-task-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cprofile-task-status-ring {
    color: #ccc;
    line-height: 0;
}

.cprofile-task-author-avatar {
    flex-shrink: 0;
}

.cprofile-task-author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid #ebebeb;
    display: block;
}

.cprofile-task-no-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0ebff;
    border: 1px solid #ede9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #7c3aed);
    flex-shrink: 0;
}

.cprofile-task-title {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.cprofile-task-desc {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.cprofile-task-desc-label {
    color: var(--primary, #7c3aed);
    font-size: 12px;
    font-weight: 600;
}

.cprofile-task-meta {
    font-size: 12px;
    color: #aaa;
    line-height: 1.5;
}

.cprofile-postpone-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 4px 10px;
    white-space: nowrap;
    margin-top: 4px;
}

.cprofile-postpone-btn:hover {
    color: var(--primary, #7c3aed);
    border-color: #c4b5fd;
    background: #f5f3ff;
}

/* ── Completed Activities Section ───────────────────────────────────────── */
.cprofile-activities-section {
    padding: 30px 24px 24px;
}

.cprofile-activities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0;
}

.cprofile-activities-title {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    margin: 0;
    padding-bottom: 12px;
}

/* Activity subtabs — dir="rtl" on header; first item (همه) is rightmost */
.cprofile-activity-subtabs {
    gap: 0;
    margin-bottom: -2px;
    flex-wrap: nowrap;
}

.cprofile-activity-subtabs .nav-link {
    font-size: 13px;
    color: #AFAFAF;
    padding: 8px 16px;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    white-space: nowrap;
}

.cprofile-activity-subtabs .nav-link.active {
    color: var(--primary, #7c3aed);
    border-bottom-color: var(--primary, #7c3aed);
    font-weight: 700;
}

.cprofile-activities-list {
    min-height: 60px;
    padding-top: 4px;
}

.cprofile-activities-pager {
    margin-top: 12px;
}

.cprofile-loading {
    padding: 24px;
    text-align: center;
    color: #bbb;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cprofile-empty-msg {
    margin: 16px 0;
    text-align: center;
    font-size: 13px;
}

/* Scheduled list */
.cprofile-scheduled-list .cprofile-task-item {
    padding: 12px 0;
}

/* ── Modals: RTL footer ──────────────────────────────────────────────────── */
#CpAddNoteModal .modal-footer,
#CpAddFieldModal .modal-footer,
#CpPostponeModal .modal-footer {
    justify-content: flex-end;
    direction: rtl;
    gap: 0px;
    flex-wrap: nowrap;
}

#CpAddNoteModal .modal-body,
#CpAddFieldModal .modal-body,
#CpPostponeModal .modal-body {
    direction: rtl;
}

#CpAddNoteModal .modal-header,
#CpAddFieldModal .modal-header,
#CpPostponeModal .modal-header {
    direction: rtl;
}

#CpAddNoteModal .form-label,
#CpAddFieldModal .form-label,
#CpPostponeModal .form-label {
    text-align: right;
    display: block;
}

#cpNoteDateDisplay {
    border-top-right-radius: var(--border-radius-lg) !important;
    border-bottom-right-radius: var(--border-radius-lg) !important;
    background: #FFF !important;
    border-color: #dddddd !important;
}

.cprofile-process-actions button {
    min-height: 37px;
    padding-right: 20px !important;
    padding-left: 20px !important;
}

#cpFieldValueDate {
    background: #FFF !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cprofile-tab1-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cprofile-actions-col {
        width: 100%;
    }

    .cprofile-page-header {
        flex-direction: column;
    }

    .cprofile-header-btns {
        width: 100%;
        justify-content: flex-start;
    }

    .cprofile-field-row {
        flex-wrap: wrap;
    }

    .cprofile-process-wrapper {
        flex-direction: column;
    }

    .cpfield-type-selector {
        grid-template-columns: 1fr;
    }

    .cprofile-tabs .nav-link {
        padding: 12px 12px;
        font-size: 13px;
    }
}

.atm-ev-icon svg {
    vertical-align: middle;
    position: relative;
    top: 2px;
}

/* ─── Quick Add Dropdown ─────────────────────────────────────── */
.quick-add-menu {
    position: relative;
    top: 7px;
    margin-bottom: 0;
    padding-left: 2px;
    padding-right: 0;
}

.quick-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border-radius: 6px;
    color: #fff !important;
    transition: opacity 0.15s;
    margin-left: 2px;
    margin-right: -5px;
}

.quick-add-btn:hover {
    opacity: 0.82;
    color: #fff !important;
}

.quick-add-btn:hover svg {
    stroke: var(--primary) !important;
}

.quick-add-btn svg {
    stroke: var(--body);
    position: relative;
    top: -3px;
    transform: scale(1.2);
}

.quick-add-dropdown-menu {
    direction: rtl !important;
    min-width: 175px !important;
    padding: 6px 0 !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1) !important;
    margin-top: 6px !important;
}

.quick-add-dropdown-menu li {
    margin-bottom: 0px !important;
}

.quick-add-dropdown-menu .dropdown-item {
    direction: rtl;
    text-align: right;
    font-size: 13px;
    padding: 8px 16px;
    color: #444;
}

.quick-add-dropdown-menu .dropdown-item:hover {
    background: transparent;
    color: var(--primary);
}

/* ─── Topbar Global Search ───────────────────────────────────── */
.topbar-search-container {
    position: relative;
    width: 290px;
    flex-shrink: 0;
    align-self: center;
    margin-left: auto;
}

.topbar-search-wrap {
    display: flex;
    align-items: center;
    background: #FFFF;
    border: 1px solid #e5e5e5;
    border-radius: var(--border-radius-md);
    padding: 5px 10px;
    gap: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.topbar-search-container.topbar-search-active .topbar-search-wrap {
    border-color: var(--primary);
    box-shadow: none !important;
    border-top-right-radius: var(--border-radius-md) !important;
    border-top-left-radius: var(--border-radius-md) !important;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-bottom-color: transparent;
    margin-bottom: -1px;
    background: #FFF;
}

.topbar-search-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.topbar-search-icon svg {
    stroke: #bbb;
}

.topbar-search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 13px;
    color: #333;
    font-family: inherit;
    text-align: right;
}

.topbar-search-input::placeholder {
    color: #ccc;
}

/* ─── Search Dropdown (hidden by default) ───────────────────── */
.topbar-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--primary);
    border-top: none;
    border-radius: 0;
    border-bottom-left-radius: var(--border-radius-md) !important;
    border-bottom-right-radius: var(--border-radius-md) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
    z-index: 9999;
    max-height: 420px;
    overflow: hidden;
    flex-direction: column;
}

.topbar-search-container.topbar-search-active .topbar-search-dropdown {
    display: flex;
}

/* ─── Filter Tabs (inside dropdown) ─────────────────────────── */
#mobileSearchToggle {
    background: #FFF !important;
    box-shadow: none !important;
    padding-left: 2px !important;
}

.topbar-search-filters {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 10px 0;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.tsf-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 5px 12px 9px;
    cursor: pointer;
    color: #aaa;
    font-size: 12px;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    line-height: 1;
    margin-bottom: -1px;
}

.tsf-btn svg {
    stroke: currentColor;
    transform: scale(1.2);
}

.tsf-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tsf-btn:hover:not(.active) {
    color: #555;
}

/* ─── Results Body ───────────────────────────────────────────── */
.topbar-results-body {
    overflow-y: auto;
    max-height: 340px;
    direction: rtl;
}

.tsr-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.1s;
}

.tsr-item:last-child {
    border-bottom: none;
}

.tsr-item:hover {
    background: #f9f9f9;
    color: #333;
    text-decoration: none;
}

.tsr-item-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f0eeff;
    color: var(--primary);
    flex-shrink: 0;
    white-space: nowrap;
}

.tsr-item-title {
    font-size: 13px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tsr-empty {
    padding: 20px 14px;
    text-align: center;
    color: #bbb;
    font-size: 13px;
    direction: rtl;
}

.tsr-hint {
    padding: 16px 14px;
    text-align: center;
    color: #ccc;
    font-size: 12px;
    direction: rtl;
}

.tsr-loading {
    padding: 16px 14px;
    text-align: center;
    color: #bbb;
    font-size: 12px;
    direction: rtl;
}

/* ─── Dark mode ──────────────────────────────────────────────── */
html[data-skin="dark"] .topbar-search-wrap {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

html[data-skin="dark"] .topbar-search-input {
    color: #ddd;
}

html[data-skin="dark"] .topbar-search-dropdown {
    background: #242424;
    border-color: var(--primary);
}

html[data-skin="dark"] .topbar-search-filters {
    border-bottom-color: #333;
}

html[data-skin="dark"] .tsr-item {
    color: #ddd;
    border-bottom-color: #333;
}

html[data-skin="dark"] .tsr-item:hover {
    background: #2e2e2e;
    color: #ddd;
}

html[data-skin="dark"] .quick-add-dropdown-menu {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

html[data-skin="dark"] .quick-add-dropdown-menu .dropdown-item {
    color: #ccc;
}

html[data-skin="dark"] .quick-add-dropdown-menu .dropdown-item:hover {
    background: #333;
}

#colorButton {
    display: none;
}

/* ─── Mobile Search Toggle Button ────────────────────────────── */
.mobile-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    color: #575454;
    text-decoration: none;
}

.mobile-search-btn svg {
    stroke: var(--body) !important;
}

.mobile-search-btn svg:hover {
    stroke: currentColor;
}

.mobile-search-btn:hover {
    color: var(--primary);
}

/* ─── Mobile Search Panel ────────────────────────────────────── */
.mobile-search-panel {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    padding: 10px 14px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-top: 0px solid #eee;
    display: none;
}

.mobile-search-panel.mobile-search-open {
    display: block;
}

.mobile-search-wrap {
    border-color: var(--primary) !important;
    box-shadow: none;
    border-radius: 0px !important;
    border-top-right-radius: var(--border-radius-md) !important;
    border-top-left-radius: var(--border-radius-md) !important;
    border-bottom-color: transparent !important;
}

.mobile-search-filters {
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 10px 0;
    border-right: 1px solid;
    border-left: 1px solid;
    margin-top: -1px;
}

.mobile-results-body {
    max-height: 55vh;
    overflow-y: auto;
    border: 1px solid var(--primary);
    border-top: none;
    border-bottom-right-radius: var(--border-radius-md) !important;
    border-bottom-left-radius: var(--border-radius-md) !important;
    margin-bottom: 10px;
}

.mobile-search-close {
    background: none;
    border: none;
    padding: 0 0 0 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #aaa;
    flex-shrink: 0;
}

.mobile-search-close svg {
    stroke: currentColor;
}

.mobile-search-close:hover {
    color: #555;
}

html[data-skin="dark"] .mobile-search-panel {
    background: #242424;
    border-top-color: #333;
}

html[data-skin="dark"] .mobile-results-body {
    border-color: var(--primary);
}

/* Search highlight — used when navigating from global search results */
.search-highlight {
    animation: search-highlight-pulse 2s ease-in-out;
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

@keyframes search-highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 80, 120, 220), 0.5);
    }

    40% {
        box-shadow: 0 0 0 8px rgba(var(--primary-rgb, 80, 120, 220), 0.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 80, 120, 220), 0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   Responsive Fixes
   ═══════════════════════════════════════════════════════════════ */

/* ── Scroll container injected by JS around each table ── */
.table-scroll-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* ── all-time-report + timesheet tables scroll at <991px ── */
@media (max-width: 991px) {

    .all-time-report-list table,
    .timesheet-main-wrapper table {
        min-width: 650px;
    }
}

/* ── Override global card-layout + restore proper table display ── */
/* Global rule at line 4909 converts all tables to display:block cards at ≤768px. */
@media (max-width: 768px) {

    /* ── جداول scrollable: بازگردانی به display:table ── */
    /* توجه: category-page-wrapper عمداً اینجا نیست تا لیست دسته‌بندی‌ها (FAQ/پست)
       استایل کارتی موبایل (box-shadow + فاصله بین ردیف‌ها) از قانون عمومی table tbody tr را حفظ کند. */
    .task-list-wrapper table,
    .timesheet-main-wrapper table {
        display: table !important;
        width: auto !important;
        min-width: 600px;
    }

    .task-list-wrapper table thead,
    .timesheet-main-wrapper table thead {
        display: table-header-group !important;
    }

    .task-list-wrapper table tbody,
    .timesheet-main-wrapper table tbody {
        display: table-row-group !important;
    }

    .task-list-wrapper table tr,
    .timesheet-main-wrapper table tr {
        display: table-row !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .task-list-wrapper table th,
    .timesheet-main-wrapper table th {
        display: table-cell !important;
        white-space: nowrap;
    }

    .task-list-wrapper table td,
    .timesheet-main-wrapper table td {
        display: table-cell !important;
        width: auto !important;
        white-space: nowrap;
        padding: 8px 6px;
    }

    /* ── Datepicker calendar: restore proper table layout ── */
    /* The global rule at line 4924 converts all tables to display:block.
       The datepicker calendar is a <table> outside .task-list-wrapper, so it gets broken. */
    .datepicker-plot-area table {
        display: table !important;
        width: 100% !important;
        min-width: unset !important;
    }

    .datepicker-plot-area table thead {
        display: table-header-group !important;
    }

    .datepicker-plot-area table tbody {
        display: table-row-group !important;
    }

    .datepicker-plot-area table tr {
        display: table-row !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .datepicker-plot-area table th,
    .datepicker-plot-area table td {
        display: table-cell !important;
        width: auto !important;
        white-space: normal;
        padding: 2px;
    }

    /* ── Issue 2: task-actions دکمه‌ها روی یک خط بمانند ── */
    .task-actions {
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }

    .task-actions a,
    .task-actions button {
        flex-shrink: 0 !important;
    }

    /* Cancel existing wrapper-level overflow (lines 5243-5247 in this file) */
    .contract-list,
    .all-time-report-list,
    .post-list-wrapper {
        overflow: visible !important;
    }

    /* ── Issue 1: Task/Cart filter dropdown - عرض کامل در موبایل ── */
    .top_filters .btn-group {
        position: static;
    }

    .cart-filter-dropdown {
        min-width: calc(100vw - 40px) !important;
        max-width: calc(100vw - 20px) !important;
        right: 20px !important;
        left: 20px !important;
        width: calc(100vw - 40px) !important;
    }

    /* ── Issue 4: Companies filter - همه/اشخاص/شرکت‌ها و dropdown ── */
    .contacts_top_filter {
        width: 100% !important;
        padding-top: 10px;
        margin-top: -16px;
        margin-bottom: 20px;
    }

    .contacts_top_filter ul {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 0;
        list-style: none;
        margin: 0;
    }

    .contacts_top_filter ul li {
        flex: 0 0 auto;
    }

    .contact_filters,
    .top_filters {
        width: 100% !important;
        padding-top: 10px;
    }

    .contact_filters .btn-group {
        position: static;
    }

    .contact_filters .dropdown-menu {
        min-width: calc(100vw - 40px) !important;
        max-width: calc(100vw - 20px) !important;
        right: 20px !important;
        left: 20px !important;
        width: calc(100vw - 40px) !important;
    }

    /* ── Company profile tabs scrollable ── */
    .cprofile-tabs-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 1px 0;
    }

    .cprofile-tabs {
        width: max-content;
        min-width: 100%;
    }

    /* ── حذف horizontal scroll در edit-profile و edit-password ── */
    body.page-template-edit-profile-page main,
    body.page-template-edit-password-page main {
        overflow-x: hidden;
    }

    body.page-template-edit-profile-page .container,
    body.page-template-edit-password-page .container {
        max-width: 100%;
    }

    html[data-layout='fluid'] main .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .top_filters .dropdown-menu.show li.nav-item .active:after {
        right: 34% !important;
    }
}

/* Cancel existing wrapper-level overflow-x at <576px (line 5302 in this file) */
@media (max-width: 576px) {
    .task-list-wrapper {
        overflow-x: visible !important;
    }
}

/* Footer margin-right: -10px (line 476) compensates for desktop scrollbar width.
   On mobile there is no scrollbar so it causes a 10px page overflow. */
@media (max-width: 991px) {
    footer {
        margin-right: 0 !important;
    }
}

tr.search-highlight td {
    background-color: rgba(var(--primary-rgb, 80, 120, 220), 0.08) !important;
}

/* Scrollable tabs on mobile (≤768px) */
@media (max-width: 768px) {
    .responsive-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .responsive-tabs::-webkit-scrollbar {
        display: none;
    }

    .responsive-tabs .nav-item {
        flex-shrink: 0;
    }
}

/* ── All Tasks list - mobile responsive fixes ─────────────────── */

/* task-date-row: desktop layout */
.task-date-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-date-row .add_task_btn {
    flex-shrink: 0;
    margin-right: auto;
}

@media (max-width: 768px) {

    /* 1. Filter dropdown: full-width */
    .top_filters {
        position: relative !important;
    }

    .top_filters .btn-group {
        display: block !important;
        width: 100% !important;
        position: static !important;
    }

    .top_filters .top_filters_btn_wrapper {
        display: block !important;
        width: 100% !important;
        margin-top: -10px !important;
        border: 1px solid var(--primary) !important;
        margin-left: 0px !important;
        position: relative;
        box-sizing: border-box !important;
        border-radius: var(--border-radius-md) !important;
        border-bottom-left-radius: var(--border-radius-md) !important;
        border-top-left-radius: var(--border-radius-md) !important;
    }

    .contact_filters_btn_wrapper:after,
    .top_filters_btn_wrapper:after {
        border-left: 0px !important;
        border-bottom: 0px !important;
        border-top: 0px !important;
        border-right: 1px solid var(--primary);
        height: 34px;
    }

    /* specificity 0,3,0 — beats desktop rule .top_filters .dropdown-menu.show (also 0,3,0 but earlier in file) */
    .top_filters .dropdown-menu,
    .top_filters .dropdown-menu.show {
        position: absolute !important;
        top: 32px !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: calc(100vw - 24px) !important;
        max-height: 70vh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        transform: none !important;
        border-radius: 2px !important;
        z-index: 1050 !important;
    }

    /* 2. Date filter pills row + add button */
    .task-date-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    /* button goes above the pills, left-aligned (not full width) */
    .task-date-row .add_task_btn {
        order: -1;
        margin-right: 0 !important;
        align-self: flex-end;
    }

    /* pills row scrolls horizontally */
    .task-date-filter-pills {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap !important;
    }

    .task-date-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .task-date-pill {
        flex-shrink: 0 !important;
    }

    /* 3. Task-type pills (جلسه، ارسال فاکتور...): single scrollable row */
    .task-type-filter-pills {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .task-type-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .task-type-pill {
        flex-shrink: 0 !important;
    }

    /* 4. Action buttons: force flex so they stay in one row */
    .task-list-wrapper td.task-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        align-items: center;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .task-list-wrapper .task-actions a,
    .task-list-wrapper .task-actions button {
        flex-shrink: 0 !important;
    }
}

/* ── دپارتمان‌ها / خدمات / نقش‌ها: دکمه‌های ویرایش/حذف سمت چپ ستون عملیات، ستون نام راست‌چین (در همه‌ی سایزها) ── */
body.page-template-departments-list .task-list-wrapper td.task-actions,
body.page-template-all-service-list .task-list-wrapper td.task-actions,
body.page-template-all-role-list .task-list-wrapper td.task-actions {
    justify-content: flex-end !important;
}

body.page-template-departments-list .task-list-wrapper table thead td:nth-child(2),
body.page-template-departments-list .task-list-wrapper table tbody td:nth-child(2),
body.page-template-all-service-list .task-list-wrapper table thead td:nth-child(2),
body.page-template-all-service-list .task-list-wrapper table tbody td:nth-child(2),
body.page-template-all-role-list .task-list-wrapper table thead td:nth-child(2),
body.page-template-all-role-list .task-list-wrapper table tbody td:nth-child(2) {
    text-align: right !important;
}

/* ── Tour/guide button: fix svg offset on mobile ── */
@media (max-width: 768px) {
    .tour-col button svg {
        right: -7px !important;
        margin-bottom: 0 !important;
    }
}

/* ── FullCalendar list-view: restore proper table layout (overrides global display:block rule) ── */
@media (max-width: 768px) {

    .fc-list-table,
    .fc-list-table thead,
    .fc-list-table tbody {
        display: table !important;
        width: 100% !important;
    }

    .fc-list-table thead tr,
    .fc-list-table tbody tr {
        display: table-row !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .fc-list-table thead th,
    .fc-list-table tbody td {
        display: table-cell !important;
        width: auto !important;
    }
}

/* ── Time calendar toolbar: scrollable on mobile ── */
@media (max-width: 768px) {
    .time-calendar-view .fc-toolbar-chunk {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        display: flex;
        justify-content: center;
    }

    .time-calendar-view .fc-toolbar-chunk::-webkit-scrollbar {
        display: none;
    }

    .time-calendar-view .fc-toolbar-chunk .fc-button-group,
    .time-calendar-view .fc-toolbar-chunk .fc-button {
        flex-shrink: 0;
    }

    .time-calendar-view .fc-header-toolbar {
        gap: 6px;
    }
}

/* ── Cart action buttons: responsive layout ── */
@media (max-width: 768px) {
    .cart-action-btns {
        flex-wrap: wrap !important;
        row-gap: 8px !important;
    }

    /* افزودن کارت: ردیف اول، سمت راست */
    .cart-action-btns .btn-cart-add-main {
        order: -1;
        flex: 0 0 auto;
    }

    /* دکمه‌های ثانویه: ردیف دوم، کشیده */
    .cart-action-btns .btn-kariz-add,
    .cart-action-btns #btn-manage-team-kariz {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* ── Companies list page: mobile responsive fixes ── */
@media (max-width: 768px) {

    /* 2. فیلتر حروف الفبا: یک ردیف اسکرولی */
    .contact_character_filters ul {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .contact_character_filters ul::-webkit-scrollbar {
        display: none;
    }

    .contact_character_filters ul li {
        flex-shrink: 0;
        margin-bottom: 0 !important;
    }

    /* 3. کادر جستجو: تمام عرض، بدون خروج از صفحه */
    .company-toolbar-row-2 {
        flex-direction: column;
        align-items: stretch;
    }

    .company-toolbar-search {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .company-toolbar-search form {
        width: 100%;
    }

    .company-toolbar-add {
        width: 100%;
    }

    .company-toolbar-add {
        width: 100%;
        display: flex;
        justify-content: end;
    }

    .company-toolbar-add .add_company_btn {
        display: flex;
        text-align: center;
        width: 165px;
    }

    /* 4. نصف کردن فاصله بین کارت‌های اشخاص/شرکت‌ها */
    .contact_list_items {
        --bs-gutter-x: 0.75rem;
    }

    .contact_list_items .col-md-3 {
        margin-bottom: 12px !important;
    }

    /* 5. فاصله بین دکمه‌های ویرایش/حذف و آیکن و نام شخص/شرکت */
    .company_actions {
        margin-bottom: -37px;
        padding-top: 8px;
    }

    .company_icon {
        width: 72px;
        height: 72px;
        padding-top: 16px;
    }

    .copmany_info_name {
        margin-top: -10px !important;
        text-align: center !important;
    }

    .company_icon {
        margin-top: 30px;
    }

    .company_icon svg {
        width: 60px !important;
        height: 60px !important;
        padding: 16px !important;
        margin-bottom: 14px;
    }

    .company-item {
        padding-top: 30px !important;
        padding-bottom: 55px !important;
    }

    .person_of_company {
        margin-top: 6px !important;
        margin-bottom: 8px !important;
    }

    /* 6. شماره صفحات: فاصله از اطراف کارت + اسکرول در صورت زیاد بودن صفحات */
    .companies-pagination-wrapper {
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .companies-pagination-wrapper .pagination {
        flex-wrap: nowrap;
        display: inline-flex;
        margin-right: auto;
        margin-left: auto;
    }

    .contact_filters .dropdown-menu.show {
        margin-top: 12px !important;
        margin-right: -8px !important;
    }

    .contact_filters .sub-btn {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

/* ── Add Contract page: خدمات یک ردیف اسکرولی افقی در موبایل ── */
@media (max-width: 768px) {

    .contract_services_items.row,
    .contract_services_items {
        flex-wrap: nowrap !important;
    }

    .contract_services_items .col-md-12 {
        min-width: 0;
        max-width: 100%;
        flex: 1 1 auto;
        overflow: visible;
    }

    .contract_services_items .bulkactions {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .contract_services_items .bulkactions::-webkit-scrollbar {
        display: none;
    }

    .contract_services_item {
        display: inline-flex !important;
        flex-shrink: 0 !important;
        white-space: nowrap;
    }
}

/* ── FAQ list page: تایتل و دکمه‌های ویرایش/حذف در دو ردیف مجزا در موبایل ── */
@media (max-width: 768px) {
    .faq_actions {
        margin-bottom: 8px !important;
        top: 0 !important;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }
}

/* ── FAQ categories list: روی موبایل دقیقاً مثل دسکتاپ — جدول واقعی با thead، نه کارت جداگانه ──
   تلاش قبلی این جدول را به display:block/flex تبدیل می‌کرد که باعث می‌شد:
   ۱) thead (با قانون سراسری "table thead{display:none}" سطر ۴۹۳۳) مخفی بماند،
   ۲) هر ردیف یک باکس مجزا با سایه/گردی خودش بشود که روی باکس سایه‌ی دسکتاپ
      (سطرهای ۳۹۶۵-۳۹۷۱، سراسری و بدون مدیا) سوار می‌شد و حس "دو بوردر" می‌داد.
   راه‌حل درست: جدول را در موبایل از قانون سراسری تبدیل به کارت معاف کن و بگذار
   همان استایل دسکتاپ (که سراسری و بدون مدیا تعریف شده) عیناً روی موبایل هم اجرا شود. */
@media (max-width: 768px) {
    .category-page-wrapper table {
        display: table !important;
        width: 100% !important;
    }

    .category-page-wrapper table thead {
        display: table-header-group !important;
    }

    .category-page-wrapper table tbody {
        display: table-row-group !important;
    }

    .category-page-wrapper table tr {
        display: table-row !important;
        width: auto !important;
    }

    .category-page-wrapper table th,
    .category-page-wrapper table td {
        display: table-cell !important;
        width: auto !important;
        white-space: normal !important;
    }

    .list-all-categories-wrapper td.task-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        align-items: center;
        justify-content: flex-end;
        width: auto !important;
    }
}

@media (max-width: 768px) {
    .calendar-help-color-title {
        padding-right: 12px;
        padding-left: 12px;
    }

    .row.calendar-help-color-items {
        margin-right: 0;
        margin-left: 0;
        padding-right: 20px;
        padding-left: 20px;
    }

    .row.calendar-help-color-items ul {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
        box-sizing: border-box;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .row.calendar-help-color-items ul li {
        margin-left: 12px;
    }

    .quick-add-btn {
        margin-right: 6px;
    }

    .quick-add-btn svg {
        transform: scale(1) !important;
    }

    #mobileSearchToggle {
        margin-right: 5px !important;
    }
}