.task-type-tabs {
    position: relative;
    background-color: #f8f9fa;
    padding: 0;
    border-radius: 5px 5px 0 0;
    display: flex;
    border-bottom: 2px solid #dee2e6;
}

.task-type-tabs::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dee2e6;
    z-index: 1;
}

.task-tab-link {
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: transparent;
    position: relative;
    flex: 1;
    height: 72px; /*      */
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-tab-link:hover {
    background-color: #e9ecef;
}

.task-tab-link.active {
    background-color: #fff;
    color: #1c2d41;
    font-weight: 600;
    box-shadow: none;
}

.task-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #3b7ddd;
    z-index: 2;
}

.task-tab-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 8px 4px;
}

.task-tab-title {
    white-space: nowrap;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.task-tab-counter {
    font-size: 0.95rem;
    color: #000;
    text-align: center;
    line-height: 1.2;
}


.empty-counter {
    visibility: hidden;
    height: 16px; /*      */
}

/*   */
@media (max-width: 768px) {
    .task-type-tabs {
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .task-tab-link {
        min-width: 120px;
        height: 64px;
    }

    .task-tab-title {
        font-size: 0.85rem;
    }

    .task-tab-counter {
        font-size: 0.7rem;
    }
}




/*  */
.myaccordion .card {
    border: 1px solid #dee2e6; /*     */
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden; /*     */
}

.myaccordion .card-header {
    background-color: #f8f9fa; 
    border-bottom: 1px solid #dee2e6; /*   */
    padding: 12px 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.myaccordion .card-header:hover {
    background-color: #e9ecef; 
}

.myaccordion .card-body {
    border-top: 1px solid #dee2e6; 
    padding: 15px;
    background-color: #fff;
}

/*     */
.myaccordion .card-header[aria-expanded="true"] {
    background-color: #e2e6ea;
    border-bottom-color: transparent;
}


.myaccordion .card-header > .flex {
    border-left: 1px solid #dee2e6; /*     */
    padding-left: 10px;
}

/*      */
.myaccordion .card-body tr.text-tr {
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
}

.myaccordion .card-body tr.text-tr:hover {
    border-color: #adb5bd;
}

/*   */
@media screen and (max-width: 768px) {
    .myaccordion .card-header {
        padding: 15px 10px;
    }

    .myaccordion .card-body {
        padding: 10px;
    }
}








#confirm-action .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

/*   */
#confirm-action .modal-header {
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

/*     */
#confirm-action .modal-body {
    background-color: #f8f9fa;
    padding: 20px;
}

/*   */
#confirm_media {
    background-color: #28a745 !important; /*  */
    border-color: #28a745 !important;
}

#confirm-action .btn-danger {
    background-color: #dc3545 !important; /*  */
    border-color: #dc3545 !important;
}






.name-project {
  display: inline-block;
  width: 100%;
  max-width: 100%;
}

.project-name-wrapper {
  display: inline;
  position: relative;
}

.project-link {
  display: inline;
  text-decoration: none;
  color: inherit;
}

.project-name {
  display: inline;
  white-space: normal;
  word-break: break-word;
  margin-right: 5px; 
  color: blue;
  text-decoration: underline;
}

.edit-name-project,
.transfer-project {
  display: inline-flex;
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  transition: color 0.2s;
}

.edit-name-project:hover,
.transfer-project:hover {
  color: #495057;
}

.edit-name-project .fa-edit,
.transfer-project .fa-edit {
  font-size: 16px;
}

/*   */
@media (max-width: 768px) {
  .edit-name-project .fa-edit,
  .transfer-project .fa-edit {
    font-size: 14px;
  }
}


/*     */

.modern-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
}

.modern-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.modern-switch-slider {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.modern-switch-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.modern-switch-input:checked + .modern-switch-slider {
    background-color: #4CAF50;
}

.modern-switch-input:checked ~ .modern-switch-text {
    font-weight: bold;
}

.modern-switch-input:checked + .modern-switch-slider:before {
    transform: translateX(26px);
}

.modern-switch-input:focus + .modern-switch-slider {
    box-shadow: 0 0 1px #2196F3;
}

.modern-switch-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* -  */

.modern-radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modern-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
    position: relative;
    padding-left: 35px;
    user-select: none;
}

.modern-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-icon {
    position: absolute;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.2s;
}

.modern-radio:hover input ~ .radio-icon {
    border-color: #aaa;
}

.modern-radio input:checked ~ .radio-icon {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.radio-icon:after {
    content: "";
    position: absolute;
    display: none;
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

.modern-radio input:checked ~ .radio-icon:after {
    display: block;
}

.radio-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease; 
}

/*      */
.modern-radio input:checked ~ .radio-text {
    font-weight: 700;
    color: #000; /* : -  */
}


@keyframes radio-click {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.modern-radio input:checked ~ .radio-icon {
    animation: radio-click 0.2s ease;
}


.btn-circle, .btn-circle-lg {
    width: 28px;
    height: 28px;
    line-height: 20px;
    padding: 4px;
}