@import '_content/LuddIT.SpeechToTextAI/LuddIT.SpeechToTextAI.8hit45vvug.bundle.scp.css';

/* /Components/Common/LuddITKundHeader.razor.rz.scp.css */
.ldk[b-a5gx2b5bxj] {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ldk-avatar[b-a5gx2b5bxj] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ld-accent);
    color: var(--ld-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
}

.ldk.is-sm .ldk-avatar[b-a5gx2b5bxj] {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.ldk-text[b-a5gx2b5bxj] {
    flex: 1;
    min-width: 0;
}

.ldk-label[b-a5gx2b5bxj] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
}

.ldk-name[b-a5gx2b5bxj] {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: var(--ld-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ldk.is-sm .ldk-name[b-a5gx2b5bxj] {
    font-size: 14px;
}
/* /Components/Common/LuddITPageHeader.razor.rz.scp.css */
.ldh-card[b-47lrpyeppu] {
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
}

.ldh-header[b-47lrpyeppu] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.ldh-avatar[b-47lrpyeppu] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ld-accent);
    color: var(--ld-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.ldh-text[b-47lrpyeppu] {
    flex: 1;
    min-width: 0;
}

.ldh-label[b-47lrpyeppu] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
}

.ldh-title-row[b-47lrpyeppu] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ldh-title[b-47lrpyeppu] {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: var(--ld-text);
}

.ldh-badge[b-47lrpyeppu] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--ld-accent-strong);
    background: var(--ld-accent-soft);
    white-space: nowrap;
}

    .ldh-badge i[b-47lrpyeppu] {
        font-size: 12px;
    }
/* /Components/Common/LuddITWorkOrderPicker.razor.rz.scp.css */
/* Dialogens innehåll är mallar i den här komponenten och får dess scope. */

.ldv-header[b-tmesl21wx2] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ldv-icon[b-tmesl21wx2] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: var(--ld-on-accent);
    background: var(--ld-accent);
}

.ldv-label[b-tmesl21wx2] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
}

.ldv-title[b-tmesl21wx2] {
    font-size: 15px;
    font-weight: 700;
    color: var(--ld-text);
}

.ldv-list[b-tmesl21wx2] {
    list-style: none;
    margin: -8px -4px 0;
    padding: 0;
}

    .ldv-list > li + li[b-tmesl21wx2] {
        border-top: 1px solid var(--ld-divider);
    }

.ldv-row[b-tmesl21wx2] {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 8px 4px;
    border: none;
    background: transparent;
    color: var(--ld-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .ldv-row:hover[b-tmesl21wx2] {
        background: var(--ld-surface-muted);
    }

    .ldv-row:active[b-tmesl21wx2] {
        background: var(--ld-accent-soft);
    }

    .ldv-row > .ti[b-tmesl21wx2] {
        flex-shrink: 0;
        font-size: 18px;
        color: var(--ld-text-muted);
    }

.ldv-row-text[b-tmesl21wx2] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ldv-row-title[b-tmesl21wx2] {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ldv-row-meta[b-tmesl21wx2] {
    font-size: 12px;
    color: var(--ld-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ldv-hint[b-tmesl21wx2] {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--ld-text-muted);
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* MainLayout.razor.css – ersätter mallens .page / .sidebar / .top-row.
   --ld-topbar-h delas med NavMenu.razor.css. */

.ld-app[b-ipupmotn48] {
    --ld-topbar-h: calc(52px + env(safe-area-inset-top, 0px));
    min-height: 100dvh;
    background: var(--ld-page-bg);
}

/* Innehållet skrollar här. Det gör att sticky-element i sidorna (summering,
   verktygsrad, knapprad i nederkant) fastnar direkt under toppbaren. */
.ld-main[b-ipupmotn48] {
    height: calc(100dvh - var(--ld-topbar-h));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

#blazor-error-ui[b-ipupmotn48] {
    background: var(--ld-danger-soft);
    color: var(--ld-danger);
    bottom: 0;
    box-shadow: var(--ld-shadow-sm);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    position: fixed;
    width: 100%;
    z-index: 2000;
}

    #blazor-error-ui .dismiss[b-ipupmotn48] {
        cursor: pointer;
        position: absolute;
        right: 1rem;
        top: 0.75rem;
    }
/* /Components/Layout/MobileMenu.razor.rz.scp.css */
/* NavMenu.razor.css – toppbar + SfSidebar i samma formspråk som CustomerInfoBar / FilterSidebar.
   Ersätter mallens NavMenu.razor.css (checkbox-togglern, .nav-scrollable m.m.). */

/* ---------- Toppbar ---------- */
/* Toppbaren skrollar aldrig: innehållet skrollar i <main> (se MainLayout.razor.css) */
.ld-topbar[b-ecywlnnwv8] {
    position: relative;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    height: calc(52px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 12px 0 6px;
    background: var(--ld-surface);
    border-bottom: 1px solid var(--ld-border);
}

    .ld-topbar[b-ecywlnnwv8]  .ld-burger.e-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        color: var(--ld-text);
        background: transparent;
        border: none;
        box-shadow: none;
    }

        .ld-topbar[b-ecywlnnwv8]  .ld-burger.e-btn:hover,
        .ld-topbar[b-ecywlnnwv8]  .ld-burger.e-btn:active {
            background: var(--ld-neutral-soft);
        }

        .ld-topbar[b-ecywlnnwv8]  .ld-burger.e-btn .ti {
            font-size: 24px;
        }

.ld-brand[b-ecywlnnwv8] {
    font-size: 16px;
    font-weight: 700;
    color: var(--ld-text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Sidebar (SfSidebar, Type=Over) ---------- */
.ld-navroot[b-ecywlnnwv8]  .e-sidebar.ld-sidebar {
    position: fixed;
    top: 0;
    height: 100dvh;
    z-index: 1000;
    max-width: 88vw;
    background: var(--ld-surface);
    border-right: 1px solid var(--ld-border);
    box-shadow: var(--ld-shadow-lg);
}

.ld-navroot[b-ecywlnnwv8]  .e-sidebar-overlay {
    background: var(--ld-backdrop);
    z-index: 999;
}

.ld-nav[b-ecywlnnwv8] {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    color: var(--ld-text);
}

/* Header (som customer-info-header / fsb-header) */
.ld-nav-header[b-ecywlnnwv8] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px 12px 16px;
    border-bottom: 1px solid var(--ld-divider);
}

.ld-nav-avatar[b-ecywlnnwv8] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ld-accent);
    color: var(--ld-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
}

.ld-nav-user[b-ecywlnnwv8] {
    flex: 1;
    min-width: 0;
}

.ld-nav-label[b-ecywlnnwv8] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
}

.ld-nav-name[b-ecywlnnwv8] {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ld-nav-header[b-ecywlnnwv8]  .ld-nav-close.e-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--ld-text-muted);
}

/* Menyrader */
.ld-nav-list[b-ecywlnnwv8] {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
}

.ld-nav[b-ecywlnnwv8]  .ld-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 6px 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--ld-text);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .ld-nav[b-ecywlnnwv8]  .ld-nav-item:hover {
        background: var(--ld-surface-muted);
    }

    .ld-nav[b-ecywlnnwv8]  .ld-nav-item:active {
        background: var(--ld-accent-soft);
    }

.ld-nav[b-ecywlnnwv8]  .ld-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 19px;
    color: var(--ld-text-muted);
    background: var(--ld-neutral-soft);
}

.ld-nav[b-ecywlnnwv8]  .ld-nav-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Aktiv sida */
.ld-nav[b-ecywlnnwv8]  .ld-nav-item.is-active {
    background: var(--ld-accent-soft);
    color: var(--ld-accent-strong);
    font-weight: 700;
}

    .ld-nav[b-ecywlnnwv8]  .ld-nav-item.is-active .ld-nav-icon {
        background: var(--ld-accent);
        color: var(--ld-on-accent);
    }

/* Logga ut längst ned (som fsb-footer) */
.ld-nav-footer[b-ecywlnnwv8] {
    padding: 8px;
    border-top: 1px solid var(--ld-divider);
}

    .ld-nav-footer form[b-ecywlnnwv8] {
        margin: 0;
    }

.ld-nav[b-ecywlnnwv8]  .ld-nav-logout {
    color: var(--ld-text-muted);
}

    .ld-nav[b-ecywlnnwv8]  .ld-nav-logout:hover {
        color: var(--ld-danger);
        background: var(--ld-danger-soft);
    }

        .ld-nav[b-ecywlnnwv8]  .ld-nav-logout:hover .ld-nav-icon {
            color: var(--ld-danger);
            background: transparent;
        }

/* Fokus */
.ld-nav :focus-visible[b-ecywlnnwv8],
.ld-topbar :focus-visible[b-ecywlnnwv8] {
    outline: 2px solid var(--ld-accent);
    outline-offset: -2px;
}
/* /Components/Pages/AddHours.razor.rz.scp.css */
/* RegistreraTid.razor.css – samma formspråk som CustomerInfoBar / FilterSidebar / MinTidrapport.
   Variablerna kommer från luddit-design-tokens.css; fallback-värdena gör att den fungerar även utan. */

.rt-host[b-29wlndezmh] {
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 12px 0;
    color: var(--ld-text);
}

    .rt-host[b-29wlndezmh]  .rt-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 12px;
    }

/* Tillbaka till ärendet/projektet när man kom därifrån */
.rt-back[b-29wlndezmh] {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 40px;
    margin: -4px 0 4px;
    padding: 0 8px 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ld-accent);
    text-decoration: none;
}

    .rt-back .ti[b-29wlndezmh] {
        font-size: 20px;
    }

/* ---------- Gemensamma byggstenar ---------- */

.rt-label[b-29wlndezmh] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
}

.rt-header-text[b-29wlndezmh] {
    flex: 1;
    min-width: 0;
}

.rt-card[b-29wlndezmh] {
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
}

/* ---------- Sidhuvud (som customer-info-header) ---------- */
.rt-header[b-29wlndezmh] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.rt-avatar[b-29wlndezmh] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ld-accent);
    color: var(--ld-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.rt-title[b-29wlndezmh] {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}

/* ---------- Sektioner ---------- */
.rt-section-header[b-29wlndezmh] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--ld-divider);
}

    .rt-section-header > i[b-29wlndezmh] {
        font-size: 16px;
        color: var(--ld-accent);
    }

.rt-counter[b-29wlndezmh] {
    margin-left: auto;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    color: var(--ld-text-muted);
}

    .rt-counter.is-over[b-29wlndezmh] {
        color: var(--ld-danger);
        font-weight: 600;
    }

.rt-section-body[b-29wlndezmh] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

/* ---------- Fält ---------- */
.rt-field[b-29wlndezmh] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.rt-field-label[b-29wlndezmh] {
    font-size: 13px;
    font-weight: 600;
    color: var(--ld-text);
}

.rt-unit[b-29wlndezmh] {
    font-weight: 400;
    color: var(--ld-text-muted);
}

.rt-field-label-row[b-29wlndezmh] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rt-field-row[b-29wlndezmh] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Syncfusion-inputs: 44px pekyta, 16px text (ingen iOS-zoom), accentfokus */
.rt-field[b-29wlndezmh]  .e-input-group.rt-input,
.rt-field[b-29wlndezmh]  .e-input-group.e-control-wrapper.rt-input {
    margin: 0;
    min-height: 44px;
    border-radius: 8px;
    border-color: var(--ld-border);
    background: var(--ld-surface);
}

.rt-field[b-29wlndezmh]  .rt-input input.e-input,
.rt-field[b-29wlndezmh]  .rt-input textarea.e-input {
    min-height: 42px;
    font-size: 16px;
    padding-left: 12px;
}

.rt-field[b-29wlndezmh]  .rt-input input.e-numerictextbox {
    font-variant-numeric: tabular-nums;
}

.rt-field[b-29wlndezmh]  .rt-input.e-input-focus {
    border-color: var(--ld-accent);
    box-shadow: 0 0 0 3px var(--ld-accent-soft);
}

.rt-field[b-29wlndezmh]  .rt-input .e-input-group-icon {
    min-width: 40px;
    color: var(--ld-text-muted);
}

.rt-field[b-29wlndezmh]  .rt-input.e-date-wrapper .e-input-group-icon {
    color: var(--ld-accent);
}

.rt-field[b-29wlndezmh]  .rt-textarea textarea.e-input {
    min-height: 96px;
    padding-top: 10px;
    resize: vertical;
    line-height: 1.45;
}

/* Fel */
.rt-field.is-invalid[b-29wlndezmh]  .e-input-group.rt-input {
    border-color: var(--ld-danger) !important;
}

.rt-field.is-invalid[b-29wlndezmh]  .rt-input.e-input-focus {
    box-shadow: 0 0 0 3px var(--ld-danger-soft);
}

.rt-field[b-29wlndezmh]  .rt-error,
.rt-field[b-29wlndezmh]  .validation-message {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-style: normal;
    color: var(--ld-danger);
}

    .rt-field[b-29wlndezmh]  .validation-message::before {
        content: "\ea06"; /* ti-alert-circle */
        font-family: "tabler-icons";
        font-size: 14px;
    }

/* Snabbval Idag / Igår */
.rt-quick[b-29wlndezmh] {
    display: flex;
    gap: 6px;
}

    .rt-quick[b-29wlndezmh]  .rt-chip.e-btn {
        width: auto !important;
        min-width: max-content !important;
        height: auto !important;
        white-space: nowrap;
        min-height: 28px;
        padding: 2px 12px !important;
        font-size: 12px;
        font-weight: 600;
        border-radius: 14px;
        color: var(--ld-text-muted);
        background: transparent;
        border: 1px solid var(--ld-border);
        box-shadow: none;
    }

        .rt-quick[b-29wlndezmh]  .rt-chip.e-btn.is-active {
            color: var(--ld-accent-strong);
            background: var(--ld-accent-soft);
            border-color: transparent;
        }

/* ---------- Sökträffar i SfAutoComplete ---------- */
.rt-hit[b-29wlndezmh] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    white-space: normal;
    line-height: 1.3;
}

.rt-hit-avatar[b-29wlndezmh] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ld-accent-strong);
    background: var(--ld-accent-soft);
}

.rt-hit-text[b-29wlndezmh] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rt-hit-name[b-29wlndezmh] {
    font-weight: 600;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.rt-hit-meta[b-29wlndezmh] {
    font-size: 12px;
    color: var(--ld-text-muted);
}

.rt-hit-empty[b-29wlndezmh] {
    padding: 12px;
    font-size: 13px;
    color: var(--ld-text-muted);
}

.rt-article[b-29wlndezmh] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.rt-article-nr[b-29wlndezmh] {
    font-size: 12px;
    color: var(--ld-text-muted);
    font-variant-numeric: tabular-nums;
}

/* ---------- Vald arbetsorder (kundheader + referenser) ---------- */
.rt-entry-header[b-29wlndezmh] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 8px 16px;
}

.rt-entry-avatar[b-29wlndezmh] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ld-accent);
    color: var(--ld-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
}

.rt-entry-name[b-29wlndezmh] {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.rt-entry-header[b-29wlndezmh]  .rt-change.e-btn {
    flex-shrink: 0;
    min-height: 36px;
    color: var(--ld-accent-strong);
}

.rt-refs[b-29wlndezmh] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 16px 14px 64px;
}

.rt-ref[b-29wlndezmh] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

    .rt-ref > i[b-29wlndezmh] {
        font-size: 16px;
        margin-top: 1px;
        color: var(--ld-text-muted);
    }

.rt-ref-value[b-29wlndezmh] {
    font-size: 14px;
    line-height: 1.4;
}

.rt-nr[b-29wlndezmh] {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rt-ref-title[b-29wlndezmh] {
    display: block;
    overflow-wrap: anywhere;
}

/* ---------- Felmeddelande vid spara ---------- */
.rt-message[b-29wlndezmh] {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--ld-danger-border);
    background: var(--ld-danger-soft);
}

    .rt-message > i[b-29wlndezmh] {
        font-size: 20px;
        color: var(--ld-danger);
    }

    .rt-message div[b-29wlndezmh] {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .rt-message span[b-29wlndezmh] {
        font-size: 13px;
        color: var(--ld-text-muted);
    }

/* ---------- Fast åtgärdsrad (som fsb-footer) ---------- */
.rt-actionbar[b-29wlndezmh] {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 -12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--ld-surface);
    border-top: 1px solid var(--ld-divider);
}

.rt-actionbar-summary[b-29wlndezmh] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.rt-actionbar-value[b-29wlndezmh] {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rt-actionbar-sub[b-29wlndezmh] {
    font-size: 12px;
    color: var(--ld-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rt-actionbar[b-29wlndezmh]  .rt-submit.e-btn {
    flex: 1 1 auto;
    min-height: 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    background: var(--ld-accent);
    border-color: var(--ld-accent);
    color: var(--ld-on-accent);
}

    .rt-actionbar[b-29wlndezmh]  .rt-submit.e-btn:hover,
    .rt-actionbar[b-29wlndezmh]  .rt-submit.e-btn:active {
        background: var(--ld-accent-strong);
        border-color: var(--ld-accent-strong);
    }

    .rt-actionbar[b-29wlndezmh]  .rt-submit.e-btn:disabled {
        opacity: 0.7;
    }

.rt-actionbar[b-29wlndezmh]  .rt-submit .ti {
    font-size: 18px;
}

/* ---------- Fokus i accentfärg ---------- */
.rt-host :focus-visible[b-29wlndezmh] {
    outline: 2px solid var(--ld-accent);
    outline-offset: 1px;
}

/* ---------- Mobil ---------- */
@media (max-width: 576px) {
    .rt-host[b-29wlndezmh] {
        padding-left: 8px;
        padding-right: 8px;
    }

    .rt-actionbar[b-29wlndezmh] {
        margin: 0 -8px;
    }

    .rt-refs[b-29wlndezmh] {
        padding-left: 16px;
    }
}

@media (max-width: 360px) {
    .rt-field-row[b-29wlndezmh] {
        grid-template-columns: 1fr;
    }

    .rt-actionbar-summary[b-29wlndezmh] {
        display: none;
    }
}

/* Större skärm: åtgärdsraden blir en vanlig footer i sidflödet */
@media (min-width: 768px) {
    .rt-actionbar[b-29wlndezmh] {
        position: static;
        margin: 0;
        border: 1px solid var(--ld-border);
        border-radius: 12px;
        padding-bottom: 12px;
    }

        .rt-actionbar[b-29wlndezmh]  .rt-submit.e-btn {
            flex: 0 0 auto;
            margin-left: auto;
            min-width: 200px;
        }
}

/* ==========================================================================
   Tillägg för RegisterTime (riktiga sidan)
   ========================================================================== */

.rt-selected-top[b-29wlndezmh] {
    padding: 12px 12px 8px 16px;
}

    .rt-selected-top[b-29wlndezmh]  .rt-change.e-btn {
        flex-shrink: 0;
        min-height: 36px;
        color: var(--ld-accent-strong);
    }

.rt-hit-title[b-29wlndezmh] {
    font-size: 13px;
    color: var(--ld-text);
    overflow-wrap: anywhere;
}

/* Artikel – samma rad i listan och i valt värde */
.rt-article[b-29wlndezmh] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0;
    line-height: 1.3;
    min-width: 0;
}

    .rt-article.is-value[b-29wlndezmh] {
        padding: 4px 0 4px 12px;
    }

.rt-article-main[b-29wlndezmh] {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.rt-article-name[b-29wlndezmh] {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.rt-article.is-value .rt-article-name[b-29wlndezmh] {
    font-size: 16px;
}

.rt-article-price[b-29wlndezmh] {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.rt-price[b-29wlndezmh] {
    font-weight: 600;
    color: var(--ld-text);
}

.rt-price-old[b-29wlndezmh] {
    color: var(--ld-text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--ld-danger);
}

.rt-price-unit[b-29wlndezmh] {
    color: var(--ld-text-muted);
}

/* Valt värde med pris får två rader – låt fältet växa */
.rt-field[b-29wlndezmh]  .rt-article-ddl.e-input-group {
    height: auto;
    min-height: 44px;
}

.rt-override[b-29wlndezmh] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ld-accent-strong);
    background: var(--ld-accent-soft);
}

    .rt-override i[b-29wlndezmh] {
        font-size: 11px;
    }

/* Summa (pris × antal) */
.rt-total[b-29wlndezmh] {
    justify-content: flex-start;
}

.rt-total-value[b-29wlndezmh] {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Inaktiverat antal/pris tills artikel är vald */
.rt-field[b-29wlndezmh]  .rt-input.e-disabled {
    background: var(--ld-surface-muted);
    opacity: 1;
}

/* Slutrapportering */
.rt-switch-row[b-29wlndezmh] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
}

.rt-switch-text[b-29wlndezmh] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rt-switch-title[b-29wlndezmh] {
    font-size: 14px;
    font-weight: 600;
}

.rt-switch-sub[b-29wlndezmh] {
    font-size: 12px;
    color: var(--ld-text-muted);
}

.rt-card.is-warning[b-29wlndezmh] {
    border-color: var(--ld-warning-strong);
    background: var(--ld-warning-soft);
}

.rt-switch-row[b-29wlndezmh]  .rt-switch.e-switch-wrapper .e-switch-inner.e-switch-active {
    background: var(--ld-accent);
    border-color: var(--ld-accent);
}

/* Spinner ovanpå allt vid sparning */
.rt-host[b-29wlndezmh]  .rt-spinner {
    position: fixed;
    inset: 0;
    z-index: 50;
}
/* /Components/Pages/DocSign.razor.rz.scp.css */
/* DocSign.razor.css – värdsidan för signeringen i samma formspråk som resten av appen.
   Färger från luddit-design-tokens.css. */

.ds-host[b-whi2vwy5e6] {
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 12px calc(24px + env(safe-area-inset-bottom, 0px));
    color: var(--ld-text);
}

    /* --------------------------------------------------------------------------
   Övergångsstil för UppdragsDokument (Signering-RCL:en).
   Den använder Bootstrap-klasser; här anpassas de till formspråket tills
   komponenten själv görs om. Rör bara sådant som syns i valvyn/stegen.
   -------------------------------------------------------------------------- */
    .ds-host[b-whi2vwy5e6]  h1,
    .ds-host[b-whi2vwy5e6]  h2,
    .ds-host[b-whi2vwy5e6]  h3.accent {
        color: var(--ld-text);
        font-size: 17px;
        font-weight: 700;
        letter-spacing: 0;
        text-align: left;
        margin: 4px 4px 12px;
    }

    .ds-host[b-whi2vwy5e6]  .card {
        background: var(--ld-surface);
        border: 1px solid var(--ld-border);
        border-radius: 12px;
        box-shadow: none;
        margin-bottom: 12px;
    }

    .ds-host[b-whi2vwy5e6]  .card-body {
        padding: 16px;
    }

    .ds-host[b-whi2vwy5e6]  .card-title {
        font-size: 15px;
        font-weight: 700;
        color: var(--ld-text);
    }

    .ds-host[b-whi2vwy5e6]  .card-text,
    .ds-host[b-whi2vwy5e6]  .text-muted {
        font-size: 13px;
        line-height: 1.45;
        color: var(--ld-text-muted) !important;
    }

    .ds-host[b-whi2vwy5e6]  .btn {
        min-height: 44px;
        padding: 8px 16px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
    }

    .ds-host[b-whi2vwy5e6]  .btn-primary {
        background: var(--ld-accent);
        border-color: var(--ld-accent);
        color: var(--ld-on-accent);
    }

        .ds-host[b-whi2vwy5e6]  .btn-primary:hover,
        .ds-host[b-whi2vwy5e6]  .btn-primary:active,
        .ds-host[b-whi2vwy5e6]  .btn-primary:focus {
            background: var(--ld-accent-strong);
            border-color: var(--ld-accent-strong);
            box-shadow: none;
        }

    .ds-host[b-whi2vwy5e6]  .btn-secondary,
    .ds-host[b-whi2vwy5e6]  .btn-outline-primary,
    .ds-host[b-whi2vwy5e6]  .btn-outline-secondary {
        background: var(--ld-surface);
        border: 1px solid var(--ld-border);
        color: var(--ld-accent-strong);
    }

    .ds-host[b-whi2vwy5e6]  .e-btn.e-primary {
        background: var(--ld-accent);
        border-color: var(--ld-accent);
        color: var(--ld-on-accent);
    }

/* --------------------------------------------------------------------------
   Spara-dialogen
   -------------------------------------------------------------------------- */
.ds-label[b-whi2vwy5e6] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
}

.ds-dialog-header[b-whi2vwy5e6] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ds-dialog-icon[b-whi2vwy5e6] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    color: var(--ld-on-accent);
    background: var(--ld-accent);
}

.ds-dialog-title[b-whi2vwy5e6] {
    font-size: 15px;
    font-weight: 700;
    color: var(--ld-text);
}

.ds-dialog-body[b-whi2vwy5e6] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ds-doc[b-whi2vwy5e6] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--ld-surface-muted);
    border: 1px solid var(--ld-divider);
}

    .ds-doc > i[b-whi2vwy5e6] {
        font-size: 24px;
        color: var(--ld-danger);
    }

.ds-doc-text[b-whi2vwy5e6] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ds-doc-name[b-whi2vwy5e6] {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-doc-meta[b-whi2vwy5e6] {
    font-size: 12px;
    color: var(--ld-text-muted);
}

.ds-field[b-whi2vwy5e6] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ds-field-label[b-whi2vwy5e6] {
    font-size: 13px;
    font-weight: 600;
    color: var(--ld-text);
}

.ds-field[b-whi2vwy5e6]  .e-input-group.ds-input {
    margin: 0;
    min-height: 44px;
    border-radius: 8px;
    border-color: var(--ld-border);
}

.ds-field[b-whi2vwy5e6]  .ds-input input.e-input {
    min-height: 42px;
    font-size: 16px; /* ingen iOS-zoom */
}

.ds-field[b-whi2vwy5e6]  .ds-input.e-input-focus {
    border-color: var(--ld-accent);
    box-shadow: 0 0 0 3px var(--ld-accent-soft);
}

.ds-field.is-invalid[b-whi2vwy5e6]  .e-input-group.ds-input {
    border-color: var(--ld-danger);
}

.ds-error[b-whi2vwy5e6] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ld-danger);
}

.ds-hit[b-whi2vwy5e6] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    line-height: 1.3;
}

.ds-hit-avatar[b-whi2vwy5e6] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ld-accent-strong);
    background: var(--ld-accent-soft);
}

.ds-hit-text[b-whi2vwy5e6] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ds-hit-name[b-whi2vwy5e6] {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-hit-meta[b-whi2vwy5e6] {
    font-size: 12px;
    color: var(--ld-text-muted);
}

.ds-note[b-whi2vwy5e6] {
    display: flex;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ld-text-muted);
}

    .ds-note > i[b-whi2vwy5e6] {
        font-size: 16px;
        margin-top: 1px;
        flex-shrink: 0;
    }

.ds-dialog-footer[b-whi2vwy5e6] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

    .ds-dialog-footer[b-whi2vwy5e6]  .e-btn {
        min-height: 44px;
        padding: 0 18px;
        border-radius: 10px;
        font-weight: 600;
    }

    .ds-dialog-footer[b-whi2vwy5e6]  .ds-skip.e-btn {
        color: var(--ld-text-muted);
    }

    .ds-dialog-footer[b-whi2vwy5e6]  .ds-save.e-btn {
        background: var(--ld-accent);
        border-color: var(--ld-accent);
        color: var(--ld-on-accent);
    }

        .ds-dialog-footer[b-whi2vwy5e6]  .ds-save.e-btn:hover {
            background: var(--ld-accent-strong);
            border-color: var(--ld-accent-strong);
        }
/* /Components/Pages/Home.razor.rz.scp.css */
/* Home.razor.css – startsidan i samma formspråk som CustomerInfoBar / FilterSidebar.
   Variablerna kommer från luddit-design-tokens.css; fallback-värdena gör att den fungerar även utan. */

.st-host[b-efpfq5pvdi] {
    max-width: 520px;
    margin: 0 auto;
    padding: 16px 12px calc(24px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--ld-text);
}

.st-card[b-efpfq5pvdi] {
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    overflow: hidden;
}

.st-label[b-efpfq5pvdi] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
}

/* ---------- Hälsning (som customer-info-header) ---------- */
.st-header[b-efpfq5pvdi] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ld-divider);
}

    .st-header.is-alone[b-efpfq5pvdi] {
        border-bottom: none;
    }

.st-avatar[b-efpfq5pvdi] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ld-accent);
    color: var(--ld-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
}

.st-header-text[b-efpfq5pvdi] {
    flex: 1;
    min-width: 0;
}

.st-title[b-efpfq5pvdi] {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Summering (som customer-info-stats) – varje ruta är en länk ---------- */
.st-stats[b-efpfq5pvdi] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.st-stat[b-efpfq5pvdi] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

    .st-stat + .st-stat[b-efpfq5pvdi] {
        border-left: 1px solid var(--ld-divider);
    }

    .st-stat:active[b-efpfq5pvdi] {
        background: var(--ld-accent-soft);
    }

.st-stat-label[b-efpfq5pvdi] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-stat-value[b-efpfq5pvdi] {
    display: flex;
    align-items: baseline;
    min-height: 24px;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

    .st-stat-value small[b-efpfq5pvdi] {
        font-size: 12px;
        font-weight: 500;
        color: var(--ld-text-muted);
    }

    .st-stat-value.is-zero[b-efpfq5pvdi] {
        font-weight: 500;
        color: var(--ld-text-muted);
    }

/* ---------- Primär åtgärd ---------- */
.st-host[b-efpfq5pvdi]  .st-primary.e-btn {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    background: var(--ld-accent);
    border-color: var(--ld-accent);
    color: var(--ld-on-accent);
    box-shadow: var(--ld-accent-shadow);
}

    .st-host[b-efpfq5pvdi]  .st-primary.e-btn:hover,
    .st-host[b-efpfq5pvdi]  .st-primary.e-btn:active {
        background: var(--ld-accent-strong);
        border-color: var(--ld-accent-strong);
    }

    .st-host[b-efpfq5pvdi]  .st-primary.e-btn .ti {
        font-size: 20px;
    }

/* ---------- Menyrader ---------- */
.st-row[b-efpfq5pvdi] {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 12px 10px 16px;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

    .st-row + .st-row[b-efpfq5pvdi] {
        border-top: 1px solid var(--ld-divider);
    }

    .st-row:hover[b-efpfq5pvdi] {
        background: var(--ld-surface-muted);
    }

    .st-row:active[b-efpfq5pvdi] {
        background: var(--ld-accent-soft);
    }

.st-row-icon[b-efpfq5pvdi] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: var(--ld-accent-strong);
    background: var(--ld-accent-soft);
}

.st-row-text[b-efpfq5pvdi] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.st-row-title[b-efpfq5pvdi] {
    font-size: 15px;
    font-weight: 600;
}

.st-row-sub[b-efpfq5pvdi] {
    font-size: 12px;
    color: var(--ld-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-row-chevron[b-efpfq5pvdi] {
    flex-shrink: 0;
    font-size: 18px;
    color: var(--ld-text-muted);
}

/* ---------- Inget aktiverat ---------- */
.st-message[b-efpfq5pvdi] {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--ld-surface);
    border: 1px dashed var(--ld-border);
    border-radius: 12px;
}

    .st-message > i[b-efpfq5pvdi] {
        font-size: 22px;
        color: var(--ld-text-muted);
    }

    .st-message > div[b-efpfq5pvdi] {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .st-message span[b-efpfq5pvdi] {
        font-size: 13px;
        line-height: 1.45;
        color: var(--ld-text-muted);
    }

/* ---------- Fokus ---------- */
.st-host :focus-visible[b-efpfq5pvdi] {
    outline: 2px solid var(--ld-accent);
    outline-offset: -2px;
}

/* ---------- Större skärm ---------- */
@media (min-width: 768px) {
    .st-host[b-efpfq5pvdi] {
        padding-top: 48px;
    }
}

@media (max-width: 360px) {
    .st-stat[b-efpfq5pvdi] {
        padding: 10px 10px 12px;
    }

    .st-stat-value[b-efpfq5pvdi] {
        font-size: 16px;
    }
}
/* /Components/Pages/ProjectDetail.razor.rz.scp.css */
/* ProjektDetaljSida.razor.css – projektvisningen (scoped).
   Självständig: allt som sidan använder finns här, även klasserna som delas
   med listorna (ls-*). Färger från luddit-design-tokens.css / temat. */

/* ==========================================================================
   Sidan
   ========================================================================== */
.dt-host[b-v1iyi91ktd] {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 12px calc(24px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--ld-text);
}

.dt-back[b-v1iyi91ktd] {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 40px;
    padding: 0 8px 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ld-accent);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

    .dt-back .ti[b-v1iyi91ktd] {
        font-size: 20px;
    }

.dt-card[b-v1iyi91ktd] {
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    overflow: hidden;
}

.dt-card-top[b-v1iyi91ktd] {
    padding: 12px 14px 0;
}

.dt-card-footer[b-v1iyi91ktd] {
    padding: 4px 14px;
    border-top: 1px solid var(--ld-divider);
}

.dt-label[b-v1iyi91ktd] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
}

.dt-link[b-v1iyi91ktd] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ld-accent);
    text-decoration: none;
}

    .dt-link:hover[b-v1iyi91ktd] {
        text-decoration: underline;
    }

/* ==========================================================================
   Huvudkortet: nummer, namn, siffror
   ========================================================================== */
.dt-hero[b-v1iyi91ktd] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 14px;
}

.dt-nr[b-v1iyi91ktd] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ld-text-muted);
}

.dt-title[b-v1iyi91ktd] {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* Siffror (som customer-info-stats) */
.ls-stats[b-v1iyi91ktd] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--ld-divider);
}

.ls-stat[b-v1iyi91ktd] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 14px;
    min-width: 0;
}

    .ls-stat + .ls-stat[b-v1iyi91ktd] {
        border-left: 1px solid var(--ld-divider);
    }

.ls-stat-label[b-v1iyi91ktd] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ls-stat-value[b-v1iyi91ktd] {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

    .ls-stat-value small[b-v1iyi91ktd] {
        font-size: 11px;
        font-weight: 500;
        color: var(--ld-text-muted);
    }

.ls-stat.is-zero .ls-stat-value[b-v1iyi91ktd] {
    font-weight: 500;
    color: var(--ld-text-muted);
}

/* ==========================================================================
   Sektioner
   ========================================================================== */
.dt-section-header[b-v1iyi91ktd] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ld-divider);
}

    .dt-section-header > .ti[b-v1iyi91ktd] {
        font-size: 16px;
        color: var(--ld-accent);
    }

.dt-header-count[b-v1iyi91ktd] {
    margin-left: auto;
    font-size: 12px;
    color: var(--ld-text-muted);
}

.dt-section-body[b-v1iyi91ktd] {
    padding: 14px;
}

/* ==========================================================================
   Tidsbudget
   ========================================================================== */
.dt-budget[b-v1iyi91ktd] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dt-budget-figures[b-v1iyi91ktd] {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.dt-budget-used[b-v1iyi91ktd] {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.dt-budget-of[b-v1iyi91ktd] {
    font-size: 14px;
    color: var(--ld-text-muted);
}

.dt-budget.is-near .dt-budget-used[b-v1iyi91ktd] {
    color: var(--ld-warning-strong);
}

.dt-budget.is-over .dt-budget-used[b-v1iyi91ktd] {
    color: var(--ld-danger);
}

.dt-budget-note[b-v1iyi91ktd] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
    font-size: 13px;
    color: var(--ld-text-muted);
}

.dt-budget.is-over .dt-budget-note > span:first-child[b-v1iyi91ktd] {
    color: var(--ld-danger);
    font-weight: 600;
}

/* SfProgressBar ritar SVG inuti komponenten – ::deep krävs.
   CSS går före SVG-attributen; id-suffixen skiljer mellan versioner (versaler, _0),
   och delarna ritas ibland som path (stroke), ibland som rect (fill). */
.dt-budget[b-v1iyi91ktd]  .e-progressbar {
    width: 100% !important;
}

    .dt-budget[b-v1iyi91ktd]  .e-progressbar svg [id*="lineartrack" i] {
        stroke: var(--ld-divider) !important;
        fill: var(--ld-divider) !important;
    }

    .dt-budget[b-v1iyi91ktd]  .e-progressbar svg [id*="linearprogress" i] {
        stroke: var(--ld-accent) !important;
        fill: var(--ld-accent) !important;
    }

.dt-budget.is-near[b-v1iyi91ktd]  .e-progressbar svg [id*="linearprogress" i] {
    stroke: var(--ld-warning-strong) !important;
    fill: var(--ld-warning-strong) !important;
}

.dt-budget.is-over[b-v1iyi91ktd]  .e-progressbar svg [id*="linearprogress" i] {
    stroke: var(--ld-danger) !important;
    fill: var(--ld-danger) !important;
}

/* ==========================================================================
   Uppgifter – etikett till vänster, värde till höger
   ========================================================================== */
.dt-list[b-v1iyi91ktd] {
    margin: 0;
    padding: 2px 14px;
}

.dt-row[b-v1iyi91ktd] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    padding: 10px 0;
}

    .dt-row + .dt-row[b-v1iyi91ktd] {
        border-top: 1px solid var(--ld-divider);
    }

    .dt-row dt[b-v1iyi91ktd] {
        flex-shrink: 0;
        font-size: 13px;
        font-weight: 400;
        color: var(--ld-text-muted);
    }

    .dt-row dd[b-v1iyi91ktd] {
        margin: 0;
        min-width: 0;
        font-size: 14px;
        font-weight: 600;
        text-align: right;
        overflow-wrap: anywhere;
    }

/* ==========================================================================
   Beskrivning – ren text, hopfälld till fem rader
   ========================================================================== */
.dt-text[b-v1iyi91ktd] {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

    .dt-text.is-clamped[b-v1iyi91ktd] {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

/* "Visa mer" är en SfButton – knappen renderas av Syncfusion och behöver ::deep */
.dt-section-body[b-v1iyi91ktd]  .dt-more.e-btn {
    margin: 6px 0 -6px -8px;
    min-height: 36px;
    font-weight: 600;
    color: var(--ld-accent);
    background: transparent;
    box-shadow: none;
}

/* ==========================================================================
   Öppna ärenden
   ========================================================================== */
.dt-rows[b-v1iyi91ktd] {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .dt-rows > li + li[b-v1iyi91ktd] {
        border-top: 1px solid var(--ld-divider);
    }

.dt-case[b-v1iyi91ktd] {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 12px 8px 14px;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

    .dt-case:hover[b-v1iyi91ktd] {
        background: var(--ld-surface-muted);
    }

    .dt-case:active[b-v1iyi91ktd] {
        background: var(--ld-accent-soft);
    }

    .dt-case > .ti[b-v1iyi91ktd] {
        flex-shrink: 0;
        font-size: 18px;
        color: var(--ld-text-muted);
    }

.ls-status-dot[b-v1iyi91ktd] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dt-case-text[b-v1iyi91ktd] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dt-case-title[b-v1iyi91ktd] {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dt-case-meta[b-v1iyi91ktd] {
    font-size: 12px;
    color: var(--ld-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Laddning och tomt läge
   ========================================================================== */
.ls-skeleton[b-v1iyi91ktd] {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
}

.ls-skeleton-lines[b-v1iyi91ktd] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ls-message[b-v1iyi91ktd] {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--ld-surface);
    border: 1px dashed var(--ld-border);
    border-radius: 12px;
}

    .ls-message > .ti[b-v1iyi91ktd] {
        font-size: 22px;
        color: var(--ld-text-muted);
    }

    .ls-message > div[b-v1iyi91ktd] {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ls-message span[b-v1iyi91ktd] {
        font-size: 13px;
        line-height: 1.45;
        color: var(--ld-text-muted);
    }

/* ==========================================================================
   Registrera tid – fast knapprad i nederkant (som registreringssidan)
   ========================================================================== */
.dt-actions[b-v1iyi91ktd] {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 -12px calc(-24px - env(safe-area-inset-bottom, 0px));
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--ld-surface);
    border-top: 1px solid var(--ld-divider);
}

.dt-actions-msg[b-v1iyi91ktd] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: var(--ld-text-muted);
}

    .dt-actions-msg .ti[b-v1iyi91ktd] {
        font-size: 16px;
        flex-shrink: 0;
    }

.dt-actions[b-v1iyi91ktd]  .dt-primary.e-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
}

    .dt-actions[b-v1iyi91ktd]  .dt-primary.e-btn .ti {
        font-size: 20px;
    }

@media (max-width: 576px) {
    .dt-actions[b-v1iyi91ktd] {
        margin-left: -8px;
        margin-right: -8px;
    }
}

/* ==========================================================================
   Övrigt
   ========================================================================== */
.dt-host :focus-visible[b-v1iyi91ktd] {
    outline: 2px solid var(--ld-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 576px) {
    .dt-host[b-v1iyi91ktd] {
        padding-left: 8px;
        padding-right: 8px;
    }

    .ls-stat[b-v1iyi91ktd] {
        padding: 8px 10px;
    }
}

@media (max-width: 360px) {
    .dt-row[b-v1iyi91ktd] {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

        .dt-row dd[b-v1iyi91ktd] {
            text-align: left;
        }
}
/* /Components/Pages/Projects.razor.rz.scp.css */
/* /Components/Pages/TicketDetails.razor.rz.scp.css */
/* ArendeDetaljSida.razor.css – ärendevisningen (scoped).
   Självständig: allt som sidan använder finns här, även klasserna som delas
   med listorna (ls-*). Färger från luddit-design-tokens.css / temat.
   Heter er sida ArendeDetalj.razor ska filen heta ArendeDetalj.razor.css. */

/* ==========================================================================
   Sidan
   ========================================================================== */
.dt-host[b-gyi8fqq2er] {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 12px calc(24px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--ld-text);
}

.dt-back[b-gyi8fqq2er] {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 40px;
    padding: 0 8px 0 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ld-accent);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

    .dt-back .ti[b-gyi8fqq2er] {
        font-size: 20px;
    }

.dt-card[b-gyi8fqq2er] {
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    overflow: hidden;
}

.dt-card-top[b-gyi8fqq2er] {
    padding: 12px 14px 0;
}

.dt-label[b-gyi8fqq2er] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
}

.dt-link[b-gyi8fqq2er] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ld-accent);
    text-decoration: none;
}

    .dt-link:hover[b-gyi8fqq2er] {
        text-decoration: underline;
    }

/* ==========================================================================
   Huvudkortet: status, nummer, rubrik, meta, siffror
   ========================================================================== */

/* Status från registret: neutral pill + färgprick (DisplayColor) */
.ls-status[b-gyi8fqq2er] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    max-width: 45%;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ld-text);
    background: var(--ld-neutral-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .ls-status.is-closed[b-gyi8fqq2er] {
        color: var(--ld-success-strong);
        background: var(--ld-success-soft);
    }

.ls-status-dot[b-gyi8fqq2er] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dt-hero[b-gyi8fqq2er] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 14px;
}

.dt-nr[b-gyi8fqq2er] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ld-text-muted);
}

.ls-internal[b-gyi8fqq2er] {
    display: inline-block;
    padding: 0 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ld-warning-strong);
    background: var(--ld-warning-soft);
}

.dt-title[b-gyi8fqq2er] {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.ls-meta[b-gyi8fqq2er] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 12px;
    color: var(--ld-text-muted);
}

.ls-meta-item[b-gyi8fqq2er] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

    .ls-meta-item .ti[b-gyi8fqq2er] {
        font-size: 14px;
    }

.ls-meta-strong[b-gyi8fqq2er] {
    font-weight: 600;
    color: var(--ld-text);
}

/* Siffror (som customer-info-stats) */
.ls-stats[b-gyi8fqq2er] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--ld-divider);
}

.ls-stat[b-gyi8fqq2er] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 14px;
    min-width: 0;
}

    .ls-stat + .ls-stat[b-gyi8fqq2er] {
        border-left: 1px solid var(--ld-divider);
    }

.ls-stat-label[b-gyi8fqq2er] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ls-stat-value[b-gyi8fqq2er] {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

    .ls-stat-value small[b-gyi8fqq2er] {
        font-size: 11px;
        font-weight: 500;
        color: var(--ld-text-muted);
    }

.ls-stat.is-zero .ls-stat-value[b-gyi8fqq2er] {
    font-weight: 500;
    color: var(--ld-text-muted);
}

/* ==========================================================================
   Bokning (kalendern)
   ========================================================================== */
.dt-booking.is-upcoming[b-gyi8fqq2er] {
    border-color: color-mix(in srgb, var(--ld-accent) 35%, var(--ld-border));
    background: var(--ld-accent-soft);
}

.dt-booking-main[b-gyi8fqq2er] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.dt-booking-icon[b-gyi8fqq2er] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: var(--ld-on-accent);
    background: var(--ld-accent);
}

.dt-booking.is-past .dt-booking-icon[b-gyi8fqq2er] {
    color: var(--ld-text-muted);
    background: var(--ld-neutral-soft);
}

.dt-booking-text[b-gyi8fqq2er] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.dt-booking-when[b-gyi8fqq2er] {
    font-size: 15px;
    font-weight: 700;
}

.dt-booking.is-past .dt-booking-when[b-gyi8fqq2er] {
    font-weight: 600;
    color: var(--ld-text-muted);
}

.dt-booking-place[b-gyi8fqq2er] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border-top: 1px solid color-mix(in srgb, var(--ld-accent) 15%, var(--ld-divider));
    color: var(--ld-accent-strong);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

    .dt-booking-place > span[b-gyi8fqq2er] {
        flex: 1;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .dt-booking-place > .ti:first-child[b-gyi8fqq2er] {
        font-size: 18px;
    }

    .dt-booking-place:active[b-gyi8fqq2er] {
        background: color-mix(in srgb, var(--ld-accent) 10%, transparent);
    }

.dt-booking-go[b-gyi8fqq2er] {
    flex-shrink: 0;
    font-size: 16px;
    color: var(--ld-text-muted);
}

.dt-booking.is-past .dt-booking-place[b-gyi8fqq2er] {
    color: var(--ld-text);
}

/* ==========================================================================
   Sektioner: beskrivning, uppgifter, senaste tid
   ========================================================================== */
.dt-section-header[b-gyi8fqq2er] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ld-divider);
}

    .dt-section-header > .ti[b-gyi8fqq2er] {
        font-size: 16px;
        color: var(--ld-accent);
    }

.dt-section-body[b-gyi8fqq2er] {
    padding: 14px;
}

/* Beskrivning – ren text, hopfälld till fem rader */
.dt-text[b-gyi8fqq2er] {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

    .dt-text.is-clamped[b-gyi8fqq2er] {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

/* "Visa mer" är en SfButton – knappen renderas av Syncfusion och behöver ::deep */
.dt-section-body[b-gyi8fqq2er]  .dt-more.e-btn {
    margin: 6px 0 -6px -8px;
    min-height: 36px;
    font-weight: 600;
    color: var(--ld-accent);
    background: transparent;
    box-shadow: none;
}

/* Uppgifter – etikett till vänster, värde till höger */
.dt-list[b-gyi8fqq2er] {
    margin: 0;
    padding: 2px 14px;
}

.dt-row[b-gyi8fqq2er] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    padding: 10px 0;
}

    .dt-row + .dt-row[b-gyi8fqq2er] {
        border-top: 1px solid var(--ld-divider);
    }

    .dt-row dt[b-gyi8fqq2er] {
        flex-shrink: 0;
        font-size: 13px;
        font-weight: 400;
        color: var(--ld-text-muted);
    }

    .dt-row dd[b-gyi8fqq2er] {
        margin: 0;
        min-width: 0;
        font-size: 14px;
        font-weight: 600;
        text-align: right;
        overflow-wrap: anywhere;
    }

        .dt-row dd.is-empty[b-gyi8fqq2er] {
            font-weight: 400;
            font-style: italic;
            color: var(--ld-text-muted);
        }

        .dt-row dd .dt-link[b-gyi8fqq2er] {
            min-height: 0;
            justify-content: flex-end;
        }

/* Senaste tid */
.dt-rows[b-gyi8fqq2er] {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .dt-rows > li + li[b-gyi8fqq2er] {
        border-top: 1px solid var(--ld-divider);
    }

.dt-time[b-gyi8fqq2er] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.dt-date[b-gyi8fqq2er] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    color: var(--ld-accent-strong);
    background: var(--ld-accent-soft);
}

    .dt-date b[b-gyi8fqq2er] {
        font-size: 14px;
        font-weight: 700;
    }

    .dt-date span[b-gyi8fqq2er] {
        margin-top: 1px;
        font-size: 10px;
    }

.dt-time-text[b-gyi8fqq2er] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dt-time-title[b-gyi8fqq2er] {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dt-time-meta[b-gyi8fqq2er] {
    font-size: 12px;
    color: var(--ld-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dt-time-amount[b-gyi8fqq2er] {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

    .dt-time-amount small[b-gyi8fqq2er] {
        font-size: 11px;
        font-weight: 500;
        color: var(--ld-text-muted);
    }

/* ==========================================================================
   Laddning och tomt läge
   ========================================================================== */
.ls-skeleton[b-gyi8fqq2er] {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
}

.ls-skeleton-lines[b-gyi8fqq2er] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ls-message[b-gyi8fqq2er] {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--ld-surface);
    border: 1px dashed var(--ld-border);
    border-radius: 12px;
}

    .ls-message > .ti[b-gyi8fqq2er] {
        font-size: 22px;
        color: var(--ld-text-muted);
    }

    .ls-message > div[b-gyi8fqq2er] {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ls-message span[b-gyi8fqq2er] {
        font-size: 13px;
        line-height: 1.45;
        color: var(--ld-text-muted);
    }

/* ==========================================================================
   Registrera tid – fast knapprad i nederkant (som registreringssidan)
   ========================================================================== */
.dt-actions[b-gyi8fqq2er] {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 -12px calc(-24px - env(safe-area-inset-bottom, 0px));
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--ld-surface);
    border-top: 1px solid var(--ld-divider);
}

.dt-actions-msg[b-gyi8fqq2er] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: var(--ld-text-muted);
}

    .dt-actions-msg .ti[b-gyi8fqq2er] {
        font-size: 16px;
        flex-shrink: 0;
    }

.dt-actions[b-gyi8fqq2er]  .dt-primary.e-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
}

    .dt-actions[b-gyi8fqq2er]  .dt-primary.e-btn .ti {
        font-size: 20px;
    }

@media (max-width: 576px) {
    .dt-actions[b-gyi8fqq2er] {
        margin-left: -8px;
        margin-right: -8px;
    }
}

/* ==========================================================================
   Övrigt
   ========================================================================== */
.sr-only[b-gyi8fqq2er] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.dt-host :focus-visible[b-gyi8fqq2er] {
    outline: 2px solid var(--ld-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 576px) {
    .dt-host[b-gyi8fqq2er] {
        padding-left: 8px;
        padding-right: 8px;
    }

    .ls-stat[b-gyi8fqq2er] {
        padding: 8px 10px;
    }
}

@media (max-width: 360px) {
    .dt-row[b-gyi8fqq2er] {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

        .dt-row dd[b-gyi8fqq2er] {
            text-align: left;
        }

            .dt-row dd .dt-link[b-gyi8fqq2er] {
                justify-content: flex-start;
            }
}
/* /Components/Pages/TimeReport.razor.rz.scp.css */
/* MyTimeReport.razor.css – samma formspråk som CustomerInfoBar / FilterSidebar.
   Variablerna kommer från luddit-design-tokens.css; fallback-värdena gör att den fungerar även utan.
   Listan är fortfarande SfGrid (för adaptor, redigeringsdialog och borttagning), men
   restylas här så att grupprader blir dagkort och rader blir tidspostkort. */

/* ---------- Sidlayout: huvud + summering ligger fast, listan skrollar ---------- */
.tr-host[b-q3ov7477d6] {
    height: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--ld-text);
}

.tr-card[b-q3ov7477d6] {
    flex: 0 0 auto;
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    overflow: hidden;
}

.tr-list[b-q3ov7477d6] {
    flex: 1 1 auto;
    min-height: 0; /* låter griden ta resterande höjd och skrolla själv */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Gemensamma byggstenar ---------- */
.tr-label[b-q3ov7477d6] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
}

.tr-header-text[b-q3ov7477d6] {
    flex: 1;
    min-width: 0;
}

/* ---------- Header (som customer-info-header) ---------- */
.tr-header[b-q3ov7477d6] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ld-divider);
}

.tr-avatar[b-q3ov7477d6] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ld-accent);
    color: var(--ld-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.tr-title-row[b-q3ov7477d6] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tr-title[b-q3ov7477d6] {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}

.tr-count-badge[b-q3ov7477d6] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--ld-accent-strong);
    background: var(--ld-accent-soft);
}

    .tr-count-badge i[b-q3ov7477d6] {
        font-size: 12px;
    }

/* ---------- Period ---------- */
.tr-period[b-q3ov7477d6] {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
}

    .tr-period[b-q3ov7477d6]  .tr-step.e-btn {
        width: 44px;
        height: 44px;
        color: var(--ld-text-muted);
    }

        .tr-period[b-q3ov7477d6]  .tr-step.e-btn .ti {
            font-size: 20px;
        }

    .tr-period[b-q3ov7477d6]  .e-input-group.tr-periodpicker {
        margin: 0;
        min-height: 44px;
        border-radius: 8px;
        border-color: var(--ld-border);
    }

    .tr-period[b-q3ov7477d6]  .tr-periodpicker input.e-input {
        min-height: 42px;
        font-size: 16px; /* ingen iOS-zoom */
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    .tr-period[b-q3ov7477d6]  .tr-periodpicker.e-input-focus {
        border-color: var(--ld-accent);
        box-shadow: 0 0 0 3px var(--ld-accent-soft);
    }

    .tr-period[b-q3ov7477d6]  .tr-periodpicker .e-input-group-icon {
        color: var(--ld-accent);
    }

/* ---------- Stats (som customer-info-stats) ---------- */
.tr-stats[b-q3ov7477d6] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.tr-stat[b-q3ov7477d6] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px;
    min-width: 0;
}

    .tr-stat + .tr-stat[b-q3ov7477d6] {
        border-left: 1px solid var(--ld-divider);
    }

.tr-stat-label[b-q3ov7477d6] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
    white-space: nowrap;
}

    .tr-stat-label i[b-q3ov7477d6] {
        font-size: 13px;
        color: var(--ld-accent);
    }

.tr-stat-value[b-q3ov7477d6] {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

    .tr-stat-value small[b-q3ov7477d6] {
        font-size: 12px;
        font-weight: 500;
        color: var(--ld-text-muted);
    }

.tr-stat.is-zero .tr-stat-value[b-q3ov7477d6] {
    font-weight: 500;
    color: var(--ld-text-muted);
}

.tr-stats.is-compact[b-q3ov7477d6] {
    border-top: 1px solid var(--ld-divider);
}

    .tr-stats.is-compact .tr-stat[b-q3ov7477d6] {
        padding: 8px 12px;
    }

    .tr-stats.is-compact .tr-stat-value[b-q3ov7477d6] {
        font-size: 15px;
    }

/* ==========================================================================
   SfGrid → kortlista
   ========================================================================== */

.tr-list[b-q3ov7477d6]  .e-grid.tr-grid {
    border: none;
    background: transparent;
    font-family: inherit;
}

.tr-list[b-q3ov7477d6]  .tr-grid .e-gridheader,
.tr-list[b-q3ov7477d6]  .tr-grid .e-groupdroparea,
.tr-list[b-q3ov7477d6]  .tr-grid .e-toolbar {
    display: none;
}

.tr-list[b-q3ov7477d6]  .tr-grid .e-gridcontent,
.tr-list[b-q3ov7477d6]  .tr-grid .e-content,
.tr-list[b-q3ov7477d6]  .tr-grid .e-table {
    background: transparent;
}

.tr-list[b-q3ov7477d6]  .tr-grid .e-content {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.tr-list[b-q3ov7477d6]  .tr-grid .e-table {
    border-collapse: separate;
    border-spacing: 0;
}

/* Grupperingens indragskolumn behövs inte */
.tr-list[b-q3ov7477d6]  .tr-grid col.e-group-intent {
    width: 0 !important;
}

.tr-list[b-q3ov7477d6]  .tr-grid td.e-indentcell {
    width: 0;
    padding: 0;
    border: 0;
}

.tr-list[b-q3ov7477d6]  .tr-grid .e-rowcell,
.tr-list[b-q3ov7477d6]  .tr-grid .e-groupcaption,
.tr-list[b-q3ov7477d6]  .tr-grid .e-recordplusexpand,
.tr-list[b-q3ov7477d6]  .tr-grid .e-recordpluscollapse {
    border: 0;
}

/* ---------- Dagrubrik (grupprad) ---------- */

/* Hela raden klickbar: expandera/fäll-cellen läggs över hela raden, pilen till höger */
.tr-list[b-q3ov7477d6]  .tr-grid tr.e-groupcaptionrow,
.tr-list[b-q3ov7477d6]  .tr-grid tr:has(> td.e-groupcaption) {
    position: relative;
}

.tr-list[b-q3ov7477d6]  .tr-grid td.e-recordplusexpand,
.tr-list[b-q3ov7477d6]  .tr-grid td.e-recordpluscollapse {
    position: absolute;
    inset: 8px 0 0 0; /* 8px = mellanrummet ovanför dagkortet */
    z-index: 1;
    width: auto;
    padding: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .tr-list[b-q3ov7477d6]  .tr-grid td.e-recordplusexpand > div,
    .tr-list[b-q3ov7477d6]  .tr-grid td.e-recordpluscollapse > div {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--ld-text-muted);
    }

.tr-list[b-q3ov7477d6]  .tr-grid td.e-groupcaption {
    padding: 12px 44px 12px 16px;
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 12px;
    box-shadow: 0 -8px 0 var(--ld-page-bg); /* luft mellan dagar */
    color: var(--ld-text);
    font-size: inherit;
    line-height: normal;
    white-space: normal;
}

/* Utfälld dag: rubriken hänger ihop med posterna under */
.tr-list[b-q3ov7477d6]  .tr-grid td.e-recordplusexpand + td.e-groupcaption {
    border-radius: 12px 12px 0 0;
    border-bottom-color: var(--ld-divider);
    border-left: 3px solid var(--ld-accent);
}

.tr-list[b-q3ov7477d6]  .tr-grid tr:first-child td.e-groupcaption {
    box-shadow: none;
}

.tr-day[b-q3ov7477d6] {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
}

.tr-day-date[b-q3ov7477d6] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: var(--ld-accent-strong);
    background: var(--ld-accent-soft);
}

    .tr-day-date.is-today[b-q3ov7477d6] {
        color: var(--ld-on-accent);
        background: var(--ld-accent);
    }

.tr-day-nr[b-q3ov7477d6] {
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tr-day-wd[b-q3ov7477d6] {
    font-size: 10px;
    margin-top: 1px;
}

.tr-day-text[b-q3ov7477d6] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tr-day-title[b-q3ov7477d6] {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tr-day-sub[b-q3ov7477d6] {
    font-size: 12px;
    color: var(--ld-text-muted);
}

.tr-day-hours[b-q3ov7477d6] {
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---------- Tidspost (datarad) ---------- */
.tr-list[b-q3ov7477d6]  .tr-grid tr.e-row,
.tr-list[b-q3ov7477d6]  .tr-grid tr.e-row:hover,
.tr-list[b-q3ov7477d6]  .tr-grid tr.e-row.e-altrow {
    background: transparent;
}

.tr-list[b-q3ov7477d6]  .tr-grid td.tr-rowcell {
    padding: 0;
    background: var(--ld-surface);
    border-left: 3px solid var(--ld-accent);
    border-right: 1px solid var(--ld-border);
    border-bottom: 1px solid var(--ld-divider);
    white-space: normal;
    line-height: normal;
    font-size: inherit;
    color: inherit;
}

/* Sista posten i en dag får rundade hörn nedtill */
.tr-list[b-q3ov7477d6]  .tr-grid tr.e-row:has(+ tr.e-groupcaptionrow) td.tr-rowcell,
.tr-list[b-q3ov7477d6]  .tr-grid tr.e-row:has(+ tr > td.e-groupcaption) td.tr-rowcell,
.tr-list[b-q3ov7477d6]  .tr-grid tr.e-row:last-child td.tr-rowcell {
    border-bottom: 1px solid var(--ld-border);
    border-radius: 0 0 12px 12px;
}

/* Ingen markerings-/hoverfärg från griden */
.tr-list[b-q3ov7477d6]  .tr-grid td.e-active,
.tr-list[b-q3ov7477d6]  .tr-grid td.e-selectionbackground,
.tr-list[b-q3ov7477d6]  .tr-grid .e-row:hover td.tr-rowcell {
    background: var(--ld-surface) !important;
    color: inherit !important;
}

.tr-entry[b-q3ov7477d6] {
    display: flex;
    flex-direction: column;
}

.tr-entry-top[b-q3ov7477d6] {
    padding: 12px 14px 6px 16px;
}

.tr-entry-raw[b-q3ov7477d6] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    line-height: 1.45;
}

.tr-raw-text[b-q3ov7477d6] {
    overflow-wrap: anywhere;
}

.tr-pills[b-q3ov7477d6] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tr-entry-top[b-q3ov7477d6]  .ldk .lds + .lds {
    margin-left: -6px; /* flera pills tätare i headern */
}

.tr-refs[b-q3ov7477d6] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 16px 12px 64px; /* linjerar med kundnamnet */
}

.tr-ref[b-q3ov7477d6] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

    .tr-ref > i[b-q3ov7477d6] {
        font-size: 16px;
        margin-top: 1px;
        color: var(--ld-text-muted);
    }

.tr-ref-text[b-q3ov7477d6] {
    min-width: 0;
}

.tr-ref-value[b-q3ov7477d6] {
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.tr-nr[b-q3ov7477d6] {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.tr-ref-title[b-q3ov7477d6] {
    display: block;
}

/* Åtgärder (som fsb-footer) */
.tr-actions[b-q3ov7477d6] {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    padding: 4px 8px;
    border-top: 1px solid var(--ld-divider);
}

    .tr-actions[b-q3ov7477d6]  .tr-action.e-btn {
        min-height: 40px;
        font-weight: 600;
        color: var(--ld-accent-strong);
    }

        .tr-actions[b-q3ov7477d6]  .tr-action.e-btn.is-danger {
            color: var(--ld-danger);
        }

        .tr-actions[b-q3ov7477d6]  .tr-action.e-btn .ti {
            font-size: 16px;
        }

/* ---------- Tomt läge ---------- */
.tr-list[b-q3ov7477d6]  .tr-grid .e-emptyrow td {
    padding: 0;
    border: 0;
    background: transparent;
}

.tr-message[b-q3ov7477d6] {
    display: flex;
    gap: 12px;
    padding: 16px;
    text-align: left;
    background: var(--ld-surface);
    border: 1px dashed var(--ld-border);
    border-radius: 12px;
}

    .tr-message > i[b-q3ov7477d6] {
        font-size: 22px;
        color: var(--ld-text-muted);
    }

    .tr-message div[b-q3ov7477d6] {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .tr-message span[b-q3ov7477d6] {
        font-size: 13px;
        color: var(--ld-text-muted);
    }

/* ---------- Bekräftelsedialog ---------- */
.tr-confirm-text[b-q3ov7477d6] {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.tr-confirm-footer[b-q3ov7477d6] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

    .tr-confirm-footer[b-q3ov7477d6]  .e-btn {
        min-height: 40px;
    }

/* ---------- Fokus ---------- */
.tr-host :focus-visible[b-q3ov7477d6] {
    outline: 2px solid var(--ld-accent);
    outline-offset: 1px;
}

/* ---------- Mobil ---------- */
@media (max-width: 576px) {
    .tr-host[b-q3ov7477d6] {
        padding-left: 8px;
        padding-right: 8px;
    }

    .tr-stat[b-q3ov7477d6] {
        padding: 10px 12px;
    }

    .tr-stats.is-compact .tr-stat[b-q3ov7477d6] {
        padding: 8px 10px;
    }

    .tr-refs[b-q3ov7477d6] {
        padding-left: 16px;
    }
}

@media (max-width: 360px) {
    .tr-stat-label i[b-q3ov7477d6] {
        display: none;
    }

    .tr-stat-value[b-q3ov7477d6] {
        font-size: 16px;
    }
}
