/* Yatoon attendance */
.yat-wrap { max-width: 1180px; }
.yat-head h1 { margin-bottom: 4px; }
.yat-sub { margin: 0; color: #50575e; }
.yat-filters { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 14px 0 0 10px; vertical-align: bottom; }
.yat-filters label, .yat-add-form label, .yat-edit-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #50575e; }
.yat-filters label[hidden], .yat-custom[hidden] { display: none; }
.yat-filters select, .yat-filters input, .yat-filters .button { min-height: 32px; }
.yat-export { display: inline-block; margin-top: 14px; vertical-align: bottom; }
.yat-range { margin: 12px 0; font-size: 14px; color: #1d2327; font-weight: 600; }

.yat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.yat-card { background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 14px 16px; }
.yat-card span { display: block; font-size: 12px; color: #50575e; text-transform: uppercase; letter-spacing: .03em; }
.yat-card strong { display: block; font-size: 26px; line-height: 1.2; margin-top: 4px; color: #1d2327; font-variant-numeric: tabular-nums; }
.yat-card small { color: #646970; }
.yat-card-main { border-color: #2271b1; box-shadow: inset 0 3px 0 #2271b1; }
.yat-card-warn strong { color: #b32d2e; }

.yat-panel { background: #fff; border: 1px solid #dcdcde; border-radius: 10px; padding: 0 0 12px; margin-bottom: 16px; overflow: hidden; }
.yat-panel h2 { font-size: 15px; margin: 0; padding: 14px 16px; border-bottom: 1px solid #f0f0f1; }
.yat-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #f0f0f1; padding-left: 16px; }
.yat-panel-head h2 { border-bottom: 0; }
.yat-empty { margin: 12px 16px 0; color: #50575e; }
.yat-settings form { padding: 4px 16px 0; }
.yat-check { display: block; margin: 6px 0; }

.yat-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.yat-table { width: 100%; border-collapse: collapse; }
.yat-table th, .yat-table td { padding: 9px 16px; border-bottom: 1px solid #f0f0f1; text-align: right; font-size: 13px; vertical-align: top; }
.yat-table th { font-size: 12px; color: #50575e; font-weight: 600; }
.yat-table .num { text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yat-table tfoot th { color: #1d2327; border-bottom: 0; border-top: 1px solid #dcdcde; }
.yat-table td small { display: block; color: #787c82; font-size: 11px; margin-top: 2px; }
.yat-table .yat-actions { text-align: left; width: 80px; min-width: 64px; white-space: nowrap; }
.yat-table .yat-actions .button { white-space: nowrap; word-break: keep-all; overflow-wrap: normal; writing-mode: horizontal-tb; width: auto; min-width: 0; }
.yat-warn { color: #b32d2e; font-weight: 600; }
.yat-row.is-missing td { background: #fcf0f1; }
.yat-next { font-style: normal; font-size: 11px; color: #996800; }
.yat-note { max-width: 320px; }
.yat-note .yat-edited { display: none; }
.yat-badge { display: inline-block; margin-right: 4px; padding: 1px 7px; border-radius: 9px; background: #f0f0f1; color: #50575e; font-size: 11px; line-height: 18px; white-space: nowrap; cursor: default; }
.yat-badge-in { background: #edfaef; color: #00701a; }
.yat-badge-warn { background: #fcf0f1; color: #8a2424; margin-right: 0; }

.yat-add-form, .yat-edit-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px 16px; background: #f6f7f7; }
.yat-add-form { border-bottom: 1px solid #f0f0f1; }
.yat-add-form[hidden] { display: none; }
.yat-edit-row > td { padding: 0; background: #f6f7f7; }
.yat-edit-form { background: transparent; }
.yat-note-field { flex: 1 1 220px; }
.yat-note-field input { width: 100%; }
.yat-form-actions { display: flex; gap: 8px; align-items: center; }
.yat-delete { color: #b32d2e !important; margin-right: 8px !important; }
.yat-hint { flex-basis: 100%; margin: 0; font-size: 12px; color: #646970; }

@media (max-width: 600px) {
	.yat-table { min-width: 480px; }
	.yat-table th, .yat-table td { padding: 8px 10px; }
	.yat-card strong { font-size: 22px; }
	.yat-note .yat-edited { display: block; }
	.yat-filters label { flex: 1 1 140px; }
}
