/* «إعدادات التوصيل» + «إضافة محافظة ومنطقة» — Figma «تفاصيل وتعديل صفحات التوصيل». */
.crdts-dash .dlv{--cream:#fff5d3;--cream-line:#f6e7b3;--txt2:#77776b;display:grid;gap:18px}

/* heading: section kicker, title, subtitle — branch picker on the end side */
.crdts-dash .dlv-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;flex-wrap:wrap}
.crdts-dash .dlv-kicker{font-size:12px;color:var(--muted);margin:0 0 6px}
.crdts-dash .dlv-head h1{font-size:30px;line-height:1.35;margin:0}
.crdts-dash .dlv-head p{font-size:13px;color:var(--muted);margin:6px 0 0}
.crdts-dash .dlv-branch{display:grid;gap:6px;min-width:220px}
.crdts-dash .dlv-branch label{font-size:11.5px;color:var(--muted)}
.crdts-dash .dlv-back{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 18px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:700;font-size:13px;color:var(--ink);cursor:pointer}

/* inputs */
.crdts-dash .dlv-select,.crdts-dash .dlv-input{height:44px;width:100%;border:1px solid #e3e3dc;border-radius:10px;background:#fff;padding:0 14px;font:inherit;font-size:13.5px;color:var(--ink)}
.crdts-dash .dlv-select:focus-visible,.crdts-dash .dlv-input:focus-visible{outline:3px solid #f7a668;outline-offset:1px}
.crdts-dash .dlv-affix{display:flex;align-items:center;border:1px solid #e3e3dc;border-radius:10px;background:#fff;height:44px;padding:0 12px;gap:8px}
.crdts-dash .dlv-affix input{border:0;outline:0;background:transparent;width:100%;min-width:0;font:inherit;font-size:13.5px;text-align:end;color:var(--ink)}
.crdts-dash .dlv-affix span{font-size:11.5px;color:#a1a194;white-space:nowrap}
.crdts-dash .dlv-affix:focus-within{outline:3px solid #f7a668;outline-offset:1px}
.crdts-dash .dlv-eta{display:flex;align-items:center;gap:6px;border:1px solid #e3e3dc;border-radius:10px;background:#fff;height:44px;padding:0 12px}
.crdts-dash .dlv-eta input{border:0;outline:0;background:transparent;width:38px;text-align:center;font:inherit;font-size:13.5px;color:var(--ink)}
.crdts-dash .dlv-eta span{font-size:12px;color:#a1a194}
.crdts-dash .dlv-field{display:grid;gap:7px;min-width:0}
.crdts-dash .dlv-field>label{font-size:12.5px;font-weight:700}
.crdts-dash .dlv-hint{font-size:11.5px;color:#a1a194;margin:0;line-height:1.7}
.crdts-dash .dlv-note{display:flex;align-items:center;gap:8px;font-size:11.5px;color:#8c8c81;margin-top:14px}
.crdts-dash .dlv-note svg{width:14px;height:14px;flex-shrink:0}

/* toggle row card */
.crdts-dash .dlv-toggle-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:18px 22px;display:flex;align-items:center;gap:14px}
.crdts-dash .dlv-toggle-card .dlv-ico{width:38px;height:38px;border-radius:10px;background:var(--cream);display:grid;place-items:center;color:var(--orange);flex-shrink:0}
.crdts-dash .dlv-toggle-card .dlv-ico svg{width:18px;height:18px}
.crdts-dash .dlv-toggle-card b{display:block;font-size:15px}
.crdts-dash .dlv-toggle-card small{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.crdts-dash .dlv-toggle-state{margin-inline-start:auto;display:flex;align-items:center;gap:10px;font-size:12px;font-weight:700;color:var(--orange)}
.crdts-dash .dlv-toggle-state.off{color:#a1a194}

/* switch (orange) */
.crdts-dash .dlv-switch{width:40px;height:22px;border-radius:20px;background:#dcdcd4;border:0;position:relative;cursor:pointer;flex-shrink:0;transition:background .15s}
.crdts-dash .dlv-switch i{position:absolute;top:3px;inset-inline-start:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:inset-inline-start .15s}
.crdts-dash .dlv-switch[aria-checked=true]{background:var(--orange)}
.crdts-dash .dlv-switch[aria-checked=true] i{inset-inline-start:21px}
.crdts-dash .dlv-switch:focus-visible{outline:3px solid #f7a668;outline-offset:2px}

/* layout: main + side */
.crdts-dash .dlv-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(280px,1fr);gap:18px;align-items:start}
.crdts-dash .dlv-col{display:grid;gap:18px;min-width:0}
.crdts-dash .dlv-body{padding:0 22px 20px}

/* zones table */
.crdts-dash .dlv-table{width:100%;border-collapse:separate;border-spacing:0}
.crdts-dash .dlv-table th{font-size:11.5px;font-weight:600;color:#8c8c81;text-align:start;background:#f8f8f5;padding:10px 12px}
.crdts-dash .dlv-table th:first-child{border-start-start-radius:9px;border-end-start-radius:9px}
.crdts-dash .dlv-table th:last-child{border-start-end-radius:9px;border-end-end-radius:9px}
.crdts-dash .dlv-table td{padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}
.crdts-dash .dlv-table tr:last-child td{border-bottom:0}
.crdts-dash .dlv-table td b{display:block;font-size:13.5px}
.crdts-dash .dlv-table td small{display:block;font-size:11px;color:#a1a194;margin-top:2px}
.crdts-dash .dlv-table .dlv-affix,.crdts-dash .dlv-table .dlv-eta{height:40px}
.crdts-dash .dlv-iconbtn{width:34px;height:34px;border-radius:9px;border:0;background:transparent;color:#77776b;display:grid;place-items:center;cursor:pointer}
.crdts-dash .dlv-iconbtn:hover{background:#f3f3ee;color:var(--ink)}
.crdts-dash .dlv-iconbtn.danger:hover{color:#d64545}
.crdts-dash .dlv-iconbtn svg{width:16px;height:16px}
.crdts-dash .dlv-addbtn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:700;font-size:13px;cursor:pointer;color:var(--ink)}
.crdts-dash .dlv-addbtn svg{width:15px;height:15px}
.crdts-dash .dlv-empty{padding:26px 10px;text-align:center;color:#a1a194;font-size:13px}

/* two fields side by side */
.crdts-dash .dlv-two{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.crdts-dash .dlv-three{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:14px}
.crdts-dash .dlv-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px}

/* hours row */
.crdts-dash .dlv-hours{display:grid;grid-template-columns:minmax(200px,1fr) 1fr;gap:16px;align-items:center}
.crdts-dash .dlv-hours-text{font-size:13px;color:var(--ink)}

/* side cards */
.crdts-dash .dlv-side-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:18px 20px}
.crdts-dash .dlv-side-card h3{font-size:15px;margin:0;display:flex;align-items:center;gap:8px}
.crdts-dash .dlv-side-card h3 svg{width:16px;height:16px;color:#8c8c81}
.crdts-dash .dlv-side-card>p{font-size:12px;color:var(--muted);margin:4px 0 0;line-height:1.8}
.crdts-dash .dlv-cream{background:var(--cream);border:1px solid var(--cream-line);border-radius:11px;padding:16px 18px}
.crdts-dash .dlv-cream b{display:flex;align-items:center;gap:8px;font-size:14px}
.crdts-dash .dlv-cream b svg{width:16px;height:16px;color:var(--orange)}
.crdts-dash .dlv-cream p{font-size:12px;color:#77776b;margin:6px 0 0;line-height:1.8}
.crdts-dash .dlv-cream a,.crdts-dash .dlv-link{color:var(--orange);font-weight:700;font-size:12px;text-decoration:none;cursor:pointer;background:none;border:0;padding:0}
.crdts-dash .dlv-banner{background:var(--cream);border-radius:11px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}
.crdts-dash .dlv-banner b{display:block;font-size:16px}
.crdts-dash .dlv-banner small{display:block;font-size:11.5px;color:#77776b;margin-top:4px}
.crdts-dash .dlv-rows{display:grid}
.crdts-dash .dlv-rows>div{display:flex;justify-content:space-between;gap:10px;padding:9px 0;font-size:13px}
.crdts-dash .dlv-rows>div span{color:#8c8c81;font-size:12px}
.crdts-dash .dlv-rows>div b{font-weight:800}
.crdts-dash .dlv-rows>div.sep{border-top:1px solid var(--line);margin-top:6px;padding-top:14px}
.crdts-dash .dlv-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:8px;padding-top:14px}
.crdts-dash .dlv-total span{font-weight:800;font-size:13px}
.crdts-dash .dlv-total b{font-size:22px;font-weight:900}
.crdts-dash .dlv-orange{color:var(--orange)!important}
.crdts-dash .dlv-ext{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:4px 6px}
.crdts-dash .dlv-ext small{display:block;color:#a1a194;font-size:11.5px}
.crdts-dash .dlv-ext svg{width:16px;height:16px;color:var(--orange)}

/* footer save bar */
.crdts-dash .dlv-bar{background:#fff;border:1px solid var(--line);border-radius:11px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.crdts-dash .dlv-bar p{margin:0;font-size:13px;display:flex;align-items:center;gap:8px}
.crdts-dash .dlv-bar p svg{width:16px;height:16px;color:#8c8c81}
.crdts-dash .dlv-bar p.ok svg{color:var(--orange)}
.crdts-dash .dlv-bar-acts{display:flex;gap:10px}
.crdts-dash .dlv-btn{height:44px;padding:0 22px;border-radius:10px;font:inherit;font-weight:800;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.crdts-dash .dlv-btn svg{width:15px;height:15px}
.crdts-dash .dlv-btn.dark{background:var(--ink);color:#fff;border:0}
.crdts-dash .dlv-btn.dark:disabled{opacity:.5;cursor:default}
.crdts-dash .dlv-btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--line)}
.crdts-dash .dlv-chip{display:inline-block;background:var(--cream);color:var(--ink);border-radius:20px;padding:4px 12px;font-size:11.5px;font-weight:700}
.crdts-dash .dlv-cream-note{background:#fffaea;border-radius:9px;padding:10px 12px;font-size:11.5px;color:#8c8c81;display:flex;gap:8px;align-items:center;margin-top:14px}
.crdts-dash .dlv-cream-note svg{width:14px;height:14px;flex-shrink:0}
.crdts-dash .dlv-cover{display:grid}
.crdts-dash .dlv-cover>div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--line);font-size:13px}
.crdts-dash .dlv-cover>div:first-child{border-top:0}
.crdts-dash .dlv-cover small{color:#8c8c81;font-size:11.5px}

@media (max-width:1100px){
  .crdts-dash .dlv-grid{grid-template-columns:1fr}
}
@media (max-width:700px){
  .crdts-dash .dlv-two,.crdts-dash .dlv-three,.crdts-dash .dlv-hours{grid-template-columns:1fr}
  .crdts-dash .dlv-table{display:block;overflow-x:auto}
}
