/* Lojistik ve kurye — Paketmatik düzeni, AdisGo renkleri */
.dispatch-app,
.restaurant-all-orders {
    --pm-navy: #1A2940;
    --pm-navy-2: #24344d;
    --pm-orange: #F26522;
    --pm-orange-dark: #D9561A;
    --pm-line: #E6EBF2;
    --pm-chip: #1A2940;
}

.restaurant-all-orders .pm-col-status,
.restaurant-all-orders .pm-status-cell {
    width: 11%;
    min-width: 0;
    max-width: none;
}

.restaurant-all-orders .pm-status-cell {
    text-align: center;
    vertical-align: middle;
    padding: 0.35rem 0.4rem;
}

.restaurant-all-orders .pm-status-cell .pm-status-line {
    justify-content: center;
    align-items: center;
    min-height: 32px;
    width: 100%;
    min-width: 0;
}

.restaurant-all-orders .pm-status-cell .order-status-select,
.restaurant-all-orders .pm-status-cell .order-status-select.form-select,
.restaurant-all-orders .pm-status-cell .order-status-badge {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 30px;
    box-sizing: border-box;
    padding: 0 1.4rem 0 0.4rem !important;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color-scheme: light;
}

.restaurant-all-orders .pm-status-cell .order-status-select option {
    color: #111 !important;
    background-color: #fff !important;
    background: #fff !important;
}

.restaurant-all-orders .pm-status-cell .order-status-select.day-order-status.waiting { background-color: #FF8A00 !important; }
.restaurant-all-orders .pm-status-cell .order-status-select.day-order-status.preparing { background-color: #FF5A1F !important; }
.restaurant-all-orders .pm-status-cell .order-status-select.day-order-status.ready { background-color: #7C3AED !important; }
.restaurant-all-orders .pm-status-cell .order-status-select.day-order-status.ontheway { background-color: #2563EB !important; }
.restaurant-all-orders .pm-status-cell .order-status-select.day-order-status.completed { background-color: #16A34A !important; }
.restaurant-all-orders .pm-status-cell .order-status-select.day-order-status.cancelled { background-color: #EF4444 !important; }

.restaurant-all-orders .pm-status-cell .order-status-badge.waiting { background: #FF8A00; }
.restaurant-all-orders .pm-status-cell .order-status-badge.preparing { background: #FF5A1F; }
.restaurant-all-orders .pm-status-cell .order-status-badge.ready { background: #7C3AED; }
.restaurant-all-orders .pm-status-cell .order-status-badge.ontheway { background: #2563EB; }
.restaurant-all-orders .pm-status-cell .order-status-badge.completed { background: #16A34A; }
.restaurant-all-orders .pm-status-cell .order-status-badge.cancelled { background: #EF4444; }

.restaurant-all-orders .pm-table-card {
    padding: 0;
    overflow: hidden;
    background: #eef2f6;
}

.restaurant-all-orders .pm-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    margin: 0;
    padding: 0;
    border-radius: inherit;
}

.restaurant-all-orders .pm-table {
    min-width: 1280px;
    margin: 0;
}

.restaurant-all-orders .pm-table thead th:first-child {
    border-top-left-radius: 12px;
}

.restaurant-all-orders .pm-table thead th:last-child {
    border-top-right-radius: 12px;
}

.restaurant-all-orders .pm-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.restaurant-all-orders .pm-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.restaurant-all-orders .pm-table th,
.restaurant-all-orders .pm-table td {
    border-right: 1px solid #c5ced8;
}

.restaurant-all-orders .pm-table td {
    border-bottom: 1px dashed #c5ced8;
}

.restaurant-all-orders .pm-table tr > :first-child {
    border-left: 1px solid #c5ced8;
}

.restaurant-all-orders .pm-table tr > :last-child {
    border-right: 1px solid #c5ced8;
}

.restaurant-all-orders .pm-table thead tr > * {
    border-top: 1px solid #c5ced8;
}

.restaurant-all-orders .pm-table th {
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 46%, #d9e0e8 100%);
    box-shadow:
        inset 0 1px 0 #fff,
        inset 0 -1px 0 #c5ced8,
        0 2px 3px rgba(15, 23, 42, 0.12);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid #b8c3cf;
}

.restaurant-all-orders .pm-table tbody tr:nth-child(odd) td {
    background: #fff;
}

.restaurant-all-orders .pm-table tbody tr:nth-child(even) td {
    background: #e8eef4;
}

.restaurant-all-orders .pm-table tbody tr.pm-row:hover td {
    background: #fff7f2;
}

.restaurant-all-orders .pm-col-head-icon {
    width: 56px;
    text-align: center;
}

.restaurant-all-orders .pm-table tbody td {
    vertical-align: middle;
    color: #000;
    font-weight: 500;
}

.restaurant-all-orders .pm-table tbody td .pm-clip,
.restaurant-all-orders .pm-table tbody td .pm-strong,
.restaurant-all-orders .pm-table tbody td .pm-sub,
.restaurant-all-orders .pm-table tbody td .pm-money,
.restaurant-all-orders .pm-table tbody td .pm-prep,
.restaurant-all-orders .pm-table tbody td .pm-prep.is-urgent {
    color: #000;
    font-weight: 500;
}

.restaurant-all-orders .pm-source-cell {
    text-align: center;
}

.restaurant-all-orders .pm-brand {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border-width: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
}

.restaurant-all-orders .pm-brand i {
    width: auto;
    height: auto;
    font-size: 1.28rem;
    line-height: 1;
}

.restaurant-all-orders .pm-brand img {
    width: 26px;
    height: 26px;
    border-radius: 0;
    object-fit: contain;
}

.restaurant-all-orders .pm-brand.has-logo {
    background: #fff;
}

.restaurant-all-orders .pm-brand.tone-ys { background: #FA0050; color: #fff; }
.restaurant-all-orders .pm-brand.tone-getir { background: #5D3EBC; color: #fff; }
.restaurant-all-orders .pm-brand.tone-trendyol { background: #F27A1A; color: #fff; }
.restaurant-all-orders .pm-brand.tone-migros { background: #FF6600; color: #fff; }
.restaurant-all-orders .pm-brand.tone-tikla { background: #E31C23; color: #fff; }
.restaurant-all-orders .pm-brand.tone-web { background: #F26522; color: #fff; }
.restaurant-all-orders .pm-brand.tone-phone { background: #10B981; color: #fff; }
.restaurant-all-orders .pm-brand.tone-qr { background: #F59E0B; color: #fff; }
.restaurant-all-orders .pm-brand.tone-table { background: #EF4444; color: #fff; }
.restaurant-all-orders .pm-brand.tone-quick { background: #0EA5E9; color: #fff; }
.restaurant-all-orders .pm-brand.tone-other { background: #64748B; color: #fff; }
.restaurant-all-orders .pm-brand.tone-ys.has-logo { box-shadow: inset 0 0 0 2px #FA0050; }
.restaurant-all-orders .pm-brand.tone-getir.has-logo { box-shadow: inset 0 0 0 2px #5D3EBC; }
.restaurant-all-orders .pm-brand.tone-trendyol.has-logo { box-shadow: inset 0 0 0 2px #F27A1A; }
.restaurant-all-orders .pm-brand.tone-migros.has-logo { box-shadow: inset 0 0 0 2px #FF6600; }
.restaurant-all-orders .pm-brand.tone-tikla.has-logo { box-shadow: inset 0 0 0 2px #E31C23; }

body.dispatch-app .top-header {
    background: var(--pm-navy) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    color: #fff;
}

body.dispatch-app .top-header .page-title,
body.dispatch-app .top-header .text-muted,
body.dispatch-app .top-header .user-email {
    color: #fff !important;
    background: transparent !important;
}

body.dispatch-app .sidebar-toggle-btn,
body.dispatch-app .sidebar-collapse-btn-header {
    color: #fff !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: none !important;
}

body.dispatch-app .sidebar-collapse-btn-header:hover,
body.dispatch-app .sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

body.dispatch-app .logistics-credit-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(242, 101, 34, 0.7) !important;
    color: #fff !important;
    box-shadow: none !important;
}

body.dispatch-app .logistics-credit-badge i,
body.dispatch-app .logistics-credit-badge .logistics-credit-value {
    color: #ffb088 !important;
}

body.dispatch-app .logistics-credit-badge:hover,
body.dispatch-app .logistics-credit-badge:focus {
    background: rgba(242, 101, 34, 0.18) !important;
    color: #fff !important;
}

body.dispatch-app .top-header .user-info {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding-right: 0;
}

body.dispatch-app .top-header .user-avatar {
    background: var(--pm-orange) !important;
    color: #fff !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

.dispatch-app .sidebar {
    background: #121c2b;
}

.dispatch-app .pm-nav-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.2rem 0.35rem 0.85rem;
}

.dispatch-app .pm-tile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

.dispatch-app .pm-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 78px;
    border-radius: 12px;
    background: #2a3444;
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    padding: 0.55rem;
}

.dispatch-app .pm-tile i {
    font-size: 1.25rem;
    color: var(--pm-orange);
}

.dispatch-app .pm-tile.is-active,
.dispatch-app .pm-tile:hover {
    background: var(--pm-orange);
    color: #fff;
}

.dispatch-app .pm-tile.is-active i,
.dispatch-app .pm-tile:hover i {
    color: #fff;
}

.dispatch-app .pm-nav-list {
    gap: 0;
}

.dispatch-app .pm-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #d5deea;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.72rem 0.35rem;
    font-weight: 500;
}

.dispatch-app .pm-nav-link i {
    width: 1.2rem;
    color: #9aa8ba;
}

.dispatch-app .pm-nav-link.active,
.dispatch-app .pm-nav-link:hover {
    background: transparent;
    color: #fff;
}

.dispatch-app .pm-nav-link.active i,
.dispatch-app .pm-live-dot {
    color: #22c55e;
}

.dispatch-app .pm-live-dot {
    margin-left: auto;
    font-size: 0.55rem;
}

.dispatch-app .main-wrapper {
    background: #f3f5f8;
}

.dispatch-app .content-area,
.dispatch-app .page-content {
    padding-top: 0.75rem;
}

.pm-board {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pm-switches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.pm-create {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #16a34a;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
}

.pm-create:hover { color: #fff; background: #15803d; }

.pm-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    color: var(--pm-navy);
}

.pm-switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.pm-switch-ui {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #d5dbe3;
    position: relative;
}

.pm-switch-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s ease;
}

.pm-switch input:checked + .pm-switch-ui { background: #16a34a; }
.pm-switch input:checked + .pm-switch-ui::after { transform: translateX(18px); }
.pm-switch-note { color: #64748b; font-size: 0.82rem; }

.pm-map-wrap {
    border: 1px solid var(--pm-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.pm-board .logistics-board-map {
    height: 280px;
    min-height: 220px;
    border-radius: 0;
}

.pm-filter-toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #d7dee8;
    background: #fff;
    color: var(--pm-navy);
    font-weight: 700;
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
}

.pm-filter-toggle i { color: var(--pm-orange); }

.pm-filters {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 1.2fr 1.2fr 1.2fr 1.4fr;
    gap: 0.65rem 0.75rem;
    background: #f4f6f9;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    padding: 0.7rem 0.8rem 0.8rem;
    margin: 0;
}

.pm-field {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    font-size: 0.78rem;
    color: #7b8798;
    font-weight: 600;
    min-width: 0;
}

.pm-field input,
.pm-field select {
    height: 38px;
    width: 100%;
    border: 1px solid #e1e6ee;
    border-radius: 8px;
    background: #fff;
    padding: 0 0.7rem;
    color: #243044;
    font-weight: 500;
    font-size: 0.86rem;
    box-shadow: none;
}

.pm-search {
    display: flex;
    align-items: center;
    height: 38px;
    border: 1px solid #e1e6ee;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.pm-search input {
    border: 0;
    height: 100%;
    border-radius: 0;
    padding-right: 0.4rem;
}

.pm-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 100%;
    color: #8b95a5;
    flex-shrink: 0;
}

.pm-couriers h3,
.pm-table-head,
.pm-driver-boards h3 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--pm-navy);
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 0.55rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--pm-orange);
}

.pm-table-head span,
.pm-couriers h3 i,
.pm-driver-boards h3 i { color: var(--pm-orange); font-weight: 600; }

.pm-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.45rem;
}

.pm-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: var(--pm-navy);
    color: #fff;
    font-weight: 700;
    padding: 0.55rem 0.7rem;
    text-align: left;
}

.pm-chip span { color: #fdba74; font-weight: 700; white-space: nowrap; }
.pm-chip.is-on,
.pm-chip:hover { background: var(--pm-orange); }
.pm-chip.is-on span,
.pm-chip:hover span { color: #fff; }
.pm-chip.is-busy { background: #334155; }

.pm-courier-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.45rem;
    color: #64748b;
    font-size: 0.82rem;
}

.pm-empty { color: #94a3b8; margin: 0; }

.pm-table-card {
    background: #fff;
    border: 1px solid var(--pm-line);
    border-radius: 12px;
    overflow: hidden;
}

.pm-table-head { padding: 0.75rem 0.9rem 0; }

.pm-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
}

.pm-table {
    width: 100%;
    min-width: 1180px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8rem;
}

.pm-col-source { width: 64px; }
.pm-col-status { width: 148px; }
.pm-col-place { width: 168px; }
.pm-col-driver { width: 136px; }
.pm-col-address { width: 196px; }
.pm-col-name { width: 132px; }
.pm-col-phone { width: 118px; }
.pm-col-date { width: 146px; }
.pm-col-pay { width: 118px; }
.pm-col-money { width: 92px; }
.pm-col-tail { width: 118px; }

.pm-clip {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.25;
    min-height: 1.25em;
}

.pm-table th,
.pm-table td {
    border-right: 1px solid #c5ced8;
    padding: 0.55rem 0.7rem;
    vertical-align: middle;
    background: #fff;
    color: #000;
    font-weight: 500;
}

.pm-table td {
    border-bottom: 1px dashed #c5ced8;
}

.pm-table th {
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 46%, #d9e0e8 100%);
    color: #111;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid #b8c3cf;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    box-shadow:
        inset 0 1px 0 #fff,
        inset 0 -1px 0 #c5ced8,
        0 2px 3px rgba(15, 23, 42, 0.12);
}

.pm-table tbody tr:nth-child(odd) td { background: #fff; }
.pm-table tbody tr:nth-child(even) td { background: #e8eef4; }
.pm-table tbody tr:last-child td { border-bottom: none; }
.pm-table tr > :first-child { border-left: 1px solid #c5ced8; }
.pm-table thead tr > * { border-top: 1px solid #c5ced8; }
.pm-table th:last-child,
.pm-table td:last-child { border-right: 1px solid #c5ced8; }
.pm-table thead th:first-child { border-top-left-radius: 12px; }
.pm-table thead th:last-child { border-top-right-radius: 12px; }
.pm-table tbody tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.pm-table tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }

.pm-row { cursor: pointer; }
.pm-row:hover td { background: #fff7f2; }
.pm-strong { font-weight: 500; color: #000; }
.pm-sub { color: #1f2937; font-size: 0.75rem; font-weight: 500; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-money { font-weight: 500; color: #000; white-space: nowrap; }
.pm-none td { text-align: center; color: #94a3b8; padding: 1.2rem; }

.pm-source-cell { width: 64px; text-align: center; }
.pm-brand {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    border: 2px solid transparent;
    background: #64748b;
}
.pm-brand img,
.pm-brand i {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    font-size: 1.15rem;
    line-height: 1;
}
.pm-brand.tone-ys { background: #fff; border-color: #FA0050; color: #FA0050; }
.pm-brand.tone-getir { background: #fff; border-color: #5D3EBC; color: #5D3EBC; }
.pm-brand.tone-trendyol { background: #fff; border-color: #F27A1A; color: #F27A1A; }
.pm-brand.tone-migros { background: #fff; border-color: #FF6600; color: #FF6600; }
.pm-brand.tone-tikla { background: #fff; border-color: #E31C23; color: #E31C23; }
.pm-brand.tone-web { background: #F26522; border-color: #F26522; }
.pm-brand.tone-phone { background: #059669; border-color: #059669; }
.pm-brand.tone-qr { background: #D97706; border-color: #D97706; }
.pm-brand.tone-table { background: #DC2626; border-color: #DC2626; }
.pm-brand.tone-quick { background: #0284C7; border-color: #0284C7; }
.pm-brand.tone-other { background: #475569; border-color: #475569; }
.pm-status-cell { width: 148px; }
.pm-status-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 32px;
}
.pm-source {
    display: inline-flex;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--pm-orange);
    margin-right: 0.25rem;
    font-size: 0.72rem;
}
.pm-source.tone-getir { background: #5d3ebc; }
.pm-source.tone-trendyol { background: #f27a1a; }
.pm-source.tone-ys { background: #e11d48; }
.pm-source.tone-migros { background: #ea580c; }
.pm-source.tone-tikla { background: #e31c23; }
.pm-source.tone-phone { background: #16a34a; }

.pm-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 28px;
    padding: 0 0.5rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 500;
    background: #F59E0B;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.pm-status.is-Pending,
.pm-status.is-InPool,
.pm-status.is-Assigned,
.pm-status.is-PickedUp,
.pm-status.is-OnTheWay,
.pm-status.is-Delivered,
.pm-status.is-Cancelled {
    background: var(--pm-st-pending, #F59E0B);
    color: #fff;
}
.pm-status.is-InPool { background: var(--pm-st-inpool, #1A2940); }
.pm-status.is-Assigned { background: var(--pm-st-assigned, #0F766E); }
.pm-status.is-PickedUp { background: var(--pm-st-pickedup, #9A3412); }
.pm-status.is-OnTheWay { background: var(--pm-st-ontheway, #F26522); }
.pm-status.is-Delivered { background: var(--pm-st-delivered, #15803D); }
.pm-status.is-Cancelled { background: var(--pm-st-cancelled, #DC2626); }
.pm-prep { display: block; color: #1f2937; font-size: 0.72rem; font-weight: 400; margin-top: 0.15rem; }
.pm-prep.is-urgent { color: #b91c1c; font-weight: 400; }

.pm-address-banner {
    display: flex;
    gap: 0.7rem;
    background: #fff;
    border: 1px solid var(--pm-line);
    border-left: 4px solid var(--pm-orange);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.8rem;
}

.pm-address-banner i { color: var(--pm-orange); font-size: 1.2rem; }
.pm-address-banner strong { display: block; color: var(--pm-navy); }
.pm-address-banner div div { color: #64748b; font-size: 0.85rem; }

.pm-driver-boards {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.pm-driver-boards section {
    background: #fff;
    border: 1px solid var(--pm-line);
    border-radius: 12px;
    padding: 0.8rem;
}

.pm-driver-boards form { margin: 0; }

.dispatch-app .logistics-panel-page .orders-page-title,
.dispatch-app .logistics-panel-page .tables-floor-title {
    color: var(--pm-navy);
    font-weight: 800;
}

.dispatch-app .panel-card {
    border: 1px solid var(--pm-line);
    border-radius: 12px;
    overflow: hidden;
}

.dispatch-app .table-panel,
.dispatch-app .all-orders-table {
    font-size: 0.8rem;
    border-collapse: separate;
    border-spacing: 0;
}

.dispatch-app .table-panel th,
.dispatch-app .table-panel td,
.dispatch-app .all-orders-table th,
.dispatch-app .all-orders-table td {
    border-right: 1px solid #c5ced8;
    vertical-align: middle;
    padding: 0.55rem 0.7rem;
}

.dispatch-app .table-panel td,
.dispatch-app .all-orders-table td {
    border-bottom: 1px dashed #c5ced8;
    background: #fff;
}

.dispatch-app .table-panel tbody td,
.dispatch-app .all-orders-table tbody td {
    color: #000;
    font-weight: 500;
}

.dispatch-app .table-panel tbody td strong,
.dispatch-app .all-orders-table tbody td strong,
.dispatch-app .pm-table tbody td strong {
    font-weight: 500;
    color: inherit;
}

.dispatch-app .table-panel tbody .fw-semibold,
.dispatch-app .table-panel tbody .fw-bold,
.dispatch-app .all-orders-table tbody .fw-semibold,
.dispatch-app .all-orders-table tbody .fw-bold,
.dispatch-app .pm-table tbody .fw-semibold,
.dispatch-app .pm-table tbody .fw-bold {
    font-weight: 500 !important;
}

.dispatch-app .table-panel thead th,
.dispatch-app .all-orders-table thead th {
    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 46%, #d9e0e8 100%);
    color: #111;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid #b8c3cf;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    box-shadow:
        inset 0 1px 0 #fff,
        inset 0 -1px 0 #c5ced8,
        0 2px 3px rgba(15, 23, 42, 0.12);
}

.dispatch-app .table-panel tbody tr:nth-child(odd) td,
.dispatch-app .all-orders-table tbody tr:nth-child(odd) td { background: #fff; }
.dispatch-app .table-panel tbody tr:nth-child(even) td,
.dispatch-app .all-orders-table tbody tr:nth-child(even) td { background: #e8eef4; }
.dispatch-app .table-panel th:last-child,
.dispatch-app .table-panel td:last-child,
.dispatch-app .all-orders-table th:last-child,
.dispatch-app .all-orders-table td:last-child { border-right: none; }

.dispatch-app .order-status-badge.day-order-status {
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.72rem;
    padding: 0.18rem 0.6rem;
    color: #fff;
}

.dispatch-app .day-order-status.waiting { background: #fff4ed; color: #c2410c; }
.dispatch-app .day-order-status.preparing,
.dispatch-app .day-order-status.ready { background: #1A2940; color: #fff; }
.dispatch-app .day-order-status.ontheway { background: #F26522; color: #fff; }
.dispatch-app .day-order-status.completed { background: #dcfce7; color: #166534; }
.dispatch-app .day-order-status.cancelled { background: #fee2e2; color: #b91c1c; }

@keyframes pm-row-ink {
    0%, 100% { opacity: 1; }
    46%, 54% { opacity: 0.2; }
}

body.dispatch-app tr.logistics-unassigned-row > td,
body.dispatch-app tr.courier-urgent-row > td,
body.dispatch-app tr.logistics-unassigned-row:hover > td,
body.dispatch-app tr.logistics-unassigned-row:nth-child(even) > td,
body.dispatch-app tr.logistics-unassigned-row .order-status-panel {
    animation: none !important;
    background: #fff7ed !important;
}

body.dispatch-app tr.logistics-unassigned-row > td > *,
body.dispatch-app tr.courier-urgent-row > td > * {
    animation: pm-row-ink 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    body.dispatch-app tr.logistics-unassigned-row > td > *,
    body.dispatch-app tr.courier-urgent-row > td > * {
        animation: none;
    }
}

@media (max-width: 1100px) {
    .pm-filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991.98px) {
    .pm-filter-toggle { display: inline-flex; }
    .pm-filters { display: none; }
    .pm-filters.is-open {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 0.45rem;
    }
}

@media (max-width: 640px) {
    .pm-board .logistics-board-map { height: 210px; }
}

@media (max-width: 991.98px) {
    body.dispatch-app .modal {
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    body.dispatch-app .modal-dialog {
        width: calc(100vw - 1rem) !important;
        max-width: calc(100vw - 1rem) !important;
        margin: 0.5rem auto !important;
        height: auto !important;
        max-height: calc(100dvh - 1rem) !important;
        min-height: 0 !important;
    }

    body.dispatch-app .modal-content {
        width: 100% !important;
        height: auto !important;
        max-height: calc(100dvh - 1rem) !important;
        border-radius: 12px !important;
    }

    body.dispatch-app .modal-footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }

    body.dispatch-app .modal-footer .btn {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }
}

.assign-job-card {
    background: #f7f8fb;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    color: #111;
    font-weight: 400;
    line-height: 1.4;
}

.assign-job-card strong,
.assign-job-card b {
    font-weight: 500;
    color: #111;
}

.assign-job-card strong {
    display: block;
    margin-bottom: 0.25rem;
}

.assign-job-card span {
    color: #64748b;
}

body.dispatch-app .assign-courier-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem !important;
}

body.dispatch-app .assign-courier-modal .modal-dialog {
    width: min(460px, calc(100vw - 1.5rem)) !important;
    max-width: calc(100vw - 1.5rem) !important;
    margin: 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 1.5rem) !important;
}

body.dispatch-app .assign-courier-modal .modal-content {
    height: auto !important;
    max-height: calc(100dvh - 1.5rem) !important;
    border-radius: 14px !important;
}
