/* teachercontract.css — contract countdown on the Teacher Calendars cards  (7 Oct 2026)
   Every class starts with tc- so nothing here can collide with style.css or
   teachercalendar-v2.css. Loaded only by teachercalendar.html.

   THE STRIP (one per card, appended as the card's last child):
     tc-ok      more than 60 days left        calm blue
     tc-soon    60 days or fewer              amber
     tc-urgent  14 days or fewer              red, with a pulsing dot
     tc-over    the end date has passed       dark red, bar full
     tc-future  the start date is still ahead grey, counting down to the start
     tc-none    no dates yet (admins only)    dashed, "Set contract dates"
   The colours live in three variables on each state (--tc-fg, --tc-bg, --tc-bd),
   so a new state is three lines, not thirty.                                      */

/* ---------- the strip on the card ---------- */
.tc-strip {
  --tc-fg: #185fa5; --tc-bg: #f3f8fe; --tc-bd: #d6e6fb;
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding: 9px 12px 9px 10px;
  border: 1px solid var(--tc-bd); border-radius: 12px; background: var(--tc-bg);
  color: #0f172a; font-size: 13px; line-height: 1.25;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.tc-strip.tc-edit { cursor: pointer; }
.tc-strip.tc-edit:hover { border-color: var(--tc-fg); box-shadow: 0 6px 18px rgba(16, 24, 40, .08); }
.tc-strip.tc-edit:focus-visible { outline: 2px solid var(--primary, #0d6efd); outline-offset: 2px; }
.tc-strip.tc-edit::after {               /* a quiet pencil at the far right, visible on hover */
  content: "\f303"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; top: 6px; right: 8px; font-size: 10px; color: var(--tc-fg); opacity: 0; transition: opacity .15s;
}
.tc-strip.tc-edit:hover::after { opacity: .7; }

.tc-soon   { --tc-fg: #b54708; --tc-bg: #fff7ed; --tc-bd: #fed7aa; }
.tc-urgent { --tc-fg: #b42318; --tc-bg: #fef2f2; --tc-bd: #fecaca; }
.tc-over   { --tc-fg: #7f1d1d; --tc-bg: #fef2f2; --tc-bd: #fecaca; }
.tc-future { --tc-fg: #475467; --tc-bg: #f8fafc; --tc-bd: #e2e8f0; }
.tc-none   { --tc-fg: #64748b; --tc-bg: #fff;    --tc-bd: #cbd5e1; border-style: dashed; color: #64748b; }

.tc-ico {
  flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--tc-fg); color: #fff; font-size: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .15);
}
.tc-none .tc-ico { background: #eef2f7; color: #64748b; box-shadow: none; }

.tc-main { flex: 1 1 220px; min-width: 0; display: grid; gap: 5px; }
.tc-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--tc-fg); }
.tc-lbl small { font-weight: 600; letter-spacing: .02em; text-transform: none; opacity: .8; }
.tc-range { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; color: #0f172a; }
.tc-range b { font-weight: 600; }
.tc-range i { color: #94a3b8; font-size: 11px; }
.tc-range .tc-len { color: #64748b; font-size: 12px; }
.tc-bar { height: 5px; border-radius: 999px; background: rgba(15, 23, 42, .08); overflow: hidden; }
.tc-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--tc-fg); transition: width .5s ease; }

/* the running countdown: big number, small unit, then the clock on its own line */
.tc-count {
  flex: none; display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline;
  justify-items: end; text-align: right; min-width: 118px;
}
.tc-days { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #0f172a; line-height: 1; }
.tc-days.word { font-size: 16px; }
.tc-dl { font-size: 11px; font-weight: 600; color: #64748b; white-space: nowrap; }
.tc-clock {
  grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--tc-fg);
}
.tc-clock:empty { display: none; }
.tc-urgent .tc-clock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tc-fg); animation: tc-pulse 1.2s ease-in-out infinite; }
@keyframes tc-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tc-urgent .tc-clock::before { animation: none; } }

.tc-ext {
  flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.tc-ext i { font-size: 10px; }
.tc-ext-yes     { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.tc-ext-no      { background: #f1f5f9; color: #475467; border-color: #e2e8f0; }
.tc-ext-discuss { background: #fffaeb; color: #b54708; border-color: #fedf89; }

/* === tansinh fixed-hours BEGIN (7 Oct 2026) === the pin beside the pencil, and the header badge */
.tc-hbadge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: #0f172a; color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.tc-hbadge i { font-size: 10px; }
.tcv2-acts .card-action.tc-pin i { font-size: 13px; color: #94a3b8; transform: rotate(35deg); transition: transform .15s, color .15s; }
.tcv2-acts .card-action.tc-pin:hover i { color: #0f172a; }
.tcv2-acts .card-action.tc-pin[aria-pressed="true"] { opacity: 1; background: #0f172a; border-color: #0f172a; }   /* on: dark, always visible */
.tcv2-acts .card-action.tc-pin[aria-pressed="true"] i { color: #fff; transform: none; }
.tcv2-acts .card-action.tc-pin[aria-pressed="true"]:hover { background: #1e293b; }
.tcv2-acts .card-action.tc-pin[disabled] { cursor: progress; opacity: .6; }
.tcv2-acts .card-action.tc-pin:focus-visible { outline: 2px solid var(--primary, #0d6efd); outline-offset: 2px; }
/* a third button in the action row: the header needs more room on the right (v2 gives 84px for two) */
.tcv2-card:has(.tc-pin) .tcv2-chd { padding-right: 126px; }
@media (max-width: 600px) { .tcv2-card:has(.tc-pin) .tcv2-chd { padding-right: 120px; } }
/* === tansinh fixed-hours END === */

/* === tansinh fixed-blocks BEGIN (8 Oct 2026) === pins on the card's bars, and the Fixed-hours popup.
   Every class starts with tfx- so nothing here can collide with style.css or teachercalendar-v2.css. */

/* ---- on the card: the fixed part of a bar is a slightly darker band, underlined in the TEACHER'S colour
        (--acc is set on the card by teachercalendar-v2) over a white hairline, so it reads on any role colour ---- */
.tcv2-lane .tcv2-bk .tfx-bp { position: absolute; top: 0; bottom: 0; z-index: 0; pointer-events: none; box-sizing: border-box; background: rgba(15, 23, 42, .2); box-shadow: inset 0 -3px 0 var(--acc, #0f172a), inset 0 -4px 0 rgba(255, 255, 255, .9); }
.tcv2-lane .tcv2-bk .tcv2-bt { position: relative; z-index: 1; }

/* ---- the header badge: the measure, a WHITE pill with a short bar filled to the percent in the teacher's colour.
        Three looks: full = ink border + gold star, mid = amber, low = red. White on purpose: a dark pill hid the bar. ---- */
.tfx-hb { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid #cbd5e1; background: #fff; color: #0f172a; font-size: 11px; font-weight: 600; white-space: nowrap; cursor: default; line-height: 1.3; }
.tfx-hb small { font-weight: 500; color: #64748b; }
.tfx-bar { position: relative; flex: none; width: 46px; height: 6px; border-radius: 999px; background: rgba(15, 23, 42, .1); overflow: hidden; }
.tfx-bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 1%); border-radius: 999px; background: var(--acc, #0f172a); }
.tfx-hb.tfx-full { border-color: #0f172a; box-shadow: inset 0 0 0 .5px #0f172a; }
.tfx-hb.tfx-full::after { content: "\f005"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; color: #f59e0b; order: -1; margin-right: -2px; }   /* a gold star before the bar */
.tfx-hb.tfx-mid  { border-color: #fcd34d; background: #fffbeb; color: #92400e; }
.tfx-hb.tfx-mid small { color: #b45309; }
.tfx-hb.tfx-low  { border-color: #fecaca; background: #fff5f5; color: #b42318; }
.tfx-hb.tfx-low small { color: #c2410c; }
.tc-foot .tfx-full { color: #0f172a; } .tc-foot .tfx-mid { color: #92400e; } .tc-foot .tfx-low { color: #b42318; }

/* ---- the popup ---- */
.tfx-modal { width: min(680px, 96vw); }
.tfx-modal .modal-header h2 { font-size: 1.1rem; }
.tfx-body { gap: 12px; padding-bottom: 10px; }
.tfx-hint { margin: 0; font-size: 13px; line-height: 1.45; color: #475467; }
.tfx-hint b { font-weight: 600; color: #0f172a; }

.tfx-week { position: relative; }
.tfx-rul { position: relative; height: 18px; margin: 0 8px 0 44px; }
.tfx-rul span { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.tfx-rul span::after { content: ""; position: absolute; left: 50%; top: 15px; width: 1px; height: 4px; background: #cbd5e1; }
.tfx-grid { position: relative; padding-top: 2px; }
.tfx-vl { position: absolute; left: 44px; right: 8px; top: 2px; bottom: 0; pointer-events: none; z-index: 0; }
.tfx-vl i { position: absolute; top: 0; bottom: 0; border-left: 1px solid #e2e8f0; }
.tfx-dr { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; height: calc(30px + 24px * (var(--k, 1) - 1)); padding-right: 8px; border-top: 1px solid #f1f5f9; }
.tfx-dr:hover { background: #f8fafc; }
.tfx-dl { font-size: 12px; font-weight: 600; color: #475467; padding-left: 4px; }
.tfx-lane { position: relative; height: calc(22px + 24px * (var(--k, 1) - 1)); }

/* a block: a dashed outline in its role tint (the role classes r-* supply the colours) */
.tfx-bk { position: absolute; top: 1px; height: 20px; box-sizing: border-box; z-index: 1; border-width: 1.5px; border-style: dashed; border-radius: 5px; display: flex; align-items: center; padding-left: 7px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; cursor: pointer; user-select: none; }
.tfx-bk:hover { filter: brightness(.96); }
.tfx-bk:focus-visible, .tfx-bk.sel { outline: 2px solid var(--primary, #0d6efd); outline-offset: 2px; }
.tfx-bk .tfx-bt { position: relative; z-index: 1; }
.tfx-bk.whole { border-style: solid; border-color: #0f172a; }
.tfx-bk.whole:not(.out) .tfx-bt { visibility: hidden; }                 /* the band carries the same time */
.tfx-bk.out { overflow: visible; }
.tfx-bk.out .tfx-bt { position: absolute; left: 100%; padding-left: 6px; color: #334155; }
.tfx-bk.out.out-l .tfx-bt { left: auto; right: 100%; padding-left: 0; padding-right: 6px; }
/* the fixed part of a block: ink, an amber underline, the pin and the fixed time */
.tfx-band { font-style: normal; position: absolute; top: -1.5px; bottom: -1.5px; z-index: 2; box-sizing: border-box; display: flex; align-items: center; overflow: hidden; background: #0f172a; box-shadow: inset 0 -3px 0 var(--acc, #fcd34d), inset 0 -4px 0 rgba(255, 255, 255, .9); }
.tfx-band b { padding-left: 6px; font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap; }
.tfx-band.nolbl b { display: none; }

/* the editor row for the selected block */
.tfx-ed { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 38px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; font-size: 13px; color: #475467; }
.tfx-edhint { display: inline-flex; align-items: center; gap: 7px; color: #94a3b8; }
.tfx-edname { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.tfx-edname b { font-weight: 600; color: #0f172a; }
.tfx-seg { display: inline-flex; border: 1px solid #e2e8f0; border-radius: 999px; overflow: hidden; background: #fff; }
.tfx-seg button { padding: 5px 11px; border: 0; background: #fff; color: #475467; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tfx-seg button + button { border-left: 1px solid #e2e8f0; }
.tfx-seg button:hover { color: #0f172a; }
.tfx-seg button[aria-checked="true"] { background: #0f172a; color: #fff; }
.tfx-part { display: inline-flex; align-items: center; gap: 6px; }
.tfx-part.hidden { display: none; }
.tfx-part select, .tfx-rule select { padding: 4px 24px 4px 8px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; color: #0f172a; font-variant-numeric: tabular-nums; cursor: pointer; }
.tfx-part select:focus, .tfx-rule select:focus { outline: 2px solid var(--primary, #0d6efd); outline-offset: 1px; }
.tfx-part select.bad { border-color: #f04438; background: #fff5f5; }

/* legend, the quick rule, pin all / unpin all */
.tfx-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #64748b; }
.tfx-lg { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; }
.tfx-lg i { display: inline-block; width: 22px; height: 12px; border-radius: 3px; box-sizing: border-box; }
.tfx-lg-on { background: #0f172a; box-shadow: inset 0 -3px 0 var(--acc, #fcd34d), inset 0 -4px 0 rgba(255, 255, 255, .9); }
.tfx-lg-off { border: 1.5px dashed #94a3b8; background: #f8fafc; }
.tfx-rule { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tfx-tools button { padding: 5px 11px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tfx-tools button:hover { border-color: #0f172a; }
.tfx-save { background: #0f172a; }
.tfx-save:hover { background: #1e293b; }
.tfx-save[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 560px) {
  .tfx-lg { margin-right: 0; flex-basis: 100%; }
  .tfx-rule { white-space: normal; }
}
/* === tansinh fixed-blocks END === */

/* the empty state */
.tc-none .tc-main { gap: 2px; }
.tc-none .tc-lbl { color: #94a3b8; }
.tc-none .tc-set { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--primary, #0d6efd); }
.tc-none:hover { border-color: var(--primary, #0d6efd); background: #f8fbff; }

/* the card's own bottom padding is 12px; the strip hugs it a little closer */
.tcv2-card > .tc-strip:last-child { margin-bottom: 1px; }

@media (max-width: 600px) {
  .tc-strip { gap: 10px; padding: 8px 10px; }
  .tc-count { min-width: 0; }
  .tc-days { font-size: 20px; }
  .tc-strip.tc-edit::after { display: none; }
}

/* ---------- the popup ---------- */
.tc-modal { width: min(600px, 96vw); }
.tc-modal .modal-header h2 { font-size: 1.1rem; }
.tc-who { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; padding: 3px 12px 3px 4px; border: 1px solid #e2e8f0; border-radius: 999px; font-size: 14px; font-weight: 600; }
.tc-av { --acc: #475569; width: 26px; height: 26px; border-radius: 8px; background: var(--acc); color: #fff; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; }
.tc-body { gap: 18px; padding-bottom: 12px; }
.tc-sec { display: grid; gap: 10px; }
.tc-h { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #64748b; }
.tc-h small { font-weight: 500; letter-spacing: 0; text-transform: none; margin-left: 6px; color: #94a3b8; }

.tc-dates { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px; }
.tc-field { display: grid; gap: 5px; }
.tc-field > span { font-size: 12.5px; font-weight: 600; color: #475467; }
.tc-field input[type="date"] {
  width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 12px; background: #f9fafb;
  font: inherit; font-size: 14px; color: #0f172a; font-variant-numeric: tabular-nums;
}
.tc-field input[type="date"]:focus { outline: 2px solid var(--primary, #0d6efd); outline-offset: 1px; background: #fff; }
.tc-field.bad input { border-color: #f04438; background: #fff5f5; }
.tc-arrow { color: #94a3b8; padding-bottom: 13px; }

.tc-quick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: #64748b; }
.tc-quick button {
  padding: 5px 11px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a;
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.tc-quick button:hover { border-color: #0f172a; }
.tc-quick button.on { background: #0f172a; color: #fff; border-color: #0f172a; }

.tc-sum { margin: 0; min-height: 18px; font-size: 13px; color: #475467; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-sum b { color: #0f172a; font-weight: 600; }
.tc-sum .dot { width: 4px; height: 4px; border-radius: 50%; background: #cbd5e1; }

.tc-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tc-seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 10px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .12s ease;
}
.tc-seg button:hover { border-color: #94a3b8; }
.tc-seg button[aria-checked="true"][data-v="yes"]     { background: #ecfdf3; color: #067647; border-color: #067647; box-shadow: inset 0 0 0 1px #067647; }
.tc-seg button[aria-checked="true"][data-v="no"]      { background: #f1f5f9; color: #0f172a; border-color: #0f172a; box-shadow: inset 0 0 0 1px #0f172a; }
.tc-seg button[aria-checked="true"][data-v="discuss"] { background: #fffaeb; color: #b54708; border-color: #b54708; box-shadow: inset 0 0 0 1px #b54708; }
.tc-months { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475467; padding-left: 2px; }
.tc-months input { width: 72px; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fafb; font: inherit; font-size: 14px; text-align: center; }
.tc-months small { color: #94a3b8; }
.tc-months.hidden { display: none; }

.tc-note { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 12px; background: #f9fafb; font: inherit; font-size: 14px; }
.tc-note:focus { outline: 2px solid var(--primary, #0d6efd); outline-offset: 1px; background: #fff; }

.tc-prevsec .tc-strip { margin-top: 0; }
.tc-prevsec .tc-main { flex-basis: 150px; }
.tc-prevsec.hidden { display: none; }
.tc-msg { margin: -6px 0 0; min-height: 18px; font-size: 13px; color: #b42318; }
.tc-msg.ok { color: #067647; }
.tc-msg:empty { display: none; }

.tc-foot { align-items: center; }
.tc-meta { flex: 1; font-size: 11.5px; color: #94a3b8; }
.tc-danger { color: #b42318; }
.tc-danger:hover { background: #fef2f2; }
.tc-foot .hidden { display: none; }
.btn-primary[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 520px) {
  .tc-dates { grid-template-columns: 1fr; }
  .tc-arrow { display: none; }
  .tc-seg { grid-template-columns: 1fr; }
  .tc-foot { flex-wrap: wrap; }
  .tc-meta { flex-basis: 100%; order: 9; }
}

/* === tansinh contract4 BEGIN (7 Oct 2026) === the strip redrawn as a time bar, and the Fixed-hours card made to stand out.
   OVERRIDES ONLY: every rule here comes after the one it replaces, so nothing above was touched.
   Layout now:  .tc-strip > .tc-top    icon, label, extension tag, the count at the far right
                          > .tc-track  start date, the bar with a "today" marker, end date, length        */

/* the strip itself: white, a hairline, two rows */
.tc-strip { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 7px; padding: 9px 12px 10px; border-radius: 11px; background: #fff; border-color: #e5e7eb; }
.tc-strip.tc-edit:hover { border-color: var(--tc-fg); background: var(--tc-bg); box-shadow: 0 4px 14px rgba(16, 24, 40, .06); }
.tc-strip.tc-edit::after { content: none; }                                     /* the floating pencil is gone... */
.tc-strip.tc-edit:hover .tc-ico i::before { content: "\f303"; }                 /* ...the icon turns into one on hover */

.tc-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-width: 0; }
.tc-ico { width: 24px; height: 24px; border-radius: 7px; background: var(--tc-bg); color: var(--tc-fg); border: 1px solid var(--tc-bd); box-shadow: none; font-size: 11px; }
.tc-top .tc-count { margin-left: auto; }

/* the count: one line, the number in the state colour, the clock behind a hairline */
.tc-count { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; white-space: nowrap; }
.tc-days { font-size: 16px; color: var(--tc-fg); }
.tc-days.word { font-size: 13px; }
.tc-dl { font-size: 12px; }
.tc-count .tc-clock { margin-left: 5px; padding-left: 9px; border-left: 1px solid #e2e8f0; font-size: 12px; letter-spacing: .04em; }

/* the time bar: dates at both ends, the elapsed part filled, a marker where today is */
.tc-track { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #475467; font-variant-numeric: tabular-nums; }
.tc-track b { font-weight: 600; color: #334155; white-space: nowrap; }
.tc-track .tc-len { color: #94a3b8; white-space: nowrap; }
.tc-track .tc-bar { flex: 1 1 60px; height: 6px; margin: 0 3px; overflow: visible; background: rgba(15, 23, 42, .07); }
.tc-track .tc-bar i { position: relative; border-radius: 999px; }
.tc-track .tc-bar i::after {
  content: ""; position: absolute; top: 50%; right: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--tc-fg); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--tc-bd); transform: translateY(-50%);
}
.tc-over .tc-bar i::after, .tc-future .tc-bar i::after { display: none; }                               /* nothing is "today" there */
.tc-future .tc-bar { background: repeating-linear-gradient(90deg, rgba(15, 23, 42, .12) 0 6px, transparent 6px 10px); }   /* not started: a dotted track */

/* the empty state keeps the same shape */
.tc-none { background: #fff; }
.tc-none .tc-ico { background: #f8fafc; color: #94a3b8; border-color: #e2e8f0; }
.tc-none .tc-set { margin-left: auto; }
.tc-none:hover { background: #f8fbff; }

@media (max-width: 600px) {
  .tc-top .tc-count { margin-left: 0; flex-basis: 100%; }
  .tc-days { font-size: 15px; }
}

/* the Fixed-hours card: an ink ring, a faint tinted top, a ring round the avatar, an amber pin */
.tcv2-card.tc-fixed, .tcv2-card.tc-fixed:hover {
  box-shadow: 0 0 0 1.5px #0f172a, 0 14px 30px -18px rgba(15, 23, 42, .45);
  background-image: linear-gradient(180deg, rgba(15, 23, 42, .045), rgba(15, 23, 42, 0) 92px);
}
.tcv2-card.tc-fixed .tcv2-av { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #0f172a; }
.tcv2-card.tc-fixed .tc-hbadge { padding: 3px 10px; background: linear-gradient(135deg, #0f172a, #334155); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.tc-hbadge i { color: #fcd34d; }
.tcv2-acts .card-action.tc-pin[aria-pressed="true"] i { color: #fcd34d; }
/* === tansinh contract4 END === */
