/* Admin dispatch board (ttc-dispatch.js) */
.ta-layout:has(.tdp-main){max-width:1640px}
.tdp-main{gap:16px!important}
.tdp-head{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.tdp-kicker{font-size:13px;color:#8FA6AD;font-weight:600}
.tdp-updated{font-size:13px;font-weight:500}
#ttc-feed-app .tdp-head .ta-h1{margin:4px 0 0!important}
.tdp-tools{margin-left:auto;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.tdp-pick{display:flex;align-items:center;gap:8px;height:44px;padding:0 6px 0 12px;border-radius:12px;border:1px solid #23363D;background:#15242A;font-size:14px;color:#B9CCD1;margin:0}
#ttc-feed-app .tdp-select{background:transparent;border:0;color:#E8F1F3;font:600 14px Inter,sans-serif;max-width:220px;height:40px;padding:0 4px;margin:0;color-scheme:dark}
.tdp-search{max-width:420px}
.tdp-tabs{display:none}
.tdp-board{display:grid;grid-template-columns:repeat(5,minmax(210px,1fr));gap:12px;overflow-x:auto;align-items:start;padding-bottom:4px}
.tdp-col{background:#0E191D;border:1px solid #1A2A30;border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:10px;min-width:0}
.tdp-col-head{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px;padding:2px 2px 0}
.tdp-col.on_site .tdp-col-head>span:first-child{color:#F2B26B}
.tdp-col.review .tdp-col-head>span:first-child{color:#3FD2E8}
.tdp-col.completed .tdp-col-head>span:first-child{color:#6FDCA0}
.tdp-n{color:#8FA6AD;font-weight:500}
.tdp-empty{font-size:13px;color:#8FA6AD;padding:8px 4px;margin:0!important}
.tdp-card{background:#111D22;border:1px solid #1E2F36;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:4px;min-width:0}
.tdp-card.on-site{border-color:#5A4325}
.tdp-card.submitted{border-color:#1F4A52}
.tdp-card.completed{opacity:.85}
.tdp-card.declined{border-color:#5A2A2F}
.tdp-label{display:flex;align-items:center;gap:6px;font-size:12px;color:#8FA6AD;font-weight:600;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tdp-label .tf-ic{width:14px;height:14px;flex-shrink:0}
.tdp-dot{width:8px;height:8px;border-radius:50%;background:#3FD2E8;flex-shrink:0}
#ttc-feed-app .tdp-card h3{margin:0;font:600 14px/1.35 Inter,sans-serif;color:#E8F1F3;overflow-wrap:anywhere}
#ttc-feed-app .tdp-card h3 a{color:#E8F1F3}
#ttc-feed-app .tdp-card h3 a:hover{color:#7FE3F2}
#ttc-feed-app .tdp-sub{margin:0!important;font-size:13px;color:#8FA6AD;overflow-wrap:anywhere}
.tdp-who{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:13px;color:#C9D8DC;min-width:0}
.tdp-who>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.tdp-who .tf-av{flex-shrink:0}
.tdp-pill{font-size:11px;font-weight:700;border-radius:6px;padding:2px 6px}
.tdp-pill.hold{background:#F2B26B22;color:#F2B26B}
.tdp-reason{margin:4px 0 0!important;font-size:13px;color:#FFB3B3;font-style:italic}
.tdp-actions{display:flex;gap:8px;margin-top:8px;align-items:center;flex-wrap:wrap}
#ttc-feed-app .tdp-assign{margin-top:8px;width:100%;min-height:36px;border-radius:10px;border:1px dashed #2A3F46;background:transparent;color:#3FD2E8;font:600 13px Inter,sans-serif;display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 10px;cursor:pointer}
#ttc-feed-app .tdp-actions .tdp-assign{margin-top:0;flex:1}
#ttc-feed-app .tdp-assign:hover{background:#3FD2E80F;border-color:#3FD2E8}
.tdp-assign .tf-ic{width:16px;height:16px}
#ttc-feed-app .tdp-link{background:none;border:0;padding:6px 4px;color:#3FD2E8!important;font:600 13px Inter,sans-serif;cursor:pointer;min-height:32px;display:inline-flex;align-items:center}
#ttc-feed-app .tdp-approve{margin-top:8px;width:100%;min-height:36px;border-radius:10px;border:0;background:#3FD2E8;color:#062026;font:700 13px Inter,sans-serif;cursor:pointer}
#ttc-feed-app .tdp-approve:hover{background:#7FE3F2}
.tdp-progress{margin-top:8px;display:flex;flex-direction:column;gap:4px}
.tdp-bar{height:6px;border-radius:3px;background:#23363D;overflow:hidden}
.tdp-bar i{display:block;height:100%;border-radius:3px;background:#F2B26B;width:0}
.tdp-progress small{font-size:12px;color:#8FA6AD}
/* Crew availability */
.tdp-crew-wrap{padding:16px!important;display:flex;flex-direction:column;gap:12px}
.tdp-crew-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#ttc-feed-app .tdp-crew-head h2{margin:0;font:700 16px 'Space Grotesk',Inter,sans-serif}
.tdp-crew-count{font-size:13px;color:#8FA6AD}
.tdp-crew-head .ta-search{margin-left:auto;height:38px;max-width:300px;flex:1 1 220px}
.tdp-crew{display:flex;gap:12px;flex-wrap:wrap}
.tdp-crew-card{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:12px;background:#0E191D;color:#E8F1F3!important;min-width:0;max-width:100%}
.tdp-crew-card:hover{background:#15242A}
.tdp-crew-main{display:flex;flex-direction:column;min-width:0}
.tdp-crew-main strong{font-size:14px;font-weight:600}
.tdp-crew-main small{font-size:12px;color:#8FA6AD;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tdp-crew-main small.busy{color:#F2B26B}
.tdp-crew-main small.free{color:#6FDCA0}
.tdp-crew-main small.tdp-status{color:#3FD2E8}
/* Dialogs */
#ttc-feed-app .tdp-dlg input:not([type=checkbox]){width:100%;box-sizing:border-box;height:44px;border-radius:12px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:15px Inter,sans-serif;padding:0 12px;margin:0;color-scheme:dark}
#ttc-feed-app dialog.tdp-new,#ttc-feed-app dialog.tdp-review-dlg{width:min(620px,calc(100vw - 32px))}
.tdp-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tdp-review{display:flex;flex-direction:column;gap:10px}
#ttc-feed-app .tdp-review h3{margin:6px 0 0;font:700 14px Inter,sans-serif;color:#C9D8DC}
.tdp-review-head{display:flex;align-items:center;gap:10px}
.tdp-review-head div{display:flex;flex-direction:column}
.tdp-review-head small{color:#8FA6AD;font-size:12px}
.tdp-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.tdp-photo{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#0E191D;border:1px solid #23363D;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#8FA6AD!important;font-size:12px}
.tdp-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tdp-photo span{position:relative;z-index:1}
a.tdp-photo span{position:absolute;left:6px;bottom:6px;background:#000b;color:#fff;border-radius:6px;padding:2px 6px;font-weight:600}
.tdp-photo.missing{border-style:dashed}
.tdp-photo.missing small{color:#F2B26B;font-weight:600}
.tdp-checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:14px;color:#8FA6AD}
.tdp-checks li{display:flex;align-items:center;gap:8px}
.tdp-checks li.done{color:#E8F1F3}
.tdp-checks .tf-ic{width:16px;height:16px;flex-shrink:0;color:#FF8A8A}
.tdp-checks li.done .tf-ic{color:#6FDCA0}
#ttc-feed-app .tdp-notes{margin:0!important;font-size:14px;white-space:pre-wrap;background:#0E191D;border-radius:10px;padding:10px 12px;color:#C9D8DC}
/* Phones: one column at a time, picked from tabs like Facebook's chips */
@media(max-width:759px){
  .tdp-main{padding:14px 12px 0!important}
  .tdp-head{align-items:flex-start}
  .tdp-tools{margin-left:0;width:100%}
  .tdp-pick{flex:1 1 100%}
  #ttc-feed-app .tdp-select{flex:1;max-width:none}
  .tdp-tools .ta-btn{flex:1 1 auto;justify-content:center}
  .tdp-search{max-width:none}
  .tdp-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -12px;padding:0 12px}
  .tdp-tabs::-webkit-scrollbar{display:none}
  #ttc-feed-app .tdp-tab{flex-shrink:0;height:36px;padding:0 14px;border-radius:18px;border:0;background:#15242A;color:#E8F1F3;font:600 14px Inter,sans-serif;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
  .tdp-tab span{color:#8FA6AD;font-weight:500}
  #ttc-feed-app .tdp-tab[aria-selected="true"]{background:#3FD2E8;color:#062026}
  .tdp-tab[aria-selected="true"] span{color:#062026}
  .tdp-board{display:block;overflow:visible}
  .tdp-col{display:none;background:none;border:0;padding:0}
  .tdp-col.on{display:flex}
  .tdp-col-head{display:none}
  .tdp-crew-head .ta-search{margin-left:0;max-width:none;flex-basis:100%}
  .tdp-crew{flex-direction:column}
  .tdp-grid{grid-template-columns:1fr}
}
/* Site record by TID */
.tdp-label a{color:#8FA6AD!important}
.tdp-label a:hover{color:#3FD2E8!important;text-decoration:underline}
.tsr-main{gap:18px!important}
.tsr-top{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.tsr-search{flex:0 1 380px;margin-left:auto}
.tsr-main>.tsr-search{margin-left:0;flex:none;max-width:520px}
.tsr-title{min-width:0}
.tsr-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.tsr-chips span{font-size:12px;font-weight:700;background:#15242A;border-radius:6px;padding:4px 8px;color:#E8F1F3}
.tsr-chips span.dim{color:#B9CCD1}
#ttc-feed-app .tsr-title .ta-h1{margin:0!important;font-size:28px!important;overflow-wrap:anywhere}
.tsr-cols{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.tsr-history{flex:2 1 520px;min-width:0}
.tsr-side{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:20px}
.tsr-card{padding:18px!important;display:flex;flex-direction:column;gap:10px}
.tsr-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#ttc-feed-app .tsr-head h2{margin:0;font:700 18px 'Space Grotesk',Inter,sans-serif}
.tsr-head .tsr-src{margin-left:auto}
.tsr-lbl{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#8FA6AD}
#ttc-feed-app .tsr-src{font-size:12px;color:#8FA6AD;margin:0!important}
.tsr-visit{display:flex;gap:14px;padding:14px 0;border-top:1px solid #1E2F36}
.tsr-visit .tf-av{flex-shrink:0}
.tsr-visit-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.tsr-visit-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tsr-visit-top strong{font-size:15px}
#ttc-feed-app .tsr-visit-main>p{margin:0;font-size:14px;color:#C9D8DC;overflow-wrap:anywhere}
.tsr-pill{font-size:11px;font-weight:700;border-radius:6px;padding:3px 7px;background:#23363D;color:#C9D8DC;letter-spacing:.02em}
.tsr-pill.cyan{color:#3FD2E8;background:#3FD2E824}
.tsr-pill.green{color:#6FDCA0;background:#56CC8C24}
.tsr-pill.amber{color:#F2B26B;background:#F2B26B24}
.tsr-pill.red{color:#FF8A8A;background:#FF8A8A24}
#ttc-feed-app .tsr-note{background:#0E191D;border-radius:10px;padding:8px 10px;font-size:13px!important;white-space:pre-wrap}
.tsr-notes{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:13px;color:#C9D8DC}
.tsr-notes small{color:#8FA6AD}
.tsr-dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:10px 16px;font-size:14px}
.tsr-dl dt{color:#8FA6AD}
.tsr-dl dd{margin:0;min-width:0;overflow-wrap:anywhere}
.tsr-office{font-size:11px;color:#F2B26B;font-weight:700;margin-left:6px}
.tsr-dels{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;font-size:14px}
.tsr-dels li{display:flex;align-items:center;gap:10px}
.tsr-dels li>i{width:10px;height:10px;border-radius:5px;background:#46585D;flex-shrink:0}
.tsr-dels li>i.ok{background:#6FDCA0}
#ttc-feed-app .tsr-dels li>:last-child{margin-left:auto!important;flex-shrink:0}
.tsr-links{display:flex;flex-direction:column;gap:8px;font-size:14px}
#ttc-feed-app .tsr-text{margin:0;font-size:14px;color:#C9D8DC}
.tsr-text.pre{white-space:pre-wrap}
.tsr-proj a{font-weight:600}
.tsr-list{padding:6px!important;display:flex;flex-direction:column}
.tsr-row{display:flex;align-items:center;gap:14px;padding:12px;border-radius:12px;color:#E8F1F3!important;min-width:0}
.tsr-row:hover{background:#15242A}
.tsr-tid{font-size:12px;font-weight:700;background:#15242A;border-radius:6px;padding:4px 8px;flex-shrink:0}
.tsr-row-main{flex:1;min-width:0;display:flex;flex-direction:column}
.tsr-row-main strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsr-row-main small{font-size:12px;color:#8FA6AD}
.tsr-row .tf-ic{width:18px;height:18px;color:#8FA6AD;flex-shrink:0}
@media(max-width:759px){
  .tsr-main{padding:14px 12px 0!important}
  .tsr-search{flex:1 1 100%;margin-left:0}
  #ttc-feed-app .tsr-title .ta-h1{font-size:22px!important}
  .tsr-history{flex-basis:100%}
}
