/* Shared screen presentation; printed reports keep their dedicated styles. */
body.tk:not(.auth-page) { background: #f3f6f9; color: #243b50; }
body.tk .tk-header { background: #fff; border-bottom: 1px solid #dde5ed; box-shadow: 0 2px 10px #18344b04; }
body.tk .tk-header-inner { padding: 10px 24px; gap: 18px; }
body.tk .tk-brand-logo { height: 44px; }
body.tk .tk-nav { gap: 6px; }
body.tk .tk-nav-link { font-size: 13px; font-weight: 550; color: #536c82; padding: 9px 12px; border-radius: 7px; }
body.tk .tk-nav-link.active { color: #245c85; background: #edf4fa; }
body.tk .tk-nav-link.active::after { display: none; }
body.tk .tk-nav-link.danger { color: #956168; }
body.tk .tk-nav-link:hover { background: #edf3f8; color: #274d6c; }
body.tk .tk-container:not(.tk-container-auth) { padding: 0 24px 32px; margin: 24px auto; min-width: 0; }
body.tk:not(.auth-page) .tk-container-auth { padding: 0 24px 32px; margin: 24px auto; min-height: 0; }
body.tk .page-wide { width: 100%; margin: 0; min-width: 0; }
body.tk .page-narrow { width: min(780px, 100%); min-width: 0; }
body.tk:not(.auth-page) .panel { background: #fff; border-color: #dce5ed; border-radius: 12px; box-shadow: 0 2px 6px #18344b04; }
body.tk .app-screen > .panel { padding: 22px; }
body.tk .app-screen .panel .panel { box-shadow: none; }
body.tk .panel-title { font-size: 17px; line-height: 1.4; font-weight: 650; color: #2b455a; }
body.tk .app-page-title { font-size: 25px; letter-spacing: -.025em; line-height: 1.25; font-weight: 700; margin: 0 0 8px; color: #203a50; }
.app-page-intro { margin: 0 0 22px; color: #6a7f91; font-size: 13px; line-height: 1.6; max-width: 780px; }
body.tk .label { font-size: 11px; letter-spacing: .025em; font-weight: 600; color: #647b8f; }
body.tk .muted { color: #687f92; }
body.tk .app-screen p { line-height: 1.6; }
body.tk .btn { min-height: 38px; padding: 9px 13px; border-radius: 8px; background: #fff; border-color: #cedae5; color: #365c7c; font-size: 13px; font-weight: 500; box-shadow: 0 1px 2px #17344b04; line-height: 1.35; }
body.tk .btn:hover { background: #eef5fa; border-color: #95b0c7; }
body.tk .btn.primary { background: #306e9c; border-color: #306e9c; color: white; box-shadow: 0 2px 3px #2346630c; }
body.tk .btn.primary:hover { background: #255f8b; border-color: #255f8b; }
body.tk .btn.danger { background: #fff5f5; color: #aa414a; border-color: #e6c2c5; box-shadow: none; }
body.tk .btn.danger:hover { background: #fdebec; border-color: #d69da3; }
body.tk .btn.sm { min-height: 31px; padding: 6px 10px; font-size: 12px; border-radius: 7px; }
body.tk .btn:disabled { opacity: .5; box-shadow: none; }
body.tk .input { border-radius: 8px; border-color: #cbd8e3; font: inherit; font-size: 13px; min-height: 38px; padding: 8px 11px; max-width: 100%; }
body.tk .input:focus, body.tk .select:focus { border-color: #6c9bbc; box-shadow: 0 0 0 3px #6bafd329; }
body.tk .input:disabled { color: #82909c; background: #f1f4f7; }
body.tk textarea.input { min-height: 94px; resize: vertical; line-height: 1.55; }
body.tk .app-screen .stack label > .input { width: 100%; margin-top: 5px; }
body.tk .app-screen .stack { display: flex; flex-direction: column; gap: 16px; }
body.tk input[type="checkbox"], body.tk input[type="radio"] { accent-color: #34759f; }
body.tk input[type="file"].input { background: #f8fafc; padding: 12px; border-style: dashed; }
body.tk input[type="file"]::file-selector-button { border: 1px solid #c7d7e4; border-radius: 6px; background: white; color: #365d7c; padding: 7px 11px; margin-right: 12px; cursor: pointer; }
body.tk .table-wrap { max-width: 100%; scrollbar-width: thin; scrollbar-color: #b7c9d8 #f4f7fa; }
body.tk .table { border-radius: 9px; border-color: #dce5ed; font-size: 13px; }
body.tk .table thead th { background: #f3f7fa; color: #566e82; font-size: 11px; font-weight: 650; letter-spacing: .035em; box-shadow: none; border-color: #dce5ed; padding: 12px; }
body.tk .table td { border-color: #e9eef3; padding: 12px; }
body.tk .table.compact td, body.tk .table.compact th { padding: 10px; }
body.tk .table .num { font-variant-numeric: tabular-nums; }
body.tk .table tr.total td { background: #eef5f9; }
body.tk .alert { box-shadow: none; border-radius: 9px; font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
body.tk .alert.error { background: #fff1f1; border: 1px solid #e9bfc4; color: #993e47; }
body.tk .empty, body.tk .att-empty { padding: 30px 20px; text-align: center; color: #70869a; background: #f7fafc; border: 1px dashed #d0dce7; border-radius: 10px; }
body.tk .total, body.tk .portal-metric, body.tk .att-summary-card, body.tk .about-status-box { background: #f8fafc; border: 1px solid #dfe7ee; box-shadow: none; border-radius: 10px; }
body.tk .t-val { font-size: 23px; color: #2b5c7a; font-variant-numeric: tabular-nums; }
body.tk .app-screen .toolbar { flex-wrap: wrap; }
.app-filter-field { display: grid; gap: 6px; }
body.tk #ptoForm { align-items: end !important; }
body.tk #ptoForm .app-filter-field:first-child { min-width: 240px; }
body.tk #ptoForm .checkbox { min-height: 38px; }
body.tk .app-upload-form { display: grid; grid-template-columns: minmax(120px, 150px) minmax(0, 1fr); align-items: center; max-width: 900px; padding: 22px; }
body.tk .app-upload-form > .muted, body.tk .app-upload-form > .checkbox { grid-column: 2; font-size: 12px; line-height: 1.6; }
body.tk .app-upload-form .select, body.tk .app-upload-form .input { width: 100%; }
.app-selection-tools { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 12px; color: #647c90; }
.app-selection-tools .ui-search { width: min(360px, 100%); margin: 0; }
body.tk .app-screen-admin_employees .employee-add-grid, body.tk .app-screen-admin_employees .employee-edit-grid { gap: 14px; }
body.tk .app-screen-admin_employees .employee-add-grid .input, body.tk .app-screen-admin_employees .employee-add-grid .select { width: 100%; }
body.tk .app-screen-pto_tracker input[name="note"] { width: min(400px, 100%); }
body.tk .tenant-backup-automation-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
body.tk .tenant-backup-automation-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
body.tk .tenant-backup-enable { grid-column: 1 / -1; }
body.tk .tenant-backup-automation-actions { grid-column: 1 / -1; }
body.tk .tenant-backup-card .input, body.tk .tenant-backup-card .select { width: 100%; }
body.tk .tenant-backup-card { min-width: 0; }
body.tk .app-screen-admin_employees .employee-edit-panel { border-radius: 9px; box-shadow: none; background: #f5f9fc; }
body.tk .tenant-edit-card, body.tk .create-user-card { box-shadow: none; border-radius: 10px; background: #f8fafc; }
body.tk .app-screen-admin_users .tenant-edit-input { min-width: 0; }
body.tk .app-screen-admin_users .tenant-edit-grid { grid-template-columns: minmax(0, 560px); }
body.tk .app-screen-admin_notifications .notification-description { max-width: 600px; line-height: 1.6; }
body.tk .app-screen-admin_audit_trail .audit-toolbar, body.tk .app-screen-admin_login_sessions .session-toolbar { padding: 16px; background: #f6f9fc; border: 1px solid #e0e8ef; border-radius: 10px; }
body.tk .app-screen-admin_reports .hr-report-period { background: #eef5fa; border-color: #d1e1ed; }
body.tk .att-summary-card { padding: 18px; }
body.tk .att-summary-value { font-size: 27px; color: #2b5c7a; font-weight: 650; }
body.tk .att-toolbar { background: #f8fafc; }
body.tk .att-detail:not(.has-selection) { position: static; }
body.tk .att-shell > *, body.tk .att-dashboard > * { min-width: 0; }
body.tk .att-dashboard { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); }
body.tk .app-screen-dept_importer_map .table .select { width: min(420px, 100%); }
body.tk .att-calendar-cell { border-radius: 7px; }
body.tk .portal-metric-value { color: #2b5c7a; }
.app-disclosure, .app-issue-disclosure { margin: 14px 0; border: 1px solid #d9e4ed; border-radius: 10px; background: #f9fbfd; }
.app-disclosure > summary, .app-issue-disclosure > summary { padding: 14px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.app-disclosure summary span, .app-issue-disclosure summary span { margin-left: 10px; font-weight: 400; color: #6b8091; font-size: 12px; }
.app-disclosure-body { padding: 0 16px 16px; font-size: 13px; }
.app-issue-disclosure { border-color: #e8d6b6; background: #fffcf5; }
.app-field-help { color: #698196; font-size: 12px; line-height: 1.5; margin: 0; }
body.tk .app-screen-review_edit .period-meta-form { gap: 14px; }
body.tk .app-screen-review_edit .period-flag { border-radius: 7px; padding: 9px 12px; font-size: 12px; }
body.tk .app-screen-review_edit .period-flag:has(input:checked) { outline: 2px solid currentColor; outline-offset: 1px; }
body.tk .app-screen-review_edit .period-meta-note { min-height: 76px; }
body.tk .app-screen-review_edit .timesheet-grid-wrap .table { min-width: 1225px; table-layout: fixed; overflow: visible; }
body.tk .app-screen-review_edit .timesheet-grid-wrap .table td { padding: 10px 7px; font-size: 12px; }
body.tk .app-screen-review_edit .timesheet-grid-wrap .clock-text { white-space: normal; line-height: 1.5; font-size: 11px; }
body.tk .app-screen-review_edit .timesheet-grid-wrap .input { width: 100%; min-width: 0; min-height: 34px; padding: 6px; font-size: 12px; }
body.tk .app-screen-review_edit .timesheet-grid-wrap .select { width: 100%; min-width: 0; min-height: 34px; padding: 6px 24px 6px 6px; background-position: right 5px center; font-size: 12px; }
body.tk .app-screen-review_edit .timesheet-grid-wrap .table th:last-child, body.tk .app-screen-review_edit .timesheet-grid-wrap .table td:last-child { position: sticky; right: 0; background: #fff; box-shadow: -3px 0 6px #1e3a5010; }
.app-skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 18px; z-index: 4000; background: #fff; color: #245f89; border: 2px solid #245f89; border-radius: 7px; }
.app-skip-link:focus { top: 12px; }
@media (max-width: 800px) {
 body.tk .tk-header-inner { padding: 10px 14px; gap: 8px; }
 body.tk .tk-brand-logo { height: 36px; }
 body.tk .tk-nav { justify-content: flex-start; gap: 3px; }
 body.tk .tk-nav-link { padding: 8px; font-size: 12px; }
 body.tk .tk-container:not(.tk-container-auth) { padding: 0 12px 24px; margin: 14px auto; }
 body.tk:not(.auth-page) .tk-container-auth { padding: 0 12px 24px; margin: 14px auto; }
 body.tk .app-screen > .panel { padding: 16px; }
 body.tk .app-screen .inline { flex-wrap: wrap; }
 body.tk .panel.totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 body.tk .app-upload-form { grid-template-columns: minmax(0, 1fr); }
 body.tk .app-upload-form > .muted, body.tk .app-upload-form > .checkbox { grid-column: 1; }
 body.tk .app-page-title { font-size: 23px; }
 body.tk .hr-report-head { flex-wrap: wrap; }
 body.tk .app-screen .table-wrap { -webkit-overflow-scrolling: touch; }
 body.tk .app-screen-review_edit .period-meta-form { grid-template-columns: minmax(0, 1fr); }
 body.tk .tenant-backup-automation-grid, body.tk .tenant-backup-automation-form { grid-template-columns: minmax(0, 1fr); }
 body.tk .tenant-backup-grid { grid-template-columns: minmax(0, 1fr); }
 body.tk .att-dashboard { grid-template-columns: minmax(0, 1fr); }
 body.tk .att-calendar-board { min-width: 560px; }
 body.tk .att-detail { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
 body.tk .att-detail-title { font-size: 15px; }
 body.tk .att-detail-copy { font-size: 12px; max-height: 64px; overflow: auto; }
}
@media (prefers-reduced-motion: reduce) { body.tk *, body.tk *::before, body.tk *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Give the original white/cyan logo a contrasting home without altering artwork. */
body.tk .tk-brand { background: #102f46; width: 220px; min-height: 66px; overflow: hidden; border-radius: 10px; padding: 3px 8px; flex-shrink: 0; }
body.tk .tk-brand-logo { width: 300px; height: auto; max-width: none; flex: 0 0 300px; }
body.tk .app-screen-review_edit .timesheet-grid-wrap .table { min-width: 1295px; }
body.tk .app-screen-review_edit .timesheet-grid-wrap .clock-text,
body.tk .editor-workspace .clock-text { font: 600 14px/1.5 system-ui, sans-serif; white-space: normal; color: #193b55; overflow: visible; }
body.tk .app-screen-review_edit .clock-row,
body.tk .editor-workspace .clock-row { grid-template-columns: minmax(0, 1fr) 36px; gap: 6px; }
body.tk .app-screen-review_edit .icon-btn.calendar,
body.tk .editor-workspace .icon-btn.calendar { width: 36px; height: 36px; }
body.tk .employee-request-alert { border: 2px solid #d58a22; border-left-width: 6px; background: #fff8e9; padding: 18px; border-radius: 10px; margin: 16px 0; color: #633f0c; }
body.tk .employee-review-note { white-space: pre-wrap; overflow-wrap: anywhere; }
body.tk .employee-review-history { display: grid; gap: 12px; margin-top: 16px; }
body.tk .employee-review-history article { padding: 12px; border: 1px solid #dce5ed; border-radius: 8px; }
body.tk .portal-review-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
@media (max-width: 760px) {
 body.tk .tk-brand { width: 180px; min-height: 54px; }
 body.tk .tk-brand-logo { width: 250px; flex-basis: 250px; height: auto; }
}
/* Match the login palette across the full navigation bar. */
body.tk .tk-header { background: linear-gradient(115deg, #12495b 0%, #103449 55%, #10263b 100%); border-bottom-color: #1e5366; box-shadow: 0 3px 12px #10263b20; }
body.tk .tk-brand { background: transparent; border-radius: 0; }
body.tk .tk-nav-link { color: #dfedf4; }
body.tk .tk-nav-link:hover, body.tk .tk-dropdown-toggle.tk-nav-link:hover { color: #fff; background: #ffffff16; }
body.tk .tk-nav-link.active { color: #fff; background: #ffffff1c; box-shadow: inset 0 -3px #24c2e8; }
body.tk .tk-nav-link.danger { color: #ffd5d8; }
body.tk .tk-nav-link:focus-visible { outline: 2px solid #61def4; outline-offset: 3px; }
body.tk .tk-dropdown-menu { color: #243b50; }
body.tk .tk-dropdown-menu .tk-nav-link { color: #334e68; }
body.tk .tk-dropdown-menu .tk-nav-link:hover { color: #183b54; background: #edf4fa; }
body.tk .tk-nav-tenant-label { color: #c9dfe9; }
/* Keep the Admin trigger light; only the dropdown's items use dark text. */
body.tk #adminDropdown > .tk-dropdown-toggle.tk-nav-link { color: #e8f5fa; }
body.tk #adminDropdown > .tk-dropdown-toggle.tk-nav-link:hover,
body.tk #adminDropdown > .tk-dropdown-toggle.tk-nav-link[aria-expanded="true"] { color: #fff; background: #ffffff1c; }
body.tk .employee-review-dialog { width: min(760px, calc(100vw - 32px)); max-height: 85vh; overflow: auto; border: 1px solid #cbdce8; border-radius: 14px; padding: 24px; color: #243b50; background: #fff; }
body.tk .employee-review-dialog::backdrop { background: #10263b88; }
body.tk .employee-review-dialog header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
body.tk .employee-review-dialog h2 { margin:0; }
body.tk .review-selection-actions { flex-wrap:wrap; }
body.tk .review-response-badge { display:inline-block; margin-top:5px; font-size:12px; color:#365d76; }
