/* Hexagon Font Stack - Applied globally */
html, body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    overflow-x: hidden;
    max-width: 100%;
}

/* Override MudBlazor's default Roboto font */
.mud-typography, .mud-button, .mud-text-field, .mud-select, 
.mud-table, .mud-dialog, .mud-drawer, .mud-appbar,
.mud-form, .mud-input, .mud-input-control, .mud-input-label,
.mud-chip, .mud-link, .mud-nav-link, .mud-nav-menu,
.mud-expansion-panel, .mud-expansion-panels,
.mud-alert, .mud-snackbar, .mud-tooltip {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

/* GEPTRK Logo Color Palette */
:root {
    --geptrk-red: #E53935;        /* Primary red from logo */
    --geptrk-green: #4CAF50;      /* Primary green from logo */
    --oman-charcoal: #262626;     /* Dark hero/CTA background */
    --geptrk-black: #000000;      /* Black background */
    --geptrk-dark-gray: #1a1a1a;  /* Dark gray for surfaces */
    --geptrk-dark-surface: #2a2a2a; /* Dark surface color */
    --geptrk-divider: rgba(255, 255, 255, 0.1); /* Subtle divider */
    /* Oman theme (telemetry page) */
    --oman-red: #E53935;
    --oman-green: #4CAF50;
    --oman-white: #ffffff;
    --oman-amber: #f59e0b;
}

/* ============================================
   Vehicle Telemetry Page (Oman-themed redesign)
   ============================================ */

.telemetry-header {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: var(--oman-white);
}

.telemetry-flag-stripe {
    display: flex;
    height: 4px;
}

.telemetry-flag-stripe > div:nth-child(1) { width: 33.33%; background: var(--oman-red); }
.telemetry-flag-stripe > div:nth-child(2) { width: 33.33%; background: var(--oman-white); border-left: 1px solid #eee; border-right: 1px solid #eee; }
.telemetry-flag-stripe > div:nth-child(3) { width: 33.34%; background: var(--oman-green); }

.telemetry-header-body {
    padding: 1rem 1.25rem;
}

@media (min-width: 600px) {
    .telemetry-header-body {
        padding: 1rem 1.5rem;
    }
}

@media (min-width: 1280px) {
    .telemetry-header-body {
        padding: 1rem 2rem;
    }
}

.telemetry-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.telemetry-back-link:hover {
    color: #111827;
}

.telemetry-header-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .telemetry-header-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.telemetry-vehicle-identity {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.telemetry-vehicle-badge {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--oman-charcoal);
}

.telemetry-vehicle-badge svg {
    width: 28px;
    height: 28px;
    color: var(--oman-red);
}

.telemetry-vehicle-name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

@media (min-width: 640px) {
    .telemetry-vehicle-name {
        font-size: 1.5rem;
    }
}

.telemetry-vehicle-meta {
    margin-top: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.telemetry-vehicle-meta span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--oman-red);
}

.telemetry-connection-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .telemetry-connection-block {
        align-items: flex-end;
    }
}

.telemetry-connection-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.telemetry-connection-badge.connected {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: var(--oman-green);
}

.telemetry-connection-badge.connected .telemetry-status-dot {
    background: var(--oman-green);
    animation: telemetry-pulse 2s ease-in-out infinite;
}

.telemetry-connection-badge.standby {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--oman-amber);
}

.telemetry-connection-badge.standby .telemetry-status-dot {
    background: var(--oman-amber);
}

.telemetry-connection-badge.offline,
.telemetry-connection-badge.disconnected {
    background: rgba(229, 57, 53, 0.1);
    border-color: rgba(229, 57, 53, 0.3);
    color: var(--oman-red);
}

.telemetry-connection-badge.offline .telemetry-status-dot,
.telemetry-connection-badge.disconnected .telemetry-status-dot {
    background: var(--oman-red);
}

.telemetry-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

@keyframes telemetry-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.telemetry-timestamps {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.telemetry-timestamps strong {
    font-weight: 500;
    color: #111827;
}

/* QuickStat cards */
.telemetry-quickstats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .telemetry-quickstats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.telemetry-quickstat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.telemetry-quickstat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.telemetry-quickstat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.telemetry-quickstat.accent-primary .telemetry-quickstat-value {
    color: var(--oman-red);
}

.telemetry-quickstat.accent-green .telemetry-quickstat-value {
    color: var(--oman-green);
}

.telemetry-quickstat-unit {
    font-size: 0.875rem;
    color: #6b7280;
    margin-left: 0.25rem;
}

/* Section blocks */
.telemetry-section {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    overflow: hidden;
}

.telemetry-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--oman-charcoal);
}

.telemetry-section-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.telemetry-section-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.telemetry-section-icon.primary {
    background: rgba(229, 57, 53, 0.2);
}

.telemetry-section-icon.primary .mud-icon-root {
    color: var(--oman-red) !important;
}

.telemetry-section-icon.green {
    background: rgba(76, 175, 80, 0.2);
}

.telemetry-section-icon.green .mud-icon-root {
    color: var(--oman-green) !important;
}

.telemetry-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f9fafb;
}

.telemetry-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid;
    font-size: 0.75rem;
    font-weight: 700;
}

.telemetry-section-badge.moving {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: var(--oman-green);
}

.telemetry-section-badge.stopped {
    background: rgba(156, 163, 175, 0.2);
    border-color: rgba(156, 163, 175, 0.3);
    color: #9ca3af;
}

/* Grid of values */
.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(0, 0, 0, 0.08);
}

@media (min-width: 640px) {
    .telemetry-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.telemetry-grid-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: #fff;
}

.telemetry-grid-cell.wide {
    grid-column: 1 / -1;
}

.telemetry-grid-cell-label-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.telemetry-grid-cell-label-row .mud-icon-root {
    font-size: 1rem !important;
    width: 16px !important;
    height: 16px !important;
}

.telemetry-grid-cell-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.telemetry-grid-cell-value {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

@media (min-width: 640px) {
    .telemetry-grid-cell-value {
        font-size: 1.125rem;
    }
}

/* OBD progress bars */
.telemetry-obd-cell {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #fff;
}

.telemetry-obd-cell-label-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.telemetry-obd-cell-label-row .mud-icon-root {
    font-size: 1rem !important;
    width: 16px !important;
    height: 16px !important;
}

.telemetry-obd-cell-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.telemetry-obd-cell-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.telemetry-obd-cell-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.telemetry-obd-cell-unit {
    font-size: 0.75rem;
    color: #6b7280;
}

.telemetry-obd-bar {
    height: 6px;
    width: 100%;
    border-radius: 9999px;
    background: #e5e7eb;
    overflow: hidden;
}

.telemetry-obd-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.2s;
}

.telemetry-obd-bar-fill.green { background: var(--oman-green); }
.telemetry-obd-bar-fill.amber { background: var(--oman-amber); }
.telemetry-obd-bar-fill.primary { background: var(--oman-red); }

/* Motion tiles */
.telemetry-motion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
}

@media (min-width: 640px) {
    .telemetry-motion-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .telemetry-motion-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.telemetry-motion-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid;
    text-align: center;
}

.telemetry-motion-tile.ok {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.2);
}

.telemetry-motion-tile.ok .mud-icon-root {
    color: var(--oman-green) !important;
}

.telemetry-motion-tile .telemetry-motion-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.telemetry-motion-tile .telemetry-motion-value {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

/* Force light theme backgrounds for MudBlazor layout */
.mud-layout,
.mud-layout-content {
    background-color: #ffffff !important;
    overflow-x: hidden;
    max-width: 100%;
}

/* ============================================
   Sticky Footer Solution
   Formula: viewport = header + content + footer
   Content expands to fill: 100vh - header - footer
   ============================================ */

/* Make MudLayout a flex container that fills the page-wrapper */
.page-wrapper .mud-layout {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0; /* Allow shrinking */
}

/* Make MudMainContent grow to fill available space */
.page-wrapper .mud-main-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Page containers should grow to fill available space */
.employee-page-container,
.dashboard-page-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Ensure footer stays at bottom with margin-top: auto as fallback */
.minimal-footer,
.site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Glass Morphism Appbar Override */
.mud-appbar.geotrk-appbar {
    background-color: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

/* Appbar nav links - hidden on mobile, shown on desktop */
.appbar-nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
}

.appbar-nav-link {
    color: #2c2c2c !important;
    text-decoration: none !important;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.appbar-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #1a1a1a !important;
}

.appbar-link-login {
    color: #2c2c2c !important;
    text-decoration: none !important;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-right: 8px;
    padding: 8px 16px;
    white-space: nowrap;
}

.appbar-link-login:hover {
    color: #DA161A !important;
}

.appbar-btn-signup {
    background: #DA161A !important;
    color: white !important;
    text-transform: none !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    white-space: nowrap;
    font-size: 0.9375rem !important;
}

.appbar-btn-signup:hover {
    background: #b91216 !important;
}

.appbar-menu-button,
.appbar-action-button {
    color: #2c2c2c !important;
}

.appbar-menu-button:hover,
.appbar-action-button:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Login icon button — hidden on desktop, shown on mobile */
.appbar-login-icon {
    display: none !important;
    color: #2c2c2c !important;
}

/* Scanner icon button */
.appbar-scanner-icon {
    color: #2c2c2c !important;
}

/* Appbar logo */
.appbar-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.appbar-logo {
    max-height: 60px;
    width: 180px;
    height: 60px;
    margin-left: 8px;
    display: block;
    object-fit: cover;
    object-position: right center;
}

/* Desktop: show nav links (hamburger stays visible at all sizes) */
@media (min-width: 960px) {
    .appbar-nav {
        display: flex !important;
    }
}

/* Mobile: smaller logo + solid appbar + tighten toolbar spacing */
@media (max-width: 768px) {
    .appbar-logo {
        max-height: 48px;
        width: 140px;
        height: 48px;
        margin-left: 4px;
    }

    .mud-appbar.geotrk-appbar {
        background-color: #ffffff !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
    }

    /* Tighten toolbar padding and gap so icons aren't pinned to edges */
    .mud-appbar.geotrk-appbar .mud-toolbar-root {
        padding-left: 4px !important;
        padding-right: 4px !important;
        gap: 0 !important;
    }

    /* Reduce icon button padding for tighter fit */
    .geotrk-appbar .mud-icon-button {
        padding: 6px !important;
    }

    /* Mobile: show login icon, hide text login + sign-up */
    .appbar-link-login {
        display: none !important;
    }

    .appbar-btn-signup {
        display: none !important;
    }

    .appbar-login-icon {
        display: inline-flex !important;
    }
}

/* Glass Morphism Drawer Override */
.mud-drawer.geptrk-drawer {
    background-color: rgba(248, 249, 250, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.03) !important;
}

.mud-drawer.geptrk-drawer .mud-drawer-content {
    background-color: transparent !important;
}

/* Ensure drawer overlay works correctly */
.mud-overlay-drawer {
    backdrop-filter: blur(2px);
}

/* Custom styles for Blazor reconnection UI (redesign) */
#components-reconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

#components-reconnect-modal.components-reconnect-hide {
    display: none !important;
}

#components-reconnect-modal .show,
#components-reconnect-modal .failed,
#components-reconnect-modal .rejected {
    display: none;
}

#components-reconnect-modal.components-reconnect-show > .show {
    display: block !important;
    width: 100%;
    max-width: 420px;
    max-height: 100%;
    overflow-y: auto;
}

#components-reconnect-modal.components-reconnect-failed > .failed,
#components-reconnect-modal.components-reconnect-rejected > .rejected {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
}

/* Reconnecting screen layout */
.reconnect-screen {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    padding: 1.5rem 1.25rem;
    color: #333;
}

.reconnect-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.reconnect-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.reconnect-brand-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    background: rgba(229, 57, 53, 0.15);
    background-image: radial-gradient(circle at 50% 50%, var(--geptrk-red, #E53935) 0%, transparent 70%);
}

.reconnect-brand-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #111827;
}

.reconnect-brand-subtitle {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.reconnect-status-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--oman-green, #4CAF50);
}

.reconnect-status-badge.reconnect-offline {
    color: var(--geptrk-red, #E53935);
}

.reconnect-status-icon::before {
    content: "●";
    font-size: 0.5rem;
}

.reconnect-radar {
    position: relative;
    height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.reconnect-radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(229, 57, 53, 0.1);
}

.reconnect-radar-ring-1 { width: 8rem; height: 8rem; margin: -4rem 0 0 -4rem; border-color: rgba(229, 57, 53, 0.1); }
.reconnect-radar-ring-2 { width: 6rem; height: 6rem; margin: -3rem 0 0 -3rem; border-color: rgba(229, 57, 53, 0.15); }
.reconnect-radar-ring-3 { width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem; border-color: rgba(229, 57, 53, 0.2); }

.reconnect-radar-pulse {
    position: absolute;
    width: 5rem;
    height: 5rem;
    margin: -2.5rem 0 0 -2.5rem;
    border-radius: 50%;
    border: 2px solid rgba(229, 57, 53, 0.3);
    animation: reconnect-pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.reconnect-radar-pulse-2 { animation-delay: 0.7s; border-color: rgba(229, 57, 53, 0.2); }
.reconnect-radar-pulse-3 { animation-delay: 1.4s; border-color: rgba(229, 57, 53, 0.1); }

@keyframes reconnect-pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.reconnect-radar-sweep {
    position: absolute;
    width: 8rem;
    height: 8rem;
    margin: -4rem 0 0 -4rem;
    animation: reconnect-radar-sweep 3s linear infinite;
}

.reconnect-radar-sweep-inner {
    position: absolute;
    left: 0;
    top: 0;
    width: 4rem;
    height: 4rem;
    border-top-left-radius: 9999px;
    background: conic-gradient(from 0deg, transparent, rgba(229, 57, 53, 0.15));
}

@keyframes reconnect-radar-sweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.reconnect-radar-center {
    position: relative;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(229, 57, 53, 0.2);
}

.reconnect-radar-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--geptrk-red, #E53935);
    animation: reconnect-status-dot 1.5s ease-in-out infinite;
}

@keyframes reconnect-status-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.reconnect-phase {
    text-align: center;
    margin-bottom: 1rem;
}

.reconnect-phase-label {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #111827;
}

.reconnect-phase-desc {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.reconnect-progress-wrap {
    margin-bottom: 1rem;
}

.reconnect-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.reconnect-progress-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.reconnect-progress-pct {
    font-size: 0.75rem;
    font-family: ui-monospace, monospace;
    color: var(--geptrk-red, #E53935);
}

.reconnect-progress-bar {
    height: 6px;
    width: 100%;
    overflow: hidden;
    border-radius: 9999px;
    background: #e5e7eb;
}

.reconnect-progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: var(--geptrk-red, #E53935);
    transition: width 1s ease-out;
}

.reconnect-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.reconnect-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
}

.reconnect-card-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(229, 57, 53, 0.1);
    font-size: 0.75rem;
    color: var(--geptrk-red, #E53935);
}

.reconnect-card-content {
    min-width: 0;
}

.reconnect-card-label {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.reconnect-card-value {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.reconnect-timeline {
    margin-bottom: 1rem;
}

.reconnect-timeline-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.reconnect-timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.reconnect-timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.reconnect-timeline-step.reconnect-step-active {
    border: 1px solid rgba(229, 57, 53, 0.3);
    background: rgba(229, 57, 53, 0.05);
}

.reconnect-timeline-step.reconnect-step-complete {
    opacity: 0.6;
}

.reconnect-timeline-step.reconnect-step-pending {
    opacity: 0.35;
}

.reconnect-timeline-step-icon {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e5e7eb;
    font-size: 0;
    color: transparent;
}

.reconnect-timeline-step-icon.reconnect-step-done {
    background: rgba(76, 175, 80, 0.15);
    color: var(--oman-green, #4CAF50);
    font-size: 0.75rem;
}

.reconnect-timeline-step-icon.reconnect-step-done .reconnect-step-check {
    display: inline;
}

.reconnect-timeline-step-icon.reconnect-step-current {
    background: rgba(229, 57, 53, 0.2);
    animation: reconnect-status-dot 1.5s ease-in-out infinite;
}

.reconnect-timeline-step-content {
    min-width: 0;
}

.reconnect-timeline-step-label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.reconnect-timeline-step-desc {
    margin: 0.25rem 0 0 0;
    font-size: 0.75rem;
    color: #6b7280;
    display: none;
}

.reconnect-timeline-step.reconnect-step-active .reconnect-timeline-step-desc {
    display: block;
}

.reconnect-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.reconnect-footer-hint {
    margin: 0;
    font-size: 0.75rem;
    text-align: center;
    color: rgba(107, 114, 128, 0.7);
}

/* Failed / Rejected fallback */
.reconnect-fallback {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
}

.reconnect-fallback-message {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #333;
}

.reconnect-fallback-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    background: var(--geptrk-red, #E53935);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.reconnect-fallback-btn:hover {
    background: #c62828;
}

#blazor-error-ui {
    background: #dc3545;
    color: white;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    display: none;
}

#blazor-error-ui .reload {
    color: white;
    text-decoration: underline;
    margin-left: 1rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 1rem;
}

/* Modern rounded card styling */
.rounded-card {
    border-radius: 16px !important;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rounded-button {
    border-radius: 8px !important;
}

/* Hover effect for cards */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Smooth transitions for interactive elements */
.mud-paper {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Cleaner spacing and typography */
.mud-container {
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 600px) {
    .mud-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* iPhone-Style Menu */
.iphone-menu {
    width: 100%;
}

.iphone-menu-item {
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    min-height: 44px;
    color: rgba(0, 0, 0, 0.87);
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 16px;
    cursor: pointer;
    box-sizing: border-box;
}

.iphone-menu-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.iphone-menu-item.active {
    background-color: rgba(229, 57, 53, 0.10);
    border-left: 3px solid var(--geptrk-red);
    padding-left: 13px; /* Adjust for border */
}

.iphone-menu-item-icon {
    margin-right: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.iphone-menu-item-text {
    flex: 1;
}

.iphone-menu-section {
    margin-top: 8px;
}

.iphone-menu-section-header {
    padding: 12px 16px 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(0, 0, 0, 0.60);
}

/* Logo in drawer header */
.drawer-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.drawer-logo {
    max-width: 200px;
    height: auto;
    display: block;
}

/* Light theme overrides for MudBlazor in drawer */
.mud-drawer .mud-icon-root {
    color: rgba(0, 0, 0, 0.70) !important;
}

.mud-drawer-header {
    padding: 0 !important;
}

.mud-appbar {
    z-index: 1400 !important; /* Ensure AppBar stays above drawer */
}

/* Bottom nav bar: strip the drawer-offset padding MudBlazor injects into the toolbar */
.mud-appbar-bottom .mud-toolbar-root {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* User account dropdown must sit above the appbar */
.user-menu-popover {
    z-index: 1500 !important;
}

/* Responsive drawer behavior */
.geptrk-drawer {
    width: 280px !important;
}

/* Home page styling */
.home-page {
    width: 100%;
    max-width: 100%;
}

.home-header {
    padding: 24px 16px 12px 16px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.home-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.home-logo {
    max-width: 540px;
    max-height: 338px;
    width: 90%;
    height: auto;
    display: block;
    object-fit: contain;
}

.home-header-text {
    text-align: center;
}

.home-menu {
    width: 100%;
    background: white;
    margin-top: 0;
    margin-bottom: 80px;
    padding-top: 0;
}

.home-menu-item {
    width: 100%;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.home-menu-item:last-child {
    border-bottom: none;
}

.home-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
}

.home-menu-item:active {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(0.98);
}

.home-menu-item:focus {
    outline: 2px solid rgba(229, 57, 53, 0.5);
    outline-offset: -2px;
}

.home-menu-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-menu-item-content {
    flex: 1;
    text-align: left;
}

/* Admin Dashboard Desktop Grid Layout - Aggressive Overrides */
/* DESKTOP VERSION - MUST BE DIFFERENT FROM MOBILE */
@media (min-width: 769px) {
    /* Force grid container to use CSS Grid - Max 4 columns */
    div.home-page div.home-menu.admin-dashboard-menu {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
        justify-content: center !important;
        align-content: start !important;
        gap: 2rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 3rem 4rem !important;
        max-width: 1200px !important; /* Limit to ~4 tiles max per row */
        width: 100% !important;
        margin-top: 0 !important;
        padding-top: 3rem !important;
        background: transparent !important; /* Transparent to show dynamic background */
        box-sizing: border-box !important;
    }

    /* Force tiles to be square and stacked */
    div.home-page div.admin-dashboard-menu div.home-menu-item {
        width: 100% !important;
        min-width: 180px !important;
        max-width: 250px !important;
        aspect-ratio: 1 / 1 !important;
        padding: 2rem !important;
        border-bottom: none !important;
        border-radius: 16px !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1rem !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        background: rgba(255, 255, 255, 0.8) !important; /* Semi-transparent white */
        backdrop-filter: blur(10px) !important; /* Blur effect for frosted glass look */
        transition: all 0.2s ease !important;
    }

    div.home-page div.admin-dashboard-menu div.home-menu-item:last-child {
        border-bottom: none !important;
    }

    div.home-page div.admin-dashboard-menu div.home-menu-item:hover {
        background: rgba(255, 255, 255, 0.9) !important; /* Slightly more opaque on hover */
        backdrop-filter: blur(12px) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
        transform: translateY(-2px) !important;
    }

    div.home-page div.admin-dashboard-menu div.home-menu-item:active {
        transform: scale(0.98) !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }

    /* Icon styling */
    div.home-page div.admin-dashboard-menu div.home-menu-item div.home-menu-item-icon {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-right: 0 !important;
    }

    div.home-page div.admin-dashboard-menu div.home-menu-item div.home-menu-item-icon svg {
        font-size: 2.5rem !important;
    }

    /* Text content styling */
    div.home-page div.admin-dashboard-menu div.home-menu-item div.home-menu-item-content {
        flex: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    div.home-page div.admin-dashboard-menu div.home-menu-item div.home-menu-item-content * {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-align: center !important;
        font-weight: 600 !important;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .home-header {
        padding: 20px 16px 16px 16px;
    }
    
    .home-logo {
        max-width: 432px;
        max-height: 270px;
        width: 85%;
    }
    
    .home-menu-item {
        padding: 20px 16px;
    }
}

/* Ensure main content area has white background */
.mud-main-content {
    background-color: #ffffff !important;
}

/* Pages that draw their own full-page background (canvas/gradient) need transparent main content */
.page-wrapper.page-with-own-bg .mud-main-content {
    background-color: transparent !important;
}

/* ============================================
   Admin Workforce Pages - Fleet-style layout
   (Matches AdminDashboard .adb styling)
   ============================================ */
.adw {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
    overflow: hidden;
    background: #f8f9fa;
}

.adw-header {
    padding: 16px 20px 12px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.adw-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.adw-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.adw-subtitle {
    font-size: 12px;
    color: #888;
    margin: 2px 0 0;
}

.adw-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 20px;
}

/* Workforce tabs - fleet-style pill look */
.adw .mud-tabs {
    background: transparent !important;
    box-shadow: none !important;
}

.adw .mud-tabs-panels {
    background: transparent !important;
}

.adw .mud-tab {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #666 !important;
    text-transform: none !important;
}

.adw .mud-tab.mud-tab-active {
    color: #E53935 !important;
}

.adw .mud-tabs-slider {
    background-color: #E53935 !important;
}

/* Pills / filter chips - match fleet adb-pill */
.adw-pills {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.adw-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}

.adw-pill:hover {
    background: #f5f5f5;
}

.adw-pill--active {
    background: #E53935;
    color: #fff;
    border-color: #E53935;
}

.adw-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.adw-dot--green { background: #4CAF50; }
.adw-dot--amber { background: #FFA000; }
.adw-dot--gray { background: #9e9e9e; }

/* Content cards - white, bordered like fleet */
.adw-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.adw-card-body {
    padding: 16px;
}

/* Buttons in workforce header - match fleet */
.adw .mud-button-root.mud-button-filled.mud-primary {
    background: #E53935 !important;
    color: #fff !important;
}

.adw .mud-button-root.mud-button-filled.mud-primary:hover {
    background: #d32f2f !important;
}

.adw .mud-button-root.mud-button-outlined.mud-primary {
    border-color: #E53935 !important;
    color: #E53935 !important;
}

.adw-header-title-block {
    min-width: 0;
}

.adw-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Align Dashboard (BreadcrumbButton) with Refresh button in workforce header */
.adw-header-actions .breadcrumb-button-container.inline {
    display: inline-flex;
    align-items: center;
    margin: 0;
    align-self: center;
}

.adw-header-actions .mud-button-root,
.adw-header-actions .breadcrumb-button-container .mud-button-root {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.adw-tabs {
    margin-top: 12px;
}

.adw-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    min-height: 0;
    flex: 1;
}

@media (max-width: 960px) {
    .adw-grid {
        grid-template-columns: 1fr;
    }
}

.adw-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.adw-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.adw-actions-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.adw-actions-row .adw-btn {
    flex: 1;
}

.adw-worker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.adw-worker-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.1s;
}

.adw-worker-row:hover {
    background: #f5f5f5;
}

.adw-worker-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.adw-worker-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.adw-worker-status {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}

.adw-status-available {
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
}

.adw-status-ontask {
    background: rgba(33, 150, 243, 0.12);
    color: #1565c0;
}

.adw-status-break {
    background: rgba(255, 152, 0, 0.12);
    color: #e65100;
}

.adw-status-offline {
    background: #f5f5f5;
    color: #888;
}

.adw-worker-meta {
    font-size: 11px;
    color: #888;
}

.adw-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

.adw-link {
    font-size: 13px;
    font-weight: 600;
    color: #E53935;
    text-decoration: none;
}

.adw-link:hover {
    text-decoration: underline;
}

.adw-map-wrap {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.adw-map-inner {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.adw-body .adw-map-wrap {
    min-height: 500px;
}

.adw-map-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #999;
    font-size: 14px;
}

.adw-map-empty p {
    margin: 8px 0 0 0;
}

/* Tasks grid and cards */
.adw-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.adw-task-card {
    display: flex;
    flex-direction: column;
}

.adw-task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.adw-task-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.adw-task-priority {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}

.adw-priority-low { background: #f5f5f5; color: #888; }
.adw-priority-medium { background: rgba(33, 150, 243, 0.12); color: #1565c0; }
.adw-priority-high { background: rgba(255, 152, 0, 0.12); color: #e65100; }
.adw-priority-urgent { background: rgba(229, 57, 53, 0.12); color: #c62828; }

.adw-task-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.adw-task-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
}

.adw-task-status {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.adw-status-pending { background: #f5f5f5; color: #888; }
.adw-status-assigned { background: rgba(229, 57, 53, 0.12); color: #c62828; }
.adw-status-inprogress { background: rgba(33, 150, 243, 0.12); color: #1565c0; }
.adw-status-completed { background: rgba(76, 175, 80, 0.12); color: #2e7d32; }

.adw-task-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.adw-empty-tasks {
    padding: 48px 20px;
}

.adw-empty-tasks p {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #888;
}

/* Table in workforce - fleet-style borders */
.adw-table .mud-table-container {
    border: none !important;
}

.adw-table .mud-table-head .mud-table-row {
    background: #f5f5f5 !important;
    border-bottom: 1px solid #e8e8e8;
}

.adw-table .mud-table-head .mud-table-cell {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    color: #999 !important;
}

.adw-table .mud-table-body .mud-table-row {
    border-bottom: 1px solid #f0f0f0;
}

.adw-table .mud-table-body .mud-table-row:hover {
    background: #f9f9f9 !important;
}

/* Page container for pages that need padding */
.page-container {
    padding: 16px;
}

/* Employee pages: bottom padding only on mobile for bottom nav */
.employee-page-container {
    padding-bottom: 80px;
}

@media (min-width: 960px) {
    .employee-page-container {
        padding-bottom: 16px;
    }
}

/* Asset Tracking Map Container */
.asset-tracking-map-container {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative; /* For fullscreen button positioning */
    transition: all 0.3s ease;
}

/* Fullscreen mode for map container */
.asset-tracking-map-container.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.asset-tracking-map {
    width: 100%;
    min-height: 500px;
    height: 70vh;
    border-radius: 12px;
}

/* Fullscreen mode for map element */
.asset-tracking-map-container.fullscreen .asset-tracking-map {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    border-radius: 0 !important;
}

/* Fullscreen button styling */
.map-fullscreen-button {
    position: absolute !important;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background-color: white !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

.map-fullscreen-button:hover {
    background-color: #f5f5f5 !important;
}

@media (max-width: 768px) {
    .asset-tracking-map {
        min-height: 400px;
        height: 60vh;
    }
    
    /* Add Item button - full width on mobile */
    .add-item-button {
        width: 100% !important;
    }
}

/* Desktop Sidebar Layout for Map Pages */
/* Mobile: Stacked layout (unchanged) */
.map-page-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.map-page-sidebar {
    width: 100%;
    order: 2; /* Table appears after map on mobile */
}

.map-page-content {
    width: 100%;
    order: 1; /* Map appears first on mobile */
}

/* Desktop: Sidebar on left, map on right */
@media (min-width: 1024px) {
    .map-page-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }

    .map-page-sidebar {
        width: 25%;
        min-width: 300px;
        max-width: 400px;
        order: 1;
        height: 70vh;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 8px;
    }
    
    .map-page-sidebar .mud-paper {
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .map-page-sidebar .mud-table-container {
        flex: 1;
        overflow: auto;
        min-height: 0;
    }
    
    .map-page-sidebar .mud-table {
        height: 100%;
    }

    .map-page-content {
        width: 75%;
        flex: 1;
        order: 2;
    }

    /* Adjust map container margin on desktop when in sidebar layout */
    .map-page-content .asset-tracking-map-container {
        margin-bottom: 0;
    }
}

/* Ensure mobile layout remains unchanged */
@media (max-width: 1023px) {
    .map-page-layout {
        flex-direction: column;
    }

    .map-page-sidebar {
        width: 100%;
        order: 2;
        height: auto;
        overflow: visible;
        padding-right: 0;
    }

    .map-page-content {
        width: 100%;
        order: 1;
    }

    .map-page-content .asset-tracking-map-container {
        margin-bottom: 24px;
    }
}

/* Login page styling */
.login-page {
    min-height: calc(100vh - 64px); /* Subtract appbar height */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 32px 16px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.login-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-logo {
    max-width: 540px;
    max-height: 338px;
    width: 90%;
    height: auto;
    display: block;
    object-fit: contain;
}

.login-form-paper {
    width: 100%;
    border-radius: 12px;
    background: white;
}

@media (max-width: 600px) {
    .login-page {
        padding: 24px 16px;
    }
    
    .login-logo {
        max-width: 432px;
        max-height: 270px;
        width: 85%;
    }
}

/* Barcode Scanner Styles */
.scanner-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #E53935;
    box-shadow: 0 0 15px rgba(229, 57, 53, 0.9), 0 0 30px rgba(229, 57, 53, 0.6);
    z-index: 10;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Scanner overlay pulse animation */
.scanner-overlay::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(to bottom, 
        rgba(229, 57, 53, 0.8), 
        rgba(229, 57, 53, 0.4), 
        rgba(229, 57, 53, 0));
    animation: scanner-pulse 2s ease-in-out infinite;
}

@keyframes scanner-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Flash effect animation for successful scan */
@keyframes flash {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.3; 
        background: rgba(76, 175, 80, 0.2);
    }
}

.scan-flash {
    animation: flash 0.3s ease-in-out;
}

/* Scan result modal content styles */
.scan-result-content {
    min-height: 200px;
}

/* Minimal Footer Styles (for authenticated users) */
.minimal-footer {
    background-color: #f5f5f5;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.minimal-footer-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.minimal-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* ============================================
   Marketing Footer Styles (for anonymous users and Home page)
   ============================================ */
.site-footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.87);
    padding: 60px 20px 30px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-company {
    min-width: 0;
    padding-top: 0;
    margin-top: 0;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.75);
}

.footer-copyright {
    margin: 40px auto 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.7;
    text-align: center;
    max-width: 1400px;
}

.footer-copyright p {
    margin: 0;
}

.footer-copyright a {
    text-decoration: underline;
    opacity: 0.9;
}

.footer-copyright a:hover {
    opacity: 1;
}

.footer-heading {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
}

.footer-newsletter {
    min-width: 0;
}

/* Footer form inputs - dark theme styling */
.footer-input .mud-input-control {
    background-color: transparent !important;
}

.footer-input .mud-input-root {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.footer-input .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.footer-input .mud-input-slot {
    background-color: transparent !important;
    padding: 12px 16px !important;
}

.footer-input .mud-input-outlined:hover .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.footer-input .mud-input-outlined.mud-focused .mud-input-outlined-border {
    border-color: #DA161A !important;
}

.footer-input .mud-input-label {
    display: none !important;
}

.footer-input .mud-input-outlined-legend {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
}

.footer-input .mud-input-slot input,
.footer-input .mud-input > input {
    color: rgba(255, 255, 255, 0.9) !important;
    background-color: transparent !important;
}

.footer-input .mud-input-slot input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    margin-bottom: 12px;
}

.footer-link-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-link-list a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

/* Footer Responsive Styles */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 2fr 1.5fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-company {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 20px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-company,
    .footer-newsletter,
    .footer-links {
        grid-column: 1;
    }

    .footer-description {
        font-size: 0.85rem;
    }
}

/* ============================================================
   PASSWORD RESET PAGE STYLES
   ============================================================ */

.password-reset-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f8f9fa;
}

.password-reset-title-bar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
    padding: 20px 24px;
}

.password-reset-page-title {
    font-size: 24px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.87);
    margin: 0;
}

.password-reset-main {
    display: flex;
    flex: 1;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
}

@media (min-width: 768px) {
    .password-reset-main {
        padding: 64px 24px;
    }
}

.password-reset-card.mud-paper {
    width: 100%;
    max-width: 448px;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    padding: 32px;
}

/* Form state */
.password-reset-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.password-reset-form .form-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.lock-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(229, 57, 53, 0.1);
}

.lock-icon {
    color: #E53935;
}

.password-reset-form .form-title {
    font-size: 20px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.87);
    margin: 0;
}

.password-reset-form .form-description {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.60);
    margin: 0;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
}

.required-mark {
    color: #E53935;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container .mud-input-control {
    flex: 1;
}

.password-input .mud-input-root,
.password-input .mud-input-outlined .mud-input-outlined-border {
    background: #f8f9fa;
}

.password-input .mud-input-slot input {
    padding-right: 44px;
}

.password-input.input-error .mud-input-outlined .mud-input-outlined-border {
    border-color: #E53935 !important;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: rgba(0, 0, 0, 0.60);
}

.password-toggle:hover {
    color: rgba(0, 0, 0, 0.87);
}

/* Password strength indicator */
.strength-indicator {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strength-bars {
    display: flex;
    gap: 6px;
}

.strength-bar {
    height: 6px;
    flex: 1;
    border-radius: 999px;
    transition: all 0.5s ease;
}

.bar-empty { background: rgba(0, 0, 0, 0.08); }
.bar-weak  { background: #e53935; }
.bar-fair  { background: #fb8c00; }
.bar-good  { background: #4CAF50; }
.bar-strong { background: #2e7d32; }

.strength-label {
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    transition: all 0.3s ease;
}

.text-weak   { color: #e53935; }
.text-fair   { color: #fb8c00; }
.text-good   { color: #4CAF50; }
.text-strong { color: #2e7d32; }

/* Password rules */
.password-rules {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.rule-not-passed { color: rgba(0, 0, 0, 0.60); }
.rule-passed     { color: #2e7d32; }

.rule-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.icon-not-passed { background: rgba(0, 0, 0, 0.08); color: rgba(0, 0, 0, 0.60); }
.icon-passed     { background: #2e7d32; color: white; }

.rule-icon .mud-icon-root { font-size: 10px; }

.error-text {
    font-size: 12px;
    color: #E53935;
    margin: 0;
    animation: fadeIn 0.2s ease;
}

.success-text-small {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #2e7d32;
    margin: 0;
    animation: fadeIn 0.2s ease;
}

/* Form buttons */
.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

.submit-button,
.cancel-button {
    height: 44px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.submit-button.mud-button-root {
    background-color: #E53935 !important;
    color: white !important;
}

.submit-button.mud-button-root:hover {
    background-color: #c62828 !important;
}

.submit-button.mud-button-root:disabled,
.submit-button.mud-button-root.mud-disabled {
    opacity: 0.4 !important;
    background-color: #E53935 !important;
}

.cancel-button.mud-button-root {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: #f8f9fa !important;
    color: rgba(0, 0, 0, 0.87) !important;
}

.cancel-button.mud-button-root:hover {
    background: rgba(0, 0, 0, 0.06) !important;
}

/* Success state */
.password-reset-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}

.success-icon-container { position: relative; }

.success-icon-outer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.1);
    animation: zoomIn 0.5s ease;
}

.success-icon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.2);
}

.success-icon { color: #4CAF50; font-size: 32px; animation: zoomIn 0.7s ease; }

.success-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.success-title {
    font-size: 20px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.87);
    margin: 0;
}

.success-description {
    max-width: 320px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.60);
    margin: 0;
}

.success-button.mud-button-root {
    width: 100%;
    height: 44px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background-color: #4CAF50 !important;
    color: white !important;
}

.success-button.mud-button-root:hover {
    background-color: #388E3C !important;
}

/* Password reset footer */
.password-reset-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(248, 249, 250, 0.5);
    padding: 16px;
}

.password-reset-footer .footer-text {
    text-align: center;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.60);
    margin: 0;
}

.password-reset-footer .footer-link {
    color: #E53935;
    text-decoration: none;
    text-underline-offset: 4px;
}

.password-reset-footer .footer-link:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

/* Reset password dialog */
.reset-password-dialog .mud-dialog-content { padding: 24px 24px 0 !important; }
.reset-password-dialog .mud-dialog-actions { padding: 0 !important; }
.reset-password-dialog .form-buttons { padding: 0 24px 16px !important; }

/* ============================================================
   PROFILE PAGE STYLES
   ============================================================ */

.profile-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 8px;
}

/* Tasks, Task Detail, and Employee Dashboard share the same max-width as Profile (1200px) */

/* Fixed-width navigation pill – identical on every employee page.
   Uses a dedicated class so the pill is always the same size
   regardless of whether the page uses a grid or single-column layout. */
.employee-nav-pill {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    margin-bottom: 24px !important;
    background-color: white !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}
/* MudHidden renders as display:contents which breaks width:100% resolution.
   Force the wrapper and every intermediate div MudBlazor injects between
   the page container and the pill to be a full-width block box. */
.employee-nav-pill-wrapper {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.employee-nav-pill-wrapper > div {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile: desktop nav pill must not show or affect layout (single source of nav = bottom bar) */
@media (max-width: 959px) {
    .employee-nav-pill-wrapper {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Mobile bottom nav: one solid bar, full width, no floating or stray controls */
.employee-mobile-bottom-nav {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
}
.employee-mobile-bottom-nav .mud-toolbar-root {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.employee-mobile-bottom-nav .mud-stack {
    min-width: 0 !important;
}

/* All direct children of the page container should stretch full width */
.profile-page-container > * {
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 600px) {
    .profile-page-container { padding: 32px 12px; }
}

/* Employee pages: mobile - full viewport width, comfortable padding, reserve space for bottom nav */
@media (max-width: 959px) {
    .employee-profile-page,
    .employee-tasks-page,
    .employee-task-detail-page,
    .employee-dashboard-page,
    .employee-history-page,
    .employee-settings-page {
        padding-bottom: 80px;
        padding-left: 12px;
        padding-right: 12px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
}

/* On mobile, show status card first on employee dashboard */
@media (max-width: 959px) {
    .employee-dashboard-page .profile-content-grid {
        flex-direction: column-reverse;
    }
}

/* Mobile: make content elements use full width (Profile, Tasks, History, Settings, Dashboard) */
@media (max-width: 959px) {
    .employee-profile-page .profile-content-grid,
    .employee-tasks-page .profile-content-grid,
    .employee-dashboard-page .profile-content-grid,
    .employee-history-page .profile-content-grid,
    .employee-settings-page .profile-content-grid {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
    }
    .employee-profile-page .profile-left-column,
    .employee-tasks-page .profile-left-column,
    .employee-dashboard-page .profile-left-column,
    .employee-history-page .profile-left-column,
    .employee-settings-page .profile-left-column {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
    }
    .employee-profile-page .profile-form-card,
    .employee-tasks-page .profile-form-card,
    .employee-dashboard-page .profile-form-card,
    .employee-history-page .profile-form-card,
    .employee-settings-page .profile-form-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .employee-profile-page > *,
    .employee-tasks-page > *,
    .employee-dashboard-page > *,
    .employee-history-page > *,
    .employee-settings-page > * {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* Breadcrumb */
.profile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: rgba(0, 0, 0, 0.60);
    margin-bottom: 4px;
}

.profile-breadcrumb .mud-icon-root { font-size: 14px !important; }

.profile-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    color: rgba(0, 0, 0, 0.60) !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.profile-breadcrumb-link:hover {
    color: rgba(0, 0, 0, 0.87) !important;
}

/* Page title */
.profile-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: rgba(0, 0, 0, 0.87);
    margin: 0;
}

/* Content grid */
.profile-content-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


@media (min-width: 960px) {
    .profile-content-grid {
        display: grid;
        grid-template-columns: 3fr 2fr;
        gap: 24px;
        align-items: start;
    }
}

/* Tasks and Employee Dashboard: wider left column (tasks panel) to use more viewport space and match Profile’s content width */
@media (min-width: 960px) {
    .employee-tasks-page .profile-content-grid,
    .employee-dashboard-page .profile-content-grid,
    .employee-history-page .profile-content-grid,
    .employee-settings-page .profile-content-grid {
        grid-template-columns: 4fr 2fr;
    }
}

.profile-left-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* MudStack inside the left column must also be full width
   so task cards stretch to fill the column, not shrink to content */
.profile-left-column > .mud-stack {
    width: 100%;
}

/* Profile card with decorative header */
.profile-card {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    background: white !important;
}

.profile-card-banner {
    height: 128px;
    background: #E53935;
    position: relative;
    overflow: hidden;
}

.profile-card-banner svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.profile-card-body {
    padding: 0 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar-wrapper {
    margin-top: -48px;
    padding: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.profile-avatar-wrapper .mud-avatar {
    width: 96px !important;
    height: 96px !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    border: 4px solid white;
}

.profile-user-name {
    margin-top: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: rgba(0, 0, 0, 0.87);
    text-align: center;
}

.profile-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.profile-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.75rem;
    font-family: 'SF Mono', 'Cascadia Code', monospace;
    color: rgba(0, 0, 0, 0.60);
}

/* Edit profile form card */
.profile-form-card {
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    background: white !important;
    padding: 24px 28px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.profile-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.profile-form-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(229, 57, 53, 0.1);
    flex-shrink: 0;
}

.profile-form-icon-wrapper .mud-icon-root {
    color: #E53935 !important;
    font-size: 18px !important;
}

.profile-form-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.87);
    margin: 0;
}

.profile-form-subtitle {
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.60);
    margin: 0;
}

.profile-form-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (min-width: 600px) {
    .profile-form-fields { grid-template-columns: 1fr 1fr; }
}

.profile-form-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.60);
    margin-bottom: 6px;
}

.profile-form-card .mud-input-outlined .mud-input-outlined-border {
    border-radius: 8px !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

.profile-form-card .mud-input-root {
    background: rgba(0, 0, 0, 0.02) !important;
}

.profile-form-card .mud-input-root:focus-within {
    background: white !important;
}

.profile-save-btn.mud-button-root {
    height: 44px !important;
    border-radius: 8px !important;
    background-color: #E53935 !important;
    color: white !important;
    font-weight: 500 !important;
    padding: 0 24px !important;
    align-self: flex-end;
}

.profile-save-btn.mud-button-root:hover {
    background-color: #c62828 !important;
}

.profile-security-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.profile-security-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
    margin: 0;
}

.profile-security-sub {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.60);
    margin: 0;
}

.profile-change-pw-btn.mud-button-root {
    height: 40px !important;
    border-radius: 8px !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    transition: all 0.2s ease;
}

.profile-change-pw-btn.mud-button-root:hover {
    border-color: #E53935 !important;
    color: #E53935 !important;
}

/* Status card */
.profile-status-card {
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    background: white !important;
    padding: 20px 24px !important;
    overflow: hidden;
}

.profile-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.profile-status-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-status-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(229, 57, 53, 0.1);
    flex-shrink: 0;
}

.profile-status-icon-wrapper .mud-icon-root {
    color: #E53935 !important;
    font-size: 18px !important;
}

.profile-status-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.87);
    margin: 0;
}

/* Employee tasks status card - match design with uppercase header */
.employee-status-card .profile-status-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.60);
}

.profile-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.profile-status-badge.status-admin {
    background: rgba(229, 57, 53, 0.12);
    color: #E53935;
}

/* Status indicator with pulse */
.profile-status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid;
    margin-bottom: 16px;
}

.profile-status-indicator.status-admin {
    background: rgba(229, 57, 53, 0.04);
    border-color: rgba(229, 57, 53, 0.1);
}

.profile-pulse-dot { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.profile-pulse-dot-inner { width: 12px; height: 12px; border-radius: 50%; }
.profile-pulse-dot-ping {
    position: absolute;
    inset: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
    opacity: 0.3;
}

.status-admin .profile-pulse-dot-inner,
.status-admin .profile-pulse-dot-ping { background: #E53935; }

.profile-status-text-main {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
    margin: 0;
}

.profile-status-text-sub {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.60);
    margin: 0;
}

/* Info rows in status card */
.profile-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    margin-bottom: 8px;
}

.profile-info-row:last-child { margin-bottom: 0; }

.profile-info-row .mud-icon-root {
    color: rgba(0, 0, 0, 0.60) !important;
    font-size: 18px !important;
    margin-top: 2px;
    flex-shrink: 0;
}

.profile-info-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.60);
    margin: 0;
}

.profile-info-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.87);
    margin: 4px 0 0;
}

.profile-info-sub {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.60);
    margin: 2px 0 0;
}

/* Employee task card - clickable, matches profile card style */
.employee-task-card {
    cursor: pointer !important;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.employee-task-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12) !important;
}

/* History page task card — mobile refinements */

/* Prevent status badge from shrinking or wrapping next to the title */
.employee-task-card .profile-status-badge {
    flex-shrink: 0;
    white-space: nowrap;
    align-self: flex-start;
    margin-left: 8px;
}

/* Allow long task titles to wrap gracefully */
.employee-task-card .mud-typography-h6 {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

/* Ensure task cards fill full column width */
.employee-history-page .employee-task-card {
    width: 100%;
    box-sizing: border-box;
}

/* Tasks page design alignment: status card accent (green), info rows, cards */
.employee-tasks-page .profile-status-card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}
.employee-tasks-page .employee-status-card .profile-status-icon-wrapper {
    border-radius: 10px !important;
    background: rgba(76, 175, 80, 0.1) !important;
}
.employee-tasks-page .employee-status-card .profile-status-icon-wrapper .mud-icon-root {
    color: #4CAF50 !important;
}
.employee-tasks-page .profile-status-indicator {
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.05);
    border-color: rgba(76, 175, 80, 0.1);
}
.employee-tasks-page .profile-info-row {
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
}
.employee-tasks-page .profile-form-card.employee-task-card {
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}
.employee-tasks-page .profile-left-column > .profile-info-row:first-of-type {
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.06);
    padding: 16px;
}

/* Employee profile status variants */
.profile-status-badge.status-employee,
.profile-status-badge.status-available {
    background: rgba(76, 175, 80, 0.12);
    color: #2E7D32;
}

.profile-status-badge.status-ontask {
    background: rgba(33, 150, 243, 0.12);
    color: #1565C0;
}

.profile-status-badge.status-break {
    background: rgba(255, 152, 0, 0.12);
    color: #E65100;
}

.profile-status-badge.status-offline {
    background: rgba(158, 158, 158, 0.12);
    color: #616161;
}

.status-available .profile-pulse-dot-inner,
.status-available .profile-pulse-dot-ping { background: #4CAF50; }
.profile-status-indicator.status-available { background: rgba(76, 175, 80, 0.04); border-color: rgba(76, 175, 80, 0.1); }

.status-ontask .profile-pulse-dot-inner,
.status-ontask .profile-pulse-dot-ping { background: #2196F3; }
.profile-status-indicator.status-ontask { background: rgba(33, 150, 243, 0.04); border-color: rgba(33, 150, 243, 0.1); }

.status-break .profile-pulse-dot-inner,
.status-break .profile-pulse-dot-ping { background: #FF9800; }
.profile-status-indicator.status-break { background: rgba(255, 152, 0, 0.04); border-color: rgba(255, 152, 0, 0.1); }

.status-offline .profile-pulse-dot-inner,
.status-offline .profile-pulse-dot-ping { background: #9E9E9E; }
.profile-status-indicator.status-offline { background: rgba(158, 158, 158, 0.04); border-color: rgba(158, 158, 158, 0.1); }

/* ============================================================
   ASSET DIALOG – RESPONSIVE
   ============================================================ */

/* Desktop: cap dialog content height so it scrolls internally */
.mud-dialog .mud-dialog-content {
    max-height: 75vh;
    overflow-y: auto;
}

/* Mobile: expand to full-screen with pinned action bar */
@media (max-width: 600px) {
    .mud-dialog-container .mud-dialog {
        max-width: 100vw !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }
    .mud-dialog-container .mud-dialog .mud-dialog-content {
        flex: 1 1 auto;
        max-height: none !important;
        height: calc(100dvh - 130px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .mud-dialog-container .mud-dialog .mud-dialog-actions {
        flex-shrink: 0;
    }
}

/* ── Platform Dashboard ─────────────────────────────────── */
.plat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.plat-card-body {
    padding: 20px 20px 14px 20px;
    flex: 1;
}
.plat-card-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7280;
    margin-bottom: 6px;
}
.plat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}
.plat-card-sub {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}
.plat-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.plat-card-footer {
    border-top: 1px solid #e5e7eb;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #374151;
    text-decoration: none;
    text-align: center;
    display: block;
    cursor: pointer;
    background: transparent;
    border-radius: 0 0 8px 8px;
    transition: background 0.15s;
}
.plat-card-footer:hover { background: #f9fafb; color: #111827; }

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
}
.status-active    { background: #dcfce7; color: #15803d; }
.status-trial     { background: #dbeafe; color: #1d4ed8; }
.status-pending   { background: #fef9c3; color: #a16207; }
.status-suspended { background: #ffedd5; color: #c2410c; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }
.status-default   { background: #f3f4f6; color: #374151; }

.plat-table { width: 100%; border-collapse: collapse; }
.plat-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    background: #fff;
}
.plat-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}
.plat-table tbody tr:hover { background: #fafafa; }
.plat-table .td-muted { color: #9ca3af; }
.plat-table .td-right { text-align: right; }
.plat-sort-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.plat-sort-btn:hover { color: #111827; }

/* ============================================
   Operations Theme (opd-*) — shared across
   /dashboard (Operations) and /admin/workforce/*
   ============================================ */

.opd-page {
    --opd-red: var(--geptrk-red, #E53935);
    --opd-red-dark: #B71C1C;
    --opd-red-soft: #FFEBEE;
    --opd-green: var(--geptrk-green, #4CAF50);
    --opd-green-soft: #E8F5E9;
    --opd-amber: #F57C00;
    --opd-amber-soft: #FFF3E0;
    --opd-blue: #1976D2;
    --opd-blue-soft: #E3F2FD;
    --opd-grey-bg: #EEEEEE;
    --opd-grey-100: #F5F5F5;
    --opd-grey-200: #E0E0E0;
    --opd-grey-300: #BDBDBD;
    --opd-grey-500: #9E9E9E;
    --opd-grey-700: #616161;
    --opd-grey-900: #212121;
    --opd-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.04);

    color: var(--opd-grey-900);
    line-height: 1.45;
    padding: 0 24px;
}

@media (max-width: 700px) {
    .opd-page { padding: 0 12px; }
}

.opd-loader { margin-top: 16px; }

/* Module header */
.opd-module-header {
    background: white;
    border-bottom: 1px solid var(--opd-grey-200);
    padding: 16px 24px 0;
    margin: 0 -24px 24px;
    box-shadow: var(--opd-shadow);
}

@media (max-width: 700px) {
    .opd-module-header { padding: 16px 12px 0; margin: 0 -12px 24px; }
}

.opd-breadcrumb { font-size: 12px; color: var(--opd-grey-500); margin-bottom: 6px; }
.opd-breadcrumb a { color: var(--opd-grey-500); text-decoration: none; }
.opd-breadcrumb a:hover { color: var(--opd-red); }

.opd-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 6px 0 14px;
    gap: 16px;
    flex-wrap: wrap;
}

.opd-title { font-size: 24px; font-weight: 700; margin: 0; }
.opd-subtitle { font-size: 13px; color: var(--opd-grey-700); margin-top: 2px; }
.opd-header-actions { display: flex; gap: 8px; }

.opd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.15s ease;
    font-family: inherit;
}
.opd-btn-primary { background: var(--opd-red); color: white; }
.opd-btn-primary:hover { background: var(--opd-red-dark); color: white; }
.opd-btn-outline { background: white; color: var(--opd-grey-700); border: 1px solid var(--opd-grey-300); }
.opd-btn-outline:hover { border-color: var(--opd-grey-500); color: var(--opd-grey-900); }

/* Tabs */
.opd-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--opd-grey-200);
    margin: 0 -24px;
    padding: 0 24px;
    overflow-x: auto;
}

@media (max-width: 700px) {
    .opd-tabs { margin: 0 -12px; padding: 0 12px; }
}

.opd-tab {
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--opd-grey-700);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.opd-tab:hover { color: var(--opd-grey-900); }
.opd-tab--active { color: var(--opd-red); border-bottom-color: var(--opd-red); }

.opd-count {
    background: var(--opd-grey-100);
    color: var(--opd-grey-700);
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}
.opd-tab--active .opd-count { background: var(--opd-red-soft); color: var(--opd-red); }
.opd-count--green { background: var(--opd-green-soft); color: var(--opd-green); }

/* Stat cards */
.opd-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.opd-stat-card {
    background: white;
    border-radius: 6px;
    padding: 18px 20px;
    box-shadow: var(--opd-shadow);
    border-left: 4px solid var(--opd-grey-300);
}
.opd-stat-card--critical { border-left-color: var(--opd-red); }
.opd-stat-card--warning { border-left-color: var(--opd-amber); }
.opd-stat-card--ok { border-left-color: var(--opd-green); }
.opd-stat-card--info { border-left-color: var(--opd-blue); }

.opd-stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--opd-grey-700);
    text-transform: uppercase;
}
.opd-stat-value { font-size: 32px; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.opd-stat-value--critical { color: var(--opd-red); }
.opd-stat-value--warning { color: var(--opd-amber); }
.opd-stat-value--ok { color: var(--opd-green); }
.opd-stat-value--info { color: var(--opd-blue); }
.opd-stat-trend { font-size: 12px; color: var(--opd-grey-700); margin-top: 4px; }
.opd-trend-down { color: var(--opd-red); font-weight: 600; }

/* Cards */
.opd-card {
    background: white;
    border-radius: 6px;
    box-shadow: var(--opd-shadow);
    margin-bottom: 24px;
    overflow: hidden;
}
.opd-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--opd-grey-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.opd-card-title { font-size: 15px; font-weight: 700; }
.opd-card-meta { color: var(--opd-grey-500); font-weight: 500; font-size: 12px; margin-left: 8px; }
.opd-card-link { font-size: 12px; font-weight: 700; color: var(--opd-red); text-decoration: none; letter-spacing: 0.5px; }
.opd-card-link:hover { color: var(--opd-red-dark); }
.opd-card-body { padding: 16px 20px; }

/* Two-column */
.opd-two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 0;
}
@media (max-width: 1100px) {
    .opd-two-col { grid-template-columns: 1fr; }
}

/* Tables */
.opd-table-wrap { overflow-x: auto; }
.opd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.opd-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--opd-grey-700);
    border-bottom: 1px solid var(--opd-grey-200);
    background: var(--opd-grey-100);
}
.opd-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--opd-grey-200); vertical-align: middle; }
.opd-table tbody tr:last-child td { border-bottom: none; }

.opd-row { cursor: pointer; }
.opd-row:hover { background: var(--opd-grey-100); }
.opd-strong { font-weight: 600; }
.opd-meta { font-size: 11px; color: var(--opd-grey-700); margin-top: 2px; }

/* Pills & priority */
.opd-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.opd-pill--green { background: var(--opd-green-soft); color: var(--opd-green); }
.opd-pill--red { background: var(--opd-red-soft); color: var(--opd-red); }
.opd-pill--amber { background: var(--opd-amber-soft); color: var(--opd-amber); }
.opd-pill--blue { background: var(--opd-blue-soft); color: var(--opd-blue); }
.opd-pill--grey { background: var(--opd-grey-100); color: var(--opd-grey-700); }

.opd-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.opd-priority {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 12px;
}
.opd-priority::before { content: '●'; }
.opd-priority--critical { color: var(--opd-red); }
.opd-priority--high { color: var(--opd-amber); }
.opd-priority--medium { color: var(--opd-grey-700); }
.opd-priority--low { color: var(--opd-grey-500); }

/* List rows */
.opd-list-row {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--opd-grey-200);
    text-decoration: none;
    color: inherit;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.opd-list-row:hover { background: var(--opd-grey-100); }
.opd-list-row:last-child { border-bottom: none; }
.opd-list-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: var(--opd-grey-100);
    color: var(--opd-grey-700);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.opd-list-body { flex: 1; min-width: 0; }

/* Empty state */
.opd-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--opd-grey-500);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Timeline */
.opd-timeline { padding: 8px 20px 16px; }
.opd-timeline-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--opd-grey-200); }
.opd-timeline-item:last-child { border-bottom: none; }
.opd-timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--opd-grey-300); margin-top: 6px; flex-shrink: 0; }
.opd-timeline-dot--green { background: var(--opd-green); }
.opd-timeline-dot--red { background: var(--opd-red); }
.opd-timeline-dot--amber { background: var(--opd-amber); }
.opd-timeline-body { flex: 1; }
.opd-timeline-text { font-size: 13px; }
.opd-actor { font-weight: 600; }
.opd-timeline-time { font-size: 11px; color: var(--opd-grey-500); margin-top: 2px; }

/* Quick links */
.opd-quicklinks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.opd-quicklink {
    background: white;
    border-radius: 6px;
    padding: 18px 16px;
    box-shadow: var(--opd-shadow);
    text-decoration: none;
    color: var(--opd-grey-900);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border: 1px solid transparent;
    transition: border-color 0.15s, transform 0.15s;
}
.opd-quicklink:hover { border-color: var(--opd-red); transform: translateY(-1px); color: var(--opd-grey-900); }
.opd-quicklink-label { font-size: 14px; font-weight: 700; margin-top: 4px; }
.opd-quicklink-meta { font-size: 12px; color: var(--opd-grey-700); }

/* Filter chips (Tasks page filter strip) */
.opd-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: white;
    border-radius: 6px;
    box-shadow: var(--opd-shadow);
    margin-bottom: 16px;
}
.opd-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid var(--opd-grey-300);
    background: white;
    color: var(--opd-grey-700);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}
.opd-filter-chip:hover { border-color: var(--opd-grey-500); }
.opd-filter-chip--active { background: var(--opd-red); color: white; border-color: var(--opd-red); }

.opd-search-input {
    flex: 1;
    min-width: 220px;
    padding: 9px 14px;
    border: 1px solid var(--opd-grey-300);
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    background: white;
    color: var(--opd-grey-900);
}
.opd-search-input:focus { outline: none; border-color: var(--opd-red); box-shadow: 0 0 0 1px var(--opd-red); }

.opd-id-mono {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 12px;
    color: var(--opd-grey-700);
}

/* Work Order detail meta strip */
.opd-wo-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.opd-wo-meta-cell {
    background: var(--opd-grey-100);
    padding: 12px 16px;
    border-radius: 4px;
}
.opd-wo-meta-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--opd-grey-700);
}
.opd-wo-meta-value {
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
}

.opd-station-color {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 6px;
    border: 1px solid var(--opd-grey-200);
}

/* Kanban columns inside .opd-card */
.opd-kanban {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 16px 20px;
}
.opd-kanban-col {
    background: var(--opd-grey-100);
    border-radius: 6px;
    padding: 10px;
    min-height: 120px;
}
.opd-kanban-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--opd-grey-700);
    padding: 4px 6px 8px;
}
.opd-kanban-card {
    background: white;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: var(--opd-shadow);
    font-size: 13px;
}
.opd-kanban-card:last-child { margin-bottom: 0; }
.opd-kanban-card-title { font-weight: 600; }
.opd-kanban-card-meta { font-size: 11px; color: var(--opd-grey-700); margin-top: 2px; }

/* Task card grid (Tasks page) */
.opd-task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.opd-task-card {
    background: white;
    border-radius: 6px;
    box-shadow: var(--opd-shadow);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 4px solid var(--opd-grey-300);
}
.opd-task-card--critical { border-left-color: var(--opd-red); }
.opd-task-card--high { border-left-color: var(--opd-amber); }
.opd-task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.opd-task-card-title { font-size: 15px; font-weight: 700; line-height: 1.3; flex: 1; }
.opd-task-card-desc { font-size: 13px; color: var(--opd-grey-700); line-height: 1.45; }
.opd-task-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--opd-grey-700);
}
.opd-task-card-meta-row { display: inline-flex; align-items: center; gap: 6px; }
.opd-task-card-actions { display: flex; gap: 8px; margin-top: 4px; }

/* Map page sidebar tweaks */
.opd-sidebar-actions {
    display: flex;
    gap: 8px;
    padding: 0 20px 12px;
    flex-wrap: wrap;
}
.opd-sidebar-pills {
    display: flex;
    gap: 6px;
    padding: 0 20px 12px;
    flex-wrap: wrap;
}
.opd-map-wrap {
    position: relative;
    min-height: 480px;
    overflow: hidden;
}
.opd-map-inner { position: absolute; inset: 0; }
.opd-map-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--opd-grey-500);
}
