/* Tabuľka dochádzky a úloh – spoločná pre administráciu, verejný prehľad a stránku birmovanca. */

.att-wrap { overflow: auto; max-height: calc(100vh - 150px); }
.att-table { border-collapse: separate; border-spacing: 0; font-size: 14px; }
.att-table th, .att-table td { padding: 5px 6px; border-bottom: 1px solid #f0ece4; text-align: center; white-space: nowrap; background: #fff; }
.att-table thead th { position: sticky; top: 0; z-index: 3; background: #fbfaf7; border-bottom: 1px solid var(--line); vertical-align: bottom; font-weight: 600; }
.att-table .att-name { position: sticky; left: 0; z-index: 2; text-align: left; padding-left: 14px; min-width: 170px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-weight: 400; border-right: 1px solid var(--line); }
.att-table thead .att-name { z-index: 4; }
.att-table .att-name a { color: var(--ink); text-decoration: none; }
.att-table tr[hidden] { display: none; }
.att-table tbody tr:hover th, .att-table tbody tr:hover td { background: #fcfbf8; }
.att-col { min-width: 64px; max-width: 110px; }
th.att-col { white-space: normal; font-size: 12.5px; line-height: 1.25; }
th.att-col a { color: var(--ink); text-decoration: none; display: block; }
th.att-col a:hover .att-title { color: var(--accent); text-decoration: underline; }
th.att-task { background: #f6f3fb !important; }
.att-title { display: block; }
.att-date { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.att-sum { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); min-width: 92px; }
.att-sum.good { color: #14703a; font-weight: 600; }
.att-sum.mid { color: #8a5a00; font-weight: 600; }
.att-sum.bad { color: var(--err); font-weight: 600; }

.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 0; font: inherit; font-weight: 800; font-size: 15px; line-height: 1; background: #f1ede6; color: #b9b1a3; }
button.mark { cursor: pointer; }
button.mark:hover { outline: 2px solid #d9d2c4; }
button.mark:disabled { opacity: .5; }
.mark-yes { background: #dff3e6; color: #14703a; }
.mark-no { background: #fde3df; color: #b42318; }
.mark-excused { background: #fff0cf; color: #8a5a00; }
.mark-auto { opacity: .55; }
.mark-late { background: #fff0cf; color: #b45309; }
.mark-failed { outline: 2px solid var(--err) !important; }
.att-legend { font-size: 13px; color: var(--muted); line-height: 2.2; }
.att-legend .mark { width: 22px; height: 22px; font-size: 12px; margin: 0 2px 0 10px; vertical-align: middle; }
.att-legend .mark:first-child { margin-left: 0; }


.att-table tr.is-me th, .att-table tr.is-me td { background: #fff7e0; }

@media (max-width: 860px) {
  .att-table .att-name { min-width: 118px; max-width: 136px; padding-left: 10px; }
  .att-sum { min-width: 0; font-size: 12.5px; padding-left: 4px !important; padding-right: 4px !important; }
  .att-sum .frac { display: none; }
  .att-col { min-width: 52px; }
}
