body.board-checklist-drawer-open {
    overflow: hidden;
}

.board-checklist-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1075;
    background: rgba(15, 23, 42, 0.34);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.board-checklist-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.board-checklist-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    width: min(470px, 100vw);
    height: 100vh;
    background: #f8fafc;
    border-left: 1px solid #dbe3ee;
    box-shadow: -16px 0 38px rgba(15, 23, 42, 0.18);
    transform: translateX(102%);
    transition: transform 0.24s ease;
}

.board-checklist-drawer.is-open {
    transform: translateX(0);
}

.board-checklist-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 18px;
    background: #fff;
    border-bottom: 1px solid #e5eaf1;
}

.board-checklist-drawer-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.board-checklist-drawer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: #0d6efd;
    background: #eaf2ff;
    border-radius: 12px;
    font-size: 18px;
}

.board-checklist-drawer-title-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.board-checklist-drawer-title-row h5 {
    margin: 0;
    color: #172033;
    font-size: 1.14rem;
    font-weight: 700;
}

.board-checklist-drawer-heading p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.35;
}

.board-checklist-drawer-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    color: #fff;
    background: #0d6efd;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.board-checklist-drawer-close,
.board-checklist-drawer-refresh {
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.board-checklist-drawer-close {
    padding: 0 3px;
    font-size: 1.8rem;
    line-height: 1;
}

.board-checklist-drawer-close:hover,
.board-checklist-drawer-refresh:hover {
    color: #0d6efd;
}

.board-checklist-drawer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
    color: #526174;
    background: #f8fbff;
    border-bottom: 1px solid #e5eaf1;
    font-size: 0.8rem;
}

.board-checklist-drawer-toolbar span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.board-checklist-drawer-refresh {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.board-checklist-drawer-refresh.is-loading i {
    animation: board-checklist-spin 0.8s linear infinite;
}

@keyframes board-checklist-spin {
    to {
        transform: rotate(360deg);
    }
}

.board-checklist-drawer-body {
    flex: 1;
    min-height: 0;
    padding: 14px;
    overflow-y: auto;
}

.board-checklist-drawer-state,
.board-checklist-drawer-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    color: #64748b;
    text-align: center;
}

.board-checklist-drawer-state {
    gap: 10px;
}

.board-checklist-drawer-error {
    margin: 12px 0;
    padding: 14px;
    min-height: 0;
    color: #b42318;
    background: #fff1f0;
    border: 1px solid #ffccc7;
    border-radius: 10px;
}

.board-checklist-drawer-empty {
    flex-direction: column;
    padding: 28px;
}

.board-checklist-drawer-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 13px;
    color: #198754;
    background: #e8f7ef;
    border-radius: 50%;
    font-size: 24px;
}

.board-checklist-drawer-empty strong {
    color: #263247;
    font-size: 0.98rem;
}

.board-checklist-drawer-empty p {
    max-width: 310px;
    margin: 6px 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
}

.board-checklist-drawer-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.board-checklist-demand {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.board-checklist-demand-header {
    padding: 13px 14px 11px;
    border-bottom: 1px solid #edf1f5;
}

.board-checklist-demand-title-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.board-checklist-demand-title {
    min-width: 0;
}

.board-checklist-demand-title a {
    display: block;
    overflow: hidden;
    color: #1f2937;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-checklist-demand-title a:hover {
    color: #0d6efd;
}

.board-checklist-demand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 7px;
    margin-top: 3px;
    color: #6b778c;
    font-size: 0.75rem;
}

.board-checklist-priority {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.board-checklist-priority.is-high {
    color: #b42318;
    background: #fee4e2;
}

.board-checklist-priority.is-medium {
    color: #b54708;
    background: #fff3d6;
}

.board-checklist-priority.is-low {
    color: #027a48;
    background: #dcfae6;
}

.board-checklist-demand-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 11px;
}

.board-checklist-demand-progress {
    flex: 1;
    height: 5px;
    overflow: hidden;
    background: #e9edf3;
    border-radius: 999px;
}

.board-checklist-demand-progress > span {
    display: block;
    height: 100%;
    background: #0d6efd;
    border-radius: inherit;
}

.board-checklist-demand-progress-label {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.72rem;
}

.board-checklist-items {
    padding: 5px 8px 8px;
}

.board-checklist-item {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 9px;
    padding: 9px 7px;
    color: #334155;
    background: transparent;
    border: 0;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.board-checklist-item:hover {
    color: #0d6efd;
    background: #f2f7ff;
}

.board-checklist-item:disabled {
    color: #8b96a8;
    cursor: not-allowed;
    opacity: 0.8;
}

.board-checklist-item:disabled:hover {
    background: transparent;
}

.board-checklist-item.is-saving {
    pointer-events: none;
    opacity: 0.65;
}

.board-checklist-item-check {
    position: relative;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border: 1.6px solid #8794a7;
    border-radius: 4px;
    background: #fff;
}

.board-checklist-item.is-saving .board-checklist-item-check {
    border-color: #0d6efd;
}

.board-checklist-item.is-saving .board-checklist-item-check::after {
    position: absolute;
    inset: 3px;
    content: "";
    border: 2px solid #0d6efd;
    border-top-color: transparent;
    border-radius: 50%;
    animation: board-checklist-spin 0.7s linear infinite;
}

.board-checklist-item-content {
    min-width: 0;
    flex: 1;
}

.board-checklist-item-title {
    display: block;
    color: inherit;
    font-size: 0.84rem;
    line-height: 1.35;
}

.board-checklist-item-group,
.board-checklist-item-details {
    display: block;
    margin-top: 3px;
    color: #8792a5;
    font-size: 0.7rem;
    line-height: 1.3;
}

.board-checklist-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.board-checklist-item-details .is-overdue {
    color: #d92d20;
    font-weight: 600;
}

.board-checklist-readonly-note {
    margin: 0 14px 10px;
    padding: 7px 9px;
    color: #667085;
    background: #f8fafc;
    border-radius: 7px;
    font-size: 0.7rem;
}

.board-checklist-drawer-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 16px;
    color: #64748b;
    background: #fff;
    border-top: 1px solid #e5eaf1;
    font-size: 0.78rem;
}

.board-checklist-navbar-trigger {
    position: relative;
}

.board-checklist-navbar-trigger > i {
    font-size: 1.05rem;
}

.board-checklist-navbar-badge {
    position: absolute;
    top: 1px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    color: #fff;
    background: #0d6efd;
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 575.98px) {
    .board-checklist-drawer {
        width: 100vw;
    }

    .board-checklist-drawer-header {
        padding: 18px 16px 15px;
    }

    .board-checklist-drawer-body {
        padding: 10px;
    }
}
