#timeClockProfileModal { z-index: 11000; padding: 20px; }
#timeClockProfileModal * { box-sizing: border-box; letter-spacing: 0; }
#timeClockProfileModal .tc-profile { width: min(1080px,100%); max-height: calc(100dvh - 40px); display:flex; flex-direction:column; background:#fff; color:#16171b; border:1px solid #d4d4d8; border-radius:8px; overflow:hidden; box-shadow:0 24px 70px #0004; }
.tc-profile-header { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:22px 26px; background:#000; color:#fff; border-bottom:4px solid #c8102e; }
.tc-profile-header > div { min-width:0; }
.tc-profile-header p { margin:0 0 6px; font-size:12px; text-transform:uppercase; color:#fda4af; font-weight:800; }
.tc-profile-header h2 { margin:0; font-size:24px; line-height:1.3; overflow-wrap:anywhere; }
.tc-profile-body { padding:24px 26px; overflow-y:auto; overscroll-behavior:contain; }
.tc-profile-filters { display:grid; grid-template-columns:1.1fr 1fr 1fr auto; gap:14px; align-items:end; }
#timeClockProfileModal label { display:grid; gap:7px; min-width:0; font-size:12px; font-weight:800; color:#52525b; text-transform:uppercase; margin:0; }
#timeClockProfileModal input,#timeClockProfileModal select { width:100%; min-width:0; height:44px; padding:8px 10px; border:1px solid #9ca3af; border-radius:6px; background:#fff; color:#16171b; font:inherit; font-size:14px; text-transform:none; margin:0; }
.tc-profile-actions { display:flex; gap:8px; }
#timeClockProfileModal button { cursor:pointer; font:inherit; font-size:14px; font-weight:800; height:44px; margin:0; border-radius:6px; box-shadow:none; }
#timeClockProfileModal .tc-profile-icon { display:inline-flex; justify-content:center; align-items:center; width:44px; min-width:44px; padding:0; border:1px solid #d4d4d8; background:#fff; color:#16171b; }
#timeClockProfileModal .tc-profile-header .tc-profile-icon { background:#18181b; color:#fff; border-color:#52525b; }
#timeClockProfileModal .tc-profile-print { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:0 18px; background:#c8102e; color:#fff; border:1px solid #c8102e; }
#timeClockProfileModal button:hover:not(:disabled) { filter:brightness(.9); }
#timeClockProfileModal button:disabled { opacity:.5; cursor:not-allowed; }
#timeClockProfileModal :is(button,input,select):focus-visible { outline:3px solid #c8102e; outline-offset:3px; }
.tc-profile-status { display:flex; gap:8px; align-items:center; flex-wrap:wrap; min-height:48px; padding:12px 0; font-size:12px; color:#52525b; }
.tc-profile-status span { margin-left:auto; }
.tc-profile-status.is-error { color:#b10d27; }
.tc-profile-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid #d4d4d8; border-bottom:1px solid #d4d4d8; }
.tc-profile-summary > div { padding:20px 10px 20px 0; min-width:0; }
.tc-profile-summary span { display:block; font-size:11px; font-weight:800; text-transform:uppercase; color:#52525b; margin-bottom:6px; }
.tc-profile-summary strong { font-size:26px; line-height:1.3; overflow-wrap:anywhere; }
.tc-profile .is-overtime { color:#b10d27; }
.tc-profile-active { display:flex; align-items:center; gap:10px; padding:12px 14px; margin-top:16px; background:#fffbeb; border-left:3px solid #d97706; color:#78350f; font-size:13px; line-height:1.5; }
.tc-profile-active[hidden] { display:none; }
.tc-profile-history-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:24px 0 10px; }
.tc-profile-history-heading h3 { margin:0; font-size:16px; }
.tc-profile-history-heading span { font-size:12px; color:#52525b; }
.tc-profile-row { display:grid; grid-template-columns:180px minmax(0,1fr); column-gap:20px; padding:18px 0; border-bottom:1px solid #e4e4e7; }
.tc-profile-day { display:flex; flex-direction:column; align-items:flex-start; gap:8px; font-size:14px; }
.tc-profile-badge { display:inline-flex; font-size:11px; font-weight:800; border-radius:4px; background:#f4f4f5; color:#52525b; padding:4px 7px; }
.tc-profile-badge.is-open { background:#fff1f2; color:#b10d27; }
.tc-profile-row dl { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; margin:0; }
.tc-profile-row dt { font-size:11px; font-weight:700; color:#71717a; margin-bottom:6px; }
.tc-profile-row dd { margin:0; font-size:14px; font-weight:800; overflow-wrap:anywhere; }
.tc-profile-row-note { grid-column:1/-1; font-size:12px; color:#52525b; line-height:1.6; margin:12px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.tc-profile-audit { grid-column:1/-1; min-width:0; margin-top:16px; padding-top:14px; border-top:1px solid #e4e4e7; }
.tc-profile-audit h4 { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 16px; margin:0 0 8px; font-size:13px; color:#b10d27; }
.tc-profile-audit h4 span { margin-left:auto; font-size:11px; font-weight:600; color:#71717a; }
.tc-profile-audit ol { list-style:none; margin:0; padding:0; }
.tc-profile-audit-entry { min-width:0; padding:12px 0; border-bottom:1px solid #f0f0f2; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.tc-profile-audit-entry:last-child { border-bottom:0; }
.tc-profile-audit-top { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:4px 20px; }
.tc-profile-audit-top strong { color:#16171b; font-size:13px; }
.tc-profile-audit-top time { color:#52525b; font-variant-numeric:tabular-nums; }
.tc-profile-audit-entry p { margin:5px 0 0; }
.tc-profile-audit-author { color:#16171b; }
.tc-profile-audit-author span { color:#71717a; }
.tc-profile-audit-change,.tc-profile-audit-reason { color:#52525b; }
.tc-profile-audit-reason { white-space:pre-wrap; }
.tc-profile-audit-missing { color:#71717a; font-size:12px; margin:0; }
#timeClockProfileModal [data-profile-undo] { grid-column:1/-1; justify-self:start; max-width:100%; }
.tc-profile-empty { padding:40px 12px; text-align:center; color:#71717a; font-size:14px; border-bottom:1px solid #e4e4e7; }
.tc-profile-footnote { margin:18px 0 0; font-size:11px; color:#71717a; line-height:1.6; }
.timeclock-page button[data-timeclock-profile] { cursor:pointer; font:inherit; letter-spacing:0; }
.timeclock-page button.timeclock-record-name { background:none; border:0; padding:0; text-align:left; color:inherit; font-weight:800; font-size:17px; }
.timeclock-page button[data-timeclock-profile]:hover { color:#c8102e; text-decoration:underline; }
.timeclock-page button[data-timeclock-profile]:focus-visible { outline:2px solid #c8102e; outline-offset:3px; }
@media(max-width:760px) {
  #timeClockProfileModal { padding:10px; }
  #timeClockProfileModal .tc-profile { max-height:calc(100dvh - 20px); }
  .tc-profile-header { padding:18px 16px; gap:12px; }
  .tc-profile-header h2 { font-size:21px; }
  .tc-profile-body { padding:16px; }
  .tc-profile-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .tc-profile-filters > label:first-child { grid-column:1/-1; }
  .tc-profile-actions { grid-column:1/-1; justify-content:flex-end; }
  .tc-profile-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tc-profile-summary > div { padding:16px 8px 16px 0; }
  .tc-profile-summary strong { font-size:24px; }
  .tc-profile-row { grid-template-columns:minmax(0,1fr); gap:16px; }
  .tc-profile-day { flex-direction:row; align-items:center; justify-content:space-between; flex-wrap:wrap; }
  .tc-profile-row dl { grid-template-columns:repeat(3,minmax(0,1fr)); row-gap:16px; }
}
