/* Attendance hub screen (ZK Hub link). Thin borders, low rounding, no glow. */
.attendance-hub .ah-tab { padding-top: 12px; }
.attendance-hub .ah-toolbar { margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.attendance-hub .ah-toolbar np-button { display: inline-block; }
.attendance-hub .ah-selection-bar { min-height: 34px; }
.attendance-hub .ah-selected-count { color: #73879c; }
.attendance-hub .ah-loading { padding: 24px; text-align: center; color: #73879c; }
.attendance-hub .ah-load-error np-button,
.attendance-hub .ah-areas-error np-button { margin-inline-start: 10px; }
.attendance-hub .ah-areas-error-text { display: block; margin-top: 4px; }

.attendance-hub .ah-card { border: 1px solid #d9dee4; border-radius: 3px; padding: 12px 14px; margin-bottom: 15px; background: #fff; }
.attendance-hub .ah-card-title { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.attendance-hub .ah-table { margin-bottom: 0; }
.attendance-hub .ah-table > tbody > tr > th,
.attendance-hub .ah-table > tbody > tr > td,
.attendance-hub .ah-table > thead > tr > th { border-top: 1px solid #e8ecf0; padding: 7px 6px; vertical-align: middle; font-weight: normal; }
.attendance-hub .ah-table > thead > tr > th { border-top: 0; border-bottom: 1px solid #d9dee4; color: #73879c; }
.attendance-hub .ah-table > tbody > tr > th { color: #73879c; width: 38%; white-space: nowrap; }
.attendance-hub .ah-summary { table-layout: fixed; width: 100%; }
.attendance-hub .ah-summary td { overflow-wrap: anywhere; min-width: 0; }
.attendance-hub .ah-summary .checkbox { margin: 0; }
.attendance-hub .ah-summary .control-group { margin: 0; }
.attendance-hub .ah-ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.attendance-hub .ah-copy-row { display: flex; align-items: flex-start; gap: 8px; max-width: 100%; }
.attendance-hub .ah-copy-text { overflow-wrap: anywhere; word-break: break-all; min-width: 0; flex: 1 1 auto; font-size: 12px; }
.attendance-hub .ah-copy-btn { flex: 0 0 auto; border-radius: 2px; }
.attendance-hub .ah-status td { white-space: nowrap; }
.attendance-hub .ah-error-snippet { display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; unicode-bidi: plaintext; text-align: start; }
.attendance-hub .ah-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.attendance-hub .ah-count { flex: 1 1 90px; border: 1px solid #d9dee4; border-radius: 3px; padding: 8px 6px; text-align: center; }
.attendance-hub .ah-count-num { display: block; font-size: 20px; line-height: 1.2; font-weight: 600; }
.attendance-hub .ah-count-label { display: block; font-size: 12px; color: #73879c; }
.attendance-hub .ah-count-bad { border-color: #d9534f; }
.attendance-hub .ah-count-bad .ah-count-num { color: #d9534f; }

.attendance-hub .ah-link { color: #b8802f; cursor: pointer; }
.attendance-hub .ah-link:hover { text-decoration: underline; }
.attendance-hub .ah-cell-ellipsis { display: inline-block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.attendance-hub .grid td, .attendance-hub .grid th { white-space: nowrap; }
.attendance-hub .ah-badge { border-radius: 2px; font-weight: normal; padding: 3px 7px; }
.attendance-hub .label { border-radius: 2px; font-weight: normal; padding: 3px 7px; }
.attendance-hub .ah-filters { border: 1px solid #e8ecf0; border-radius: 3px; padding: 10px 10px 0; margin-bottom: 10px; }

/* dialogs and side sheet (the dialog body is outside the screen, so these are not scoped) */
.ah-error-text { white-space: pre-wrap; word-break: break-word; border: 1px solid #d9dee4; border-radius: 3px; background: #f7f8fa; padding: 10px; margin: 0 0 12px; max-height: 320px; overflow: auto; direction: ltr; text-align: left; }
.ah-form .ah-option { margin-bottom: 14px; }
.ah-form .ah-option .checkbox { margin-bottom: 2px; }
.ah-form .ah-option-help { margin: 0; color: #73879c; font-size: 12px; padding-inline-start: 22px; }
.ah-form .ah-form-buttons { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e8ecf0; text-align: center; }
.ah-form .ah-form-buttons np-button { display: inline-block; margin: 0 3px; }
.ah-form .ah-secret { position: relative; }
.ah-form .ah-secret-actions { margin: -8px 0 12px; font-size: 12px; }
.ah-form .ah-test { margin-top: 6px; }
.ah-form .ah-test-result { margin: 10px 0 0; border-radius: 3px; padding: 8px 10px; }
.ah-form .ah-test-message { word-break: break-word; }
.ah-form .ah-test-wait { margin: 0 8px; }
.ah-form .ah-field-readonly { margin-bottom: 14px; }
.ah-form .ah-field-label { float: none; width: auto; text-align: start; display: block; color: #73879c; font-weight: normal; margin-bottom: 3px; }
.ah-form .ah-field-value { font-weight: 600; }
.ah-details > tbody > tr > th { width: 32%; color: #73879c; font-weight: normal; }
.ah-details .ah-error-text { margin: 0; }

.ah-sidesheet .modal-dialog { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; margin: 0; width: 460px; max-width: 100%; transform: none !important; }
.ah-sidesheet .modal-content { height: 100%; border-radius: 0; border-width: 0 0 0 1px; overflow-y: auto; box-shadow: none; }
html[dir="rtl"] .ah-sidesheet .modal-content { border-width: 0 1px 0 0; }
@media (max-width: 767px) {
  .attendance-hub .ah-count { flex-basis: 45%; }
  .attendance-hub .ah-table > tbody > tr > th { white-space: normal; width: 34%; }
  .attendance-hub .ah-error-snippet { max-width: 130px; }
}
