@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_18pt-Regular.ttf');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter_18pt-Bold.ttf');
    font-weight: 700;
    font-style: normal;
}

/** COMMON CLASSES **/

.doboard_task_widget * {
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    color: #40484F;
}
.doboard_task_widget-header * {
    color: #FFFFFF;
    margin: 0;
}

.doboard_task_widget a {
    text-decoration: underline;
    color: #2F68B7;
}
.doboard_task_widget a:hover {
    text-decoration: none;
}

.doboard_task_widget {
    position: fixed;
    right: 0;
    bottom: 0;
    margin-bottom: 20px;
    margin-right: 70px;
    z-index: 9999;
    vertical-align: middle;

    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.doboard_task_widget_cursor-pointer {
    cursor: pointer;
}

.doboard_task_widget-container {
    width: 360px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    -moz-flex-direction: column;
}

.doboard_task_widget-header {
    display: flex;
    height: 41px;
    min-height: 41px;
    padding: 8px 16px;
    background: #1C7857;
    border-radius: 8px 8px 0 0;
    justify-content: space-between;
    align-items: center;
    color: #FFFFFF;
}

.doboard_task_widget-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px 5px 16px;
    background: #FFFFFF;
    border-radius: 0 0 8px 8px;
    border: 1px;
    border-style: none solid solid solid;
    border-color: #BBC7D1;
    box-shadow: 0 4px 15px 8px #CACACA40;
    scrollbar-width: none;
    max-height: 60vh;
}

.doboard_task_widget-element-container {
    margin-bottom: 30px;
}

/*** `WRAP` INTERFACE ***/

.doboard_task_widget-wrap {
    width: auto;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.doboard_task_widget-wrap.hidden {
    display: none;
}

#doboard_task_widget-task_count {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    opacity: 1;
    background: #ef8b43;
    border-radius: 50%;
    color: #FFFFFF;
    text-align: center;
    line-height: 22px;
}

#doboard_task_widget-task_count:hover {
    background: url(../img/close-widget.svg) no-repeat center;
    cursor: pointer;
    overflow: hidden;
    font-size: 0;
}

#doboard_task_widget-task_count.hidden {
    width: 0;
    height: 0;
    opacity: 0;
}

/*** `CREATE ISSUE` INTERFACE ***/

.doboard_task_widget-input-container {
    position: relative;
    margin-bottom: 24px;
}
.doboard_task_widget-input-container.hidden {
    display: none;
}

.doboard_task_widget-input-container .doboard_task_widget-field {
    padding: 0 8px;
    border-radius: 4px;
    border: 1px solid #BBC7D1;
    outline: none !important;
    appearance: none;
    width: 100%;
    height: 40px;
    background: #FFFFFF;
    color: #000000;
    max-width: -webkit-fill-available;
    max-width: -moz-available;
}

.doboard_task_widget-field:focus {
    border-color: #2F68B7;
}

.doboard_task_widget-input-container textarea.doboard_task_widget-field {
    height: 94px;
    padding-top: 11px;
    padding-bottom: 11px;
}

.doboard_task_widget-field + label {
    color: #252A2F;
    background: #fff;
    position: absolute;
    top: 20px;
    left: 8px;
    transform: translateY(-50%);
    transition: all 0.2s ease-in-out;
}

.doboard_task_widget-field:focus + label,
.doboard_task_widget-field.has-value + label {
    font-size: 10px;
    top: 0;
    left: 12px;
    padding: 0 4px;
    z-index: 5;
}

.doboard_task_widget-field:focus + label {
    color: #2F68B7;
}

.doboard_task_widget-login {
    background: #F9FBFD;
    border: 1px solid #BBC7D1;
    border-radius: 4px;
    padding: 11px 8px 8px 8px;
    margin-bottom: 40px;
}
.doboard_task_widget-login .doboard_task_widget-accordion {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}
.doboard_task_widget-login.active .doboard_task_widget-accordion {
    height: auto;
    overflow: visible;
    opacity: 1;
}
.doboard_task_widget-login .doboard_task_widget-input-container:last-child {
    margin-bottom: 0;
}
.doboard_task_widget-login span {
    display: block;
    position: relative;
    padding-right: 24px;
    cursor: pointer;
}
.doboard_task_widget-login.active span {
    margin-bottom: 24px;
}
.doboard_task_widget-login span::after {
    position: absolute;
    top: 0;
    right: 4px;
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    border: 2px solid #40484F;
    border-radius: 1px;
    border-top: none;
    border-left: none;
    transition: all 0.2s ease-in-out;
}
.doboard_task_widget-login.active span::after {
    transform: rotate(-135deg);
    top: 7px;
}
.doboard_task_widget-login .doboard_task_widget-input-container .doboard_task_widget-field,
.doboard_task_widget-login .doboard_task_widget-field + label {
    background: #F9FBFD;
}
.doboard_task_widget-submit_button {
    height: 48px;
    width: 100%;
    margin-bottom: 16px;
    color: #FFFFFF;
    background: #22A475;
    border: none;
    border-radius: 6px;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.doboard_task_widget-submit_button:hover {
    background: #1C7857;
    color: #FFFFFF;
}

.doboard_task_widget-submit_button:disabled {
    background: rgba(117, 148, 138, 0.92);
    color: #FFFFFF;
    cursor: wait;
}

.doboard_task_widget-issue-title {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doboard_task_widget-hidden_element {
    opacity: 0;
}

.doboard_task_widget-message-wrapper {
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 14px;
    display: grid;
    justify-items: center;
}

.doboard_task_widget-error_message {
    background: #ffdddd;
    border: 1px solid #cf6868;

}

.doboard_task_widget-notice_message {
    background: #dde9ff;
    border: 1px solid #68a6cf;
}

.doboard_task_widget-error_message-wrapper.hidden {
    display: none;
}

#doboard_task_widget-error_message-header {
    margin: 8px 0;
    font-weight: 600;
}

#doboard_task_widget-error_message {
    text-align: center;
}


/*** `LIST ISSUES` INTERFACE ***/

.doboard_task_widget-task_row {
    display: flex;
    max-height: 55px;
    padding-bottom: 4px;
    margin-bottom: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
}
.doboard_task_widget-task_row:last-child {
    margin-bottom: 0;
}

.doboard_task_widget-task-text_bold {
    font-weight: bold;
}

.doboard_task_widget-text_selection {
    background: rgba(208, 213, 127, 0.68);
}

.doboard_task_widget-text_selection.image-highlight {
    display: -moz-inline-box;
    display: inline-flex;
    border: 3px solid rgba(208, 213, 127, 0.99);
    padding: 5px;
    flex-direction: column;
    -moz-flex-direction: column;
}

.doboard_task_widget-issues_list_empty {
    text-align: center;
    margin: 20px 0;
}

.doboard_task_widget-avatar_container {
    display: flex;
    height: 44px;
    width: 44px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.doboard_task_widget-avatar_placeholder{
    min-height: 44px;
    min-width: 44px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1.2083333333;
    padding: 0;
    background: #1C7857;
    display: inline-grid;
    align-content: center;
    justify-content: center;
}

.doboard_task_widget-avatar-initials {
    color: #FFFFFF;
    width: inherit;
    text-align: center;
}

.doboard_task_widget-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.doboard_task_widget-description_container {
    height: 55px;
    width: calc(100% - 44px - 8px);
    border-bottom: 1px solid #EBF0F4;
    display: block;
    margin-left: 8px;
}
.doboard_task_widget-task_row:last-child .doboard_task_widget-description_container {
    border-bottom: none;
}

.doboard_task_widget-all_issues-container, .doboard_task_widget-concrete_issues-container {
    overflow: auto;
    max-height: 85vh;
    display: none;
}

.doboard_task_widget-all_issues-container {
    scrollbar-width: none;
}

.doboard_task_widget-all_issues-container::-webkit-scrollbar,
    .doboard_task_widget-concrete_issues-container::-webkit-scrollbar,
    .doboard_task_widget-content::-webkit-scrollbar,
    .doboard_task_widget-all_issues::-webkit-scrollbar
{
    width: 0;
}

.doboard_task_widget-task_title {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doboard_task_widget-task_title span {
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doboard_task_widget-task_title-details {
    display: flex;
    max-width: calc(100% - 40px);
    align-items: center;
}

.doboard_task_widget-task_title-unread_block {
    opacity: 0;
    height: 8px;
    width: 8px;
    background: #f08c43;
    border-radius: 50%;
    display: inline-block;
    font-size: 8px;
    font-weight: 600;
    position: relative;
}

.doboard_task_widget-task_title-unread_block.unread {
    opacity: 1;
}

.doboard_task_widget-task_last_message {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
}

.doboard_task_widget_return_to_all {
    display: flex;
    gap: 8px;
    flex-direction: row;
    -moz-flex-direction: row;
    align-content: center;
    flex-wrap: wrap;
}

.doboard_task_widget-task_title-last_update_time {
    font-family: Inter, serif;
    font-weight: 400;
    font-style: normal;
    font-size: 11px;
    leading-trim: NONE;
    line-height: 100%;
}

.doboard_task_widget-task_title_public_status_img {
    opacity: 50%;
    margin-left: 5px;
    scale: 90%;
}

.doboard_task_widget-description-textarea {
    resize: none;
}

.doboard_task_widget-switch_row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    justify-content: space-between;
}

.doboard_task_widget-switch-label {
    font-weight: 600;
    font-size: 16px;
    height: 24px;
    align-content: center;
}

.doboard_task_widget-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.doboard_task_widget-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.doboard_task_widget-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: .2s;
}

.doboard_task_widget-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .2s;
}

.doboard_task_widget-switch input:checked + .doboard_task_widget-slider {
    background-color: #65D4AC;
}

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

.doboard_task_widget-switch-img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.doboard_task_widget-switch-center {
    display: flex;
    gap: 2px;
    flex-direction: column;
    -moz-flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.doboard_task_widget-switch-desc {
    display: block;
    font-size: 12px;
    color: #707A83;
    margin: 0;
    line-height: 1.2;
    max-width: 180px;
    word-break: break-word;
}

/*** `COMMENTS` INTERFACE ***/

.doboard_task_widget-concrete_issue-day_content {
    display: flex;
    flex-direction: column;
    -moz-flex-direction: column;
}

.doboard_task_widget-concrete_issue_day_content-month_day {
    text-align: center;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    padding: 8px;
    opacity: 0.75;
}

.doboard_task_widget-concrete_issue_day_content-messages_wrapper {
    display: flex;
    flex-direction: column;
    -moz-flex-direction: column;
}

.doboard_task_widget-comment_data_wrapper {
    display: flex;
    flex-direction: row;
    -moz-flex-direction: row;
    margin-bottom: 15px;
    align-items: flex-end;
}

.doboard_task_widget-comment_text_container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-left: 5px;
    padding: 5px;
}

.doboard_task_widget-comment_text_container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.doboard_task_widget-comment_body,
.doboard_task_widget-comment_time {
    position: relative;
    z-index: 1;
}

.doboard_task_widget-comment_body {
    padding: 10px;
}

.doboard_task_widget-comment_time {
    font-weight: 400;
    font-size: 11px;
    line-height: 100%;
    text-align: right;
    padding: 0px 8px 4px 0;
    opacity: 0.8;
}

/** SENDING NEW COMMENT **/

.doboard_task_widget-send_message {
    padding: 10px 0 4px 0;
    border-top: 1px solid #BBC7D1;
    position: sticky;
    background: white;
    bottom: 0;
    z-index: 4;
}

.doboard_task_widget-send_message_elements_wrapper {
    display: flex;
    flex-direction: row;
    -moz-flex-direction: row;
    align-content: center;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}

.doboard_task_widget-send_message_input_wrapper {
    position: relative;
    display: inline-grid;
    align-items: center;
    justify-items: center;
}

.doboard_task_widget-send_message_input-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.doboard_task_widget-send_message_input_wrapper input {
    width: 90%;
    position: relative;
    border: none;
    background: none;
    z-index: 1;
    overflow-wrap: break-word;
    margin-bottom: 0 !important;
}

.doboard_task_widget-send_message_input_wrapper input:focus {
    border-color: #007bff;
    outline: none;
}

.doboard_task_widget-send_message_input_wrapper input:focus + .input-icon {
    color: #007bff;
}

.doboard_task_widget-send_message_button, .doboard_task_widget-send_message_paperclip {
    display: inline-grid;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    align-items: center;
}

.doboard_task_widget-send_message_button:hover, .doboard_task_widget-send_message_paperclip:hover rect {
    fill: #45a049;
}

.doboard_task_widget-send_message_button:active, .doboard_task_widget-send_message_paperclip:active {
    transform: scale(0.98);
}

.doboard_task_widget-spinner_wrapper_for_containers {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    width: 100%;
}

.doboard_task_widget-spinner_for_containers {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(transparent, #1C7857);
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #fff 0);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(1turn); }
}

@media (max-width: 480px) {
    .doboard_task_widget {
        position: fixed;
        right: 0;
        top: auto;
        bottom: 0;
        margin: 0 20px 20px;
        box-sizing: border-box;
        transform: translateZ(0);
        -moz-transform: translateZ(0);
        will-change: transform;
        max-height: 90vh;
    }

    .doboard_task_widget-container {
        width: 100%;
        max-width: 290px;
        margin: 0 auto;
        max-height: 90vh;
    }

    .doboard_task_widget-content{
        height: auto;
        max-height: none;
        scrollbar-width: none;
    }

    .doboard_task_widget-content::-webkit-scrollbar {
        display: none;
    }

    .doboard_task_widget-all_issues-container, .doboard_task_widget-concrete_issues-container {
        max-height: 80vh;
    }
}

@supports (-webkit-overflow-scrolling: touch) {
    .doboard_task_widget {
        position: fixed;
    }
}

