/* ========================================
   House Tasks Kanban
   Skyblue / White Masterdata Stil
   ======================================== */

.htd-root {
    padding: 0;
}

/* ---------- Header ---------- */

.htd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.htd-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}

.htd-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.htd-title {
    font-weight: 850;
    color: var(--rr-text-strong, #0f172a);
    margin: 0;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.htd-chip {
    width: fit-content;
    border-radius: var(--rr-radius-pill, 999px) !important;
    font-weight: 700;
    border-color: rgba(0, 0, 0, 0.35) !important;
    color: #374151 !important;
    background: rgba(250, 250, 250, 0.78) !important;
}

/* ---------- Filters ---------- */

.htd-filters {
    position: relative;
    padding: 16px;
    margin-top: 12px;
    border-radius: var(--rr-radius-lg, 18px);
    border: 1px solid rgba(0, 0, 0, 0.22);
    background: linear-gradient( 135deg, rgba(250, 250, 250, 0.98), rgba(245, 245, 245, 0.78), rgba(255, 255, 255, 0.95) );
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

    .htd-filters > * {
        position: relative;
        z-index: 1;
    }

.htd-input .mud-input-root,
.htd-btn .mud-button-root,
.htd-btn-primary .mud-button-root {
    border-radius: var(--rr-radius-md, 14px) !important;
}

.htd-input .mud-input-root {
    background: rgba(255, 255, 255, 0.9);
}

.htd-btn-primary .mud-button-root {
    padding-left: 14px;
    padding-right: 14px;
    box-shadow: none;
    text-transform: none;
    font-weight: 700;
}

/* ---------- Loading ---------- */

.htd-loading {
    margin-top: 18px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--rr-radius-lg, 18px);
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.86) );
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
}

.htd-muted {
    color: var(--rr-text-secondary, #64748b);
    line-height: 1.4;
}

/* ---------- Board ---------- */

.htd-board {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

/* ---------- Column ---------- */

.htd-column {
    min-width: 0;
    min-height: 360px;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: var(--rr-radius-lg, 18px);
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.82) );
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Header band: a clean monochrome surface highlights the lane title instead of
   the old black accent stripe. */
.htd-lanehead {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0;
    padding: 14px 16px;
    background: #F0F0F0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.htd-lane-title {
    font-weight: 850;
    color: var(--rr-text-strong, #0f172a);
    margin: 0;
    padding-left: 4px;
    line-height: 1.25;
}

.htd-lane-sub {
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: var(--rr-radius-pill, 999px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #374151;
    background: rgba(250, 250, 250, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.24);
    white-space: nowrap;
}

/* ---------- Dropzone ---------- */

.htd-dropzone {
    flex: 1;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: rgba(250, 250, 250, 0.34);
}

/* ---------- Task card ---------- */

.htd-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: var(--rr-radius-md, 14px);
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

    .htd-card:hover {
        transform: translateY(-2px);
        border-color: rgba(0, 0, 0, 0.34);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
    }

.htd-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.htd-card-title {
    color: var(--rr-text-strong, #0f172a);
    font-weight: 800;
    line-height: 1.25;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
}

.htd-card-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

    .htd-card-actions .mud-icon-button {
        border-radius: 10px;
        color: #374151;
        background: rgba(250, 250, 250, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.18);
    }

        .htd-card-actions .mud-icon-button:hover {
            background: rgba(245, 245, 245, 0.95);
        }

.htd-prio {
    border-radius: var(--rr-radius-pill, 999px) !important;
    white-space: nowrap;
    font-weight: 700;
    border-color: rgba(0, 0, 0, 0.35) !important;
    color: #374151 !important;
    background: rgba(250, 250, 250, 0.78) !important;
}

.htd-card .mud-chip-root {
    border-radius: var(--rr-radius-pill, 999px) !important;
    font-weight: 700;
    border-color: rgba(0, 0, 0, 0.35) !important;
    color: #374151 !important;
    background: rgba(250, 250, 250, 0.78) !important;
}

.htd-card-desc {
    margin-top: 6px;
    color: var(--rr-text-secondary, #64748b);
    line-height: 1.45;
}

/* ---------- Tabs, falls vorhanden ---------- */

.htd-task-tabs {
    border-radius: var(--rr-radius-lg, 18px);
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.80) );
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

    .htd-task-tabs .mud-tabs-toolbar {
        background: rgba(250, 250, 250, 0.92);
        border-bottom: 1px solid rgba(0, 0, 0, 0.14);
    }

    .htd-task-tabs .mud-tab {
        text-transform: none;
        font-weight: 800;
        color: #64748b;
    }

        .htd-task-tabs .mud-tab.mud-tab-active {
            color: #374151;
        }

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
    .htd-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .htd-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .htd-header-right {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .htd-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 599.98px) {
    .htd-title {
        white-space: normal;
    }

    .htd-filters {
        padding: var(--rr-space-md);
    }
}
