.tasks-page {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
}

.tasks-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: 30px;
    padding: 0 4px;
    flex: 0 0 auto;
}

.tasks-view-toggle {
    margin-left: auto;
    display: flex;
    gap: 2px;
}

.tasks-toolbar .tasks-view-toggle button {
    box-sizing: border-box;
    width: auto;
    min-width: 52px;
    height: 26px;
    padding: 0 8px;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: var(--sc-menu-text, #383434);
    font-size: 12px;
    cursor: pointer;
}

.tasks-toolbar .tasks-view-toggle button.tasks-view-on {
    background: #424242;
    color: #f0f0f0;
}

/* ---- Search row ----------------------------------------------------------
   Same as the WPF Task Manager: every filter on one line, a tiny label above a
   borderless field, the placeholder says what to type. Enter runs Find (data-sc-enter-find). */
.tasks-params-wrap {
    flex: 0 0 auto;
    padding: 2px 8px 4px;
    border-bottom: 1px solid #e8e8e8;
}

.tasks-params-title {
    font-size: 11px;
    line-height: 14px;
    color: #424242;
    margin: 0 0 1px;
}

.tasks-params {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
}

.tasks-params .mud-input-control-helper-container {
    display: none;
}

.tasks-params .mud-picker .mud-input-control,
.tasks-params .mud-picker .mud-input {
    margin-top: 0;
}

.tasks-param {
    display: flex;
    flex-direction: column;
    flex: 1 1 110px;
    min-width: 0;
}

.tasks-param-check { flex: 0 0 auto; }
.tasks-param-name  { flex-basis: 110px; }
.tasks-param-short { flex-basis: 90px; }
.tasks-param-desc  { flex-basis: 140px; }
.tasks-param-days  { flex-basis: 115px; }
.tasks-param-range { flex: 1 1 165px; }

.tasks-param label {
    font-size: 10px;
    line-height: 12px;
    color: #616161;
    white-space: nowrap;
}

.tasks-params .mud-input {
    font-size: 12px;
}

.tasks-params .mud-input-control {
    margin: 0;
}

.tasks-params .mud-input > input.mud-input-root,
.tasks-params .mud-picker .mud-input > input.mud-input-root,
.tasks-params .mud-range-input-separator + input {
    padding: 2px 0 3px !important;
    height: 15px;
    line-height: 15px;
}

.tasks-params .mud-input::placeholder,
.tasks-params .mud-input-root::placeholder {
    color: #9e9e9e;
    opacity: 1;
}

/* Borderless at rest; a hairline shows the field you're in or hovering. */
.tasks-param .mud-input {
    border-bottom: 1px solid transparent;
}

.tasks-param .mud-input:hover {
    border-bottom-color: #e0e0e0;
}

.tasks-param .mud-input:focus-within {
    border-bottom-color: #424242;
}

.tasks-param-check {
    padding-top: 9px;
}

.tasks-param-check .mud-checkbox {
    margin-left: -8px;
}

.tasks-param-check .mud-typography {
    font-size: 12px;
}

/* Below ~1100px wide the row may wrap instead of crushing the date ranges. */
@media (max-width: 1100px) {
    .tasks-params {
        flex-wrap: wrap;
        row-gap: 4px;
    }
}

/* ---- Shared by the Edit Task dialog ----------------------------------------
   Type scale: 11px labels, 13px values, 16px dialog title. Colors reuse the grid's. */
.tasks-field-label {
    font-size: 11px;
    line-height: 14px;
    color: #616161;
    margin: 0;
}

.tasks-edit .mud-input {
    font-size: 13px;
}

.tasks-primary.mud-button-filled {
    background: #424242;
    color: #f0f0f0;
    min-width: 72px;
    box-shadow: none;
}

.tasks-primary.mud-button-filled:hover {
    background: #212121;
}

.tasks-edit .mud-button-root:focus-visible,
.tasks-dlg-actions .mud-button-root:focus-visible {
    outline: 2px solid #fdd3a8;
    outline-offset: 1px;
}

.tasks-group-title {
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #424242;
}

.tasks-link-btn.mud-button-root {
    font-size: 12px;
    min-width: 0;
    padding: 0 6px;
    color: #1565c0;
}

.tasks-grid-host {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tasks-grid.tasks-grid-fill {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.tasks-grid.tasks-grid-fill .mud-table-container,
.tasks-grid.tasks-grid-fill .mud-table-container > .mud-drop-container,
.tasks-grid.tasks-grid-fill .mud-table-container table {
    height: 100%;
}

.tasks-grid.tasks-grid-fill .mud-table-body::after {
    content: "";
    display: table-row;
    height: 100%;
}

.tasks-grid .mud-table-body .mud-table-cell {
    padding: 2px 6px !important;
    vertical-align: middle;
}

.tasks-grid .tasks-col-assigned { width: 132px; }
.tasks-grid .tasks-col-due { width: 124px; }
.tasks-grid .tasks-col-glue { width: 140px; }
.tasks-grid .tasks-col-completed { width: 76px; }
.tasks-grid .tasks-col-bucket { width: 92px; }
.tasks-grid .tasks-col-completed-on { width: 120px; }
.tasks-grid .tasks-col-importance { width: 132px; }
.tasks-grid .tasks-col-attach { width: 56px; }
.tasks-grid .tasks-col-menu { width: 36px; }
.tasks-grid .tasks-col-desc { min-width: 220px; }

.tasks-grid td.tasks-col-assigned,
.tasks-grid td.tasks-col-glue,
.tasks-grid td.tasks-col-desc,
.tasks-grid td.tasks-col-bucket,
.tasks-grid td.tasks-col-completed-on {
    overflow: hidden;
}

@media (max-width: 1280px) {
    .tasks-grid .tasks-col-completed-on {
        display: none;
    }
}

@media (max-width: 1100px) {
    .tasks-grid .tasks-col-bucket {
        display: none;
    }
}

@media (max-width: 1000px) {
    .tasks-grid .tasks-col-desc {
        min-width: 140px;
    }
}

@media (max-width: 900px) {
    .tasks-grid .tasks-col-completed {
        display: none;
    }
}

.tasks-grid .mud-table-body .mud-table-row:not(.sc-datagrid-row-selected):hover > .mud-table-cell {
    background-color: #e8e8e8;
}

.tasks-grid .tasks-select-col {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    padding: 0 2px !important;
    text-align: center;
}

.tasks-grid .tasks-row-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 22px;
    visibility: hidden;
    cursor: pointer;
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: none;
}

.tasks-grid .tasks-row-select:hover,
.tasks-grid .tasks-row-select:focus,
.tasks-grid .tasks-row-select:focus-visible {
    background: transparent;
    box-shadow: none;
    outline: none;
}

.tasks-grid .mud-table-body .mud-table-row:hover .tasks-row-select,
.tasks-grid .mud-table-body .mud-table-row.sc-datagrid-row-selected .tasks-row-select,
.tasks-grid .mud-table-body .mud-table-row:hover .tasks-hover-only,
.tasks-grid .mud-table-body .mud-table-row.sc-datagrid-row-selected .tasks-hover-only,
.tasks-grid .mud-table-body .mud-table-row:focus-within .tasks-hover-only {
    visibility: visible;
}

.tasks-grid .tasks-row-select svg {
    display: block;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.tasks-hover-only {
    visibility: hidden;
}

.tasks-due {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    white-space: nowrap;
    width: 100%;
    min-width: 148px;
}

.tasks-due-field {
    min-width: 148px;
}

.tasks-due-edit .mud-icon-button {
    width: 16px;
    height: 16px;
    min-width: 16px;
    padding: 0;
}

.tasks-due-edit .mud-icon-root {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.tasks-desc {
    white-space: normal;
    max-width: 600px;
    line-height: 1.25;
}

/* Single-line underline. Lines and the default slot padding leave the text above the line and stretch the row. */
.tasks-desc-edit.mud-input-control {
    margin: 0 !important;
}

.tasks-grid .mud-table-cell .tasks-desc-edit .mud-input.mud-input-text,
.tasks-edit .tasks-desc-edit .mud-input.mud-input-text {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.tasks-desc-edit .mud-input-control-helper-container {
    display: none !important;
}

.tasks-desc-edit .mud-input > input.mud-input-root,
.tasks-desc-edit .mud-input > textarea.mud-input-root {
    padding: 0 0 1px !important;
    margin: 0 !important;
    height: auto;
    min-height: 0;
    line-height: 1.25;
}

.tasks-grid .tasks-row-action {
    visibility: hidden;
}

/* Cell edit mode stamps edit-mode-cell on every editable td, so that class alone cannot mean "this row is being edited".
   A row-wide focus match cannot either: closing a date, time, or Glue dialog puts focus back on a control in the row. */
.tasks-grid .mud-table-body .mud-table-row:hover .tasks-row-action,
.tasks-grid .mud-table-body .mud-table-row:has(.edit-mode-cell:focus-within) .tasks-row-action,
.tasks-grid .tasks-due.tasks-open .tasks-row-action,
.tasks-grid .tasks-glue-cell.tasks-open .tasks-row-action {
    visibility: visible;
}

.tasks-edit .tasks-hover-only {
    visibility: visible;
}

.tasks-due-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4px;
}

.tasks-due-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    cursor: pointer;
}

.tasks-due-btn .mud-icon-root {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.tasks-expand-col {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    padding: 0 2px !important;
    text-align: center;
}

.tasks-edit-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 22px;
    cursor: pointer;
}

/* ---- Edit Task dialog (redesign) --------------------------------------- */
.tasks-edit-body {
    background: #fff;
    padding-top: 0;
}

.tasks-dlg-title {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    color: #212121;
}

.tasks-dlg-meta {
    font-size: 11px;
    line-height: 14px;
    color: #616161;
}

.tasks-edit {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 13px;
}

/* The grid's inline editor hides helper text; the dialog needs it for the "required" message. */
.tasks-edit-desc .tasks-desc-edit .mud-input-control-helper-container {
    display: flex !important; /* beats the grid editor's display:none !important */
    font-size: 12px;
}

/* Description is the only boxed field in the dialog: outlined, multi-line, grows 3 to 10 lines.
   The grid editor's zero-padding rule above is !important, so the box needs !important too. */
.tasks-edit-desc .tasks-desc-box .mud-input.mud-input-outlined {
    background: #fff;
    border-radius: 4px;
}

/* Always 1px. MudBlazor's outlined input goes to 2px primary on :focus-within and opens a legend
   notch; both are overridden here with selectors at least as specific as MudBlazor's. */
.tasks-edit-desc .tasks-desc-box .mud-input.mud-input-outlined .mud-input-outlined-border,
.tasks-edit-desc .tasks-desc-box .mud-input.mud-input-outlined > .mud-input-outlined-border {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: border-color 150ms ease;
}

.tasks-edit-desc .tasks-desc-box .mud-input.mud-input-outlined:not(.mud-disabled):not(:focus-within):hover .mud-input-outlined-border {
    border-width: 1px;
    border-color: #c8c8c8;
}

.tasks-edit-desc .tasks-desc-box .mud-input.mud-input-outlined:focus-within > .mud-input-outlined-border,
.tasks-edit-desc .tasks-desc-box .mud-input.mud-input-outlined:focus-within .mud-shrink > .mud-input-outlined-border {
    border-width: 1px;
    border-color: #9e9e9e;
}

/* No label, so no notch: keep the legend collapsed in every state. */
.tasks-edit-desc .tasks-desc-box .mud-input.mud-input-outlined .mud-input-outlined-border legend {
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* MudBlazor sets the error color with !important; match it but keep 1px. */
.tasks-edit-desc .tasks-desc-box .mud-input.mud-input-outlined.mud-input-error .mud-input-outlined-border,
.tasks-edit-desc .tasks-desc-box.mud-input-error .mud-input-outlined-border {
    border-width: 1px !important;
    border-color: #b3261e !important;
}

.tasks-edit-desc .tasks-desc-box .mud-input > textarea.mud-input-root {
    padding: 8px 10px !important;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    resize: none;
}

.tasks-edit-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
}

.tasks-edit-cols + .tasks-edit-cols,
.tasks-edit-cols + .tasks-detail {
    border-top: 1px solid #e8e8e8;
    padding-top: 12px;
}

.tasks-form {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
}

.tasks-form > .tasks-field-label {
    text-align: right;
    font-size: 12px;
}

.tasks-form .tasks-due-edit {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
}

.tasks-form .tasks-due-edit .tasks-due-field {
    flex: 1 1 auto;
}

.tasks-form .tasks-due-edit .tasks-due-time {
    flex: 0 0 120px;
}

.tasks-glue-num {
    font-weight: 600;
}

.tasks-check-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
}

.tasks-check-line .mud-checkbox {
    margin-left: -9px;
}

.tasks-note {
    font-size: 12px;
    color: #616161;
}

.tasks-note-warn {
    color: #b3261e;
    font-weight: 600;
}

.tasks-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.tasks-plain-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tasks-plain-list > li {
    padding: 3px 0;
    border-bottom: 1px solid #f2f2f2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tasks-empty {
    font-size: 12px;
    color: #757575;
    padding: 6px 0;
}

.tasks-detail {
    background: #fff;
}

.tasks-detail-tabs .mud-tab {
    font-size: 12px;
    min-height: 32px;
    min-width: 0;
    padding: 4px 16px;
    text-transform: none;
}

.tasks-subbar {
    display: flex;
    gap: 8px;
    margin: 6px 0 4px;
}

.tasks-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: #424242;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 2px;
    cursor: pointer;
}

.tasks-sub-btn:hover {
    background: #e8e8e8;
}

.tasks-sub-btn:disabled {
    opacity: .45;
    cursor: default;
}

.tasks-sub-btn svg {
    width: 14px;
    height: 14px;
}

.tasks-dlg-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: flex-end;
    padding: 4px 8px 4px;
}

.tasks-dlg-actions > .tasks-note {
    margin-right: auto;
}

.tasks-grid .mud-table-body .mud-table-row.tasks-completed > .mud-table-cell {
    color: rgba(106, 106, 106, 0.5);
}

.tasks-stars {
    display: inline-flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
}

.tasks-star {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
}

.tasks-star-base,
.tasks-star-on {
    width: 18px;
    height: 18px;
}

.tasks-star-clip {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    height: 18px;
    color: var(--mud-palette-warning, #f9a825);
}

.tasks-star-hit {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 1;
}

.tasks-star-left { left: 0; }
.tasks-star-right { right: 0; }

.tasks-hybrid-root {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}

.tasks-glue-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-width: 50px;
    gap: 4px;
    cursor: pointer;
}

.tasks-glue-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: pre-wrap;
    line-height: 1.2;
}

.tasks-glue-icon {
    flex: 0 0 auto;
    margin-top: 1px;
}

.tasks-dialog-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding-right: 28px;
}

.tasks-dialog-desc {
    font-size: 16px;
    font-weight: 600;
    white-space: pre-wrap;
}

.tasks-dialog-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #444;
}

/* ---- Glue dialog ----------------------------------------------------------
   Small dialog. "Glued to" rows look like grid rows (thin #f2f2f2 rules, 12px);
   the search box is the one bordered box. Open/Folder sit next to the value at
   reduced opacity; remove (×) is separated at the far right. */
.tasks-gl-body {
    padding-top: 0 !important;
}

.tasks-gl {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 360px;
    font-size: 12px;
}

.tasks-gl-links {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    border-top: 1px solid #f2f2f2;
}

.tasks-gl-link {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 2px 0 4px;
    border-bottom: 1px solid #f2f2f2;
}

.tasks-gl-link:hover {
    background: #fafafa;
}

.tasks-gl-num {
    font-weight: 600;
    color: #212121;
    white-space: nowrap;
}

.tasks-gl-sep {
    color: #9e9e9e;
}

.tasks-gl-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #424242;
}

.tasks-gl-tag {
    font-size: 10px;
    line-height: 14px;
    padding: 0 5px;
    border-radius: 7px;
    background: #ececec;
    color: #424242;
    white-space: nowrap;
}

.tasks-gl-tag-warn {
    background: transparent;
    color: #b3261e;
}

.tasks-gl-removed .tasks-gl-num,
.tasks-gl-removed .tasks-gl-name {
    text-decoration: line-through;
    color: #9e9e9e;
}

.tasks-gl-tools {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.tasks-gl-tools .mud-icon-button {
    padding: 3px;
    opacity: .55;
}

.tasks-gl-tools .mud-icon-button .mud-icon-root {
    font-size: 16px;
}

.tasks-gl-link:hover .tasks-gl-tools .mud-icon-button,
.tasks-gl-tools .mud-icon-button:focus-visible {
    opacity: 1;
}

.tasks-gl-remove {
    width: 24px;
    height: 24px;
    margin-left: 10px;
    border: 0;
    border-left: 1px solid #ececec;
    background: transparent;
    color: #757575;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.tasks-gl-removed .tasks-gl-tools {
    margin-left: auto;
}

.tasks-gl-remove:hover {
    color: #b3261e;
}

.tasks-gl-remove:focus-visible,
.tasks-gl-hit .mud-button-root:focus-visible {
    outline: 2px solid #fdd3a8;
    outline-offset: 1px;
}

.tasks-gl-undo.mud-button-root {
    margin-left: 6px;
}

.tasks-gl-add-title {
    margin-top: 6px;
}

.tasks-gl-searchrow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tasks-gl-box {
    flex: 1 1 auto;
}

.tasks-gl-types {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 2px 0 4px;
}

.tasks-gl-types-label {
    font-size: 11px;
    color: #616161;
    margin-right: 2px;
}

.tasks-gl-types .tasks-gl-type.mud-chip {
    height: 20px;
    margin: 0;
    font-size: 11px;
    color: #757575;
    border-color: #e0e0e0;
    background: #fff;
}

.tasks-gl-types .tasks-gl-type-on.mud-chip {
    color: #212121;
    border-color: #c8c8c8;
    background: #ececec;
}

.tasks-gl-results {
    flex: 1 1 auto;
    min-height: 180px;
    max-height: 340px;
    overflow: auto;
}

.tasks-gl-group {
    margin: 6px 0 0;
    padding: 2px 4px;
    font-size: 10px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #616161;
    border-bottom: 1px solid #f2f2f2;
}

.tasks-gl-count {
    font-weight: 400;
    color: #9e9e9e;
}

.tasks-gl-hit {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, .7fr) 56px;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 3px 4px;
    border-bottom: 1px solid #f2f2f2;
}

.tasks-gl-hit-on {
    background: #e8e8e8;
}

.tasks-gl-stack {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tasks-gl-stack > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tasks-gl-extra {
    color: #616161;
}

.tasks-gl-sub {
    font-size: 11px;
    color: #757575;
}

.tasks-gl-hit .tasks-gl-addbtn.mud-button-root {
    min-width: 0;
    height: 22px;
    padding: 0 10px;
    font-size: 11px;
    color: #424242;
    border-color: #c8c8c8;
}

.tasks-gl-done {
    justify-self: center;
    font-size: 11px;
    color: #9e9e9e;
}

.tasks-pop-anchor {
    display: inline-flex;
    cursor: pointer;
}

.tasks-pop-anchor.tasks-open {
    visibility: visible;
}

/* Attachments dialog: same small dialog and grid-like rows as Glue. The file name is the
   open target, the type sits next to Open at the right, remove (x) is separated at the far right. */
.tasks-at-thumb {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #757575;
    overflow: hidden;
}

.tasks-at-thumb img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border: 1px solid #ececec;
}

.tasks-at-thumb .mud-icon-root {
    font-size: 18px;
}

.tasks-at-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #212121;
}

.tasks-at-open-name {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.tasks-at-open-name:hover {
    color: #1565c0;
    text-decoration: underline;
}

.tasks-at-open-name:focus-visible,
.tasks-at:focus-visible {
    outline: 2px solid #fdd3a8;
    outline-offset: 1px;
}

.tasks-at:focus {
    outline: none;
}

.tasks-at-type {
    font-size: 11px;
    color: #9e9e9e;
    margin-right: 4px;
}

.tasks-at-addrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.tasks-at-addrow > .tasks-note {
    font-size: 11px;
    color: #757575;
}

.tasks-at-btn.mud-button-root {
    min-width: 0;
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
    color: #424242;
    border-color: #c8c8c8;
}

.tasks-at-btn.mud-button-root:focus-visible {
    outline: 2px solid #fdd3a8;
    outline-offset: 1px;
}

.tasks-at-msg {
    padding: 2px 0;
}

.tasks-more-pop {
    border: 1px solid #000;
    background: #fff;
    padding: 5px;
}

.tasks-more-row {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 5px;
}

.tasks-more-row > span:first-child {
    text-align: right;
}

.tasks-glue-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
}

.tasks-kanban-host {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tasks-kanban {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    align-items: stretch;
}

.tasks-kanban-col {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid #d0d0d0;
}

.tasks-kanban-head {
    background: #424242;
    color: #f0f0f0;
    padding: 6px 8px;
    font-size: 13px;
}

.tasks-kanban-zone {
    flex: 1 1 auto;
    min-height: 80px;
    overflow: auto;
    padding: 6px;
    background: #f7f7f7;
}

.tasks-kanban-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 8px;
    margin-bottom: 6px;
    cursor: pointer;
}

.tasks-kanban-card:hover {
    background: #e8e8e8;
}

.tasks-kanban-card.tasks-kanban-selected,
.tasks-kanban-card.tasks-kanban-selected:hover {
    background-color: #fdd3a8;
    background-image: linear-gradient(to bottom, #fdd3a8 0%, #fce79f 100%);
}

.tasks-kanban-desc {
    white-space: normal;
    margin-bottom: 4px;
}

.tasks-kanban-glue {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.tasks-busy {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.55);
    z-index: 2;
}

/* ---- Search box variant ---------------------------------------------------
   One box instead of a row of fields. Applied filters are chips inside the box;
   the field button picks what the typed text searches. Same 12px type and
   #e0e0e0 / #9e9e9e borders as the grid and the Description box. */
.tasks-sb-host {
    padding: 6px 8px;
}

.tasks-sb-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tasks-sb-anchor {
    position: relative;
    flex: 0 1 480px;
    min-width: 320px;
}

.tasks-sb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    padding: 2px 6px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: text;
}

.tasks-sb:hover {
    border-color: #c8c8c8;
}

.tasks-sb:focus-within,
.tasks-sb.tasks-sb-focus {
    border-color: #9e9e9e;
}

.tasks-sb .tasks-chip.mud-chip {
    height: 20px;
    margin: 0;
    font-size: 11px;
    color: #424242;
    border-color: #c8c8c8;
    background: #f5f5f5;
}

.tasks-sb .tasks-chip-default.mud-chip {
    background: #fff;
    border-style: dashed;
    color: #616161;
}

.tasks-sb .tasks-chip .mud-chip-close-button {
    width: 14px;
    height: 14px;
    margin-left: 2px;
}

.tasks-sb .tasks-chip .mud-chip-close-button .mud-icon-root {
    font-size: 12px;
}

.tasks-sb-field {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    padding: 0 6px;
    border: 0;
    border-radius: 3px;
    background: #ececec;
    color: #424242;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}

.tasks-sb-field:hover {
    background: #e0e0e0;
}

.tasks-sb-field:focus-visible,
.tasks-sb-cancel:focus-visible {
    outline: 2px solid #fdd3a8;
    outline-offset: 1px;
}

.tasks-sb-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #616161;
}

.tasks-sb-input {
    flex: 1 1 120px;
    min-width: 100px;
    height: 24px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 12px;
    color: #212121;
}

.tasks-sb-input::placeholder {
    color: #9e9e9e;
}

/* MudBlazor copies Class onto the inner input too, so only size the outer picker. */
.mud-picker.tasks-sb-range {
    flex: 1 1 200px;
    margin: 0 !important;
}

.tasks-sb .tasks-sb-range .mud-input {
    font-size: 12px;
}

.tasks-sb .tasks-sb-range input.mud-input-slot {
    flex: 1 1 0;
    min-width: 0;
    height: 22px;
    padding: 2px 0 !important;
}

.tasks-sb .tasks-sb-range .mud-range-input-separator {
    width: 14px;
    height: 14px;
    margin: 0 6px;
    color: #9e9e9e;
}

.tasks-sb-cancel {
    border: 0;
    background: transparent;
    color: #757575;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.tasks-sb-row .tasks-result-count {
    font-size: 11px;
    color: #616161;
    white-space: nowrap;
}

.tasks-sb-pop.mud-popover {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.tasks-sb-pop-title,
.tasks-sb-pop-foot {
    padding: 4px 10px;
    font-size: 10px;
    line-height: 14px;
    color: #757575;
}

.tasks-sb-pop-title {
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #f2f2f2;
}

.tasks-sb-pop-foot {
    border-top: 1px solid #f2f2f2;
}

.tasks-sb-pop .mud-list {
    padding: 2px 0;
}

.tasks-sb-pop .tasks-sb-item.mud-list-item {
    padding: 2px 10px;
    min-height: 24px;
}

.tasks-sb-item-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.tasks-sb-item-text {
    font-size: 12px;
    color: #212121;
}

.tasks-sb-item-hint {
    font-size: 11px;
    color: #9e9e9e;
}

.tasks-sb-pop .mud-selected-item.tasks-sb-item {
    background: #e8e8e8;
}

.tasks-gl.tasks-at {
    min-height: 220px;
}
