/* Add here all your CSS customizations */
.select2-container--bootstrap4{
    width: 100% !important;
}

.btn-check:checked + .btn .fa-star{
    color: #FFD700 !important;
}

.btn{
    border-radius: 2px !important;
}

/*.btn-tab {*/
/*    border-radius: 0;*/
/*    border-width: 1px 1px 1px 1px;*/
/*}*/

/*.btn-tab .active {*/
/*    border-radius: 0;*/
/*    border-width: 1px 1px 0 1px;*/
/*}*/

.card-tab {
    border-top-left-radius: 0;
    border-top-right-radius: .25rem;
}

.description p{
    margin-bottom: 5px !important;
}

.form-label{
    font-weight: bold !important;
}

/* Post Comments */
ul.comments {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.comments li {
    clear: both;
    padding: 10px 0 0 70px;
}

ul.comments li img.avatar {
    height: 48px;
    width: 48px;
}

ul.comments li ul.reply {
    margin: 0;
}

ul.comments li a {
    text-decoration: none;
}

ul.comments li .img-thumbnail {
    margin-left: -70px;
    position: absolute;
}

ul.comments li .comment {
    margin-bottom: 10px;
}

ul.comments .comment-arrow {
    border-bottom: 12px solid transparent;
    border-right: 12px solid #f7f7f7;
    border-top: 12px solid transparent;
    height: 0;
    left: -12px;
    position: absolute;
    top: 12px;
    width: 0;
}

ul.comments .comment-block {
    background: #f7f7f7;
    border-radius: 5px;
    padding: 20px 20px 30px;
    position: relative;
}

ul.comments .comment-block p {
    font-size: 1em;
    line-height: 21px;
    margin: 0;
    padding: 0;
}

ul.comments .comment-block .comment-by {
    display: block;
    font-size: 1em;
    line-height: 21px;
    margin: 0;
    padding: 0 0 5px 0;
}

ul.comments .comment-block .date {
    color: #999;
    font-size: 0.9em;
}


/* Dividers */
hr {
    background: rgba(0, 0, 0, 0.06);
    border: 0;
    height: 1px;
    margin: 22px 0;
    opacity: 1;
}

hr.short {
    margin: 11px 0;
}

hr.tall {
    margin: 44px 0;
}

hr.taller {
    margin: 66px 0;
}

hr.gratient {
    background: none;
    background-image: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.06), transparent);
}

hr.gradient-to-right {
    background: none;
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.06), transparent);
}

hr.gradient-to-left {
    background: none;
    background-image: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.06));
}

hr.solid {
    background: rgba(0, 0, 0, 0.06);
}

hr.light {
    background: rgba(255, 255, 255, 0.15);
}

hr.invisible {
    background: none;
}

.divider {
    border: 0;
    height: 1px;
    margin: 44px auto;
    background: rgba(0, 0, 0, 0.06);
    text-align: center;
    position: relative;
    clear: both;
}

.divider.taller {
    margin: 66px auto;
}

.divider [class*="fa-"], .divider .icons {
    text-align: center;
    background: #FFF;
    border-radius: 50px;
    color: #a9a9a9;
    display: inline-block;
    height: 50px;
    line-height: 50px;
    position: absolute;
    text-align: center;
    width: 50px;
    font-size: 20px;
    margin: 0 auto 0 -25px;
    top: -25px;
    left: 50%;
    z-index: 1;
}

.divider.divider-solid {
    background: rgba(0, 0, 0, 0.06);
}

.divider.divider-icon-sm [class*="fa-"], .divider.divider-icon-sm .icons {
    width: 30px;
    height: 30px;
    line-height: 30px;
    top: -15px;
    font-size: 15px;
    margin-left: -16px;
}

.divider.divider-icon-lg {
    margin: 86px 0;
}

.divider.divider-icon-lg [class*="fa-"], .divider.divider-icon-lg .icons {
    width: 60px;
    height: 60px;
    line-height: 60px;
    top: -30px;
    font-size: 30px;
    margin-left: -30px;
}

.divider.divider-icon-lg.taller {
    margin: 100px auto;
}

.divider.divider-xs {
    width: 35%;
}

.divider.divider-sm {
    width: 67%;
}

.divider.divider-left [class*="fa-"], .divider.divider-left .icons {
    left: 0;
    margin-left: 0;
    margin-right: 0;
    right: auto;
}

.divider.divider-right [class*="fa-"], .divider.divider-right .icons {
    left: auto;
    margin-left: 0;
    margin-right: 0;
    right: 0;
}

.divider.divider-style-2 [class*="fa-"], .divider.divider-style-2 .icons {
    background: #f7f7f7;
    color: #a9a9a9;
}

.divider.divider-style-3 [class*="fa-"], .divider.divider-style-3 .icons {
    border: 1px solid #CECECE;
}

.divider.divider-style-4 [class*="fa-"], .divider.divider-style-4 .icons {
    border: 1px solid #CECECE;
}

.divider.divider-style-4 [class*="fa-"]:after, .divider.divider-style-4 .icons:after {
    border: 3px solid #f7f7f7;
    border-radius: 50%;
    box-sizing: content-box;
    content: "";
    display: block;
    height: 100%;
    left: -4px;
    padding: 1px;
    position: absolute;
    top: -4px;
    width: 100%;
}

.divider.divider-small {
    margin: 22px auto;
    background: transparent;
}

.divider.divider-small hr {
    width: 50px;
    height: 3px;
    background: #555;
}

.divider.divider-small.divider-small-center {
    text-align: center;
}

.divider.divider-small.divider-small-center hr {
    margin-left: auto;
    margin-right: auto;
}

.divider.divider-small.divider-small-right {
    text-align: right;
}

.divider.divider-small.divider-small-right hr {
    margin-left: auto;
}

.divider.divider-small.divider-light hr {
    background: #DDD;
}

.divider.divider-small.divider-small-sm hr {
    height: 1px;
}

.divider.divider-small.divider-small-lg hr {
    height: 6px;
}

.divider.divider-small.tall {
    margin: 34px 0;
}

.divider.divider-small.taller {
    margin: 46px 0;
}

.divider .divider-small-text {
    background: #FFF;
    color: #999;
    display: inline-block;
    text-align: center;
    font-size: 0.8em;
    height: 30px;
    line-height: 30px;
    padding: 0 30px;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    top: -15px;
}

hr.dashed, .divider.dashed {
    background: none;
    position: relative;
}

hr.dashed:after, .divider.dashed:after {
    border-top: 1px dashed rgba(0, 0, 0, 0.06);
    content: "";
    display: block;
    height: 0;
    position: absolute;
    top: 50%;
    margin-top: -1px;
    width: 100%;
}

hr.pattern, .divider.pattern {
    background: none;
    position: relative;
}

hr.pattern:after, .divider.pattern:after {
    background: transparent url(../img/patterns/worn_dots.png) repeat 0 0;
    content: "";
    display: block;
    height: 15px;
    position: absolute;
    top: 50%;
    margin-top: -7px;
    width: 100%;
}

hr.pattern.pattern-2:after, .divider.pattern.pattern-2:after {
    background-image: url(../img/patterns/az_subtle.png);
}

@-webkit-keyframes dividerProgress25 {
    from {
        width: 0;
    }

    to {
        width: 25%;
    }
}

@keyframes dividerProgress25 {
    from {
        width: 0;
    }

    to {
        width: 25%;
    }
}

.dividerProgress25 {
    -webkit-animation-name: dividerProgress25;
    animation-name: dividerProgress25;
}

/* Divider Borders */
.divider-top-border {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.divider-bottom-border {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.divider-left-border {
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.divider-right-border {
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.task-page {
    max-width: 1120px;
    margin: 0 auto;
}

.task-sheet {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.task-sheet__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e7edf5;
}

.task-sheet__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #748198;
}

.task-sheet__subtitle {
    color: #6b7280;
    max-width: 720px;
}

.task-sheet__header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.task-sheet__header-actions form {
    margin: 0;
}

.task-sheet__body {
    padding: 28px;
}

.task-form-alert {
    border-radius: 14px;
}

.task-editor {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.task-editor__title-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 12px;
}

.task-editor__title-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #0d6efd;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.task-editor__title-field {
    flex: 1;
}

.task-editor__label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #68758a;
    margin-bottom: 8px;
}

.task-editor__title-input {
    border: 0;
    border-bottom: 2px solid #dce4ef;
    border-radius: 0;
    padding: 0 0 12px;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    box-shadow: none;
}

.task-editor__title-input:focus {
    border-color: #0d6efd;
    box-shadow: none;
}

.task-editor__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.task-editor__section {
    padding: 20px;
    border: 1px solid #e7edf5;
    border-radius: 18px;
    background: #ffffff;
}

.task-editor__section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #344054;
    margin-bottom: 18px;
}

.task-editor__section-heading i {
    color: #0d6efd;
}

.task-editor__type-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.task-editor__type-row .select2-container {
    flex: 1;
}

.task-editor__type-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.task-editor__description {
    min-height: 180px;
    resize: vertical;
}

.task-editor__attachments .list-group-item {
    border-radius: 12px;
}

.task-editor__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
}

.task-editor .form-control,
.task-editor .select2-container--bootstrap-5 .select2-selection {
    border-radius: 12px;
    min-height: 44px;
}

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

.task-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.task-detail-card {
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e7edf5;
}

.task-detail-card__label {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 10px;
}

.task-detail-card__value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
}

.task-tag-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.task-detail-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e7edf5;
}

.task-detail-section__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.task-detail-section__title {
    color: #1f2937;
}

.task-detail-section__subtitle {
    color: #6b7280;
}

.task-detail-description {
    border: 1px solid #e7edf5;
    border-radius: 18px;
    background: #fbfdff;
    padding: 18px 20px;
    color: #344054;
    line-height: 1.7;
    white-space: normal;
}

.task-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-attachment-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    background: #ffffff;
}

.task-attachment-item__main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.task-attachment-item__thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e7edf5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.task-attachment-item__thumb img {
    max-width: 28px;
    max-height: 28px;
}

.task-attachment-item__content {
    min-width: 0;
}

.task-attachment-item__title {
    font-size: 0.98rem;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-attachment-item__title small {
    margin-left: 4px;
    color: #6b7280;
}

.task-attachment-item__meta {
    color: #6b7280;
    font-size: 0.85rem;
}

.task-attachment-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .task-editor__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .task-sheet__header,
    .task-sheet__body {
        padding: 20px;
    }

    .task-editor__title-row {
        flex-direction: column;
    }

    .task-editor__type-row {
        flex-direction: column;
    }

    .task-editor__type-button {
        justify-content: center;
    }

    .task-sheet__header-actions,
    .task-editor__actions,
    .task-attachment-item__actions {
        width: 100%;
        justify-content: stretch;
    }

    .task-sheet__header-actions .btn,
    .task-sheet__header-actions form,
    .task-sheet__header-actions form .btn,
    .task-editor__actions .btn,
    .task-attachment-item__actions .btn,
    .task-attachment-item__actions form,
    .task-attachment-item__actions form .btn {
        width: 100%;
    }
}
