/*! Designed & developed by Amit Salunkhe, Satara (India) | +91 90824 37230 */
/* DMS hero: simple sample screens (same look as the homepage) */
.dstage .screens { aspect-ratio: auto; height: 450px; background: var(--surface); }
.ds { position: absolute; inset: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; color: var(--ink-2); }
.ds b { color: var(--ink); font-weight: 600; }
.ds small { color: var(--muted); font-size: 12px; }
.ds-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ds-h > b { font-size: 16px; letter-spacing: -.015em; }
.ds-h .m { color: var(--muted); font-size: 12.5px; margin-right: auto; }
.ds-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--sunken); color: var(--ink-2); }
.ds-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ds-chip.g { background: var(--brand-soft); color: var(--brand-ink); }
.ds-chip.a { background: #FBF2E2; color: #A86A12; }
.ds-chip.r { background: #FDEEE7; color: #C2410C; }
.ds-chip.b { background: #EAF0FD; color: #2B63D9; }
.ds .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 10.5px; font-weight: 600; color: #fff; }
.ds .av-1 { background: #3E7C67; } .ds .av-2 { background: #B5683C; } .ds .av-3 { background: #4F63B8; }
.ds-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); min-width: 0; }
.ds-ct { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.ds-ct .m { margin-left: auto; font: 11.5px var(--mono); color: var(--muted); font-weight: 400; }

/* Overview */
.ds-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ds-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ds-kpi b { font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.ds-kpi span { font-size: 12px; color: var(--muted); }
.ds-kpi .up { color: var(--brand-ink); }
.ds-kpi .warn { color: #A86A12; }
.ds-kpi.sm b { font-size: 22px; }
.ds-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; flex: 1; min-height: 0; }
.ds-feed { display: flex; flex-direction: column; gap: 12px; }
.ds-ev { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; line-height: 1.35; }
.ds-ev time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ds-src { display: flex; flex-direction: column; gap: 12px; }
.ds-src > div { display: grid; grid-template-columns: 84px 1fr 40px; gap: 10px; align-items: center; }
.ds-src i, .ds-funnel i { height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.ds-src em, .ds-funnel em { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--brand); }
.ds-src b, .ds-funnel b { text-align: right; font-variant-numeric: tabular-nums; }

/* Sales */
.ds-funnel { display: flex; flex-direction: column; gap: 4px; }
.ds-funnel .fr { display: grid; grid-template-columns: 110px 1fr 48px 44px; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; transition: background .4s; }
.ds-funnel i { height: 14px; border-radius: 5px; }
.ds-funnel em { border-radius: 5px; }
.ds-funnel small { text-align: right; }
.ds-funnel .fr.on { background: #FBF2E2; }
.ds-funnel .fr.on em { background: #D9962F; }
.ds-funnel .fr.on small { color: #A86A12; font-weight: 600; }
.ds-insight { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--sunken); line-height: 1.45; }
.ds-insight svg, .ds-foot svg { width: 16px; height: 16px; flex: none; color: #A86A12; margin-top: 1px; }

/* Tables (Stock, Renewals) */
.ds-tbl { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ds-tbl .tr { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); transition: background .5s; }
.ds-tbl .tr > span { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ds-tbl .tr .pdi, .ds-tbl .tr .act { flex-direction: row; align-items: center; gap: 8px; width: 100%; }
.ds-tbl .th { border-top: 0; padding: 9px 14px; background: var(--sunken); font-size: 11.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ds-tbl .tr.aged { background: #FFF8F4; }
.ds .flash { background: var(--brand-soft) !important; }
.ds-bar { display: block; flex: 1; height: 6px; border-radius: 3px; background: var(--sunken); overflow: hidden; min-width: 50px; }
.ds-bar em { display: block; height: 100%; width: 0; border-radius: 3px; background: #2B63D9; }
.ds-foot { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.ds .mono { font-family: var(--mono); font-size: 12px; }

/* Delivery */
.ds-dl { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; flex: 1; min-height: 0; }
.ds-list { display: flex; flex-direction: column; gap: 6px; }
.ds-list .li { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.ds-list .li.on { border-color: var(--brand); background: var(--brand-soft); }
.ds-check { display: flex; flex-direction: column; }
.ck { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; min-height: 38px; border-bottom: 1px dashed var(--line); }
.ck:last-child { border-bottom: 0; }
.ck > svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; border: 1.5px solid var(--line-2); color: transparent; transition: background .3s, border-color .3s, color .3s; }
.ck.done > svg { background: var(--brand); border-color: var(--brand); color: #fff; }
.ck span { color: var(--ink); font-weight: 500; }
.ds-btn { height: 28px; padding: 0 12px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.ds-sent { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--brand-ink); font-weight: 500; white-space: nowrap; }
.ds-sent svg { width: 14px; height: 14px; }
.ds-toast { position: absolute; right: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-pop); opacity: 0; max-width: calc(100% - 40px); }
.ds-toast svg { width: 16px; height: 16px; flex: none; color: #7fd3b2; }

/* Workshop */
.ds-jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.job { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; display: flex; flex-direction: column; gap: 8px; transition: background .5s, border-color .5s; }
.job .jt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.job .jt b { font: 600 12.5px var(--mono); padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; background: #FFFDF5; }
.job .jp { display: flex; align-items: center; gap: 10px; }
.job.flash { border-color: var(--brand); }
.job.flash .ds-bar em { background: var(--brand); }

/* Renewals */
.ds-ins { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.ds-ring { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.ds-ring svg { width: 46px; height: 46px; transform: rotate(-90deg); flex: none; }
.ds-ring b { display: block; font-size: 22px; letter-spacing: -.03em; }

/* Pointer */
.ds-cur { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 9; pointer-events: none; opacity: 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.ds-cur svg { width: 22px; height: 22px; }

@media (max-width: 640px) {
  .dstage .screens { height: 480px; }
  .ds { padding: 14px; gap: 10px; font-size: 12.5px; }
  .ds-h .m { display: none; }
  .ds-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ds-kpi { padding: 10px 12px; }
  .ds-kpi b { font-size: 22px; }
  .ds-two { grid-template-columns: minmax(0, 1fr); }
  .ds-two > .ds-card:last-child { display: none; }
  .ds-funnel .fr { grid-template-columns: 82px 1fr 36px; padding: 8px; gap: 8px; }
  .ds-funnel small { display: none; }
  .ds-tbl .tr { grid-template-columns: 1.4fr .8fr 1.1fr; padding: 10px; }
  .ds-tbl .hide-sm { display: none !important; }
  .ds-dl { grid-template-columns: minmax(0, 1fr); }
  .ds-list .li:not(.on) { display: none; }
  .ck small { display: none; }
  .ds-dl { align-content: start; gap: 8px; }
  .ds-check { padding: 10px 12px; }
  .ds-check .ds-ct { margin-bottom: 4px; }
  .ck { min-height: 32px; }
  .ds-jobs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .job:nth-child(n+4) { display: none; }
  .job { padding: 10px 12px; gap: 6px; }
  .ds-ins { grid-template-columns: 1.4fr 1fr; }
  .ds-ins > :last-child { display: none; }
  .ds-toast { left: 14px; right: 14px; bottom: 14px; font-size: 12.5px; }
}

/* CRM screens */
.ds-who { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink); font-weight: 500; white-space: nowrap; }
.ds-who .av { width: 22px; height: 22px; font-size: 9.5px; }
.ds-leads .tr.nl { overflow: hidden; }
.ds-btn.sm { height: 24px; padding: 0 9px; font-size: 11.5px; margin-top: 6px; align-self: flex-start; }
.ds-q { display: flex; flex-direction: column; gap: 0; }
.ds-q .qr { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ds-q .qr span { color: var(--muted); }
.ds-q .qr b { font-variant-numeric: tabular-nums; }
.ds-q .qr.dis b { color: var(--brand-ink); }
.ds-q .qr.tot { border-bottom: 0; padding-top: 12px; }
.ds-q .qr.tot span { color: var(--ink); font-weight: 600; }
.ds-q .qr.tot b { font-size: 18px; letter-spacing: -.02em; }
.ds .av-4 { background: #8A5AA8; } .ds .av-5 { background: #2F7F95; } .ds .av-6 { background: #9A7B2D; }
