/**
 * dist/css/ess-mobile.css -- employee self-service + mobile/touch readability layer (loaded LAST, after hr-ui.css).
 *
 * It only USES the existing design tokens (--hr-*, --st-*, --miedc-*) from hr-ui.css / theme-miedc.css, so light and dark mode follow
 * the same switch (body.dark-mode) and nothing here introduces a second palette. Sections:
 *   1. Readability basics (type size, touch targets, placeholders, disabled, dark-mode utility fixes)
 *   2. Overflow / wrapping guards
 *   3. Header dropdowns (notifications) and modals on phones
 *   4. Bottom navigation (safe area, floating iOS toolbar, label size)
 *   5. My Workspace: profile, Self Timekeeping panel, shortcut tiles, card grid
 *   6. Punch dialog + camera
 *   7. My DTR (day cards on phones/tablets, table on desktop)
 *   8. HR evidence review
 */

/* ============================================================ 1. Readability basics */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.form-control::placeholder, .custom-select::placeholder { color: #66727f; opacity: 1; }
body.dark-mode .form-control::placeholder { color: #a3adb8; opacity: 1; }
body.dark-mode .form-control:disabled, body.dark-mode .form-control[readonly], body.dark-mode .custom-select:disabled { color: #d3d9df; background-color: #2f353c; opacity: 1; }
.btn:disabled, .btn.disabled { opacity: .7; }
body.dark-mode .text-dark { color: var(--hr-text) !important; }          /* Bootstrap .text-dark is near-black: invisible on dark cards */
body.dark-mode .text-secondary { color: #c3cbd3 !important; }
body.dark-mode .text-muted, body.dark-mode .small.text-muted { color: var(--hr-muted) !important; }
body.dark-mode .badge-light { background: #4a525c; color: #eef1f4; border-color: #5b6470 !important; }
body.dark-mode .btn-outline-primary { color: #ffb36b; border-color: #ffb36b; }
body.dark-mode .btn-outline-primary:hover { color: #1f2a37; background: #ffb36b; }
body.dark-mode .btn-outline-secondary { color: #d3d9df; border-color: #8a94a0; }
body.dark-mode .btn-outline-secondary:hover { color: #1f2a37; background: #d3d9df; }
.card-header .btn-sm { min-height: 34px; }

@media (max-width: 767.98px) {
  body, body.text-sm { font-size: 1rem; line-height: 1.5; }
  .text-sm .form-control, .text-sm .custom-select, .text-sm .btn, .text-sm .dropdown-item, .text-sm .table, .text-sm .list-group-item,
  .text-sm .nav-link, .text-sm .card-body, .text-sm .modal-body, .text-sm .alert { font-size: 1rem; }
  .text-sm label, label { font-size: .9375rem; font-weight: 600; margin-bottom: .3rem; }
  .form-control, .custom-select, .select2-container--bootstrap4 .select2-selection { font-size: 16px !important; min-height: 46px; }   /* 16px also stops iOS zooming into a focused field */
  textarea.form-control { min-height: 5.5rem; }
  .btn { min-height: 44px; font-size: 1rem; padding: .5rem 1rem; }
  .btn-sm, .btn-xs { min-height: 40px; font-size: .9375rem; padding: .4rem .8rem; }
  .small, small { font-size: .875rem; }
  .badge { font-size: .8125rem; padding: .3em .6em; }
  .content-wrapper > .content { padding-left: 12px; padding-right: 12px; }
  .page-header h1, .content-header h1 { font-size: 1.35rem; }
  .card-header { padding: .75rem 1rem; }
  .card-header > b, .card-header .card-title { font-size: 1.0625rem; }
  .card-body { padding: 1rem; }
}

/* ============================================================ 2. Overflow / wrapping */
img, video, canvas, svg { max-width: 100%; }
.card, .card-body, .modal-body, .list-group-item, .page-titles, .ess-profile-text { min-width: 0; }
.card-body, .modal-body, .list-group-item, td, .page-subtitle { overflow-wrap: anywhere; }
.table-responsive { -webkit-overflow-scrolling: touch; }
@media (max-width: 767.98px) { .content-wrapper { overflow-x: hidden; } }

/* ============================================================ 3. Header dropdowns + modals */
.main-header .dropdown-menu { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: var(--hr-surface) !important; color: var(--hr-text); border: 1px solid var(--hr-border); box-shadow: var(--hr-shadow-lg); }
.main-header .dropdown-menu .dropdown-item, .main-header .dropdown-menu .dropdown-header { color: var(--hr-text); }
.main-header .dropdown-menu .dropdown-item.text-muted, .main-header .dropdown-menu .text-muted { color: var(--hr-muted) !important; }
.main-header .dropdown-menu .dropdown-header { font-weight: 700; white-space: normal; }
@media (max-width: 575.98px) {
  /* notification + account menus stay inside the screen, below the header, with their own scroll */
  .main-header .dropdown-menu { position: fixed !important; left: 10px !important; right: 10px !important; top: calc(env(safe-area-inset-top, 0px) + 56px) !important; width: auto !important; max-width: none !important; transform: none !important; max-height: calc(100vh - 140px) !important; max-height: calc(100dvh - 140px) !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; }
  .main-header .dropdown-menu .dropdown-item { white-space: normal; padding-top: .65rem; padding-bottom: .65rem; }
}
.modal-content { color: var(--hr-text); }
body.dark-mode .modal-content { background-color: var(--hr-surface); border-color: var(--hr-border); }
body.dark-mode .modal-header, body.dark-mode .modal-footer { border-color: var(--hr-border); }
body.dark-mode .modal .close { color: var(--hr-text); text-shadow: none; opacity: .8; }
@media (max-width: 767.98px) {
  /* long modal content scrolls inside the modal; the title bar and the action buttons never leave the screen */
  .modal-content { display: flex; flex-direction: column; max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); }
  .modal-header, .modal-footer { flex: 0 0 auto; }
  .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .modal-footer { padding-bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); gap: .5rem; }
  .modal-footer .btn { flex: 1 1 auto; }
}

/* ============================================================ 4. Bottom navigation */
@media (max-width: 767.98px) {
  .bottom-nav { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .bottom-nav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 160px; background: inherit; pointer-events: none; }   /* iOS 26 floating toolbar: no page content peeks out under the bar */
  .bottom-nav .bottom-nav-link:not(.active) { color: #4b5663; }
  .bottom-nav-link { font-size: .72rem; min-height: 58px; }
  .bottom-nav-link span { font-size: .72rem; line-height: 1.15; }
  .bottom-nav-link i { font-size: 1.25rem; }
  .bottom-nav-link.active { color: #8f4400 !important; font-weight: 700; background: var(--hr-accent-bg); }
  body.dark-mode .bottom-nav .bottom-nav-link:not(.active) { color: #c3cbd3; }
  body.dark-mode .bottom-nav-link.active { color: #ffb36b !important; background: rgba(255, 179, 107, .12); }
  .content-wrapper > .content { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================ 5. My Workspace */
.ess-profile .card-body { padding: 1rem; }
.ess-profile-row { display: flex; align-items: center; gap: 1rem; }
.ess-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 3px solid var(--hr-accent); background: var(--hr-surface-2); }
.ess-avatar-ini { display: flex; align-items: center; justify-content: center; background: #8a5a2b; color: #fff; font-weight: 700; font-size: 1.75rem; border-color: transparent; }
.ess-name { font-size: 1.35rem; font-weight: 700; margin: 0 0 .15rem; color: var(--hr-text); line-height: 1.25; overflow-wrap: anywhere; }
.ess-meta { color: var(--hr-muted); font-size: .9375rem; }
.ess-badges { margin-top: .4rem; display: flex; flex-wrap: wrap; gap: .35rem; }
@media (max-width: 400px) { .ess-avatar { width: 68px; height: 68px; } .ess-name { font-size: 1.2rem; } }

.ess-card { border-top: 3px solid var(--hr-accent); }
.ess-clock { text-align: center; margin-bottom: .6rem; }
.ess-time { font-size: 2.4rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--hr-text); }
.ess-date { font-size: 1rem; color: var(--hr-text); }
.ess-tz { font-size: .8125rem; color: var(--hr-muted); }
.ess-sched { text-align: center; color: var(--hr-muted); font-size: .9375rem; margin-bottom: .75rem; }
.ess-instruction { border-radius: 10px; padding: .7rem .9rem; margin-bottom: .9rem; background: var(--hr-accent-bg); color: var(--hr-text); border: 1px solid var(--hr-border); font-weight: 600; }
.ess-instruction.ess-ok { background: var(--st-ok-bg); color: var(--st-ok-fg); border-color: transparent; }
.ess-instruction.ess-bad { background: var(--st-warn-bg); color: var(--st-warn-fg); border-color: transparent; }
.ess-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 992px) { .ess-btns { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ess-btn { min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; padding: .6rem .4rem; border-radius: 12px; border: 2px solid var(--hr-border);
  background: var(--hr-surface-2); color: var(--hr-text); font-size: 1rem; font-weight: 600; text-align: center; line-height: 1.2; -webkit-tap-highlight-color: transparent; }
.ess-btn i { font-size: 1.5rem; }
.ess-btn-label { overflow-wrap: anywhere; }
.ess-btn-time { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ess-btn-sub { font-size: .8125rem; font-weight: 500; }
.ess-btn.is-next { background: var(--hr-accent-dk); border-color: var(--hr-accent-dk); color: #fff; box-shadow: 0 2px 8px rgba(184, 87, 0, .35); cursor: pointer; }
.ess-btn.is-next:active { transform: scale(.98); }
.ess-btn.is-next:focus-visible, .ess-mode:focus-visible { outline: 3px solid var(--st-info-fg); outline-offset: 2px; }
.ess-btn.is-done { background: var(--st-ok-bg); border-color: transparent; color: var(--st-ok-fg); }
.ess-btn.is-wait { border-style: dashed; color: var(--hr-muted); background: transparent; }
.ess-btn:disabled { cursor: default; }
.ess-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .9rem 0 .4rem; }
.ess-summary > div { background: var(--hr-surface-2); border: 1px solid var(--hr-border); border-radius: 10px; padding: .5rem .65rem; }
.ess-summary dt { font-size: .8125rem; font-weight: 600; color: var(--hr-muted); margin: 0; }
.ess-summary dd { margin: 0; font-weight: 700; color: var(--hr-text); overflow-wrap: anywhere; }
@media (max-width: 480px) { .ess-summary { grid-template-columns: 1fr; } .ess-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; } }
.ess-note { font-size: .875rem; color: var(--hr-muted); margin: .4rem 0 0; }

.ess-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.ess-tile { display: flex; align-items: center; gap: .65rem; min-height: 60px; padding: .6rem .85rem; border-radius: 12px; background: var(--hr-surface); border: 1px solid var(--hr-border);
  color: var(--hr-text) !important; font-weight: 600; font-size: 1rem; line-height: 1.25; text-decoration: none !important; box-shadow: var(--hr-shadow); }
.ess-tile i { font-size: 1.35rem; width: 1.6rem; text-align: center; color: var(--hr-accent); flex: 0 0 auto; }
.ess-tile span { min-width: 0; overflow-wrap: anywhere; }
.ess-tile:active { background: var(--hr-surface-2); }
@media (max-width: 400px) { .ess-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ess-tile { font-size: .9375rem; padding: .55rem .65rem; } }

.ess-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.ess-grid > .card { margin-bottom: 0; }
@media (min-width: 992px) { .ess-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ess-wide { grid-column: 1 / -1; } }
.ess-recent-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--hr-border); }
.ess-recent-row:last-child { border-bottom: 0; }
.ess-recent-date { font-weight: 600; }
.ess-recent-times, .ess-recent-hrs { color: var(--hr-muted); font-variant-numeric: tabular-nums; }

/* ============================================================ 6. Punch dialog + camera */
.ess-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ess-mode { min-height: 52px; border: 2px solid var(--hr-border); background: var(--hr-surface-2); color: var(--hr-text); border-radius: 10px; font-weight: 600; font-size: 1rem; padding: .4rem; }
.ess-mode i { margin-right: .35rem; }
.ess-mode.active { border-color: var(--hr-accent-dk); background: var(--hr-accent-bg); box-shadow: inset 0 0 0 1px var(--hr-accent-dk); }
.ess-video { position: relative; background: #000; border-radius: 10px; overflow: hidden; }
.ess-video video { display: block; width: 100%; max-height: 52vh; object-fit: cover; transform: scaleX(-1); }   /* mirrored like a selfie preview; the saved photo is not mirrored */
.ess-preview { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: 10px; background: #000; }
.ess-cam-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; align-items: center; }
.ess-done { text-align: center; padding: .5rem 0; }
.ess-done-icon { font-size: 3.2rem; color: var(--st-ok-fg); line-height: 1; margin-bottom: .4rem; }
body:not(.dark-mode) .ess-done-icon { color: #1c8a56; }
.ess-done-time { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--hr-text); }
.ess-done h5 { font-weight: 700; color: var(--hr-text); }

/* ============================================================ 7. My DTR */
.dtr-month-pick { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.dtr-month-pick .form-control { width: 11rem; max-width: 100%; }
.dtr-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: .9rem; }
.dtr-summary > div { background: var(--hr-surface); border: 1px solid var(--hr-border); border-radius: 10px; padding: .55rem .75rem; }
.dtr-summary span { display: block; font-size: .8125rem; font-weight: 600; color: var(--hr-muted); }
.dtr-summary b { font-size: 1.25rem; color: var(--hr-text); font-variant-numeric: tabular-nums; }
@media (max-width: 400px) { .dtr-summary b { font-size: 1.1rem; } .dtr-summary span { font-size: .75rem; } }
.dtr-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; }
@media (min-width: 640px) and (max-width: 991.98px) { .dtr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dtr-table-card { display: none; }
@media (min-width: 992px) { .dtr-cards { display: none; } .dtr-table-card { display: block; } }
.dtr-card { background: var(--hr-surface); border: 1px solid var(--hr-border); border-radius: 12px; padding: .8rem .95rem; box-shadow: var(--hr-shadow); }
.dtr-card.is-today { border-color: var(--hr-accent); box-shadow: 0 0 0 1px var(--hr-accent); }
.dtr-card.is-bad { border-left: 4px solid var(--st-bad-fg); }
.dtr-card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .55rem; }
.dtr-date { font-weight: 700; font-size: 1.0625rem; color: var(--hr-text); }
.dtr-iso { font-size: .8125rem; color: var(--hr-muted); }
.dtr-sessions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .6rem; }
.dtr-sess { background: var(--hr-surface-2); border-radius: 8px; padding: .45rem .6rem; }
.dtr-sess-t { font-size: .8125rem; font-weight: 700; color: var(--hr-muted); margin-bottom: .15rem; }
.dtr-pair { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.dtr-pair span { color: var(--hr-muted); }
.dtr-pair b { color: var(--hr-text); }
.dtr-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: 0; }
.dtr-metrics dt { font-size: .75rem; font-weight: 600; color: var(--hr-muted); margin: 0; }
.dtr-metrics dd { margin: 0; font-weight: 700; color: var(--hr-text); font-variant-numeric: tabular-nums; }
@media (max-width: 400px) { .dtr-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dtr-card-f { margin-top: .6rem; padding-top: .5rem; border-top: 1px solid var(--hr-border); font-size: .875rem; color: var(--hr-text); display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.dtr-table th { white-space: nowrap; }
.dtr-table tr.dtr-today td { background: var(--hr-accent-bg); }
body.dark-mode .dtr-table.table td, body.dark-mode .dtr-table.table th { color: var(--hr-text); border-color: var(--hr-border); }
body.dark-mode .dtr-table .table-danger td { background: var(--st-bad-bg); color: var(--st-bad-fg); }

/* ============================================================ 8. HR evidence review */
.ev-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--hr-border); display: block; background: var(--hr-surface-2); }
.ev-full { display: block; width: 100%; max-height: 60vh; object-fit: contain; background: #000; border-radius: 10px; margin-bottom: .75rem; }
.ev-dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .9rem; margin: 0 0 .75rem; }
.ev-dl dt { font-weight: 600; color: var(--hr-muted); }
.ev-dl dd { margin: 0; overflow-wrap: anywhere; }
.ev-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 575.98px) { .ev-dl { grid-template-columns: 1fr; } .ev-dl dt { margin-top: .35rem; } }

/* ============================================================ 9. Self Timekeeping v2 (2026-10-17): header, 2x2 punch cards with review status, HR queue helpers */
.ess-wrap { max-width: 720px; margin: 0 auto; }
.ess-head .card-body { padding: 1rem; }
.ess-who { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.ess-who .ess-avatar { width: 56px; height: 56px; font-size: 1.15rem; border-width: 2px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ess-who .ess-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ess-who-text { flex: 1 1 auto; min-width: 0; }
.ess-who .ess-name { font-size: 1.1rem; margin: 0; }
.ess-who .st-badge { flex: 0 0 auto; align-self: flex-start; }
@media (max-width: 380px) { .ess-who { flex-wrap: wrap; } .ess-who .st-badge { margin-left: calc(56px + .75rem); } }
.ess-head .ess-time { font-size: 2.1rem; }
.ess-head .ess-sched { margin-bottom: 0; }
.ess-instruction { margin-top: .75rem; }

.ess-btns { margin-top: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) { .ess-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ess-btn { min-height: 0; justify-content: flex-start; gap: .3rem; padding: .85rem .6rem .75rem; border: 2px solid var(--hr-border); background: var(--hr-surface); box-shadow: var(--hr-shadow); }
.ess-btn .ess-ic { font-size: 1.35rem; color: var(--hr-muted); }
.ess-btn-label { font-size: .95rem; font-weight: 700; color: var(--hr-text); }
.ess-btn .st-badge { font-size: .72rem; }
.ess-btn-time { font-size: 1.35rem; font-weight: 700; margin-top: .1rem; }
.ess-btn-time.ess-dash { color: var(--hr-muted); font-weight: 500; }
.ess-btn-sub { font-size: .78rem; font-weight: 500; color: var(--hr-muted); line-height: 1.3; overflow-wrap: anywhere; }
.ess-act { margin-top: auto; width: 100%; min-height: 46px; font-weight: 700; background: var(--hr-accent-dk, #B85700); color: #fff; border: 0; border-radius: 10px; }
.ess-act:hover, .ess-act:focus { color: #fff; filter: brightness(1.08); }
.ess-act:active { transform: scale(.98); }
.ess-btn.is-next { background: var(--hr-surface); color: var(--hr-text); border-color: var(--hr-accent-dk, #B85700); box-shadow: 0 0 0 3px rgba(232,114,12,.18), var(--hr-shadow); }
.ess-btn.is-none:not(.is-next) { border-style: dashed; box-shadow: none; background: transparent; }
.ess-btn.is-none:not(.is-next) .ess-btn-label { color: var(--hr-muted); }
.ess-btn.is-pending { border-color: #e0a800; } .ess-btn.is-pending .ess-ic { color: #a67c00; }
.ess-btn.is-approved, .ess-btn.is-recorded { border-color: #28a745; } .ess-btn.is-approved .ess-ic, .ess-btn.is-recorded .ess-ic { color: #1c8a56; }
.ess-btn.is-rejected { border-color: #dc3545; } .ess-btn.is-rejected .ess-ic { color: #c82333; }
body.dark-mode .ess-btn { background: var(--hr-surface); }
.ess-btn.is-done, .ess-btn.is-wait { background: var(--hr-surface); }
.ess-confirm { background: var(--hr-accent-bg, #fff4e6); border: 1px solid var(--hr-border); border-radius: 10px; padding: .6rem .8rem; margin-bottom: 1rem; color: var(--hr-text); }
.ess-confirm-sub { display: block; font-size: .8rem; color: var(--hr-muted); font-weight: 400; }
@media (max-width: 340px) { .ess-btn-time { font-size: 1.2rem; } .ess-btn-label { font-size: .88rem; } }

/* ---- HR review queue (attendance/self_punch.php) ---- */
.rq-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.rq-kpi { background: var(--hr-surface); border: 1px solid var(--hr-border); border-radius: 10px; padding: .55rem .75rem; text-align: left; cursor: pointer; }
.rq-kpi b { display: block; font-size: 1.4rem; line-height: 1.1; color: var(--hr-text); font-variant-numeric: tabular-nums; }
.rq-kpi span { font-size: .78rem; font-weight: 600; color: var(--hr-muted); }
.rq-kpi.is-alert b { color: #b02a37; } .rq-kpi.is-warn b { color: #8a6500; }
.rq-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; }
@media (min-width: 992px) { .rq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .rq-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rq-card { background: var(--hr-surface); border: 1px solid var(--hr-border); border-left: 5px solid var(--hr-border); border-radius: 12px; padding: .75rem .85rem; box-shadow: var(--hr-shadow); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rq-card:active { background: var(--hr-accent-bg, #fff4e6); }
.rq-card.s-Pending { border-left-color: #e0a800; } .rq-card.s-Approved { border-left-color: #28a745; } .rq-card.s-Rejected { border-left-color: #dc3545; }
.rq-top { display: flex; gap: .65rem; align-items: flex-start; }
.rq-top .ev-thumb { flex: 0 0 auto; }
.rq-nophoto { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 8px; border: 1px dashed var(--hr-border); display: flex; align-items: center; justify-content: center; color: var(--hr-muted); font-size: 1.2rem; }
.rq-main { flex: 1 1 auto; min-width: 0; }
.rq-name { font-weight: 700; color: var(--hr-text); line-height: 1.25; overflow-wrap: anywhere; }
.rq-meta { font-size: .82rem; color: var(--hr-muted); overflow-wrap: anywhere; }
.rq-punch { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; margin-top: .35rem; }
.rq-time { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--hr-text); }
.rq-flags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.rq-flag { font-size: .74rem; font-weight: 600; border-radius: 999px; padding: .15rem .55rem; }
.rq-flag.danger { background: #f8d7da; color: #58151c; } .rq-flag.warning { background: #fff3cd; color: #664d03; } .rq-flag.info { background: #e2e9f3; color: #1d3557; }
body.dark-mode .rq-flag.danger { background: #5a1d24; color: #f1aeb5; } body.dark-mode .rq-flag.warning { background: #5c4a00; color: #ffe69c; } body.dark-mode .rq-flag.info { background: #2a3b55; color: #c9d9f0; }
.rq-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.rq-actions .btn { flex: 1 1 auto; min-height: 44px; }
.rq-check { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; font-size: .82rem; color: var(--hr-muted); }
.rq-check input { width: 20px; height: 20px; }
.rq-day { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin: .5rem 0 1rem; }
@media (min-width: 576px) { .rq-day { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rq-day > div { border: 1px solid var(--hr-border); border-radius: 10px; padding: .45rem .55rem; background: var(--hr-surface-2, transparent); }
.rq-day > div.is-current { border-color: var(--hr-accent-dk, #B85700); box-shadow: 0 0 0 2px rgba(232,114,12,.2); }
.rq-day .t { font-size: .72rem; font-weight: 700; color: var(--hr-muted); text-transform: uppercase; letter-spacing: .02em; }
.rq-day .v { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--hr-text); }
.rq-day .x { font-size: .75rem; color: var(--hr-muted); overflow-wrap: anywhere; }
.rq-hist { list-style: none; margin: 0 0 1rem; padding: 0; border-left: 2px solid var(--hr-border); }
.rq-hist li { position: relative; padding: .1rem 0 .6rem .9rem; font-size: .88rem; color: var(--hr-text); }
.rq-hist li::before { content: ""; position: absolute; left: -6px; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--hr-muted); }
.rq-hist li.Approved::before { background: #28a745; } .rq-hist li.Rejected::before { background: #dc3545; } .rq-hist li.Submitted::before, .rq-hist li.Resubmitted::before { background: #e0a800; }
.rq-hist .when { display: block; font-size: .76rem; color: var(--hr-muted); }
.rq-decision { position: sticky; bottom: 0; background: var(--hr-surface); border-top: 1px solid var(--hr-border); padding-top: .75rem; margin: 0 -1rem -1rem; padding-left: 1rem; padding-right: 1rem; padding-bottom: 1rem; }
.rq-filters .form-control, .rq-filters .custom-select { min-height: 44px; }
