:root {
    --ink: #0d2346;
    --muted: #60738a;
    --line: #dfe6ee;
    --canvas: #f5f8fc;
    --card: #fff;
    --navy: #112b47;
    --navy-2: #0e3455;
    --accent: #0876e8;
    --focus: #0876e8;
    --ok: #098a4b;
    --danger: #e62e35;
    color-scheme: light;
}

html, body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

a {
    color: var(--navy);
}

a:hover {
    color: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

h1 {
    font-size: 1.45rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin: 0 0 0.2rem;
}

h1 + p,
.lede {
    color: var(--muted);
    max-width: 42rem;
    margin-top: 0;
}

h2 {
    font-size: 1.05rem;
    font-weight: 650;
    margin: 0 0 0.75rem;
}

h3 {
    font-size: 0.95rem;
    font-weight: 650;
}

.content {
    padding: 12px 18px 28px;
    background: radial-gradient(circle at 12% 0, #eef7ff 0, transparent 28%), var(--canvas);
}

.border.rounded {
    background: var(--card);
    border-color: var(--line) !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 1px rgba(15, 61, 76, 0.04);
}

.col-md-2 > label,
.col-md-3 > label,
.col-md-4 > label,
.col-md-5 > label,
.col-md-6 > label,
.col-md-8 > label,
.col-12 > label,
.mb-2 > label,
.mb-3 > label,
.col > label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.form-control,
.form-select,
select {
    border-color: #d7e0ea;
    border-radius: 6px;
}

select,
.form-select {
    appearance: none;
    -webkit-appearance: none;
    height: 34px;
    padding: 0 32px 0 10px;
    border: 1px solid #d7e0ea;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23102b47' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    color: #102344;
    font-size: 13px;
    line-height: 32px;
}

.form-control:focus,
.form-select:focus,
select:focus,
.form-check-input:focus {
    border-color: #0876e8;
    box-shadow: 0 0 0 3px rgba(8, 118, 232, 0.16);
    outline: none;
}

select:disabled,
.form-select:disabled {
    background-color: #f4f7fa;
    color: #7b8b9e;
}

.ov-filters select,
.ord-filters select {
    min-width: 180px;
    width: 100%;
}

.btn {
    border-radius: 6px;
    font-weight: 650;
}

.btn-primary {
    color: #fff;
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0664c4;
    border-color: #0664c4;
    color: #fff;
}

.btn-outline-primary {
    color: var(--navy);
    border-color: #9db4c0;
}

.btn-outline-primary:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.btn-group {
    flex-wrap: wrap;
    gap: 0.35rem;
}

.btn-group > .btn {
    border-radius: 6px !important;
}

.alert {
    border-radius: 8px;
    border: 0;
}

.alert-danger {
    background: #fff1f2;
    color: var(--danger);
}

.alert-success {
    background: #ecfdf3;
    color: var(--ok);
}

.table {
    --bs-table-bg: #fff;
    margin-bottom: 0;
    font-variant-numeric: tabular-nums;
}

.table > :not(caption) > * > * {
    padding: 0.55rem 0.7rem;
    vertical-align: middle;
}

.table thead th {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
    background: #f4f7f8;
    border-bottom-color: var(--line);
    white-space: nowrap;
}

.table tbody tr:hover {
    background: #f7fbfc;
}

.table-scroll {
    max-height: min(70vh, 40rem);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.badge {
    font-weight: 650;
}

.pending {
    position: relative;
    width: min(18rem, 100%);
    height: 2.4rem;
    margin: 0.5rem 0 1rem;
    border-radius: 8px;
    color: transparent;
    user-select: none;
    background: linear-gradient(90deg, #e4ebf0 25%, #f7fafb 37%, #e4ebf0 63%);
    background-size: 400% 100%;
    animation: shimmer 1.15s ease infinite;
}

.desk {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.desk a, .desk button {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 6.6rem;
    padding: 0.9rem 1rem;
    text-decoration: none;
    text-align: left;
    font: inherit;
    color: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
}

.desk a span, .desk button span {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.desk a strong, .desk button strong {
    font-size: 1.05rem;
}

.desk a em, .desk button em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.88rem;
}

.desk a:hover, .desk button:hover, .desk button.on {
    border-color: var(--navy);
}

.overview-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: end;
    margin: 0.5rem 0 1rem;
}

.overview-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.overview-filters select, .overview-filters input {
    min-width: 12rem;
    color: var(--ink, #1c1917);
}

.trend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.trend span {
    display: flex;
    flex-direction: column;
    min-width: 2.6rem;
    padding: 0.25rem 0.35rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-align: center;
}

.trend small { color: var(--muted); }

.ops-map {
    position: relative;
    height: 22rem;
    background:
        linear-gradient(rgba(15, 61, 76, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 61, 76, 0.05) 1px, transparent 1px),
        #e7f1f4;
    background-size: 12.5% 12.5%, 12.5% 12.5%, auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.map-city {
    position: absolute;
    transform: translate(-50%, -120%);
    font-size: 0.75rem;
    color: #0f3d4c;
    pointer-events: none;
}

.ops-map .pin {
    position: absolute;
    width: 0.95rem;
    height: 0.95rem;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

.ops-map .pin.gps, .ops-map .pin.fresh, .map-legend .fresh { background: #166534; }
.ops-map .pin.stale, .ops-map .pin.slow, .map-legend .slow { background: #92400e; }
.ops-map .pin.lost, .map-legend .lost { background: #991b1b; }
.ops-map .pin.estimated { background: #0f3d4c; }
.ops-map .pin.on { outline: 2px solid #0f3d4c; }
.ops-map .pin.pickup { background: #166534; }
.ops-map .pin.delivery { background: #92400e; }
.ops-map .pin.stop { background: #0f3d4c; }

.map-trail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.map-trail polyline {
    fill: none;
    stroke: #0f3d4c;
    stroke-width: 0.7;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 0.6rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.map-legend i {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.3rem;
    border-radius: 50%;
    vertical-align: middle;
}

tr.row-on { background: #e7f1f4; }

article.border {
    content-visibility: auto;
    contain-intrinsic-size: auto 7rem;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.35rem 1.25rem 1.2rem;
    box-shadow: 0 8px 24px rgba(15, 61, 76, 0.06);
}

.auth-brand {
    margin: 0 0 0.85rem;
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-card h1 {
    margin-bottom: 0.35rem;
}

.role-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.85rem 0 1rem;
}

.auth-card form {
    display: grid;
    gap: 0.35rem;
}

.auth-card details {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.auth-card details input {
    margin-top: 0.4rem;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

code {
    font-size: 0.85em;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #9f1239;
    padding: 1rem 1.1rem;
    color: white;
    border-radius: 8px;
}

.blazor-error-boundary::after {
    content: "Màn này gặp lỗi. Tải lại trang.";
}

@media (prefers-reduced-motion: reduce) {
    .pending {
        animation: none;
    }
}

.session-wait {
    margin: 2rem 1.25rem;
    color: var(--muted);
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.pool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 0.75rem;
}

.pool-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem;
    background: #fff;
    cursor: grab;
}

.pool-card.on, .drop-lane.on {
    outline: 2px solid #0f3d4c;
}

.drop-lane {
    border: 1px dashed #0f3d4c;
    border-radius: 10px;
    padding: 0.75rem;
    background: #f8fbfc;
}

.ico {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.nav-collapse {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.page:has(.nav-collapse:checked) .sidebar {
    width: 4.6rem;
}

.page:has(.nav-collapse:checked) .nav-text,
.page:has(.nav-collapse:checked) .brand-copy,
.page:has(.nav-collapse:checked) .subnav,
.page:has(.nav-collapse:checked) .nav-label {
    display: none;
}

.ov-head, .ord-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.ov-head h1, .ord-head h1 {
    margin: 0 0 4px;
    font-size: 23px;
    color: #0d2040;
}

.ov-head p, .ord-head p {
    margin: 0;
    color: #60738a;
    font-size: 13px;
}

.ov-date {
    font-size: 12px;
    color: #4d6077;
    margin-top: 8px;
    white-space: nowrap;
}

.ov-filters, .ord-filters {
    margin-top: 12px;
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 6px;
    box-shadow: 0 1px 5px #173b6210;
}

.ov-filters label, .ord-filters label, .ord-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #40536a;
}

.ov-kpis, .ord-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.ov-kpi, .ord-kpi {
    min-height: 96px;
    padding: 14px;
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 7px;
    box-shadow: 0 2px 7px rgba(21, 49, 79, .06);
    text-align: left;
    color: inherit;
    width: 100%;
}

button.ov-kpi { cursor: pointer; }
button.ov-kpi.on { outline: 2px solid #0876e8; }

.ov-kicon, .ord-kicon {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #fff;
    flex: none;
}

.ov-kicon .ico, .ord-kicon .ico { width: 24px; height: 24px; }
.tone-blue { background: linear-gradient(135deg, #1477ee, #3e99ff); }
.tone-green { background: linear-gradient(135deg, #28a85e, #55ca82); }
.tone-orange { background: linear-gradient(135deg, #efa415, #ffc354); }
.tone-red { background: linear-gradient(135deg, #ef4040, #ff7474); }
.tone-purple { background: linear-gradient(135deg, #7041db, #9d6aff); }
.tone-soft-blue { background: #e4f0ff; color: #0876e8; }
.tone-soft-orange { background: #fff0df; color: #ed8500; }
.tone-soft-green { background: #def7eb; color: #00a15a; }
.tone-soft-red { background: #ffe6eb; color: #ee3348; }
.tone-soft-purple { background: #eee7ff; color: #754bd8; }

.ov-kpi .lbl, .ord-kpi .lbl { font-size: 12px; color: #63758a; }
.ov-kpi strong, .ord-kpi strong { display: block; font-size: 20px; margin: 4px 0 2px; color: #102344; }
.ov-kpi em, .ord-kpi em { font-style: normal; font-size: 11px; color: #5b6d83; }

.ov-grid2 {
    display: grid;
    grid-template-columns: 1.02fr 1.14fr;
    gap: 10px;
    margin-top: 10px;
}

.ov-grid3, .ov-bottom {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.ov-grid3 { grid-template-columns: 1.4fr .9fr .9fr; }
.ov-bottom { grid-template-columns: 1.1fr 1fr; }

.ov-card, .ord-card {
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 6px;
    box-shadow: 0 1px 5px #173b6210;
}

.ov-card { padding: 10px 13px 12px; }

.ov-title, .ord-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

.ov-link { color: #0879e8; font-size: 12px; font-weight: 400; }

.ov-map .ops-map {
    height: 240px;
    border-radius: 5px;
    background:
        linear-gradient(24deg, transparent 48%, rgba(255,255,255,.75) 49%, rgba(255,255,255,.75) 50%, transparent 51%),
        linear-gradient(155deg, transparent 48%, rgba(245,201,92,.28) 49%, rgba(245,201,92,.28) 50%, transparent 51%),
        linear-gradient(145deg, #d7ecd3, #d6edf4 55%, #9fd9ee);
    background-size: 110px 75px, 160px 110px, auto;
}

.ov-map.full .ops-map { height: 70vh; }

.map-callout {
    position: absolute;
    transform: translate(10px, -50%);
    background: #fff;
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 7px #7f9aaa55;
    pointer-events: none;
    max-width: 14rem;
    z-index: 1;
}

.ov-series {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: #40536a;
    margin-bottom: 6px;
}

.ov-series span, .ov-legend-col span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sw {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 8px;
}

.sw.orders { background: #2e8bed; }
.sw.money { background: #37b76d; }

.ov-sub, .ov-note {
    font-size: 11px;
    font-weight: 500;
    color: #5b6d83;
}

.ov-note { margin: 8px 0 0; }

.ov-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 168px;
    margin-top: 8px;
    border-bottom: 1px solid #dfe6ef;
    overflow-x: auto;
    padding: 0 4px 4px;
    scrollbar-width: thin;
    scrollbar-color: #c5d2e0 transparent;
}

.ov-bars > span {
    flex: 1 0 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}

.ov-bars .pair {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    width: 100%;
    height: 132px;
}

.ov-bars i {
    display: block;
    width: 8px;
    border-radius: 3px 3px 0 0;
}

.ov-bars i.orders { background: #2e8bed; }
.ov-bars i.money { background: #37b76d; }

.ov-bars small { color: #5b6d83; font-size: 10px; margin-top: 4px; white-space: nowrap; }

.ov-chart-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ov-donut {
    position: relative;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    flex: 0 0 148px;
}

.ov-donut::after {
    content: "";
    position: absolute;
    inset: 36px;
    background: #fff;
    border-radius: 50%;
}

.ov-hub {
    position: absolute;
    inset: 36px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
    pointer-events: none;
}

.ov-hub b { font-size: 13px; color: #102344; }
.ov-hub small { font-size: 10px; color: #5b6d83; font-weight: 500; }

.ov-legend-col { flex: 1; min-width: 0; }
.ov-legend-col div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    line-height: 1.9;
    color: #24344a;
}

.ov-legend div { font-size: 12px; line-height: 1.7; display: flex; justify-content: space-between; gap: 8px; }
.ov-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }

.ov-task {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 4px;
    border: 0;
    border-top: 1px solid #e6ebf1;
    background: transparent;
    text-align: left;
    color: inherit;
    font-size: 12px;
}

.ov-task:first-of-type { border-top: 0; }
.ov-quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.ov-quick a {
    min-height: 70px;
    border: 1px solid #dfe6ef;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    font-size: 11px;
    color: #173454;
    text-decoration: none;
    padding: 6px;
}

.ov-quick a:hover { background: #f4f8fc; }
.ov-quick .bubble {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: #187de8;
}
.ov-quick .bubble .ico { width: 14px; height: 14px; }
.ov-quick a:nth-child(2) .bubble { background: #2fb766; }
.ov-quick a:nth-child(3) .bubble { background: #2385ed; }
.ov-quick a:nth-child(4) .bubble { background: #ff8c12; }
.ov-quick a:nth-child(5) .bubble { background: #7044dc; }
.ov-quick a:nth-child(6) .bubble { background: #425d7b; }
.ov-quick a:nth-child(7) .bubble { background: #187de8; }
.ov-quick a:nth-child(8) .bubble { background: #425d7b; }

.ord-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ord-actions .btn, .ghost-btn {
    height: 34px;
    border: 1px solid #d6e0ea;
    background: #fff;
    border-radius: 5px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #173454;
    text-decoration: none;
    font-size: 13px;
}
.ord-actions .btn-primary { color: #fff; background: #0876e8; border-color: #0876e8; }

.ord-search {
    height: 34px;
    min-width: 220px;
    flex: 1;
    border: 1px solid #d7e0ea;
    border-radius: 5px;
    padding: 0 10px;
}

.ord-panel { margin-top: 10px; }
.ord-titlebar {
    height: 39px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border-bottom: 1px solid #e3e9ef;
    font-size: 13px;
    font-weight: 700;
}

.ord-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ord-table th { text-align: left; background: #f6f8fb; padding: 8px 6px; color: #31445c; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 12px; }
.ord-table td { padding: 8px 6px; border-bottom: 1px solid #e7ecf2; vertical-align: middle; }
.ord-table tr.on { background: #f3f8ff; }
.ord-code { color: #0876e8; font-weight: 650; }

.pill {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
}
.pill.wait { background: #fff0d9; color: #dc7900; }
.pill.plan { background: #ddf5e9; color: #0b8c4e; }
.pill.draft { background: #e5f2ff; color: #0876e8; }
.pill.high { background: #ffe2e4; color: #e62e35; }

.ord-pager {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 12px;
}
.ord-pager .pages { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.ord-pager button {
    min-width: 30px;
    height: 30px;
    border: 1px solid #d5e0ea;
    border-radius: 4px;
    background: #fff;
}
.ord-pager button.on { background: #0876e8; color: #fff; border-color: #0876e8; }

.ord-split { display: grid; grid-template-columns: 1.55fr .85fr; gap: 10px; margin-top: 10px; }
.ord-detail { padding: 12px; }
.ord-detail h2 { margin: 0 0 12px; font-size: 14px; }
.ord-kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 10px; font-size: 12px; }
.ord-kv .k { color: #64768b; }

.ord-tabs { display: flex; border-bottom: 1px solid #dfe6ee; }
.ord-tabs button {
    padding: 10px 12px;
    border: 0;
    background: transparent;
    font-size: 12px;
    color: #40536a;
}
.ord-tabs button.on { color: #0876e8; border-bottom: 2px solid #0876e8; }

.ord-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
}
.ord-form label { display: block; font-size: 11px; margin-bottom: 4px; color: #40536a; }
.ord-form .full { grid-column: 1 / -1; }
.ord-form input, .ord-form textarea, .ord-detail input {
    width: 100%;
    min-height: 34px;
    border: 1px solid #d7e0ea;
    border-radius: 5px;
    padding: 6px 10px;
}

.ord-form select, .ord-detail select {
    width: 100%;
}

.ord-stop {
    display: grid;
    grid-template-columns: 32px 1fr 160px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e6ebf1;
    font-size: 12px;
}
.ord-num {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #e4f0ff;
    color: #0876e8;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.ord-kanban {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.ord-col {
    background: #f2f5f9;
    border: 1px solid #dde5ed;
    border-radius: 7px;
    padding: 9px;
    min-height: 280px;
}
.ord-col h2 { font-size: 13px; display: flex; justify-content: space-between; }
.ord-task {
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 12px;
}
.ord-task b { display: block; color: #0876e8; margin-bottom: 4px; }
.ord-route { margin-top: 8px; padding: 7px; background: #f7f9fc; border-radius: 5px; }

@media (max-width: 1100px) {
    .ov-kpis, .ord-kpis, .ov-grid2, .ov-grid3, .ov-bottom, .ord-split, .ord-kanban, .ord-form {
        grid-template-columns: 1fr;
    }
    .ov-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
