/* Clients › Contracts & anniversaries (0213). Brand: yellow, black, white, greys;
   product colours as the product pills. One stylesheet for Mac, old desktop and iPhone. */
.tpk-sec { margin: 24px 0 8px; background: #fff; border: 1px solid #E4E4E4; border-radius: 14px; padding: 18px 20px; }
.tpk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tpk-head h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: #2A2A2A; }
.tpk-grow { flex: 1 1 auto; }
.tpk-empty { color: #6B7280; font-size: 14px; margin: 8px 2px 14px; }
.tpk-mute { color: #9A9A9A; }
.tpk-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 12px; border-radius: 8px; border: 1px solid #E4E4E4; background: #fff;
  color: #000; font: 600 13px/1.2 -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap; }
.tpk-btn:hover { background: #F1F1F1; }
.tpk-btn.is-primary { background: #F5C800; border-color: #F5C800; }
.tpk-btn.is-primary:hover { background: #D9B000; }
.tpk-btn.is-danger { color: #B91C1C; }
.tpk-btn:disabled { opacity: .5; cursor: default; }

.tpk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tpk-stat { border: 1px solid #E4E4E4; border-radius: 12px; padding: 10px 14px; }
.tpk-stat b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tpk-stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #555; font-weight: 600; }
.tpk-stat.is-red { border-color: rgba(239,68,68,.45); } .tpk-stat.is-red b { color: #B91C1C; }
.tpk-stat.is-amber { border-color: rgba(249,115,22,.45); } .tpk-stat.is-amber b { color: #C2410C; }

.tpk-pp { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; border-radius: 6px; padding: 3px 8px; white-space: nowrap; background: #EDE9FE; color: #5B21B6; vertical-align: middle; }
.tpk-pp.tpk-WRKFRCE { background: #0A0A0A; color: #F5C800; }
.tpk-pp.tpk-BLNCD { background: #1D4ED8; color: #fff; }
.tpk-pp.tpk-NETWRK { background: #6D28D9; color: #fff; }
.tpk-pp.tpk-AIASSIST { background: #0F766E; color: #fff; }
.tpk-pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.tpk-pill.is-red { background: rgba(239,68,68,.15); color: #B91C1C; }
.tpk-pill.is-amber { background: rgba(249,115,22,.15); color: #C2410C; }
.tpk-pill.is-green { background: rgba(34,197,94,.15); color: #15803D; }
.tpk-pill.is-yellow { background: rgba(245,200,0,.25); color: #7A5E00; }
.tpk-pill.is-grey { background: #F1F1F1; color: #444; }

/* table + runway */
.tpk-wrap { overflow-x: auto; }
.tpk-t { width: 100%; min-width: 980px; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.tpk-t col.c1 { width: 200px; } .tpk-t col.c2 { width: 108px; } .tpk-t col.c3 { width: 170px; } .tpk-t col.c4 { width: 175px; }
.tpk-t th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #555; background: #FAFAFA; padding: 9px 10px; border-bottom: 1px solid #E4E4E4; font-weight: 600; vertical-align: bottom; }
.tpk-t td { padding: 10px; border-bottom: 1px solid #F1F1F1; vertical-align: middle; font-variant-numeric: tabular-nums; }
.tpk-t td small { display: block; font-size: 12px; color: #6B7280; margin-top: 2px; }
.tpk-t td:first-child small { margin-left: 18px; }
.tpk-t tr.tpk-client td { padding: 14px 10px 4px; border-bottom: 0; font-weight: 700; font-size: 15px; }
.tpk-t tr.tpk-client td span { font-weight: 400; color: #6B7280; font-size: 13px; margin-left: 8px; }
.tpk-t tr.tpk-row { cursor: pointer; }
.tpk-t tr.tpk-row:hover td { background: #FAFAFA; }
.tpk-t tr.tpk-row:focus-visible { outline: 2px solid #F5C800; outline-offset: -2px; }
.tpk-chev { display: inline-block; width: 18px; color: #9A9A9A; font-size: 11px; }
.tpk-t .tpk-rw { padding-left: 4px; padding-right: 4px; }
.tpk-axis { position: relative; height: 16px; margin-top: 6px; }
.tpk-axis span { position: absolute; transform: translateX(-50%); font-size: 10px; color: #6B7280; font-weight: 500; text-transform: none; letter-spacing: 0; }
.tpk-axis span.is-yr { color: #000; font-weight: 700; }
.tpk-axis em { position: absolute; top: -20px; transform: translateX(-50%); font-style: normal; background: #EF4444; color: #fff; font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; text-transform: none; letter-spacing: 0; }
.tpk-rway { position: relative; height: 30px; }
.tpk-rway i { position: absolute; display: block; }
.tpk-base { left: 0; right: 0; top: 14px; height: 2px; background: #F1F1F1; }
.tpk-bar { top: 9px; height: 12px; border-radius: 4px; background: #9A9A9A; }
.tpk-bar.tpk-WRKFRCE { background: #0A0A0A; } .tpk-bar.tpk-BLNCD { background: #1D4ED8; } .tpk-bar.tpk-NETWRK { background: #6D28D9; } .tpk-bar.tpk-AIASSIST { background: #0F766E; } .tpk-bar.tpk-OTHER { background: #7C3AED; }
.tpk-bar.is-rolling { background: repeating-linear-gradient(90deg, #D4D4D4 0 5px, transparent 5px 8px); }
.tpk-mk { top: 8px; width: 11px; height: 11px; transform: translateX(-50%) rotate(45deg); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.tpk-mk.is-anni { background: #F5C800; }
.tpk-mk.is-notice { background: #F97316; }
.tpk-mk.is-end { background: #000; border-radius: 2px; }
.tpk-mk.is-review { background: #fff; border-color: #000; box-shadow: none; width: 9px; height: 9px; top: 10px; }
.tpk-today { top: -12px; bottom: -12px; width: 2px; background: #EF4444; }
.tpk-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #555; margin-top: 12px; align-items: center; }
.tpk-legend .tpk-mk { position: relative; display: inline-block; top: 1px; left: 0; margin: 0 8px 0 2px; transform: rotate(45deg); }
.tpk-lk { display: inline-block; width: 2px; height: 12px; background: #EF4444; margin-right: 6px; vertical-align: -2px; }

/* expanded key dates */
.tpk-t tr.tpk-exp td { background: #FAFAFA; padding: 12px 10px; }
.tpk-kd { display: flex; flex-wrap: wrap; gap: 8px 0; align-items: stretch; }
.tpk-k { padding: 4px 14px; border-left: 2px solid #E4E4E4; min-width: 120px; }
.tpk-k:first-child { border-left: 0; padding-left: 0; }
.tpk-k small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: #6B7280; font-weight: 700; margin: 0 !important; }
.tpk-k b { display: block; font-size: 14px; margin-top: 2px; }
.tpk-k span { display: block; font-size: 12px; color: #6B7280; }
.tpk-k.is-past b { color: #6B7280; font-weight: 500; }
.tpk-k.is-hot { border-left-color: #EF4444; } .tpk-k.is-hot b { color: #B91C1C; }
.tpk-k.is-acts { display: flex; gap: 6px; align-items: center; margin-left: auto; border-left: 0; }
.tpk-notes { font-size: 12.5px; color: #555; margin: 8px 0 0; white-space: pre-wrap; }

/* no agreement on file */
.tpk-miss { margin-top: 16px; border-top: 1px solid #F1F1F1; padding-top: 12px; }
.tpk-miss > small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #555; font-weight: 700; margin-bottom: 8px; }
.tpk-miss > div { display: flex; flex-wrap: wrap; gap: 6px; }
.tpk-mchip { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed #D4D4D4; background: #fff; border-radius: 999px; padding: 4px 6px 4px 12px; font: 500 13px -apple-system, "Segoe UI", Roboto, sans-serif; color: #2A2A2A; cursor: pointer; }
.tpk-mchip em { font-style: normal; font-weight: 700; color: #7A5E00; padding: 0 4px; }
.tpk-mchip:hover { border-color: #F5C800; }

/* phone / narrow: cards by next date */
.tpk-cards { display: flex; flex-direction: column; gap: 10px; }
.tpk-card { border: 1px solid #E4E4E4; border-radius: 12px; background: #fff; overflow: hidden; }
.tpk-card.is-red { box-shadow: inset 4px 0 0 #EF4444; border-color: rgba(239,68,68,.45); }
.tpk-card.is-amber { box-shadow: inset 4px 0 0 #F97316; }
.tpk-card.is-green, .tpk-card.is-yellow { box-shadow: inset 4px 0 0 #22C55E; }
.tpk-cardbtn { display: flex; width: 100%; gap: 10px; text-align: left; background: none; border: 0; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; }
.tpk-cmain { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.tpk-cmain > b { font-size: 15px; }
.tpk-cwhat { font-size: 13px; color: #2A2A2A; }
.tpk-cd { text-align: right; }
.tpk-cd b { display: block; font-size: 24px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.tpk-cd small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #6B7280; font-weight: 700; }
.tpk-cbody { padding: 4px 14px 14px; }
.tpk-cbody .tpk-kd { flex-direction: column; }
.tpk-cbody .tpk-k { border-left: 0; padding: 4px 0; }
.tpk-cbody .tpk-k.is-acts { margin-left: 0; }

/* Mac client page card rows */
.tpk-crow { gap: 10px; }
.tpk-crow:disabled { cursor: default; opacity: 1; }

/* editor */
.tpk-modal { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tpk-dlg { background: #fff; border-radius: 14px; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  font: 14px -apple-system, "Segoe UI", Roboto, sans-serif; color: #000; }
.tpk-dlg h3 { margin: 0 0 14px; font-size: 18px; }
.tpk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.tpk-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #555; font-weight: 600; }
.tpk-f.is-wide { grid-column: 1 / -1; }
.tpk-f input:not([type=checkbox]), .tpk-f select, .tpk-f textarea { font: 14px -apple-system, "Segoe UI", Roboto, sans-serif; padding: 8px 10px; border: 1px solid #D4D4D4; border-radius: 8px; background: #fff; color: #000; min-height: 38px; width: 100%; box-sizing: border-box; }
.tpk-f input:focus, .tpk-f select:focus, .tpk-f textarea:focus { outline: 2px solid #F5C800; outline-offset: 0; border-color: #F5C800; }
.tpk-inline { display: flex; align-items: center; gap: 8px; color: #000; font-weight: 400; }
.tpk-inline input[type=number] { width: 80px !important; }
.tpk-foot { display: flex; gap: 8px; margin-top: 18px; align-items: center; }

@media (max-width: 760px) {
  .tpk-sec { padding: 14px; border-radius: 12px; }
  .tpk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpk-grid { grid-template-columns: 1fr; }
}
