/* dates.css — Dates tab. Only what the shared classes cannot do. */
#view-dates input[type=date] {
  font: inherit; font-size: 1rem; width: 100%; padding: 10px 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); min-height: 44px;
}
.dates-next { margin: 0 0 10px; }
.dates-month {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin: 14px 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--line);
}
.dates-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dates-row:last-of-type { border-bottom: 0; }
.dates-row.link { cursor: pointer; }
.dates-row.link:hover .dates-title { color: var(--primary); }
.dates-row.past { opacity: .6; }
.dates-when { flex: 0 0 64px; display: flex; flex-direction: column; line-height: 1.3; }
.dates-d { font-weight: 700; font-variant-numeric: tabular-nums; }
.dates-what { flex: 1 1 auto; min-width: 0; }
.dates-title { font-weight: 600; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.dates-acts { flex: 0 0 auto; display: flex; gap: 2px; align-items: center; }
.dates-acts .btn-sm { padding: 4px 8px; }
.dates-tag {
  display: inline-block; font-size: .7rem; font-weight: 650; padding: 1px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); margin-top: 3px; white-space: nowrap;
}
.t-test { background: #E8EEF9; color: #2B4A8A; }
.t-aid { background: #FBEFD7; color: #7A5410; }
.t-application { background: var(--primary-soft); color: var(--primary-dark); }
.t-school { background: #EFE8F8; color: #55357F; }
.t-scholarship { background: #FDE8E6; color: #8A2E27; }
.t-mine { background: var(--surface-2); color: var(--ink-2); }
.s-notstarted, .s-todo { background: var(--surface-2); color: var(--muted); }
.s-inprogress, .s-applied { background: #FBEFD7; color: #7A5410; }
.s-submitted, .s-won { background: var(--primary-soft); color: var(--primary-dark); }
.s-pastdue, .s-no { background: #FDE8E6; color: var(--critical); }
.dates-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; }
.dates-item-head { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; align-items: flex-start; }
.dates-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; }
.dates-item-body { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.dates-check { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .92rem; cursor: pointer; }
.dates-check input { accent-color: var(--primary); width: 18px; height: 18px; margin: 0; }
.dates-form { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 12px; }
.dates-form .field { margin-bottom: 10px; }
#view-dates .card-head > .btn { margin-left: auto; }

/* Seven tabs (Dates added). Seven equal columns; on phones shrink the label
   and padding so every label stays on one line and the bar does not grow. */
@media (max-width: 899px) {
  .tabbar-inner { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .tab { min-width: 0; padding-left: 0; padding-right: 0; font-size: .64rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; }
  .tab svg { width: 19px; height: 19px; flex: 0 0 auto; }
}
@media (max-width: 400px) {
  .tab { font-size: .6rem; }
  .tab svg { width: 18px; height: 18px; }
}
