.overtime-page { background: #f4f6f5; letter-spacing: 0; }
.overtime-page .shell { width: min(1100px, 100%); }
.overtime-page h1 { font-size: 25px; line-height: 1.3; color: #14221b; }
.overtime-page h1::after { display: none; }
.overtime-page h2 { font-size: 18px; margin: 0 0 14px; }
.overtime-page h3 { font-size: 15px; margin: 0; }
.overtime-page button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border-radius: 6px; font-size: 14px; max-width: 100%; white-space: normal; }
.overtime-page button img { width: 19px; height: 19px; flex: 0 0 19px; }
.overtime-page button:not(.ghost) img { filter: brightness(0) invert(1); }
.overtime-page label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: #536159; min-width: 0; }
.overtime-page input, .overtime-page select, .overtime-page textarea { width: 100%; min-width: 0; background: #fff; border: 1px solid #cbd5cf; border-radius: 5px; padding: 10px; font-size: 15px; color: #17241d; }
.overtime-page textarea { resize: vertical; }
.ot-band { padding: 20px 0; border-top: 1px solid #d9e3de; }
.ot-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.ot-heading h1, .ot-heading h2 { flex: 1; min-width: 0; margin: 0; }
.ot-icon { width: 42px; height: 42px; padding: 9px !important; flex: 0 0 42px; }
.ot-tabs { display: flex; gap: 8px; border-bottom: 1px solid #d9e3de; margin-bottom: 20px; }
.ot-tabs button { background: transparent; color: #536159; border: 0; border-bottom: 3px solid transparent; border-radius: 0; }
.ot-tabs button[aria-selected="true"] { color: #075637; border-color: #0b6b43; }
.ot-query { display: grid; grid-template-columns: minmax(130px, 1fr) 120px 160px 160px 42px 42px; align-items: end; gap: 10px; }
.ot-summary { display: flex; flex-wrap: wrap; gap: 12px 25px; padding: 20px 0; color: #536159; font-size: 14px; }
.ot-summary strong { font-size: 19px; color: #17241d; margin-left: 6px; }
.ot-records { border-top: 1px solid #d9e3de; }
.ot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 18px 0; border-bottom: 1px solid #d9e3de; }
.ot-row h3 { overflow-wrap: anywhere; line-height: 1.5; }
.ot-row p { font-size: 14px; margin: 8px 0 0; overflow-wrap: anywhere; color: #536159; }
.ot-row .ot-row-actions { display: flex; align-items: center; gap: 12px; }
.ot-status { font-size: 13px; padding: 4px 0; color: #536159; white-space: nowrap; }
.ot-status[data-status="ACTIVE"] { color: #17627b; }
.ot-status[data-status="PENDING"] { color: #936012; }
.ot-status[data-status="REJECTED"] { color: #b42332; }
.ot-status[data-status="COMPLETED"] { color: #08663d; }
.ot-pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 20px; font-size: 14px; }
.ot-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 28px; }
.ot-fact { margin: 0; min-width: 0; overflow-wrap: anywhere; line-height: 1.6; }
.ot-fact dt { color: #647267; font-size: 13px; }
.ot-fact dd { margin: 4px 0 0; font-size: 15px; white-space: pre-wrap; }
.ot-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.ot-action-section { border-top: 1px solid #cad8d0; padding: 22px 0; display: grid; gap: 16px; }
.ot-location-head, .ot-photo-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
#positionInfo { color: #536159; font-size: 13px; overflow-wrap: anywhere; }
.ot-range { margin: 0; color: #075637; font-size: 14px; padding: 12px; border-left: 3px solid currentColor; background: #edf5f1; }
.ot-range.exception { color: #a33828; background: #fff0ed; }
.ot-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ot-photo { position: relative; margin: 0; min-width: 0; }
.ot-photo img, .ot-history-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #e2e8e4; border-radius: 5px; }
.ot-photo button { position: absolute; right: 5px; top: 5px; background: #fff; min-height: 32px; width: 32px; height: 32px; padding: 6px; }
.ot-photo button img { background: transparent; aspect-ratio: auto; }
.ot-photo figcaption { font-size: 12px; padding-top: 6px; color: #536159; }
.ot-history { border-top: 1px solid #d9e3de; padding: 24px 0; }
.ot-event { padding: 14px 0; border-bottom: 1px solid #e1e7e3; }
.ot-event h3 { font-size: 15px; margin: 0 0 8px; }
.ot-event p { white-space: pre-wrap; overflow-wrap: anywhere; color: #536159; font-size: 14px; line-height: 1.7; }
.ot-error, .overtime-page .message.warn { color: #b42332; }
.ot-dialog { width: min(520px, calc(100% - 28px)); max-height: calc(100dvh - 36px); overflow-y: auto; border: 1px solid #ced8d1; border-radius: 8px; padding: 22px; color: #17241d; }
.ot-dialog::backdrop { background: #0008; }
.ot-dialog form { display: grid; gap: 17px; }
.ot-dialog .ot-heading { margin: 0; }
.ot-camera video { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #17241d; margin: 15px 0; }
.ot-camera { text-align: center; }
.overtime-page :focus-visible { outline: 2px solid #087142; outline-offset: 3px; }
@media (max-width: 760px) {
  .overtime-page .shell { padding: 12px 14px 24px; }
  .overtime-page h1 { font-size: 21px; }
  .overtime-page .brandbar { align-items: flex-start; }
  .overtime-page .brandbar .logo { width: 180px; max-width: 55%; }
  .overtime-page .badge { white-space: normal; font-size: 12px; }
  .ot-query { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px; }
  .ot-query label:nth-child(1) { grid-column: span 2; }
  .ot-query label:nth-child(2) { grid-row: 2; }
  .ot-query label:nth-child(3) { grid-row: 3; }
  .ot-query label:nth-child(4) { grid-row: 3; }
  .ot-query button[type="submit"] { grid-column: 3; grid-row: 1; }
  .ot-query #refreshBtn { grid-column: 3; grid-row: 2; }
  .ot-row { grid-template-columns: minmax(0, 1fr); }
  .ot-row .ot-row-actions { justify-content: space-between; }
  .ot-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ot-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ot-heading { gap: 8px; }
  .ot-dialog { padding: 16px; }
}
@media (max-width: 380px) {
  .ot-query label:nth-child(3), .ot-query label:nth-child(4) { grid-column: 1 / -1; }
  .ot-query label:nth-child(4) { grid-row: 4; }
}
