

.todo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .30);
    display: none;
    z-index: 9997;
    touch-action: none;
}

.todo-days-inline {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.todo-dock {
    position: fixed;
    right: 5px;
    bottom: 37px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.todo-quick-wrap {
    display: flex;
    align-items: center;
    margin-right: -8px;
    position: relative;
    z-index: 1;
}

.todo-quick-input {
    width: 0;
    opacity: 0;
    pointer-events: none;
    border: 1px solid #cfcfcf;
    border-right: 0;
    background: #fff;
    height: 46px;
    padding: 0;
    font: 14px Arial, sans-serif;
    transition: width .18s ease, opacity .18s ease, padding .18s ease;
    box-sizing: border-box;
}

.todo-panel-body{
    padding: 0 3px 0 3px;
}

.todo-quick-wrap.open .todo-quick-input {
    width: 300px;
    opacity: 1;
    pointer-events: auto;
    padding: 0 12px;
}

.todo-secondary-toggle-btn {
    background: #f3f3f3;
    color: #222;
    border-color: #cfcfcf;
}

.todo-secondary-toggle-btn:hover {
    background: #ebebeb;
}

.todo-quick-toggle-btn {
    width: 70px;
    height: 46px;
    border: 1px solid #b7c8ba;
    border-right: 0;
    background: #bfe7c6;
    color: #1f3a28;
    cursor: pointer;
    border-radius: 23px 0 0 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 27px Arial, sans-serif;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    right: -3px;
}

.todo-badge {
    width: 58px;
    height: 58px;
    background: #bfe7c6;
    color: #1f3a28;
    border: 1px solid #8fc89a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font: 700 27px Arial, sans-serif;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    position: relative;
    z-index: 2;
    padding: 0;
}

.todo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .30);
    display: none;
    z-index: 9997;
}

.todo-overlay.show {
    display: block;
}

.todo-panel {
    position: fixed;
    top: 0;
    right: -420px;
    bottom: 0;
    width: 400px;
    max-width: 400px;
    background: #fff;
    box-shadow: -6px 0 18px rgba(0, 0, 0, .16);
    transition: right .22s ease;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #d9d9d9;
    overflow-y: auto;
    overflow-x: hidden;
}

.todo-panel.show {
    right: 0;
}

.todo-panel-header {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #dcdcdc;
    background: #f5f5f5;
}



.todo-panel-title {
    font: 700 20px Arial, sans-serif;
    color: #222;
}

.todo-close-btn {
    border: 1px solid #cfcfcf;
    background: #fff;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 0;
}

.todo-section {
    margin-bottom: 18px;
}

.todo-section-title {
    font: 700 16px Arial, sans-serif;
    margin-bottom: 12px;
    color: #222;
}

.todo-big-toggle-btn {
    width: 100%;
    border: 1px solid #222;
    background: #222;
    color: #fff;
    padding: 12px 14px;
    cursor: pointer;
    font: 700 15px Arial, sans-serif;
    border-radius: 0;
    text-align: left;
}

.todo-big-toggle-btn:hover {
    background: #111;
}

.todo-add-form-wrap {
    margin-top: 12px;
}

.todo-row {
    margin-bottom: 10px;
}

.todo-label {
    display: block;
    font: 700 13px Arial, sans-serif;
    margin-bottom: 4px;
    color: #333;
}

.todo-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfcfcf;
    background: #fff;
    padding: 9px 10px;
    font: 14px Arial, sans-serif !important;
    border-radius: 0;
}

.todo-textarea {
    min-height: 90px;
    resize: vertical;
}

.todo-row-checkbox {
    margin-top: 6px;
}

.todo-days-inline {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
}

.todo-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #d3d3d3;
    padding: 6px 7px;
    background: #fafafa;
    min-width: 50px;
    box-sizing: border-box;
}

.todo-day input {
    margin: 0 0 4px 0;
}

.todo-day span {
    font: 12px Arial, sans-serif;
    text-align: center;
    color: #333;
    line-height: 1;
}

.todo-btn {
    border: 1px solid #222;
    background: #222;
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
    font: 700 14px Arial, sans-serif;
    border-radius: 0;
}

.todo-btn:hover {
    background: #111;
}

.todo-message {
    min-height: 18px;
    color: #b00020;
    font: 13px Arial, sans-serif;
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.todo-item {
    border: 1px solid #d9d9d9;
    border-left-width: 6px;
    background: #fafafa;
    padding: 10px 10px 10px 12px;
    border-radius: 0;
}

.todo-item.prio-high {
    border-left-color: #b91c1c;
}

.todo-item.prio-medium {
    border-left-color: #ddda0c;
}

.todo-item.prio-low {
    border-left-color: #15803d;
}

.todo-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.todo-item-subject {
    font: 700 14px Arial, sans-serif;
    color: #222;
}

.todo-item-info {
    margin-top: 6px;
    font: 13px Arial, sans-serif;
    color: #444;
    white-space: pre-wrap;
}

.todo-item-meta {
    margin-top: 8px;
    font: 12px Arial, sans-serif;
    color: #666;
}

.todo-item-actions {
    margin-top: 10px;
}

.todo-done-btn {
    border: 1px solid #15803d;
    background: #15803d;
    color: #fff;
    padding: 7px 11px;
    cursor: pointer;
    font: 12px Arial, sans-serif;
    border-radius: 0;
}

.todo-done-btn:hover {
    background: #166534;
}

.todo-edit-recurring-btn,
.todo-delete-recurring-btn {
    border: 1px solid #444;
    background: #fff;
    color: #222;
    padding: 7px 11px;
    cursor: pointer;
    font: 12px Arial, sans-serif;
    border-radius: 0;
    margin-right: 6px;
}

.todo-delete-recurring-btn {
    border-color: #b91c1c;
    color: #b91c1c;
}
.todo-recurring-wrap {
    margin-top: 10px;
}

.todo-badge,
.todo-quick-toggle-btn {
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.todo-level-low {
    background: #bfe7c6 !important;
    border-color: #8fc89a !important;
    color: #1f3a28 !important;
}

.todo-level-mid {
    background: #f6e7a8 !important;
    border-color: #e4cf78 !important;
    color: #5b4a12 !important;
}

.todo-level-high {
    background: #efb7b7 !important;
    border-color: #dc8f8f !important;
    color: #5f2020 !important;
}

.todo-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

.todo-recurring-icon {
    font-size: 32px;
        color: #7C8;
        /* border: 1px solid #dcdcdc; */
        /* background: #f4f4f4; */
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 3px;
        /* padding: 4px; */
        flex-shrink: 0;
        position: absolute;
        top: -11px;
        right: -11px;
}

.todo-recurring-icon:hover {
    background: #e9e9e9;
}

.todo-edit-btn {

    border: 1px solid #444;
    background: #fff;
    color: #222;
    padding: 7px 11px;
    cursor: pointer;
    font: 12px Arial;
    margin-right: 6px;

}

.todo-edit-btn:hover {

    background: #f1f1f1;

}

input[type='checkbox'].todoCheck {
    width: 30px !important;
    height: 30px !important;
    background-color: #EDF59D !important;
    border: 1px solid #454343 !important;
}

input[type='checkbox']:checked.todoCheck{
    background-color: #68b476 !important;
}

@media (max-width: 600px) {
    .todo-panel {
        width: 100vw;
        max-width: 100vw;
        right: -100vw;
        bottom: 0;
    }

    .todo-quick-wrap.open .todo-quick-input {
        width: 210px;
    }

    .todo-input {
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #cfcfcf;
        background: #fff;
        padding: 9px 10px;
        font: 14px Arial, sans-serif !important;
        border-radius: 0;
    }
}

