/* Shared screen styles. The existing business-card print rules stay untouched. */
@media screen {
 body{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.45;background:#f3f5f1;color:#22352a}
 main{max-width:1480px;padding:24px clamp(14px,3vw,38px);margin:auto}
 header.tah-header{padding:15px clamp(14px,3vw,38px);border-bottom-width:4px}
 .office-primary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;padding:6px;background:#e4ebe0;border:1px solid #d1dccb;border-radius:12px;margin:0;position:sticky;top:0;z-index:10}
 .office-primary a{min-width:0;text-align:center;border:0;background:transparent;border-radius:8px;padding:13px 5px;font-weight:700;color:#244b30;text-decoration:none}
 .office-primary a.active{box-shadow:0 2px 6px #0002}.office-primary a:not(.active):hover{background:#fff}
 .office-tools{display:flex;justify-content:flex-end;margin:8px 0;align-items:center}.office-tools button{background:transparent;color:#244b30;padding:7px 10px;border:1px solid #c4d1c0;font-size:13px}
 .office-links{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.office-links a{background:#fff;border:1px solid #d2ddcd;border-radius:7px;padding:8px 11px;font-weight:600;text-decoration:none;font-size:13px}.office-links a[aria-current=page]{background:#e0ebd6;border-color:#89a36b;color:#173322}
 h1{font-size:clamp(24px,3vw,32px);letter-spacing:-.025em;margin:18px 0;padding-bottom:8px;border-bottom:2px solid #a8ce45}h2{letter-spacing:-.01em}section,details{border:1px solid #dce4d7;border-radius:12px;box-shadow:0 2px 5px #17332206;margin:14px 0;padding:18px;background:#fff}
 .scroll{border:1px solid #dce4d7;border-radius:9px;overflow:auto}table{font-variant-numeric:tabular-nums}th{background:#244b30;color:white;font-size:12px;letter-spacing:.015em}td{border-color:#e7ece4}tbody tr:hover{background:#edf3e9}
 button{border-radius:7px;font-weight:650;min-height:36px}input,select{border:1px solid #b9cbb8;border-radius:7px;background:#fff;min-height:36px}input[type=checkbox]{width:auto;min-height:0}input:focus,select:focus{outline:2px solid #8eae55;outline-offset:1px}
 .directory-controls{display:flex;gap:18px;align-items:end;flex-wrap:wrap;margin:16px 0}.directory-controls label:first-child{flex:1;max-width:380px}.inline-check{flex-direction:row;align-items:center;gap:8px;padding:8px 0}.employee-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:9px}.employee-directory a{background:white;border:1px solid #d6e1d1;border-radius:9px;padding:14px;color:#244b30;font-weight:650}.employee-directory a small{display:block;font-weight:400}.employee-directory a[hidden]{display:none}.employee-directory a:hover{border-color:#648325}
 .success-notice{background:#e4efdc;color:#244b30;border-left:4px solid #648325;padding:12px;border-radius:5px}.dashboard-metrics section:nth-child(1) h2{color:#9e3025}.dashboard-metrics section:nth-child(2) h2{color:#946000}.dashboard-metrics section:nth-child(3) h2{color:#244b30}.quick-actions .office-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.quick-actions a{padding:13px}
 .table-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0 7px}.table-tools input{min-width:180px;max-width:320px;flex:1}.table-tools button{background:white;color:#244b30;border:1px solid #c4d1c0;font-size:12px;padding:7px 10px}.table-tools small{margin-left:auto}.scroll tr[hidden]{display:none}.days select[data-exception=yes]{background:#fff1cb;border-color:#c6a24d}.days select[data-exception=protected]{background:#e6f0e2;border-color:#9ab78d}.days select[data-exception=bad]{background:#fde8e3;border-color:#c99082}
 @media(max-width:700px){main{padding:12px}.office-primary{grid-template-columns:repeat(3,minmax(0,1fr));position:static}.office-primary a{padding:10px 4px;font-size:13px}section,details{padding:12px}.directory-controls{gap:8px}.dashboard-metrics{gap:5px!important}.dashboard-metrics section{padding:10px}.dashboard-metrics h2{font-size:25px}.table-tools input{max-width:none}.quick-actions .office-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
}
@media print{.table-tools,.directory-controls,.office-primary,.office-tools,.office-links,.no-print{display:none!important}}
@media screen{.employee-tab-groups{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0;align-items:flex-start}.employee-tab-groups .nav-group{flex:1 1 150px;margin:0;padding:8px;border:1px solid #c4d1c0;background:white;border-radius:8px;box-shadow:none}.nav-group summary{cursor:pointer;font-weight:650;color:#244b30}.nav-group .office-links{display:flex;flex-direction:column;gap:4px;margin:8px 0 0}.office-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.office-tools a{color:#244b30;font-weight:600}.office-tools form{margin:0}.employee-tab-groups .office-links a{white-space:normal;text-align:left}}

@media screen and (max-width:700px){input,select,textarea{font-size:16px}button,.btn{min-height:44px}.scroll{max-width:100%} .fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))}}
@media screen{header.tah-header{padding:7px 18px;min-height:58px}.tah-logo{max-width:280px!important;max-height:48px!important;object-fit:contain}.tah-app-name{font-size:18px}.office-primary a{padding:8px 5px}.office-tools{margin:5px 0}.selected-employee{background:#e4efdc;padding:8px;border-left:4px solid #648325;margin:7px 0}.employee-tab-groups .nav-group{padding:6px}.days label.is-today{outline:2px solid #719b36;background:#edf5e4}.attendance-legend{padding:7px}.days+.fields{gap:7px}.scroll table th:first-child,.scroll table td:first-child{position:sticky;left:0;z-index:1;background:inherit}.scroll table th:first-child{background:#244b30;z-index:2}.scroll table tr{background:white}.scroll table tbody tr:nth-child(even){background:#f3f6f0}.scroll table th{position:sticky;top:0;z-index:1}.alert-links{display:flex;flex-wrap:wrap;gap:8px}.alert-links a{padding:9px 12px;border:2px solid #648325;border-radius:6px;background:#f0f6df}.password-toggle{min-height:28px;padding:3px 6px;font-size:12px}[hidden]{display:none!important}}
@media screen and (max-width:700px){.tah-logo{width:200px;max-height:40px!important}.tah-app-name{font-size:15px}.tah-app-name small{font-size:10px}.office-primary{padding:3px;gap:2px}.office-primary a{font-size:12px;padding:7px 2px}.employee-directory{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-directory a{padding:9px;font-size:13px}.scroll td,.scroll th{padding:7px;font-size:13px}.scroll{max-height:70vh}.table-tools{margin:6px 0}}
.payment-obligations{display:flex;gap:14px;flex-wrap:wrap;margin:10px 0}.payment-obligations a{background:#e8f0df;border-radius:5px;padding:7px 10px}
