/* Temanten Photo — STEP 05 Project + Invoice. White + grey, pastel accents only. Load after booking-jadwal-v24.css. */

/* ===== Shared ===== */
.tpj,.tpd,.tiv,.tiv-det{min-width:0;font-family:var(--ds-sans)}
.tpj-search{position:relative;flex:1 1 260px;max-width:360px;min-width:0}
.tpj-search .inp{padding-left:38px!important;background:#fff!important;width:100%;min-height:44px}
.tpj-search-i{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--ds-mid);pointer-events:none}
.tpd-card{background:#fff;border:1px solid var(--ds-line);border-radius:16px;padding:20px 22px;box-shadow:var(--ds-sh-1);min-width:0}
.tpd-card-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.tpd-card-h h3{font-size:15px;font-weight:700;color:var(--ds-charcoal);margin:0}
.tpd-eye{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--ds-mid);margin:0}
.tpd-note{margin:12px 0 0;font-size:12px;line-height:1.5;color:var(--ds-mid)}
.tpd-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:16px;align-items:start}
.tpd-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.tpd-kv,.tiv-kv{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:9px 0;border-bottom:1px solid var(--ds-line-soft);font-size:13.5px}
.tpd-kv:last-of-type,.tiv-kv:last-of-type{border-bottom:0}
.tpd-kv span,.tiv-kv span{color:var(--ds-text-2)}
.tpd-kv b,.tiv-kv b{font-weight:600;color:var(--ds-charcoal);text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.tiv-kv-total{border-top:1px solid var(--ds-line)!important;border-bottom:0!important;margin-top:6px;padding-top:12px;font-size:15px}
.tiv-kv-total b{font-size:16px}
.tpd-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}

/* ===== Project list: workflow strip ===== */
.tpj-flow{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 18px;counter-reset:f}
.tpj-flow-i{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:12px 14px;min-height:92px;background:#fff;border:1px solid var(--ds-line);border-radius:14px;text-align:left;cursor:pointer;transition:border-color .18s var(--ds-ease),background-color .18s var(--ds-ease),transform .18s var(--ds-ease)}
.tpj-flow-i:hover{border-color:var(--ds-grey-400);transform:translateY(-1px)}
.tpj-flow-i.on{border-color:var(--ds-charcoal);box-shadow:0 0 0 1px var(--ds-charcoal) inset}
.tpj-flow-i:not(:last-child)::after{content:"";position:absolute;right:-7px;top:50%;width:6px;height:6px;border-top:1.5px solid var(--ds-grey-400);border-right:1.5px solid var(--ds-grey-400);transform:translateY(-50%) rotate(45deg);z-index:1}
.tpj-flow-n{width:22px;height:22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;background:var(--ds-grey-100);color:var(--ds-text-2)}
.tpj-flow-l{font-size:12.5px;font-weight:600;line-height:1.25;color:var(--ds-ink)}
.tpj-flow-c{margin-top:auto;font-size:22px;font-weight:700;line-height:1;color:var(--ds-charcoal);font-variant-numeric:tabular-nums}
.tpj-fs-0 .tpj-flow-n{background:var(--ds-grey-100)}
.tpj-fs-1 .tpj-flow-n{background:var(--ds-blue);color:var(--ds-blue-ink)}
.tpj-fs-2 .tpj-flow-n{background:var(--ds-lav);color:var(--ds-lav-ink)}
.tpj-fs-3 .tpj-flow-n{background:var(--ds-peach);color:var(--ds-peach-ink)}
.tpj-fs-4 .tpj-flow-n{background:var(--ds-yellow);color:var(--ds-yellow-ink)}
.tpj-fs-5 .tpj-flow-n{background:var(--ds-mint);color:var(--ds-mint-ink)}

.tpj-tools,.tiv-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.tpj-tools .tj-tabs{margin:0!important}
.tpj-chips{margin-bottom:14px}

/* ===== Stage badge & progress ===== */
.tpj-st{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font-size:11.5px;font-weight:650;white-space:nowrap;background:var(--ds-grey-100);color:var(--ds-text-2)}
.tpj-st::before{content:"";width:6px;height:6px;border-radius:999px;background:currentColor;opacity:.7}
.tpj-st-1{background:var(--ds-blue);color:var(--ds-blue-ink)}
.tpj-st-2{background:var(--ds-lav);color:var(--ds-lav-ink)}
.tpj-st-3{background:var(--ds-peach);color:var(--ds-peach-ink)}
.tpj-st-4{background:var(--ds-yellow);color:var(--ds-yellow-ink)}
.tpj-st-5{background:var(--ds-mint);color:var(--ds-mint-ink)}
.tpj-bar{display:flex;align-items:center;gap:8px;width:100%;max-width:220px}
.tpj-seg{display:grid;grid-template-columns:repeat(6,1fr);gap:3px;flex:1}
.tpj-seg i{height:6px;border-radius:3px;background:var(--ds-grey-100)}
.tpj-seg i.d{background:var(--ds-charcoal)}
.tpj-seg i.c{background:var(--ds-grey-400)}
.tpj-pct{font-size:11px;font-weight:700;color:var(--ds-text-2);font-variant-numeric:tabular-nums;min-width:32px;text-align:right}

/* ===== Project list rows ===== */
.tpj-list,.tiv-list{background:#fff;border:1px solid var(--ds-line);border-radius:16px;box-shadow:var(--ds-sh-1);overflow:hidden}
.tpj-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.75fr) minmax(0,1.5fr) minmax(0,.95fr) minmax(0,1.7fr) 72px;gap:14px;align-items:center;padding:14px 18px;border-bottom:1px solid var(--ds-line-soft);transition:background-color .15s}
.tpj-arch .tpj-row{grid-template-columns:minmax(0,1.5fr) repeat(4,minmax(0,.9fr)) 120px}
.tpj-row:last-child{border-bottom:0}
.tpj-row:not(.tpj-head):hover{background:var(--ds-off)}
.tpj-head{background:var(--ds-off);padding-top:11px;padding-bottom:11px}
.tpj-head span,.tiv-head span{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--ds-mid)}
.tpj-row.is-over{box-shadow:inset 3px 0 0 var(--ds-rose-ink)}
.tpj-row.is-warn{box-shadow:inset 3px 0 0 var(--ds-yellow-ink)}
.tpj-name,.tiv-name{display:flex;flex-direction:column;gap:2px;min-width:0;text-decoration:none!important}
.tpj-name b,.tiv-name b{font-size:14px;font-weight:650;color:var(--ds-charcoal);overflow-wrap:anywhere}
.tpj-name:hover b,.tiv-name:hover b{text-decoration:underline;text-underline-offset:3px}
.tpj-name small,.tiv-name small{font-size:12px;color:var(--ds-mid);overflow-wrap:anywhere}
.tpj-cell,.tiv-cell{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;font-size:13px;color:var(--ds-ink);font-variant-numeric:tabular-nums}
.tpj-cell small,.tiv-cell small{font-size:11.5px;color:var(--ds-mid);line-height:1.35}
.tpj-prog .tt-badge,.tpd .tt-badge{max-width:100%;white-space:normal;line-height:1.3;font-family:var(--ds-sans)!important;font-size:11px!important;letter-spacing:0!important;padding:3px 8px!important;border-radius:8px!important}
.tpj-dl{font-weight:600}
.tpj-dl-s{font-weight:600}
.tpj-cell small.tpj-dl-over{color:var(--ds-rose-ink)}
.tpj-cell small.tpj-dl-soon{color:var(--ds-yellow-ink)}
.tpj-cell small.tpj-dl-done{color:var(--ds-mint-ink)}
.tpj-go{display:inline-flex;align-items:center;justify-content:flex-end;gap:2px;min-height:40px;font-size:12.5px;font-weight:600;color:var(--ds-text-2)!important;text-decoration:none!important}
.tpj-go:hover{color:var(--ds-charcoal)!important}
.tpj-act{display:flex;justify-content:flex-end}

/* checklist */
.tpj-chks{display:flex;flex-wrap:wrap;gap:6px}
.tpj-chk{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:4px 10px 4px 7px;border:1px solid var(--ds-line);border-radius:999px;background:#fff;cursor:pointer;font-size:12px;font-weight:600;color:var(--ds-text-2);transition:border-color .15s,background-color .15s}
.tpj-chk:hover{border-color:var(--ds-grey-400)}
.tpj-chk.on{background:var(--ds-grey-50);border-color:var(--ds-grey-300);color:var(--ds-charcoal)}
.tpj-chk.off{opacity:.45;cursor:not-allowed}
.tpj-chk .tk-cb{width:16px!important;height:16px!important;margin:0}
.tpj-chk-d{font-size:10.5px;font-weight:500;color:var(--ds-mid)}
.tpj-chk-d:empty{display:none}

/* ===== Project detail ===== */
.tpd-flow{padding:22px 24px}
.tpd-flow-h{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.tpd-stage{font-family:var(--ds-serif)!important;font-size:30px!important;font-weight:600;line-height:1.1;margin:6px 0 4px;color:var(--ds-charcoal)}
.tpd-sub{margin:0;font-size:13px;color:var(--ds-text-2)}
.tpd-pct{display:flex;flex-direction:column;align-items:flex-end}
.tpd-pct b{font-size:30px;font-weight:700;line-height:1;color:var(--ds-charcoal);font-variant-numeric:tabular-nums}
.tpd-pct span{font-size:11px;color:var(--ds-mid);text-transform:uppercase;letter-spacing:.1em;margin-top:4px}
.tpd-track{height:8px;border-radius:999px;background:var(--ds-grey-100);margin:18px 0 22px;overflow:hidden}
.tpd-track i{display:block;height:100%;background:var(--ds-charcoal);border-radius:999px;transition:width .5s var(--ds-ease)}
.tpd-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.tpd-step{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.tpd-step:not(:last-child)::after{content:"";position:absolute;top:14px;left:34px;right:-6px;height:2px;background:var(--ds-grey-100)}
.tpd-step.done:not(:last-child)::after{background:var(--ds-charcoal)}
.tpd-dot{position:relative;z-index:1;width:28px;height:28px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;background:#fff;border:1.5px solid var(--ds-grey-300);color:var(--ds-mid)}
.tpd-step.done .tpd-dot{background:var(--ds-charcoal);border-color:var(--ds-charcoal);color:#fff}
.tpd-step.cur .tpd-dot{border-color:var(--ds-charcoal);color:var(--ds-charcoal);box-shadow:0 0 0 4px var(--ds-grey-100)}
.tpd-step-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.tpd-step-t b{font-size:12.5px;font-weight:650;line-height:1.25;color:var(--ds-ink)}
.tpd-step.next .tpd-step-t b{color:var(--ds-mid)}
.tpd-step-t small{font-size:11px;color:var(--ds-mid)}
.tpd .tpj-chks{gap:8px}
.tpd .tpj-chk{min-height:44px;padding:6px 14px 6px 10px;font-size:13px}
.tpd .tpj-chk .tk-cb{width:18px!important;height:18px!important}
.tpd-done{display:flex;flex-direction:column;align-items:flex-start;gap:10px;font-size:13.5px;color:var(--ds-text-2)}
.tpd-done p{margin:0}
.tpd-dlbox{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:12px;background:var(--ds-off);border:1px solid var(--ds-line-soft)}
.tpd-dlbox b{font-size:15px;color:var(--ds-charcoal)}
.tpd-dlbox span{font-size:12.5px;font-weight:600;color:var(--ds-text-2)}
.tpd-dl-over{background:var(--ds-rose);border-color:transparent}.tpd-dl-over span{color:var(--ds-rose-ink)}
.tpd-dl-soon{background:var(--ds-yellow);border-color:transparent}.tpd-dl-soon span{color:var(--ds-yellow-ink)}
.tpd-dl-done{background:var(--ds-mint);border-color:transparent}.tpd-dl-done span{color:var(--ds-mint-ink)}

/* ===== Invoice list ===== */
.tiv-sum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}
.tiv-stat{display:flex;flex-direction:column;gap:8px;padding:16px 18px;background:#fff;border:1px solid var(--ds-line);border-radius:14px;position:relative;overflow:hidden;min-width:0}
.tiv-stat::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--ds-grey-100)}
.tiv-stat.tiv-yellow::before{background:var(--ds-yellow)}.tiv-stat.tiv-blue::before{background:var(--ds-blue)}
.tiv-stat.tiv-peach::before{background:var(--ds-peach)}.tiv-stat.tiv-rose::before{background:var(--ds-rose)}
.tiv-stat-l{font-size:12px;color:var(--ds-mid)}
.tiv-stat-v{font-size:20px;font-weight:700;color:var(--ds-charcoal);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.tiv-tabs{margin:0!important}
.tiv-search{max-width:300px}
.tiv-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr) minmax(0,1fr) minmax(0,1fr) minmax(0,.9fr) minmax(0,1fr) minmax(0,1.6fr);gap:14px;align-items:center;padding:14px 18px;border-bottom:1px solid var(--ds-line-soft)}
.tiv-row:last-child{border-bottom:0}
.tiv-row:not(.tiv-head):hover{background:var(--ds-off)}
.tiv-head{background:var(--ds-off);padding-top:11px;padding-bottom:11px}
.tiv-name small,.tiv-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px}
.tiv-num>span:first-child{font-weight:600}
.tiv-bar{display:block;width:100%;max-width:140px;height:5px;border-radius:999px;background:var(--ds-grey-100);overflow:hidden}
.tiv-bar i{display:block;height:100%;background:var(--ds-mint-ink);border-radius:999px}
.tiv-badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:11.5px;font-weight:650;line-height:1.35;background:var(--ds-grey-100);color:var(--ds-text-2)}
.tiv-badge::before{content:"";width:6px;height:6px;border-radius:999px;background:currentColor;opacity:.7;flex:none}
.tiv-badge.tiv-mint{background:var(--ds-mint);color:var(--ds-mint-ink)}
.tiv-badge.tiv-rose{background:var(--ds-rose);color:var(--ds-rose-ink)}
.tiv-badge.tiv-yellow{background:var(--ds-yellow);color:var(--ds-yellow-ink)}
.tiv-act{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.tiv-act .btn-outline,.tiv-act .btn-gold{min-height:36px;padding:6px 12px!important;font-size:12.5px!important;white-space:nowrap}

/* ===== Invoice detail ===== */
.tiv-hero{padding:22px 24px}
.tiv-hero-h{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}
.tiv-hero-st{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tiv-hero-act{display:flex;flex-wrap:wrap;gap:8px}
.tiv-hero-n{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.tiv-hero-n>div{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:12px;background:var(--ds-off);border:1px solid var(--ds-line-soft);min-width:0}
.tiv-hero-n span{font-size:12px;color:var(--ds-mid)}
.tiv-hero-n b{font-size:20px;font-weight:700;color:var(--ds-charcoal);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.tiv-hero-n .tm-money,.tiv-kv-total .tm-money,.tiv-num>span:first-child .tm-money{font-size:inherit!important;font-weight:inherit!important;color:inherit!important}
.tiv-hero-n .due{background:var(--ds-yellow);border-color:transparent}.tiv-hero-n .due b{color:var(--ds-yellow-ink)}
.tiv-hero-n .paid{background:var(--ds-mint);border-color:transparent}.tiv-hero-n .paid b{color:var(--ds-mint-ink)}
.tiv-hero-bar{display:flex;align-items:center;gap:10px;margin-top:14px}
.tiv-hero-bar .tiv-bar{max-width:none;height:7px;flex:1}
.tiv-hero-bar small{font-size:12px;font-weight:600;color:var(--ds-text-2);white-space:nowrap}
.tiv-tl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.tiv-tl li{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:12px;align-items:start;padding:8px 0 14px}
.tiv-tl li:not(:last-child)::after{content:"";position:absolute;left:10px;top:30px;bottom:0;width:2px;background:var(--ds-grey-100)}
.tiv-tl-dot{width:22px;height:22px;border-radius:999px;border:1.5px solid var(--ds-grey-300);background:#fff;display:inline-flex;align-items:center;justify-content:center;color:#fff}
.tiv-tl li.ok .tiv-tl-dot{background:var(--ds-mint-ink);border-color:var(--ds-mint-ink)}
.tiv-tl-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.tiv-tl-t b{font-size:13px;font-weight:650;color:var(--ds-ink)}
.tiv-tl li:not(.ok) .tiv-tl-t b{color:var(--ds-mid)}
.tiv-tl-t small{font-size:11.5px;color:var(--ds-mid)}
.tiv-tl-v{font-size:12.5px;font-weight:600;color:var(--ds-text-2);font-variant-numeric:tabular-nums;text-align:right;overflow-wrap:anywhere}
.tiv-xitems{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.tiv-xrow{display:grid;grid-template-columns:minmax(0,1fr) 9.5rem 40px;gap:8px;align-items:center}
.tiv-xrow .inp{min-width:0;width:100%}
.tiv-xamt{font-variant-numeric:tabular-nums}

/* ===== Invoice preview toolbar (public/admin invoice page) ===== */
.no-print.tiv-bar{position:sticky;top:8px;z-index:30;height:auto!important;min-height:0;overflow:visible!important;padding:10px 12px;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid var(--ds-line);border-radius:16px;box-shadow:var(--ds-sh-2);font-family:var(--ds-sans)}
@media (min-width:641px){.no-print.tiv-bar{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:8px}.no-print.tiv-bar>div{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:8px!important;flex:0 1 auto!important;width:auto!important;margin:0!important}}
.tiv-bar .btn-outline,.tiv-bar .btn-gold{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.invoice-page{background:var(--ds-bg)!important}
.invoice-page .invoice-paper{border-radius:6px;box-shadow:0 10px 40px rgba(20,20,20,.08)!important}

/* ===== Tablet ===== */
@media (max-width:1199px){
  .tpj-row{grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,1.4fr) minmax(0,1fr) 72px}
  .tpj-row>.tpj-cks{grid-column:1/-1;grid-row:2}
  .tpj-head>span:nth-child(5){display:none}
  .tiv-row{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr) minmax(0,1fr) minmax(0,1fr) minmax(0,.9fr) minmax(0,1fr)}
  .tiv-row>.tiv-act{grid-column:1/-1;justify-content:flex-start}
  .tiv-head>span:last-child{display:none}
}
@media (max-width:1023px){
  .tpj-flow{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tpj-flow-i:nth-child(3)::after{display:none}
  .tiv-sum{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tpd-grid{grid-template-columns:minmax(0,1fr)}
}

/* ===== Mobile: cards ===== */
@media (max-width:767px){
  .tpj-flow{gap:6px;margin-bottom:14px}
  .tpj-flow-i{min-height:78px;padding:10px;border-radius:12px}
  .tpj-flow-l{font-size:11.5px}
  .tpj-flow-c{font-size:18px}
  .tpj-flow-i::after{display:none}
  .tpj-tools,.tiv-tools{flex-direction:column;align-items:stretch}
  .tpj-tools .tj-tab{min-height:44px;flex:1;justify-content:center}
  .tpj-tools .tj-tabs{display:flex!important}
  .tpj-search,.tiv-search{max-width:none;flex:1 1 auto}
  .tpj-list,.tiv-list{background:transparent;border:0;box-shadow:none;overflow:visible;display:flex;flex-direction:column;gap:10px}
  .tpj-head,.tiv-head{display:none!important}
  .tpj-row,.tpj-arch .tpj-row,.tiv-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 14px;padding:14px 16px;background:#fff;border:1px solid var(--ds-line)!important;border-radius:14px}
  .tpj-row.is-over{box-shadow:inset 3px 0 0 var(--ds-rose-ink)}
  .tpj-name,.tiv-name{grid-column:1/-1}
  .tpj-name b,.tiv-name b{font-size:15px}
  .tpj-cell[data-label]::before,.tiv-cell[data-label]::before{content:attr(data-label);font-size:11px;font-weight:600;color:var(--ds-mid);font-variant-numeric:normal}
  .tpj-prog,.tpj-row>.tpj-cks{grid-column:1/-1;grid-row:auto}
  .tpj-row:not(.tpj-head)>:nth-child(2){order:1}
  .tpj-row:not(.tpj-head)>:nth-child(4){order:2}
  .tpj-row>.tpj-prog{order:3}
  .tpj-row>.tpj-cks{order:4}
  .tpj-row>.tpj-go{order:5}
  .tpj-arch .tpj-row>*{order:0!important}
  .tpj-bar{max-width:none}
  .tpj-chk{min-height:44px;padding:6px 12px 6px 9px;font-size:12.5px}
  .tpj-chk .tk-cb{width:18px!important;height:18px!important}
  .tpj-go{grid-column:1/-1;justify-content:center;min-height:44px;border-top:1px solid var(--ds-line-soft);margin:0 -16px -14px;padding:0 16px}
  .tpj-act{grid-column:1/-1}
  .tpj-act .btn-outline{width:100%;min-height:44px;justify-content:center}
  .tiv-sum{gap:8px}
  .tiv-stat{padding:12px 14px}
  .tiv-stat-v{font-size:16px}
  .tiv-row>.tiv-act{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tiv-act .btn-outline,.tiv-act .btn-gold{min-height:44px;width:100%;justify-content:center;white-space:normal}
  .tiv-bar{max-width:none}
  .tpd-card,.tpd-flow,.tiv-hero{padding:16px}
  .tpd-stage{font-size:26px!important}
  .tpd-pct b{font-size:24px}
  .tpd-steps{grid-template-columns:minmax(0,1fr);gap:0}
  .tpd-step{flex-direction:row;align-items:center;gap:12px;padding:6px 0 14px}
  .tpd-step:not(:last-child)::after{top:34px;bottom:-2px;left:13px;right:auto;width:2px;height:auto}
  .tpd-step-t{flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 10px;flex:1}
  .tpd .tpj-chks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .tpd .tpj-chk{justify-content:flex-start}
  .tiv-hero-n{grid-template-columns:minmax(0,1fr);gap:8px}
  .tiv-hero-n>div{flex-direction:row;justify-content:space-between;align-items:baseline;padding:12px 14px}
  .tiv-hero-n b{font-size:17px}
  .tiv-hero-act{width:100%;display:grid;grid-template-columns:minmax(0,1fr)}
  .tiv-hero-act .btn-gold,.tiv-hero-act .btn-outline{width:100%;min-height:44px;justify-content:center}
  .tiv-xrow{grid-template-columns:minmax(0,1fr) 7.5rem 40px}
  .tiv-det .tpd-card .btn-outline{min-height:44px}
  .tpd-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .tpd-links .btn-outline{justify-content:center;min-height:44px}
}
@media (max-width:640px){
  .no-print.tiv-bar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;position:static!important;padding:8px}
  .no-print.tiv-bar>div{display:contents!important}
  .no-print.tiv-bar .btn-outline,.no-print.tiv-bar .btn-gold{width:100%;min-width:0;padding-left:8px!important;padding-right:8px!important;font-size:12.5px!important;white-space:normal;text-align:center}
}
@media (max-width:380px){
  .tpj-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tiv-sum{grid-template-columns:minmax(0,1fr)}
  .tiv-xrow{grid-template-columns:minmax(0,1fr) 6.5rem 40px}
}
@media print{.no-print.tiv-bar{display:none!important}}
