.detail-row{display:flex;flex-wrap:wrap;gap:8px 16px;margin-bottom:8px;}
.detail-field{flex:1;min-width:150px;}
.detail-field .label{font-size:11px;color:var(--tblr-muted);text-transform:uppercase;margin-bottom:1px;}
.detail-field .value{font-size:14px;font-weight:500;color:var(--tblr-body-color);}
.detail-field .value.empty{color:var(--tblr-muted);font-size:12px;}
.section-title{font-size:13px;font-weight:600;margin:12px 0 6px;padding-bottom:4px;border-bottom:1px solid var(--tblr-border-color);color:var(--tblr-body-color);}

.stage-step{text-align:center;flex:1;position:relative;padding:8px 0;}
.stage-step .dot{width:28px;height:28px;border-radius:50%;margin:0 auto 4px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;border:2px solid var(--tblr-border-color);color:var(--tblr-muted);background:var(--tblr-bg-surface);position:relative;z-index:2;}
.stage-step.done .dot{background:#198754;border-color:#198754;color:#fff;}
.stage-step.active .dot{background:#0d6efd;border-color:#0d6efd;color:#fff;box-shadow:0 0 0 3px rgba(13,110,253,0.3);}
.stage-step .step-label{font-size:11px;color:var(--tblr-muted);}
.stage-step.done .step-label,.stage-step.active .step-label{color:var(--tblr-body-color);font-weight:600;}
.stage-line{position:absolute;top:22px;left:50%;width:100%;height:2px;background:var(--tblr-border-color);z-index:1;}
.stage-step.done .stage-line{background:#198754;}
.stage-step:last-child .stage-line{display:none;}

.price-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;}
.price-item{padding:12px;border-radius:8px;background:var(--tblr-bg-surface-secondary,rgba(0,0,0,0.03));}
.price-item .label{font-size:11px;color:var(--tblr-muted);text-transform:uppercase;}
.price-item .val{font-size:20px;font-weight:700;color:var(--tblr-body-color);}
.price-item .val.profit{color:#198754;}

.timeline-item{display:flex;align-items:flex-start;padding:10px 16px;border-bottom:1px solid var(--tblr-border-color);}
.timeline-item:last-child{border-bottom:none;}
.timeline-dot{width:10px;height:10px;border-radius:50%;margin-top:5px;margin-right:12px;flex-shrink:0;background:#198754;}
.timeline-label{font-weight:600;font-size:13px;color:var(--tblr-body-color);}
.timeline-date{font-size:12px;color:var(--tblr-muted);}

.perm-header-row{display:flex;align-items:center;background:var(--tblr-bg-surface-secondary,#f8f9fa);color:var(--tblr-body-color);padding:8px 16px;font-weight:600;font-size:13px;border-bottom:1px solid var(--tblr-border-color);}
.perm-name-col{flex:1;}
.perm-action-col{width:120px;text-align:center;}
.perm-group{border-bottom:1px solid var(--tblr-border-color);}
.perm-group-hdr{display:flex;align-items:center;padding:10px 16px;cursor:pointer;background:var(--tblr-bg-surface);user-select:none;}
.perm-group-hdr:hover{background:rgba(255,255,255,0.05);}
.perm-group-hdr .chevron{transition:transform 0.2s;display:inline-block;}
.perm-group-hdr.collapsed .chevron{transform:rotate(-90deg);}
.perm-group-children.hidden{display:none;}
.perm-group.drag-over{border-top:2px solid #0d6efd;}
.perm-row{display:flex;align-items:center;padding:6px 16px 6px 44px;border-top:1px solid var(--tblr-border-color-translucent,rgba(0,0,0,0.06));}
.perm-row:last-child{border-bottom:none;}
.perm-cell{width:120px;text-align:center;}
.perm-cell select,.group-select{width:80px;font-size:12px;padding:2px 6px;border-radius:4px;border:1px solid var(--tblr-border-color);background:var(--tblr-bg-surface);color:var(--tblr-body-color);cursor:pointer;}
.scope-all{color:#198754!important;font-weight:600;}
.scope-own{color:#0d6efd!important;font-weight:600;}
.scope-team{color:#6f42c1!important;font-weight:600;}
.scope-none{color:var(--tblr-muted)!important;}
.scope-badge{font-size:11px;padding:2px 10px;border-radius:4px;font-weight:600;}

.org-row{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px;}
.org-field{flex:1;min-width:200px;}
.org-field .label{font-size:11px;color:var(--tblr-muted);text-transform:uppercase;margin-bottom:2px;}
.org-field .val{font-size:14px;font-weight:500;color:var(--tblr-body-color);}

.badge{color:#fff!important;}
.badge.bg-secondary{background-color:#6c757d!important;}
.badge.bg-info{background-color:#0dcaf0!important;color:#000!important;}
.badge.bg-warning{background-color:#ffc107!important;color:#000!important;}
.badge.bg-success{background-color:#198754!important;}
.badge.bg-danger{background-color:#dc3545!important;}

.navbar-brand img.navbar-logo{width:180px!important;height:auto!important;max-height:none!important;}

.copyable{cursor:pointer;}.copyable:hover{opacity:0.7;}

.dataTable thead tr th:nth-child(2),
.dataTable tbody tr td:nth-child(2){display:none!important;}
.dataTable tbody tr{cursor:pointer;}

@keyframes toastIn{from{transform:translateX(30px);opacity:0}to{transform:translateX(0);opacity:1}}

#vehiclesBody input,#vehiclesBody select,
#stopsBody input,#stopsBody select{
    font-size:12px;padding:4px 6px;border:1px solid var(--tblr-border-color);border-radius:4px;width:100%;
    background:var(--tblr-bg-surface);color:var(--tblr-body-color);
}
#vehiclesBody td,#stopsBody td{vertical-align:middle;padding:4px;}
