﻿
.hw-live-loads__head {
    margin-bottom: 18px;
}

.hw-live-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .14);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.hw-live-toolbar__left,
.hw-live-toolbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hw-live-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(248, 250, 252, .95);
    border: 1px solid rgba(148, 163, 184, .14);
    color: #334155;
    font-weight: 700;
}

.hw-live-status {
    color: #047857;
    font-weight: 700;
    font-size: 14px;
}

.hw-live-legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hw-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(148, 163, 184, .14);
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.hw-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.hw-legend-dot--open {
    background: #10b981;
}

.hw-legend-dot--transport {
    background: #2563eb;
}

.hw-legend-dot--payment {
    background: #f59e0b;
}

.hw-legend-dot--done {
    background: #64748b;
}

.hw-live-filter,
.hw-live-map,
.hw-live-list {
    width: 100%;
    padding: 22px;
    margin-bottom: 20px;
}

.hw-live-map {
    overflow: hidden;
}

.hw-live-filter__top,
.hw-live-map__top,
.hw-live-list__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

    .hw-live-filter__top h3,
    .hw-live-map__top h3,
    .hw-live-list__top h3 {
        margin: 0 0 6px;
        font-size: 20px;
        font-weight: 800;
        color: #0f172a;
    }

.hw-live-filter__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hw-live-col label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #475569;
    margin-bottom: 8px;
}

.hw-live-filter__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.hw-live-loads-map {
    width: 100%;
    height: 560px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .14);
    background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
}

.hw-live-map-note {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
}

.home-list {
    display: grid;
    gap: 12px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.home-row {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .14);
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(248, 250, 252, .88));
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
    transition: .25s ease;
    cursor: pointer;
}

    .home-row:hover {
        transform: translateY(-2px);
        border-color: rgba(37, 99, 235, .20);
        box-shadow: 0 16px 30px rgba(15, 23, 42, .08);
    }

.home-row__left {
    min-width: 0;
}

.home-row__title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

    .home-row__title b {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.home-row__meta {
    margin-top: 6px;
    font-size: 13px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .home-row__meta strong {
        color: #0f172a;
    }

.dotsep {
    opacity: .7;
}

.home-row__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pill-ok {
    background: rgba(16, 185, 129, .10) !important;
    border-color: rgba(16, 185, 129, .22) !important;
    color: #047857;
}

.hw-load-state {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .85);
}

.hw-load-state--acik {
    background: #10b981;
}

.hw-load-state--tasimada {
    background: #2563eb;
}

.hw-load-state--odemede {
    background: #f59e0b;
}

.hw-load-state--tamamlandi {
    background: #64748b;
}

.hw-load-dialog {
    width: min(92vw, 460px);
    border: none;
    padding: 0;
    border-radius: 22px;
    background: transparent;
}

    .hw-load-dialog::backdrop {
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(4px);
    }

.hw-load-dialog__inner {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
}

.hw-load-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
}

    .hw-load-dialog__head h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 800;
        color: #0f172a;
    }

.hw-load-dialog__close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    font-size: 16px;
}

.hw-load-dialog__body {
    padding: 18px 20px 20px;
    color: #334155;
    line-height: 1.7;
}

.hw-load-dialog__grid {
    display: grid;
    gap: 10px;
}

.hw-load-dialog__item {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, .12);
}

    .hw-load-dialog__item b {
        display: block;
        margin-bottom: 4px;
        color: #0f172a;
    }

.hw-load-dialog__route {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, .12);
}

.hw-load-dialog__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hw-load-dialog__status--acik {
    background: rgba(16, 185, 129, .10);
    color: #047857;
}

.hw-load-dialog__status--tasimada {
    background: rgba(37, 99, 235, .10);
    color: #1d4ed8;
}

.hw-load-dialog__status--odemede {
    background: rgba(245, 158, 11, .12);
    color: #b45309;
}

.hw-load-dialog__status--tamamlandi {
    background: rgba(100, 116, 139, .12);
    color: #475569;
}

.leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

.leaflet-popup-content {
    margin: 14px 16px;
    line-height: 1.6;
    color: #334155;
}

.leaflet-popup-tip {
    box-shadow: none;
}

.hw-map-marker {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 3px solid #fff;
    box-shadow: 0 10px 18px rgba(15, 23, 42, .16);
}

    .hw-map-marker::after {
        content: "";
        position: absolute;
        inset: -6px;
        border-radius: 999px;
        opacity: .18;
        animation: hwPulse 1.8s ease-out infinite;
    }

.hw-map-marker--open {
    background: #10b981;
}

    .hw-map-marker--open::after {
        background: #10b981;
    }

.hw-map-marker--transport {
    background: #2563eb;
}

    .hw-map-marker--transport::after {
        background: #2563eb;
    }

.hw-map-marker--payment {
    background: #f59e0b;
}

    .hw-map-marker--payment::after {
        background: #f59e0b;
    }

.hw-map-marker--done {
    background: #64748b;
}

    .hw-map-marker--done::after {
        background: #64748b;
    }

.hw-map-truck {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    border: 2px solid #2563eb;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .22);
    font-size: 18px;
}

.hw-map-user {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #1d4ed8;
    border: 3px solid #fff;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, .16);
}

@keyframes hwPulse {
    0% {
        transform: scale(.9);
        opacity: .25;
    }

    70% {
        transform: scale(1.9);
        opacity: 0;
    }

    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

@media (max-width: 1200px) {
    .hw-live-filter__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .hw-live-filter__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hw-live-loads-map {
        height: 420px;
    }
}

@media (max-width: 640px) {
    .hw-live-filter__grid {
        grid-template-columns: 1fr;
    }

    .hw-live-loads-map {
        height: 360px;
    }

    .home-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-row__right {
        width: 100%;
        justify-content: flex-start;
    }
}
.hw-live-ops {
    width: 100%;
    padding: 22px;
    margin-bottom: 20px;
    border: 1px solid rgba(148, 163, 184, .14);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.90));
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.hw-live-ops__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

    .hw-live-ops__top h3 {
        margin: 0 0 6px;
        font-size: 22px;
        font-weight: 800;
        color: #0f172a;
    }

.hw-live-ops__close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    font-size: 16px;
    transition: .2s ease;
}

    .hw-live-ops__close:hover {
        background: #eef2f7;
    }

.hw-live-ops__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hw-live-ops__item {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(148,163,184,.12);
}

    .hw-live-ops__item b {
        display: block;
        margin-bottom: 6px;
        font-size: 13px;
        color: #475569;
    }

    .hw-live-ops__item span {
        color: #0f172a;
        font-weight: 700;
    }

.hw-live-ops__route {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(37,99,235,.06);
    border: 1px solid rgba(37,99,235,.10);
    color: #1e293b;
    font-weight: 600;
}

@media (max-width: 992px) {
    .hw-live-ops__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hw-live-ops__grid {
        grid-template-columns: 1fr;
    }
}
.hw-map-pulse {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #10b981;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
}

    .hw-map-pulse::before,
    .hw-map-pulse::after {
        content: "";
        position: absolute;
        inset: 50%;
        transform: translate(-50%, -50%);
        border-radius: 999px;
        pointer-events: none;
    }

    .hw-map-pulse::before {
        width: 22px;
        height: 22px;
        background: currentColor;
        opacity: .22;
    }

    .hw-map-pulse::after {
        width: 22px;
        height: 22px;
        border: 2px solid currentColor;
        opacity: .45;
        animation: hwMapPulse 1.8s ease-out infinite;
    }

.hw-map-pulse--open {
    color: #10b981;
    background: #10b981;
}

.hw-map-pulse--transport {
    color: #2563eb;
    background: #2563eb;
}

.hw-map-pulse--payment {
    color: #f59e0b;
    background: #f59e0b;
}

.hw-map-pulse--done {
    color: #64748b;
    background: #64748b;
}

.hw-map-truck {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 2px solid #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    font-size: 18px;
}

.hw-map-user {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #1d4ed8;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.16);
}

@keyframes hwMapPulse {
    0% {
        width: 22px;
        height: 22px;
        opacity: .55;
    }

    70% {
        width: 58px;
        height: 58px;
        opacity: 0;
    }

    100% {
        width: 58px;
        height: 58px;
        opacity: 0;
    }
}
.hw-map-tooltip {
    background: rgba(15, 23, 42, 0.96);
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

    .hw-map-tooltip:before {
        border-top-color: rgba(15, 23, 42, 0.96) !important;
    }

.home-list {
    display: grid;
    gap: 14px;
}

.home-row {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(148,163,184,.14);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
    box-shadow: 0 12px 28px rgba(15,23,42,.05);
    transition: .25s ease;
    cursor: pointer;
}

    .home-row:hover {
        transform: translateY(-2px);
        border-color: rgba(37,99,235,.24);
        box-shadow: 0 18px 36px rgba(15,23,42,.08);
    }

.home-row__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.home-row__title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

    .home-row__title b {
        font-size: 18px;
        color: #0f172a;
        line-height: 1.2;
    }

.home-row__status {
    text-transform: capitalize;
}

.home-row__facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.home-row__fact {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(148,163,184,.12);
    min-width: 0;
}

.home-row__fact-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.home-row__fact strong {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: #0f172a;
    word-break: break-word;
}

@media (max-width: 1200px) {
    .home-row__facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-row__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .home-row__facts {
        grid-template-columns: 1fr;
    }
}

.home-list {
    display: grid;
    gap: 14px;
}

.home-row {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(148,163,184,.14);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
    box-shadow: 0 12px 28px rgba(15,23,42,.05);
    transition: .25s ease;
    cursor: pointer;
}

    .home-row:hover {
        transform: translateY(-2px);
        border-color: rgba(37,99,235,.24);
        box-shadow: 0 18px 36px rgba(15,23,42,.08);
    }

.home-row__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.home-row__title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

    .home-row__title b {
        font-size: 18px;
        color: #0f172a;
        line-height: 1.2;
    }

.home-row__status {
    text-transform: capitalize;
}

.home-row__facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.home-row__fact {
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(148,163,184,.12);
    min-width: 0;
}

.home-row__fact-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.home-row__fact strong {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: #0f172a;
    word-break: break-word;
}

@media (max-width: 1200px) {
    .home-row__facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-row__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .home-row__facts {
        grid-template-columns: 1fr;
    }
}