.dp { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #1f2937; background: #f3f4f6; min-height: calc(100vh - var(--etp-strip-h, 0px) - 60px); padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.dp a, .dp .dp-link { color: #1d4ed8; text-decoration: none; cursor: pointer; }
.dp a:hover, .dp .dp-link:hover { color: #1e40af; }
.dp table { border-collapse: collapse; }
.dp th { font-weight: 600; font-size: 11px; color: #4b5563; text-align: left; white-space: nowrap; }
.dp td { font-size: 12px; white-space: nowrap; vertical-align: top; }
.dp button { font-family: inherit; cursor: pointer; }
.dp button:disabled { cursor: not-allowed; opacity: .55; }

.dp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dp-head h1 { margin: 0; font-size: 20px; font-weight: 700; }
.dp-head .dp-acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.dp-muted { font-size: 12px; color: #6b7280; }
.dp-back { font-size: 13px; }

.dp-btn { height: 36px; padding: 0 14px; border: 1px solid #d1d5db; background: #fff; border-radius: 6px; font-size: 13px; font-weight: 500; color: #1f2937; display: inline-flex; align-items: center; gap: 6px; }
.dp-btn:hover:not(:disabled) { background: #f9fafb; }
.dp-btn.pri { border-color: #1d4ed8; background: #1d4ed8; color: #fff; font-weight: 600; }
.dp-btn.pri:hover:not(:disabled) { background: #1e40af; }
.dp-btn.dark { border-color: #1f2937; background: #1f2937; color: #fff; font-weight: 600; }
.dp-btn.danger { border-color: #b91c1c; color: #b91c1c; }
.dp-btn.sm { height: 30px; padding: 0 10px; font-size: 12px; }

.dp-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.dp-pill.calc { color: #1d4ed8; background: #dbeafe; }
.dp-pill.closed { color: #166534; background: #dcfce7; }

.dp-filter { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 16px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.dp-field { display: flex; flex-direction: column; gap: 4px; }
.dp-field > label, .dp-field > span { font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; }
.dp-input, .dp-select { height: 34px; border: 1px solid #d1d5db; border-radius: 6px; padding: 0 10px; font-size: 13px; font-family: inherit; background: #fff; color: #1f2937; }
.dp-input.w110 { width: 110px; } .dp-input.w140, .dp-select.w140 { width: 140px; } .dp-select.w160 { width: 160px; } .dp-select.w180 { width: 180px; }
.dp-check { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 8px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; font-size: 13px; color: #374151; cursor: pointer; user-select: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.dp-check:hover { border-color: #9ca3af; }
.dp-check input[type=checkbox] { appearance: none; -webkit-appearance: none; margin: 0; flex-shrink: 0; width: 30px; height: 18px; border-radius: 999px; background: #d1d5db; position: relative; cursor: pointer; transition: background .15s; }
.dp-check input[type=checkbox]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.dp-check input[type=checkbox]:checked { background: #1d4ed8; }
.dp-check input[type=checkbox]:checked::after { left: 14px; }
.dp-check input[type=checkbox]:disabled { opacity: .5; cursor: not-allowed; }
.dp-check:has(input:checked) { border-color: #93c5fd; background: #eff6ff; color: #1e40af; font-weight: 500; }
.dp-seg { display: flex; height: 34px; border: 1px solid #d1d5db; border-radius: 6px; overflow: hidden; }
.dp-seg button { padding: 0 12px; border: 0; background: #fff; font-size: 13px; }
.dp-seg button.on { background: #1f2937; color: #fff; font-weight: 600; }
.dp-filter .dp-right { margin-left: auto; display: flex; gap: 8px; align-items: flex-end; }

.dp-banner { background: #fff7ed; border: 1px solid #fdba74; border-radius: 8px; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #9a3412; }
.dp-banner b { font-weight: 700; }
.dp-banner a { color: #9a3412 !important; font-weight: 600; text-decoration: underline !important; }
.dp-banner .dp-quick { margin-left: auto; color: #6b7280; }
.dp-banner .dp-quick a { color: #1d4ed8 !important; text-decoration: none !important; }
.dp-banner.ok { background: #f0fdf4; border-color: #86efac; color: #166534; }

.dp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.dp-scroll { overflow: auto; max-height: calc(100vh - var(--etp-strip-h, 0px) - 330px); }
.dp-table { width: 100%; }
.dp-table thead tr { background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.dp-table thead th { position: sticky; top: 0; background: #f9fafb; z-index: 2; padding: 8px 12px; }
.dp-table th small { font-weight: 400; display: block; }
.dp-table th.r, .dp-table td.r { text-align: right; }
.dp-table th.c, .dp-table td.c { text-align: center; }
.dp-table th.sub { color: #6b7280; font-weight: 500; }
.dp-table tbody tr { border-bottom: 1px solid #f3f4f6; background: #fff; }
.dp-table tbody tr:hover { background: #f8fafc; }
.dp-table tbody tr.sel { background: #eff6ff; }
.dp-table tbody tr.noprice { background: #fff5f5; }
.dp-table tbody tr.click { cursor: pointer; }
.dp-table td { padding: 6px 12px; }
.dp-table.lines td { padding: 9px 10px; }
.dp-table.lines th { padding: 9px 10px; }
.dp-table td.b { font-weight: 600; }
.dp-table td.bb { font-weight: 700; }
.dp-table td.m { color: #6b7280; }
.dp-table td.neg { color: #b91c1c; }
.dp-table td.wrap { white-space: normal; }
.dp-table tfoot tr { background: #f9fafb; border-top: 2px solid #e5e7eb; font-weight: 700; }
.dp-table tfoot td { padding: 8px 12px; position: sticky; bottom: 0; background: #f9fafb; }
.dp-sub { font-size: 11px; color: #6b7280; }
.dp-def { color: #9ca3af; }
.dp-app { font-weight: 600; }
.dp-app.edit { cursor: pointer; border-bottom: 1px dashed #93c5fd; }
.dp-app.edit:hover { color: #1d4ed8; }
.dp-app.changed { color: #b45309; }
.dp-foot { padding: 10px 16px; border-top: 1px solid #e5e7eb; font-size: 12px; color: #6b7280; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.dp-foot .dp-right { margin-left: auto; }

.dp-src { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.dp-src.etrans { background: #eff6ff; color: #1d4ed8; }
.dp-src.outside { background: #f3f4f6; color: #374151; }
.dp-src.missing { background: #fef3c7; color: #92400e; }
.dp-chip { display: inline-block; margin: 0 4px 4px 0; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: #f3f4f6; color: #374151; }
.dp-chip.NO_PRICE { background: #fee2e2; color: #991b1b; }
.dp-chip.REPLACED, .dp-chip.MULTI_STOP { background: #ffedd5; color: #9a3412; }
.dp-chip.EDITED { background: #fef3c7; color: #92400e; }
.dp-chip.DEFAULT_CHANGED { background: #ede9fe; color: #5b21b6; }
.dp-cnt { display: inline-block; min-width: 22px; padding: 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f3f4f6; color: #6b7280; text-align: center; }
.dp-cnt.warn { background: #ffedd5; color: #9a3412; }
.dp-tag { font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 4px; background: #fef3c7; color: #92400e; margin-left: 4px; }

.dp-qf { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.dp-qf .dp-qbtn { height: 30px; padding: 0 12px; border: 1px solid #d1d5db; background: #fff; border-radius: 999px; font-size: 12px; }
.dp-qf .dp-qbtn.on { border-color: #1f2937; background: #1f2937; color: #fff; }
.dp-qf .dp-right { margin-left: auto; color: #6b7280; }

.dp-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; }
.dp-tabs button { border: 0; background: transparent; padding: 8px 14px; font-size: 13px; font-weight: 500; color: #6b7280; border-bottom: 2px solid transparent; }
.dp-tabs button.on { color: #1d4ed8; border-bottom-color: #1d4ed8; font-weight: 600; }
.dp-tabs button i { font-style: normal; font-size: 11px; background: #fee2e2; color: #991b1b; border-radius: 999px; padding: 1px 6px; margin-left: 4px; }

.dp-drawer-ov { position: fixed; inset: 0; background: rgba(15, 23, 42, .15); z-index: 900; }
.dp-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 640px; max-width: 100vw; background: #fff; border-left: 1px solid #e5e7eb; box-shadow: -8px 0 24px rgba(15, 23, 42, .12); display: flex; flex-direction: column; overflow: hidden; z-index: 901; }
.dp-drawer-h { padding: 16px 20px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: flex-start; gap: 12px; }
.dp-drawer-h .t { font-size: 16px; font-weight: 700; }
.dp-drawer-h .tags { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dp-x { width: 32px; height: 32px; border: 1px solid #d1d5db; background: #fff; border-radius: 6px; font-size: 14px; flex-shrink: 0; }
.dp-drawer-b { padding: 4px 20px 24px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; overflow-x: hidden; }
.dp-sec { display: flex; flex-direction: column; gap: 8px; }
.dp-sec-t { font-size: 11px; font-weight: 700; color: #6b7280; letter-spacing: .04em; padding-top: 12px; text-transform: uppercase; }
.dp-stop { display: flex; gap: 10px; font-size: 13px; }
.dp-stop .n { width: 18px; height: 18px; border-radius: 50%; background: #1f2937; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dp-stop .n.alt { background: #c2410c; }
.dp-stop .n.skip { background: #9ca3af; }
.dp-stop b { font-weight: 600; }
.dp-stop .k { font-weight: 400; color: #6b7280; }
.dp-rep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dp-rep > div { border: 1px solid #e5e7eb; border-radius: 6px; padding: 10px 12px; font-size: 12px; }
.dp-rep > div.on { border-color: #1d4ed8; background: #eff6ff; }
.dp-rep .h { color: #6b7280; font-weight: 600; margin-bottom: 4px; }
.dp-rep > div.on .h { color: #1d4ed8; }
.dp-mini { width: 100%; table-layout: fixed; border-collapse: collapse; }
.dp-mini th, .dp-mini td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.dp-mini th + th, .dp-mini td + td { padding-left: 10px; }
.dp-mini th.r, .dp-mini th.c { white-space: nowrap; }
.dp-mini .dp-tag { margin-left: 4px; }
.dp-mini th { padding: 6px 0; border-bottom: 1px solid #e5e7eb; }
.dp-mini td { padding: 7px 0; border-bottom: 1px solid #f3f4f6; font-size: 12px; }
.dp-mini tr.hl td { background: #fffbeb; }
.dp-mini tr.tot td { font-weight: 700; border-bottom: 0; }
.dp-mini .r { text-align: right; }
.dp-mini .c { text-align: center; }
.dp-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.dp-imgs img { width: 72px; height: 54px; border-radius: 4px; object-fit: cover; background: #e5e7eb; cursor: pointer; border: 1px solid #e5e7eb; }
.dp-log { display: flex; gap: 10px; font-size: 12px; }
.dp-log .t { color: #6b7280; white-space: nowrap; }
.dp-log .r { color: #6b7280; }

.dp-modal-ov { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 950; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.dp-modal { background: #fff; border-radius: 10px; width: 560px; max-width: 100%; box-shadow: 0 20px 40px rgba(15, 23, 42, .25); display: flex; flex-direction: column; max-height: calc(100vh - var(--etp-strip-h, 0px) - 32px); margin: auto; }
.dp-modal-b { min-height: 0; }
.dp-modal.wide { width: 960px; }
.dp-modal.xwide { width: 1200px; }
.dp-modal-h { padding: 14px 18px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; gap: 10px; }
.dp-modal-h .t { font-size: 15px; font-weight: 700; }
.dp-modal-h .dp-x { margin-left: auto; }
.dp-modal-b { padding: 14px 18px; overflow: auto; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.dp-modal-f { padding: 12px 18px; border-top: 1px solid #e5e7eb; display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.dp-modal-f .dp-left { margin-right: auto; font-size: 12px; color: #6b7280; }
.dp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.dp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.dp-grid2 .dp-input, .dp-grid2 .dp-select, .dp-grid3 .dp-input, .dp-grid3 .dp-select { width: 100%; }
.dp-area { width: 100%; min-height: 64px; border: 1px solid #d1d5db; border-radius: 6px; padding: 8px 10px; font-size: 13px; font-family: inherit; }
.dp-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 6px; padding: 8px 12px; font-size: 12px; }
.dp-err ul { margin: 4px 0 0 16px; padding: 0; }
.dp-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 6px; padding: 8px 12px; font-size: 12px; }
.dp-hint { font-size: 12px; color: #6b7280; }
.dp-days { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-day { border: 1px solid #d1d5db; border-radius: 6px; padding: 4px 8px; font-size: 12px; background: #fff; }
.dp-day.on { background: #1f2937; color: #fff; border-color: #1f2937; }
.dp-loading { position: absolute; inset: 0; background: rgba(255, 255, 255, .6); display: flex; align-items: center; justify-content: center; z-index: 60; font-size: 13px; color: #374151; }
.dp-empty { padding: 28px; text-align: center; color: #6b7280; font-size: 13px; }
.dp-matrix td.cell { cursor: pointer; text-align: right; }
.dp-matrix td.cell:hover { background: #eff6ff; }
.dp-matrix td.cell.empty { color: #b91c1c; }
.dp-matrix td.cell .fut { font-size: 10px; color: #7c3aed; display: block; }
.dp-badge-sel { display: inline-flex; gap: 4px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .dp { padding: 12px; }
    .dp-drawer { width: 100vw; }
    .dp-grid2, .dp-grid3 { grid-template-columns: 1fr; }
    .dp-head .dp-acts { margin-left: 0; }
}

.dp-modal-ov.dp-top { z-index: 970; }
.dp-dlg { position: relative; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #1f2937; }
.dp-dlg table { border-collapse: collapse; }
.dp-dlg th { font-weight: 600; font-size: 11px; color: #4b5563; text-align: left; white-space: nowrap; }
.dp-dlg td { font-size: 12px; white-space: nowrap; vertical-align: top; }
.dp-dlg button { font-family: inherit; cursor: pointer; }
.dp-dlg button:disabled { cursor: not-allowed; opacity: .55; }
.dp-dlg .dp-scroll { max-height: 48vh; }
.dp-dlg .dp-table td .dp-select, .dp-dlg .dp-table td .dp-input { height: 28px; font-size: 12px; padding: 0 6px; min-width: 150px; }
.dp-dlg .dp-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.dp-dlg .dp-row > b { font-size: 13px; align-self: center; }
.dp-dlg .dp-row .dp-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.dp-dlg .dp-inline { display: inline-flex; gap: 6px; align-items: center; }
.dp-dlg .dp-span-all { grid-column: 1 / -1; }
.dp-dlg .dp-pad { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; overflow: visible; }
.dp-dlg .dp-sec { gap: 10px; }
.dp-dlg .dp-neg { color: #b91c1c; }
.dp-dlg .dp-day { cursor: pointer; }
.dp-dlg .dp-day small { opacity: .7; margin-left: 2px; }
.dp-dlg .dp-table tbody tr.dp-unmatched { background: #fffbeb; }
.dp-dlg .dp-chip-ok { background: #dcfce7; color: #166534; }
.dp-dlg .dp-tabs button { cursor: pointer; }
.dp-modal.dp-dlg { margin: auto; max-height: calc(100vh - var(--etp-strip-h, 0px) - 32px); overflow: hidden; }
.dp-dlg > .dp-modal-h, .dp-dlg > .dp-modal-f { flex-shrink: 0; }
.dp-dlg > .dp-modal-b { flex: 1 1 auto; min-height: 0; overflow: auto; }
.dp-dlg > .dp-modal-b > * { flex-shrink: 0; }
.dp-dlg .dp-card > .dp-pager { padding: 6px 12px; }
.dp-dlg .dp-search { width: 260px; }

.dpc .dp-tabs button { cursor: pointer; }
.dpc-pane { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.dpc-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dpc-bar .dp-right { margin-left: auto; }
.dpc-w40 { width: 40px; }
.dpc-w220 { width: 220px; }
.dpc-w260 { width: 260px; }
.dpc-grow { flex: 1 1 260px; }
.dpc-grow .dp-input { width: 100%; }
.dpc-bare { border: 0; padding: 0; }
.dpc-m12 { margin: 12px; }
.dpc-left { margin-right: auto; }
.dpc-fit { width: fit-content; }
.dpc-st { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f3f4f6; color: #6b7280; margin-left: 4px; white-space: nowrap; }
.dpc-st.on { background: #dcfce7; color: #166534; }
.dpc-st.fut { background: #ede9fe; color: #5b21b6; }
.dpc-points { max-width: 420px; }
.dpc-chips { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.dpc-chips.dpc-right { justify-content: flex-end; }
.dpc-chips .dp-chip a { margin-left: 4px; color: #6b7280 !important; cursor: pointer; }
.dpc-chips .dp-chip a:hover { color: #b91c1c !important; }
.dpc-box { border: 1px solid #e5e7eb; border-radius: 6px; padding: 8px; min-height: 44px; max-height: 220px; overflow: auto; }
.dpc-ov2 { z-index: 960; }
.dpc-pick { max-height: 46vh; }
.dp-table tbody tr.dpc-dis { color: #9ca3af; cursor: not-allowed; }
.dp-matrix .dpc-sticky { position: sticky; left: 0; background: #fff; z-index: 1; border-right: 1px solid #e5e7eb; min-width: 200px; }
.dp-matrix thead th.dpc-sticky { background: #f9fafb; z-index: 3; }
.dp-matrix td.cell { border-left: 1px solid #f3f4f6; min-width: 96px; }
.dp-matrix td.cell.empty span { font-weight: 700; }
.dpc-unit { color: #6b7280; margin-left: 2px; }
.dpc-h300 { max-height: 300px; }
.dpc-pickbtn { max-width: none; width: 100%; height: 34px; }
.dpc-msbox { border: 1px solid #e5e7eb; border-radius: 6px; padding: 6px; max-height: 300px; overflow: auto; }
.dpc-act { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: #f3f4f6; color: #374151; }
.dpc-act.CREATE, .dpc-act.IMPORT { background: #dcfce7; color: #166534; }
.dpc-act.UPDATE, .dpc-act.RESET { background: #dbeafe; color: #1d4ed8; }
.dpc-act.DELETE { background: #fee2e2; color: #991b1b; }
.dpc-val { max-width: 260px; }
.dp-chip.OUTSIDE_DRIVER { background: #e0f2fe; color: #075985; }
.dp-chip.LATE_EXPENSE { background: #fee2e2; color: #991b1b; }
.dp-chip.RETURN_TRIP { background: #ffedd5; color: #9a3412; }
.dp { height: calc(100vh - var(--etp-strip-h, 0px) - 52px); max-height: calc(100vh - var(--etp-strip-h, 0px) - 52px); min-height: 0; overflow: hidden; padding: 12px 20px; gap: 10px; }
.dp > * { flex-shrink: 0; }
.dp > .dp-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.dp-card > .dp-scroll { flex: 1 1 auto; min-height: 0; max-height: none; }
.dp-card > .dp-pager, .dp-card > .dp-foot { flex-shrink: 0; }
.dpc-tabbody { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.dpc-tabbody[hidden] { display: none !important; }
.dpc-tabbody > .dpc-pane { flex: 1 1 auto; min-height: 0; }
.dpc-pane > * { flex-shrink: 0; }
.dpc-pane > .dp-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.dp-modal .dp-card > .dp-scroll { max-height: 55vh; }
.dp-pager { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-top: 1px solid #e5e7eb; font-size: 12px; background: #fff; flex-wrap: wrap; }
.dp-pager .dp-select { height: 30px; width: auto; }
.dp-pager-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.dp-pager-nav .dp-btn.sm { min-width: 30px; justify-content: center; padding: 0 8px; }
@media (max-width: 768px) { .dp { height: auto; max-height: none; overflow: visible; } }
.dpc .dp-modal-b > * { flex-shrink: 0; }
.dpc-w180 { width: 180px; }
.dpc-expr { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12px; }
.dp-table td.dpc-expr { max-width: 320px; color: #1e3a8a; }
.dpc-sur { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.dpc-sur-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dpc-sur-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.dpc-sur-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid #e5e7eb; padding-left: 16px; min-width: 0; }
.dpc-sur-side .dp-sec-t { padding-top: 0; }
.dpc-vars { max-height: 520px; overflow: auto; border: 1px solid #e5e7eb; border-radius: 6px; }
.dpc-var { padding: 6px 10px; border-bottom: 1px solid #f3f4f6; cursor: pointer; }
.dpc-var:hover { background: #eff6ff; }
.dpc-var .dp-chip { margin: 0 0 0 6px; font-size: 10px; padding: 0 6px; }
.dpc-lbl { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dpc-lbl .dp-link { font-size: 11px; text-transform: none; font-weight: 500; }
.dpc-fn { border: 1px solid #d1d5db; background: #fff; cursor: pointer; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 500; }
.dpc-fn:hover { border-color: #1d4ed8; color: #1d4ed8; }
.dpc-pv-sum { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; padding: 8px 12px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; }
.dpc-pv-sum .neg { color: #b91c1c; }
.dpc-pv { max-height: 320px; }
.dp-table tr.dpc-dim td { color: #9ca3af; }
.dp-table td .neg { color: #b91c1c; }
@media (max-width: 900px) { .dpc-sur { grid-template-columns: 1fr; } .dpc-sur-side { position: static; border-left: 0; padding-left: 0; } }
.dp-sur { white-space: nowrap; line-height: 1.5; }
.dp-sur .dp-sub { display: inline; margin-right: 4px; }
.dp-chip.SURCHARGE_ERROR { background: #fee2e2; color: #991b1b; }
.dpc-sur.nb { grid-template-columns: minmax(0, 1fr); }
.dpb { display: flex; flex-direction: column; gap: 12px; }
.dpb-sec { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: #fafafa; }
.dpb-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.dpb-h .dp-select { width: auto; }
.dpb-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dpb-row > span { font-size: 13px; color: #374151; }
.dpb-field { width: 220px; }
.dpb-op { width: 150px; }
.dpb-val { flex: 1 1 260px; min-width: 200px; display: flex; align-items: center; gap: 6px; }
.dpb-val .dp-input { width: 140px; }
.dpb-num { width: 140px; }
.dpb-tiers { max-width: 420px; }
.dpb-tiers .dp-input { width: 100%; }
.dpb-result { border-left: 3px solid #16a34a; background: #f0fdf4; padding: 8px 12px; border-radius: 6px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.dpb-result.err { border-left-color: #dc2626; background: #fef2f2; color: #991b1b; }
.dpb-result .fas { margin-right: 6px; }
.dpb-toggle { font-size: 12px; align-self: flex-start; }
.dp-imp-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dp-imp-tools .dp-file { position: relative; overflow: hidden; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.dp-imp-tools .dp-file input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dp-imp-tools .dp-file.busy { opacity: .6; pointer-events: none; }
.dp-imp-name { font-size: 13px; color: #374151; }
.dp-imp-name .fa-file-excel { color: #1d6f42; }
.dp-imp-drop { position: relative; min-height: 180px; border: 2px dashed #d1d5db; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; cursor: pointer; background: #f9fafb; }
.dp-imp-drop:hover { border-color: #2563eb; background: #eff6ff; }
.dp-imp-drop .fa-file-excel { font-size: 32px; color: #1d6f42; }
.dp-imp-drop b { font-size: 14px; }
.dp-imp-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dp-imp-drop.busy { opacity: .6; pointer-events: none; }
