:root {
    --sidebar-width: 260px;
    --header-height: 70px;
    --rightbar-width: 360px;
}

* { font-family: 'Inter', sans-serif; }
h1, h2, h3, h4, h5, h6, .font-display { font-family: 'Space Grotesk', sans-serif; }
body { background-color: #f1f5f9; overflow-x: hidden; }

.sidebar {
    position: relative;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
}

.sidebar-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--sidebar-bg-url);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0.12;
    pointer-events: none;
    filter: brightness(1.2);
}

.sidebar.sidebar-collapsed .sidebar-bg-image {
    display: none;
}
.sidebar.collapsed { width: 80px; }
.sidebar.collapsed .nav-text,
.sidebar.collapsed .logo-text,
.sidebar.collapsed .user-info { opacity: 0; width: 0; overflow: hidden; }
.sidebar.collapsed .sidebar-brand { justify-content: center; }

.sidebar-brand {
    min-width: 0;
    display: flex;
    align-items: center;
}

.sidebar-brand-image {
    display: block;
    width: 100%;
    max-width: 182px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(148, 163, 184, 0.16));
}

.sidebar .section-divider { border-top: 1px solid rgba(148, 163, 184, 0.35); padding-top: 8px; }

.nav-item {
    position: relative;
    padding: 8px 16px; /* Reduzido de 12px 20px para 8px 16px */
    margin: 2px 8px; /* Reduzido de 4px 12px para 2px 8px */
    border-radius: 8px; /* Reduzido de 10px para 8px */
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 13px; /* Fonte menor */
}
.nav-item:hover { background: rgba(255,255,255,.1); }
.nav-item.active {
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(99,102,241,.4);
    color: #fff;
    font-weight: 500;
}
.nav-item.is-parent-active:not(.active) {
    background: rgba(99, 102, 241, 0.18);
    color: #fff;
}
.nav-item i { width: 20px; text-align: center; } /* Reduzido de 24px para 20px */

.nav-dashboard-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 10px 2px 18px;
    padding-left: 12px;
    border-left: 1px solid rgba(148, 163, 184, 0.28);
}

.nav-subitem {
    padding: 7px 14px;
    margin: 0;
    border-radius: 10px;
    font-size: 12px;
    background: rgba(15, 23, 42, 0.12);
}

.nav-subitem:hover {
    background: rgba(255,255,255,.08);
}

.nav-subitem.active {
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.28);
}

.nav-counter {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(34, 197, 94, .35);
}

.right-sidebar {
    width: var(--rightbar-width);
    position: fixed;
    top: 0;
    right: calc(-1 * var(--rightbar-width));
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 30px rgba(0,0,0,.1);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
    overflow-y: auto;
}
.right-sidebar.open { right: 0; }
.right-sidebar-overlay {
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: rgba(15,23,42,.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 1150;
}
.right-sidebar-overlay.visible { opacity:1; visibility: visible; }
.right-sidebar-header { position: sticky; top: 0; background: #fff; z-index: 10; border-bottom: 1px solid #e2e8f0; }

.sidebar-clock-card {
    padding: 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 36%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.sidebar-digital-clock {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 38px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.sidebar-full-date {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255,255,255,.86);
    text-transform: capitalize;
}

.sidebar-latest-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-latest-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.sidebar-latest-logo {
    flex-shrink: 0;
    margin-top: 2px;
}

.sidebar-latest-content {
    min-width: 0;
}

.sidebar-latest-title {
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
}

.sidebar-latest-subtitle {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.sidebar-latest-time {
    margin-top: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.sidebar-tasks-card {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.sidebar-tasks-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sidebar-tasks-title {
    color: #0f172a;
    font-weight: 700;
    font-size: 15px;
}

.sidebar-tasks-help {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.sidebar-task-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.sidebar-task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.sidebar-task-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all .2s ease;
}

.sidebar-task-item.is-done {
    background: #ecfdf5;
    border-color: #bbf7d0;
    opacity: .78;
}

.sidebar-task-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #10b981;
}

.sidebar-task-text {
    color: #0f172a;
    font-size: 13px;
    line-height: 1.45;
}

.sidebar-task-item.is-done .sidebar-task-text {
    color: #64748b;
    text-decoration: line-through;
}

.sidebar-task-remove {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
}

.sidebar-task-remove:hover {
    color: #ef4444;
}

.sidebar-task-empty {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    text-align: center;
    border: 1px dashed #cbd5e1;
}

.main-content {
    margin-left: var(--sidebar-width);
    margin-right: 0;
    transition: margin .3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page-content {
    flex: 1 1 auto;
    position: relative;
    transition: opacity .22s ease, transform .22s ease;
}

#page-content.page-content-soft-refresh::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.14) 0%, rgba(255, 255, 255, 0.42) 100%);
    pointer-events: none;
    opacity: 1;
}

#page-content.page-content-soft-refresh > * {
    opacity: 0.74;
    transform: translateY(2px);
}

#page-content.page-content-refresh-swap {
    animation: pageContentRefreshIn .24s ease;
}

@keyframes pageContentRefreshIn {
    from {
        opacity: 0.78;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.global-footer {
    padding: 12px 16px 18px;
    text-align: center;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.4;
}

.global-footer-login {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 3;
    width: calc(100% - 32px);
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 25px 45px rgba(0,0,0,.15);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100px; height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(99,102,241,.08) 50%);
    border-radius: 0 0 0 100%;
}

.dashboard-logistics-layout .dashboard-logistics-stat-card {
    min-height: 152px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboard-logistics-layout .dashboard-period-toolbar {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: end;
    column-gap: 1rem;
    row-gap: 0;
}

.dashboard-logistics-layout .dashboard-period-toolbar-copy {
    white-space: nowrap;
}

.dashboard-logistics-layout .dashboard-period-toolbar-fields {
    justify-content: flex-end;
    overflow-x: auto;
    padding-bottom: 2px;
}

.dashboard-logistics-layout .dashboard-period-field {
    min-width: 145px;
    flex: 0 0 145px;
}

.dashboard-logistics-layout .dashboard-logistics-panel-card {
    height: auto;
    display: block;
}

.dashboard-logistics-layout .dashboard-logistics-team-card .dashboard-feed-list {
    align-content: start;
}

.dashboard-logistics-layout .dashboard-logistics-team-card .dashboard-feed-row.is-team {
    min-height: 88px;
}

.dashboard-logistics-layout .dashboard-logistics-priority-card {
    min-height: 0;
}

.dashboard-logistics-layout .dashboard-logistics-priority-card > .grid {
    height: auto;
}

.dashboard-logistics-layout .dashboard-logistics-priority-card .delivery-mini-map-card,
.dashboard-logistics-layout .dashboard-logistics-priority-card .delivery-mini-map-fallback {
    height: auto;
    min-height: 240px;
}

.dashboard-logistics-panels,
.dashboard-logistics-priority-grid {
    align-items: start;
}

.dashboard-logistics-layout .dashboard-logistics-panel-card .dashboard-feed-empty {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-card-collapsed {
    display: none;
}

#toggle-dashboard-cards.is-active {
    background: #e2e8f0;
    color: #0f172a;
}

.dashboard-analytics-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbeafe;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.dashboard-analytics-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dashboard-analytics-header-with-filters {
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 1.25rem;
}

.dashboard-analytics-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-analytics-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0891b2;
    margin-bottom: 0.4rem;
}

.dashboard-analytics-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-analytics-description {
    color: #64748b;
    font-size: 0.92rem;
    margin-top: 0.45rem;
    max-width: 58ch;
}

.dashboard-analytics-period-caption {
    margin-top: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.77rem;
    font-weight: 600;
}

.dashboard-chart-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.dashboard-chart-summary-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.94) 100%);
    border-radius: 1rem;
    padding: 0.8rem 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 22px rgba(15, 23, 42, 0.18);
}

.dashboard-chart-summary-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #67e8f9;
    margin-bottom: 0.45rem;
}

.dashboard-chart-summary-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
}

.dashboard-period-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid #dbeafe;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 28%),
        radial-gradient(circle at right center, rgba(59, 130, 246, 0.10), transparent 26%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    overflow-x: auto;
}

.dashboard-period-toolbar-copy {
    min-width: 0;
}

.dashboard-period-toolbar-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.dashboard-period-toolbar-title {
    display: block;
    margin-top: 0.35rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-period-toolbar-fields {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.85rem;
    width: max-content;
    min-width: max-content;
}

.dashboard-analytics-header-with-filters .dashboard-period-toolbar-fields {
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-self: flex-start;
    width: auto;
    min-width: auto;
    flex: 0 0 auto;
    gap: 0.55rem;
}

.dashboard-analytics-header-with-filters .dashboard-period-field {
    min-width: 148px;
    flex: 0 0 148px;
}

.dashboard-analytics-header-with-filters .dashboard-period-field span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.dashboard-analytics-header-with-filters .form-input {
    padding: 10px 12px;
    min-height: 42px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
}

.dashboard-analytics-header-with-filters .form-input:focus {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.12);
}

.dashboard-period-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 150px;
    flex: 0 0 150px;
}

.dashboard-period-field span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.dashboard-period-clear {
    white-space: nowrap;
}

.dashboard-analytics-header-with-filters .dashboard-period-clear {
    padding: 10px 6px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-analytics-header-with-filters .dashboard-period-clear:hover {
    background: transparent;
    color: #0f172a;
}

.dashboard-chart-shell {
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 1.25rem;
    padding: 0.85rem 0.9rem 0.9rem;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 32%),
        radial-gradient(circle at right center, rgba(37, 99, 235, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.dashboard-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.dashboard-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 0.9rem;
    color: #475569;
    font-size: 0.86rem;
}

.dashboard-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.dashboard-chart-legend-swatch {
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 999px;
    display: inline-block;
}

.dashboard-chart-legend-swatch.is-bar {
    background: linear-gradient(180deg, #22c55e 0%, #0f766e 100%);
}

.dashboard-chart-legend-swatch.is-line {
    width: 1.3rem;
    height: 0.2rem;
    border-radius: 999px;
    background: #1d4ed8;
}

.dashboard-chart-legend-swatch.is-line-dark {
    width: 1.5rem;
    height: 0.28rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f172a 0%, #1d4ed8 100%);
}

.dashboard-chart-legend-swatch.is-line-cyan {
    width: 1.5rem;
    height: 0.28rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #06b6d4 0%, #67e8f9 100%);
}

.dashboard-chart-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: #f8fafc;
    color: #64748b;
    padding: 1rem 1.15rem;
    text-align: center;
}

.dashboard-called-map-shell {
    position: relative;
    margin-bottom: 0.75rem;
}

.dashboard-called-map {
    width: 100%;
    height: 320px;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    position: relative;
    z-index: 0;
}

.dashboard-called-map.is-tall {
    height: 460px;
}

.dashboard-called-map.is-orders {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}

.dashboard-called-map-feedback {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    color: #fff;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    text-align: center;
    transition: opacity 0.2s ease;
}

.dashboard-called-map-feedback.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.dashboard-called-list {
    display: grid;
    gap: 0.5rem;
}

.dashboard-called-list-item {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.58rem 0.72rem;
    border-radius: 1rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
}

.dashboard-called-list-item.is-latest {
    background: #fff7ed;
    border-color: #fb923c;
}

.dashboard-called-list-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    background: #f97316;
    margin-top: 0.22rem;
    flex-shrink: 0;
}

.dashboard-called-list-dot.is-latest {
    background: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
    animation: dashboardCalledBlink 1.1s ease-in-out infinite;
}

.dashboard-called-list-content {
    min-width: 0;
}

.dashboard-called-list-title {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

.dashboard-called-list-meta {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.18rem;
    line-height: 1.2;
}

.dashboard-called-list-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    padding: 0.14rem 0.38rem;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 0.62rem;
    font-weight: 700;
}

.dashboard-called-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.dashboard-called-list-mini-card {
    border-radius: 0.9rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 0.55rem 0.6rem;
    min-width: 0;
}

.dashboard-called-list-mini-card span {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 700;
}

.dashboard-called-list-mini-card strong {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.74rem;
    line-height: 1.25;
    color: #0f172a;
    word-break: break-word;
}

.dashboard-called-queue-card {
    padding: 1.1rem;
}

.dashboard-called-list-item-compact {
    padding: 0.72rem 0.78rem;
    gap: 0.55rem;
}

.dashboard-called-marker-wrap {
    background: transparent;
    border: 0;
}

.dashboard-called-marker {
    position: relative;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-called-marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #f97316;
    border: 2px solid #fff;
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
    position: relative;
    z-index: 2;
}

.dashboard-called-marker.is-blue .dashboard-called-marker-dot {
    background: #2563eb;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.dashboard-called-marker.is-orange .dashboard-called-marker-dot {
    background: #f97316;
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
}

.dashboard-called-marker.is-blinking .dashboard-called-marker-dot,
.dashboard-called-marker.is-latest .dashboard-called-marker-dot {
    animation: dashboardCalledBlink 1.1s ease-in-out infinite;
}

.dashboard-called-marker-pulse {
    display: none;
}

.dashboard-called-marker.is-blinking .dashboard-called-marker-pulse,
.dashboard-called-marker.is-latest .dashboard-called-marker-pulse {
    display: block;
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.25);
    animation: dashboardCalledPulse 1.15s ease-out infinite;
}

.dashboard-called-marker.is-blue.is-blinking .dashboard-called-marker-pulse,
.dashboard-called-marker.is-blue.is-latest .dashboard-called-marker-pulse {
    background: rgba(37, 99, 235, 0.22);
    animation: dashboardCalledPulse 1.15s ease-out infinite;
}

@keyframes dashboardCalledBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.42;
    }
}

@keyframes dashboardCalledPulse {
    0% {
        transform: scale(0.65);
        opacity: 0.95;
    }
    70% {
        transform: scale(1.45);
        opacity: 0;
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .dashboard-analytics-header-with-filters {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .dashboard-analytics-header-with-filters .dashboard-period-toolbar-fields {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-period-toolbar {
        align-items: center;
    }

    .dashboard-chart-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-analytics-header-with-filters .dashboard-period-field {
        min-width: 0;
        flex-basis: 100%;
    }

    .dashboard-period-clear {
        flex: 0 0 auto;
    }

    .dashboard-chart-summary {
        grid-template-columns: 1fr;
    }

    .dashboard-called-map {
        height: 240px;
    }

    .dashboard-called-map.is-tall {
        height: 320px;
    }

    .dashboard-called-list-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-feed-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.dashboard-feed-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-feed-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #0ea5e9;
    margin-bottom: 0.35rem;
}

.dashboard-feed-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-feed-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
}

.dashboard-feed-list {
    display: grid;
    gap: 0.75rem;
}

.dashboard-feed-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1.35fr) repeat(3, minmax(90px, 0.85fr));
    gap: 0.8rem;
    align-items: center;
    min-height: 76px;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.dashboard-feed-row.is-clients {
    grid-template-columns: 52px minmax(0, 1.4fr) minmax(90px, 0.7fr);
}

.dashboard-feed-row.is-team {
    grid-template-columns: 52px minmax(0, 1.1fr) minmax(100px, 0.8fr) minmax(90px, 0.65fr) minmax(120px, 1fr);
}

.dashboard-feed-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-width: 52px;
}

.dashboard-feed-avatar {
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    flex: 0 0 44px;
    border-radius: 14px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.dashboard-feed-avatar.is-product {
    background: linear-gradient(135deg, #0f172a 0%, #06b6d4 100%);
}

.dashboard-feed-avatar.is-product:not(.is-fallback) {
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
    padding: 4px;
}

.dashboard-feed-avatar.is-operator {
    background: linear-gradient(135deg, #1e293b 0%, #0f766e 100%);
}

.dashboard-feed-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dashboard-feed-avatar.is-product img {
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
}

.dashboard-feed-row .table-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.dashboard-feed-row .table-logo img {
    width: 44px;
    height: 44px;
}

.dashboard-feed-main {
    min-width: 0;
}

.dashboard-feed-primary {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.dashboard-feed-status {
    display: inline-flex;
    align-items: center;
    margin-left: 0.45rem;
    padding: 0.16rem 0.42rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.dashboard-feed-status.is-online {
    background: #dcfce7;
    color: #15803d;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.dashboard-feed-status.is-complete {
    background: #dbeafe;
    color: #1d4ed8;
}

.dashboard-feed-secondary {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.18rem;
    line-height: 1.25;
}

.dashboard-feed-metric {
    min-width: 0;
}

.dashboard-feed-metric-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
}

.dashboard-feed-metric-value {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.dashboard-feed-metric.is-highlight .dashboard-feed-metric-value {
    color: #0f766e;
}

.dashboard-feed-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
}

.dashboard-overview-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.dashboard-overview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-overview-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.dashboard-overview-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-overview-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #60a5fa;
    font-size: 0.72rem;
    font-weight: 700;
}

.dashboard-production-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.05fr);
    gap: 1.2rem;
    align-items: center;
}

.dashboard-production-donut {
    width: 230px;
    height: 230px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--production-gradient, conic-gradient(#0f172a 0 100%));
    position: relative;
    box-shadow: inset 0 2px 8px rgba(255,255,255,0.16), 0 24px 34px rgba(15, 23, 42, 0.1);
}

.dashboard-production-donut::after {
    content: '';
    position: absolute;
    inset: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 6px 16px rgba(148, 163, 184, 0.12);
}

.dashboard-production-donut-center {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dashboard-production-donut-center strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
}

.dashboard-production-donut-center span {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.dashboard-production-legend {
    display: grid;
    gap: 0.85rem;
}

.dashboard-production-legend-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.7rem 0.75rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.dashboard-production-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.dashboard-production-legend-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-production-legend-meta {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.18rem;
}

.dashboard-services-table-wrap {
    overflow: auto;
}

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

.dashboard-services-table th {
    text-align: left;
    padding: 0.8rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-services-table td {
    padding: 0.82rem 0.7rem;
    font-size: 0.8rem;
    color: #0f172a;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.dashboard-services-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-services-id {
    color: #1d4ed8;
    font-weight: 700;
}

.dashboard-services-value {
    color: #14b8a6;
    font-weight: 700;
}

@media (max-width: 1400px) {
    .dashboard-production-card {
        grid-template-columns: 1fr;
    }

    .dashboard-feed-row {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .dashboard-feed-row.is-clients,
    .dashboard-feed-row.is-team {
        grid-template-columns: 52px minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .dashboard-feed-card {
        padding: 16px;
    }

    .dashboard-overview-card {
        padding: 16px;
    }

    .dashboard-production-donut {
        width: 200px;
        height: 200px;
    }

    .dashboard-production-donut::after {
        inset: 30px;
    }

    .dashboard-feed-row,
    .dashboard-feed-row.is-clients,
    .dashboard-feed-row.is-team {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 0.65rem;
        padding: 0.75rem;
    }

    .dashboard-feed-avatar {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.data-table th {
    background: #f8fafc;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 2px solid #e2e8f0;
}
.data-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.data-table tbody tr:hover { background: #f8fafc; }

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all .2s ease;
    background: #fff;
}
.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}

.btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all .2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(99,102,241,.3); }
.btn-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.btn-secondary:hover { background: #e2e8f0; }
.btn-danger { background: linear-gradient(135deg, #ef4444 0%, #f97316 100%); color: #fff; border: none; }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(239,68,68,.3); }
.btn-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; border: none; }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(16,185,129,.3); }
.btn-info { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); color: #fff; border: none; }
.btn-info:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(6,182,212,.3); }

.close-btn {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #f1f5f9; color: #64748b; border: none; cursor: pointer; transition: all .2s ease;
}
.close-btn:hover { background: #fee2e2; color: #dc2626; transform: rotate(90deg); }

.modal {
    position: fixed; inset: 0; background: rgba(15,23,42,.7); backdrop-filter: blur(4px); z-index: 1300;
    display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease;
}
.modal.open { display: flex; opacity: 1; }
.modal-content {
    background: #fff; border-radius: 20px; max-width: 720px; width: 92%; max-height: 90vh; overflow-y: auto;
    transform: scale(.9); transition: transform .3s ease;
}
.modal.open .modal-content { transform: scale(1); }

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-info { background: #e0e7ff; color: #4f46e5; }
.badge-secondary { background: #f1f5f9; color: #64748b; }

#map-container {
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    position: relative;
    z-index: 0;
}

.delivery-mini-map-card {
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
    border-radius: 1rem;
    padding: 0.9rem;
}

.delivery-mini-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.delivery-mini-map-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1d4ed8;
}

.delivery-mini-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1d4ed8;
}

.delivery-mini-map {
    width: 100%;
    height: 180px;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid #bfdbfe;
    position: relative;
    z-index: 0;
}

#map-container .leaflet-pane,
#map-container .leaflet-top,
#map-container .leaflet-bottom,
.dashboard-called-map .leaflet-pane,
.dashboard-called-map .leaflet-top,
.dashboard-called-map .leaflet-bottom,
.delivery-mini-map .leaflet-pane,
.delivery-mini-map .leaflet-top,
.delivery-mini-map .leaflet-bottom {
    z-index: 1;
}

.delivery-mini-map-fallback {
    min-height: 100px;
    border-radius: 0.9rem;
    border: 1px dashed #93c5fd;
    background: rgba(255, 255, 255, 0.7);
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.assignment-panel {
    border: 1px solid #dbeafe;
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.assignment-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.assignment-panel-title {
    color: #0f172a;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.assignment-panel-help {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.assignment-panel-status {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.assignment-panel-status.is-positive {
    color: #047857;
    background: #d1fae5;
}

.assignment-panel-status.is-neutral {
    color: #475569;
    background: #e2e8f0;
}

.assignment-panel-target {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.assignment-target-label {
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.assignment-map-root {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.assignment-map {
    width: 100%;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #bfdbfe;
    background: #dbeafe;
}

.assignment-map-empty {
    min-height: 120px;
    border-radius: 18px;
    border: 1px dashed #93c5fd;
    background: #f8fbff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.assignment-candidate-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 2px;
}

.assignment-candidate-btn {
    width: 100%;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #fff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    transition: all .2s ease;
    cursor: pointer;
}

.assignment-candidate-btn:hover {
    border-color: #60a5fa;
    background: #f8fbff;
    transform: translateY(-1px);
}

.assignment-candidate-btn.is-selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.assignment-candidate-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.assignment-candidate-name {
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
}

.assignment-candidate-detail {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.assignment-candidate-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.assignment-candidate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #075985;
    font-size: 11px;
    font-weight: 700;
}

.assignment-map-marker-wrap {
    background: transparent;
    border: none;
}

.assignment-map-marker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
    white-space: nowrap;
}

.assignment-map-marker-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.assignment-map-tooltip {
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
    font-size: 11px;
    font-weight: 700;
}

.assignment-map-tooltip:before {
    display: none;
}

@media (max-width: 768px) {
    .assignment-panel-header,
    .assignment-candidate-btn {
        flex-direction: column;
        align-items: flex-start;
    }

    .assignment-candidate-badges {
        justify-content: flex-start;
    }

    .assignment-map {
        height: 260px;
    }
}

.login-page {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #020617 0%, #0f172a 45%, #115e59 100%);
    overflow: hidden;
}

.login-bg-image {
    position: absolute;
    inset: 0;
    background-image: var(--login-bg-url);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .34;
    filter: blur(7px);
    transform: scale(1.06);
}

.login-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(2, 6, 23, .82) 0%, rgba(15, 23, 42, .74) 45%, rgba(8, 145, 178, .44) 100%);
}

.login-card {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(22px);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 30px 70px rgba(0,0,0,.34);
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1.08fr) minmax(320px, .92fr);
    min-height: 640px;
}

.login-hero-panel {
    padding: 48px 42px;
    background:
        radial-gradient(circle at top right, rgba(125, 211, 252, .24), transparent 34%),
        linear-gradient(160deg, rgba(15, 23, 42, .94) 0%, rgba(17, 24, 39, .88) 46%, rgba(8, 145, 178, .78) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-hero-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.92);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.login-hero-text {
    margin-top: 18px;
    color: rgba(255,255,255,.84);
    font-size: 15px;
    line-height: 1.75;
    max-width: 520px;
}

.login-hero-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
}

.login-hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.login-hero-feature i {
    width: 18px;
    text-align: center;
    color: #bae6fd;
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.92) 100%);
}

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

    .login-hero-panel {
        padding: 30px 26px;
    }
}

.toast {
    min-width: 280px;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    background: #fff;
    border-left: 5px solid #6366f1;
}
.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); position: fixed; }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-content { margin-left: 0; }

    .dashboard-logistics-layout .dashboard-period-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .dashboard-logistics-layout .dashboard-period-toolbar-copy {
        white-space: normal;
    }

    .dashboard-logistics-layout .dashboard-period-toolbar-fields {
        justify-content: flex-start;
    }

    .dashboard-logistics-layout .dashboard-logistics-stat-card {
        min-height: 138px;
    }

    .dashboard-logistics-layout .dashboard-logistics-priority-card .delivery-mini-map-card,
    .dashboard-logistics-layout .dashboard-logistics-priority-card .delivery-mini-map-fallback {
        min-height: 220px;
    }
}


.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

select.form-input {
    padding-right: 2.5rem;
}


.filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.filter-toolbar-advanced {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.filter-toolbar-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) minmax(180px, .9fr) minmax(200px, 1fr) minmax(120px, .55fr);
    gap: 12px;
    flex: 1 1 760px;
}

.advanced-grid {
    grid-template-columns: repeat(5, minmax(160px, 1fr));
}

.filter-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-field {
    min-width: 0;
}

.filter-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    margin-bottom: 8px;
}

.filter-field-search {
    min-width: 240px;
}

.filter-field-small {
    min-width: 120px;
}

@media (max-width: 1280px) {
    .filter-toolbar-grid,
    .advanced-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 700px) {
    .filter-toolbar-grid,
    .advanced-grid {
        grid-template-columns: 1fr;
    }

    .filter-toolbar-actions {
        width: 100%;
    }

    .filter-toolbar-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}


.filter-panel.hidden {
    display: none;
}

.compact-table th,
.compact-table td {
    padding: 12px 10px;
    white-space: nowrap;
}

.logo-col {
    width: 60px;
    min-width: 60px;
}

.logo-col-model {
    width: 92px;
    min-width: 92px;
}

.table-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f1f5f9;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
    transition: transform .2s ease;
}

.table-logo img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    display: block;
}

.table-logo-fallback {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.table-logo-model {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.table-logo-model img {
    width: 56px;
    height: 56px;
}

.detail-link {
    color: #4f46e5;
    font-weight: 600;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

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

.inventory-photo-trigger {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inventory-photo-thumb {
    width: 35px;
    height: 35px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    border: 1px solid #dbeafe;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.inventory-photo-trigger:hover .inventory-photo-thumb {
    transform: scale(1.05);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.detail-view {
    width: 100%;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.detail-header-logo .table-logo,
.detail-header-logo .table-logo img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 16px;
}

.model-detail-inline-image {
    display: block;
    width: 100%;
    max-width: 420px;
    max-height: 320px;
    object-fit: contain;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.5rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    min-width: 0;
}

.detail-item-full {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    margin-bottom: 8px;
}

.detail-value {
    color: #0f172a;
    word-break: break-word;
}

.detail-text-block {
    white-space: pre-wrap;
    line-height: 1.5;
}

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


.filter-help {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.active-filter-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    border: 1px solid #c7d2fe;
}

/* Dropdown de Notificações */
.notifications-dropdown {
    animation: slideDown 0.3s ease-out;
}

.notifications-dropdown.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.notification-item-button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
}

.notification-item:hover {
    background-color: #f9f9f9;
}

.notification-item.is-read {
    opacity: 0.72;
}

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

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 12px;
    color: #666;
}

.notification-meta {
    margin-top: 6px;
    font-size: 11px;
    color: #94a3b8;
}

.notification-state {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    align-self: center;
}

.notification-state-new {
    background: #fee2e2;
    color: #b91c1c;
}

.notification-state-read {
    background: #e2e8f0;
    color: #475569;
}

.notification-empty {
    padding: 24px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Scrollbar ciano */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #00ffff; /* Ciano */
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00cccc;
}

.document-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.document-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.document-stat-label {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.document-stat-value {
    display: block;
    margin-top: 10px;
    font-size: 32px;
    font-family: 'Space Grotesk', sans-serif;
    color: #0f172a;
}

.document-stat-help {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
}

.document-card {
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.document-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

.document-snippet,
.document-detail-content {
    padding: 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    line-height: 1.65;
}

.document-variable-panel,
.document-side-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    background: #fff;
}

.document-variable-title,
.document-catalog-title {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.document-variable-badges,
.document-token-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.document-token-badge,
.document-token-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #bae6fd;
}

.document-token-action {
    cursor: pointer;
    transition: all .2s ease;
}

.document-token-action:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.document-catalog-group + .document-catalog-group {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #e2e8f0;
}

.document-catalog-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: #475569;
}

.document-catalog-item code {
    color: #0f172a;
    font-weight: 700;
}

.document-step {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.document-empty-state {
    text-align: center;
    padding: 42px 18px;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    background: #f8fafc;
}

.document-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.document-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .9fr);
    gap: 18px;
    align-items: start;
}

.document-editor-textarea {
    min-height: 420px;
    resize: vertical;
    line-height: 1.65;
}

.document-side-tools {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.document-token-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.document-preview {
    min-height: 220px;
    max-height: 420px;
    overflow: auto;
    padding: 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    line-height: 1.7;
}

.document-token-missing {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
}

.document-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}

.document-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

@media (max-width: 1024px) {
    .document-editor-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .document-form-grid {
        grid-template-columns: 1fr;
    }
}

.logo-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.logo-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.logo-stat-label {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.logo-stat-value {
    display: block;
    margin-top: 10px;
    font-size: 32px;
    font-family: 'Space Grotesk', sans-serif;
    color: #0f172a;
}

.logo-stat-help {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
}

.logo-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.logo-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 16px 18px;
}

.logo-row-visual {
    position: relative;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.02) 25%, transparent 25%) -10px 0 / 20px 20px,
        linear-gradient(225deg, rgba(15, 23, 42, 0.02) 25%, transparent 25%) -10px 0 / 20px 20px,
        linear-gradient(315deg, rgba(15, 23, 42, 0.02) 25%, transparent 25%) 0 0 / 20px 20px,
        linear-gradient(45deg, rgba(15, 23, 42, 0.02) 25%, transparent 25%) 0 0 / 20px 20px,
        #f8fafc;
}

.logo-row-image {
    max-width: 76%;
    max-height: 56px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
}

.logo-card-fallback .logo-card-fallback-text,
.logo-upload-preview:not(.has-image) .logo-upload-preview-fallback {
    opacity: 1;
}

.logo-card-fallback-text,
.logo-upload-preview-fallback {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #16a34a, #059669);
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    opacity: 0;
    z-index: 1;
}

.logo-row-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.logo-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.logo-empty-state {
    text-align: center;
    padding: 46px 18px;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    background: #f8fafc;
}

.logo-form-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.logo-form-preview-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.logo-upload-preview {
    position: relative;
    min-height: 220px;
    border-radius: 22px;
    border: 1px dashed #cbd5e1;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.03) 25%, transparent 25%) -12px 0 / 24px 24px,
        linear-gradient(225deg, rgba(15, 23, 42, 0.03) 25%, transparent 25%) -12px 0 / 24px 24px,
        linear-gradient(315deg, rgba(15, 23, 42, 0.03) 25%, transparent 25%) 0 0 / 24px 24px,
        linear-gradient(45deg, rgba(15, 23, 42, 0.03) 25%, transparent 25%) 0 0 / 24px 24px,
        #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-upload-preview-image {
    max-width: 78%;
    max-height: 120px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
}

.logo-upload-preview.has-image .logo-upload-preview-fallback {
    opacity: 0;
}

.logo-form-tip {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #d1fae5;
    background: #ecfdf5;
}

@media (max-width: 900px) {
    .logo-form-layout {
        grid-template-columns: 1fr;
    }

    .logo-row {
        grid-template-columns: 1fr;
    }

    .logo-row-visual {
        min-height: 96px;
    }

    .logo-row-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-row-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

.logo-detail-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
}

.logo-detail-visual {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.03) 25%, transparent 25%) -10px 0 / 20px 20px,
        linear-gradient(225deg, rgba(15, 23, 42, 0.03) 25%, transparent 25%) -10px 0 / 20px 20px,
        linear-gradient(315deg, rgba(15, 23, 42, 0.03) 25%, transparent 25%) 0 0 / 20px 20px,
        linear-gradient(45deg, rgba(15, 23, 42, 0.03) 25%, transparent 25%) 0 0 / 20px 20px,
        #fff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-detail-image {
    max-width: 72%;
    max-height: 56px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.logo-detail-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #16a34a, #059669);
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.logo-detail-visual.has-image .logo-detail-fallback {
    display: none;
}

.inventory-detail-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
}

.inventory-detail-visual {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid #dbeafe;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.03) 25%, transparent 25%) -10px 0 / 20px 20px,
        linear-gradient(225deg, rgba(15, 23, 42, 0.03) 25%, transparent 25%) -10px 0 / 20px 20px,
        linear-gradient(315deg, rgba(15, 23, 42, 0.03) 25%, transparent 25%) 0 0 / 20px 20px,
        linear-gradient(45deg, rgba(15, 23, 42, 0.03) 25%, transparent 25%) 0 0 / 20px 20px,
        #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inventory-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inventory-detail-fallback {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
}

.inventory-detail-visual.has-image .inventory-detail-fallback {
    display: none;
}

@media (max-width: 768px) {
    .inventory-detail-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .inventory-detail-visual {
        width: 100%;
        max-width: 220px;
        height: 220px;
    }
}

.online-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.online-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.online-stat-label {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.online-stat-value {
    display: block;
    margin-top: 10px;
    font-size: 32px;
    font-family: 'Space Grotesk', sans-serif;
    color: #0f172a;
}

.online-stat-help {
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
}

.online-empty-state {
    text-align: center;
    padding: 46px 18px;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    background: #f8fafc;
}

.online-user-card {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.online-user-main {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.online-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #16a34a, #059669);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.online-user-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.online-user-meta {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.online-user-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 6px;
}

.online-sector-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

@media (max-width: 768px) {
    .online-user-grid {
        grid-template-columns: 1fr;
    }
}

.field-app-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.field-app-summary-card {
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 16px 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.field-app-summary-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.field-app-summary-value {
    display: block;
    margin-top: 8px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
}

.field-app-route-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.field-app-route-client {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.field-app-route-subtitle,
.field-app-route-assignee {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

.field-app-route-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.field-app-route-counter,
.field-evidence-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e2f2ff;
    color: #0369a1;
    font-size: 0.72rem;
    font-weight: 700;
}

.field-app-os-card {
    min-height: 102px;
}

.field-app-inline-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.field-app-inline-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.field-app-inline-badge.is-route {
    background: #dbeafe;
    color: #1d4ed8;
}

.field-app-inline-badge.is-doc {
    background: #fef3c7;
    color: #b45309;
}

.field-app-route-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 18px;
}

.field-app-route-main,
.field-app-route-side {
    min-width: 0;
}

.field-app-side-note {
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: #f8fafc;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.field-app-side-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
}

.field-app-side-text {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.45;
}

.field-app-workspace {
    border: 1px solid #dbe4f0;
    border-radius: 24px;
    background: #fff;
    padding: 16px;
}

.field-app-workspace-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.field-app-workspace-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.field-app-workspace-tab.is-active {
    background: linear-gradient(135deg, #0f172a 0%, #0ea5e9 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.22);
}

.field-app-workspace-panel {
    display: none;
}

.field-app-workspace-panel.is-active {
    display: block;
}

.field-app-evidence-form {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    padding: 16px;
}

.field-app-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field-app-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.84rem;
    color: #475569;
}

.field-app-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.field-app-upload-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0c4a6e;
    font-size: 0.75rem;
    font-weight: 700;
}

.field-app-form-actions,
.field-signature-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.field-app-form-help {
    font-size: 0.76rem;
    color: #64748b;
}

.field-signature-pad-wrap {
    border: 1px dashed #94a3b8;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 10px;
}

.field-signature-pad {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    background:
        linear-gradient(to bottom, transparent 95%, rgba(148, 163, 184, 0.14) 95%),
        #fff;
    cursor: crosshair;
    touch-action: none;
}

.field-evidence-history {
    margin-top: 16px;
}

.field-evidence-history-list {
    display: grid;
    gap: 12px;
}

.field-evidence-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
    padding: 16px;
    color: #64748b;
    font-size: 0.84rem;
}

.field-evidence-item {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    padding: 14px;
}

.field-evidence-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.field-evidence-item-title {
    display: block;
    font-size: 0.88rem;
    color: #0f172a;
}

.field-evidence-item-meta,
.field-evidence-item-note {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.5;
}

.field-evidence-kind {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.field-evidence-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.field-evidence-item-media {
    margin-top: 12px;
}

.field-evidence-item-image {
    width: 100%;
    max-height: 190px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid #dbe4f0;
}

.field-evidence-item-link-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .field-app-route-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .field-app-summary-grid,
    .field-app-form-grid {
        grid-template-columns: 1fr;
    }

    .field-app-route-topbar,
    .field-app-form-actions,
    .field-signature-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
