/* Technician Blazor portal — layout, cards, and in-bay touch targets. */
.tech-root {
    min-height: 100vh;
    background: var(--color-background);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    font-family: var(--font-family-ui, var(--font-family-sans));
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0 1rem;
    background: var(--color-surface);
    color: var(--color-text-strong, var(--color-text));
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--elevation-0, none);
}

.tech-brand {
    font-weight: 600;
}

.tech-user {
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.tech-main {
    flex: 1;
    max-width: 72rem;
    width: 100%;
    margin: 0 auto;
}

.tech-container {
    padding-bottom: calc(var(--space-6) + 3.5rem);
}

.tech-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-3, 12px);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.tech-card--work-order {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.tech-card--interactive {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tech-card--interactive:hover,
.tech-card--interactive:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--elevation-1, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.tech-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.tech-card__plate {
    font-size: 1.125rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.tech-card__meta {
    margin: 0;
}

.tech-card__time {
    margin: 0;
}

.tech-card__cta {
    margin-top: var(--space-1);
}

.tech-page-header {
    margin-bottom: var(--space-4);
}

.tech-page-header__title {
    margin: 0;
}

.tech-page-header__subtitle {
    margin: var(--space-1) 0 0;
}

.tech-section {
    margin-bottom: var(--space-5);
}

.tech-section__title {
    margin: 0 0 var(--space-3);
}

.tech-section__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.tech-lane-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

@media (max-width: 400px) {
    .tech-lane-grid {
        grid-template-columns: 1fr;
    }
}

.tech-lane {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-3, 12px);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-height: 7rem;
}

.tech-lane__icon {
    color: var(--color-primary);
}

.tech-timer-banner {
    background: linear-gradient(135deg, #e8f1fb 0%, #f0f6fc 100%);
    border: 1px solid rgba(21, 101, 192, 0.2);
    border-radius: var(--radius-3, 14px);
    padding: var(--space-4);
    margin: 0 0 var(--space-4);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.08);
    overflow: visible;
}

.tech-timer-banner__main {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.tech-timer-banner__pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-success, #2e7d32);
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.5);
    animation: tech-pulse 1.8s ease-out infinite;
}

@keyframes tech-pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(46, 125, 50, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

.tech-timer-banner__copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tech-timer-banner__title {
    font-size: 1rem;
    font-weight: 650;
    color: var(--color-text-strong, var(--color-text));
}

.tech-timer-banner__meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.tech-timer-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}

.tech-bottom-nav__link {
    text-decoration: none;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-2);
    padding: var(--space-1) var(--space-2);
    min-height: 48px;
    min-width: 88px;
}

.tech-bottom-nav__link:hover {
    background: var(--color-surface-2, var(--color-surface-muted));
    color: var(--color-text-strong, var(--color-text));
}

.tech-bottom-nav__link.tech-nav--active {
    background: var(--color-primary-container);
    color: var(--color-primary);
}

.tech-bottom-nav__link.tech-nav--active .mud-icon-root {
    color: var(--color-primary);
}

.tech-schedule-day {
    margin: var(--space-5) 0 var(--space-3);
    font-size: 1rem;
    font-weight: 650;
    color: var(--color-text-strong, var(--color-text));
}

.tech-detail-hero {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-3, 12px);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
}

.tech-detail-hero__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.tech-detail-hero__plate {
    font-size: 1.75rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    margin: 0;
}

.tech-detail-sticky-bar {
    position: sticky;
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 10;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3) var(--space-4);
    margin: var(--space-4) calc(-1 * var(--space-4)) 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.tech-entry-card {
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-2);
    padding: var(--space-3);
    margin-bottom: var(--space-2);
}

.tech-entry-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.tech-entry-card__notes {
    margin-top: var(--space-1);
    color: var(--color-text-muted);
}

.tech-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.tech-title {
    font-size: 1.25rem;
    font-weight: 650;
    margin: 0 0 0.75rem;
    color: var(--color-text-strong, var(--color-text));
}

.tech-muted {
    color: var(--color-text-muted);
    margin: 0.25rem 0 0;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
}

.tech-table th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--color-border);
    font-size: 0.875rem;
}

.tech-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--color-border-subtle);
    vertical-align: top;
}

.tech-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-btn {
    display: inline-block;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-2);
    border: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    background: var(--color-primary);
    color: var(--color-surface);
    font-weight: 600;
}

.tech-btn:hover {
    background: var(--color-primary-hover);
    color: var(--color-surface);
}

.tech-btn--secondary {
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong, var(--color-primary));
    color: var(--color-text-strong, var(--color-text));
}

.tech-btn--secondary:hover {
    background: var(--color-primary-container);
}

.tech-btn--danger {
    background: var(--color-danger);
}

.tech-btn--danger:hover {
    background: var(--color-danger-hover);
}

.tech-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.tech-label {
    font-size: 0.875rem;
    font-weight: 650;
}

.tech-input {
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-2);
    border: 1px solid var(--color-border);
    font: inherit;
}

.tech-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}

.tech-alert {
    border-radius: var(--radius-3);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface-muted);
}

.tech-alert--ok {
    border-color: var(--color-success-border);
    background: var(--color-success-surface);
}

.tech-alert--warn {
    border-color: var(--color-warning-border);
    background: var(--color-warning-surface);
}

.tech-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 0.5rem 0.75rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

.tech-bottom-nav__grid {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.tech-bottom-nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 650;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-2);
}

.tech-bottom-nav a:hover {
    background: var(--color-surface-2, var(--color-surface-muted));
    color: var(--color-text-strong, var(--color-text));
}

.tech-bottom-nav a.tech-nav--active {
    background: var(--color-primary-container);
    color: var(--color-text-strong, var(--color-text));
}

/* =========================================================
   Phase 14 — Loading, empty states & motion (FEED-01, FEED-02, FEED-03)
   ========================================================= */

/* --- Skeleton primitives (D-14-02) -------------------------------- */
.tech-skeleton {
    height: 14px;
    border-radius: var(--radius-1);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border-subtle);
}

.tech-skeleton--lg {
    height: 20px;
    border-radius: var(--radius-1);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border-subtle);
}

.tech-skeleton--card {
    min-height: 88px;
    border-radius: var(--radius-2);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border-subtle);
    width: 100%;
}

.tech-skeleton-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* --- Empty state (D-14-09, D-14-10) ------------------------------- */
.tech-empty-state {
    margin: var(--space-5) 0;
}

.tech-empty-state__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 var(--space-2);
    color: var(--color-text);
}

.tech-empty-state__body {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 var(--space-4);
    color: var(--color-text-muted);
}

/* --- Error block (D-14-18) ---------------------------------------- */
.tech-error-block {
    margin: var(--space-4) 0;
    padding: var(--space-4);
    border-radius: var(--radius-2);
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border-subtle);
}

/* =========================================================
   Portal polish — bo-root shell, timer banner, touch targets
   ========================================================= */

.tech-root.bo-root {
    min-height: 100vh;
}

.tech-root .tech-main.bo-main {
    background: var(--color-background, #f5f6f8);
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

.tech-root .tech-container.bo-content {
    padding-top: var(--space-4, 1rem);
    padding-bottom: var(--space-6, 1.5rem);
}

.tech-header__brand {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.15;
    min-width: 0;
}

.tech-header__role {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.tech-timer-kpis {
    margin-bottom: var(--space-4);
}

.tech-timer-kpi__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.tech-timer-kpi__actions .staff-btn {
    min-height: 48px;
    flex: 1 1 auto;
}

.tech-dash-kpi--action .bo-dash-kpi__label {
    font-size: 1rem;
    font-weight: 750;
}

.tech-dash-kpi--action .bo-dash-kpi__meta {
    font-size: var(--font-size-sm, 0.875rem);
}

.tech-stop-dialog {
    padding: var(--space-5);
}

.tech-stop-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.tech-stop-dialog__actions .staff-btn {
    min-height: 48px;
}

.tech-bottom-nav__label {
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.2;
}

.tech-detail-body {
    padding-bottom: 5rem;
}

.tech-section {
    margin-bottom: var(--space-4);
}

.tech-page {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.tech-page-header__title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: var(--color-text-strong, var(--color-text));
}

.tech-page-header__subtitle {
    margin: var(--space-2) 0 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.tech-section__title {
    font-size: 0.8125rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-2);
}

.tech-section__panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-3, 14px);
    padding: var(--space-4);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tech-card-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.tech-wo-card {
    background: var(--color-background, #f8f9fb);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-2, 10px);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.tech-wo-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.tech-wo-card__plate {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.tech-wo-card__customer {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.tech-wo-card__time {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.tech-wo-card__cta {
    margin-top: var(--space-1);
}

.tech-feedback {
    text-align: center;
    padding: var(--space-5) var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.tech-feedback__icon {
    font-size: 2.5rem !important;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.tech-feedback__title {
    font-size: 1.0625rem;
    font-weight: 650;
    margin: 0;
}

.tech-feedback__body {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-2);
    max-width: 22rem;
}

.tech-lane-tile {
    appearance: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-3, 14px);
    background: var(--color-surface);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    text-align: left;
    cursor: pointer;
    min-height: 6.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    color: inherit;
    font: inherit;
    width: 100%;
}

.tech-lane-tile:hover,
.tech-lane-tile:focus-visible {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.12);
    outline: none;
}

.tech-lane-tile .mud-icon-root {
    color: var(--color-primary);
}

.tech-lane-tile__label {
    font-size: 1rem;
    font-weight: 650;
}

.tech-lane-tile__hint {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.tech-lane-tile--wide {
    flex-direction: row;
    align-items: center;
    min-height: 4.5rem;
}

.tech-lane-tile--wide .tech-lane-tile__hint {
    flex: 1;
}

.tech-lane-tile__chevron {
    margin-left: auto;
    color: var(--color-text-muted) !important;
}

.tech-timer-page-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-3, 14px);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.tech-timer-page-card__status {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.tech-timer-page-card__title {
    font-size: 1.125rem;
    font-weight: 650;
    margin: 0;
}

.tech-timer-page-card__meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: var(--space-1) 0 0;
}

.tech-timer-page-card__hint {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.45;
}

.tech-portal .tech-bottom-nav.mud-appbar {
    box-shadow: 0 -1px 0 var(--color-border);
}

.tech-portal .tech-bottom-nav__link .mud-typography-caption {
    font-weight: 600;
    text-transform: none;
}

