/* Law Firm HR & Management: navy and legal-gold design system */
.ichr-app, .ichr-gate {
  --navy: #14243a; --navy-d: #0d1929; --ink: #101d30; --accent: #d7b66d;
  --bg: #f4f5f8; --card: #fff; --line: #e4e7ee; --soft: #f0f2f7; --text: #1c2540; --muted: #667089;
  --ok: #0f7a4d; --ok-bg: #dcf5e9; --warn: #a15c00; --warn-bg: #fff0d1; --bad: #b3261e; --bad-bg: #fde4e1; --info: #0b5ed7; --info-bg: #e2edff;
  --r: 12px; --r-s: 8px; --shadow: 0 1px 2px rgba(20,33,61,.05), 0 4px 14px rgba(20,33,61,.05);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  .ichr-app, .ichr-gate {
    --bg: #0f1424; --card: #171d33; --line: #263052; --soft: #1e2644; --text: #e8ecf8; --muted: #98a2c3;
    --ok-bg: #11392b; --warn-bg: #3d2d0c; --bad-bg: #40181a; --info-bg: #14305e; --ok: #5fdca0; --warn: #ffc15a; --bad: #ff8a80; --info: #8fbaff;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
  }
}
.ichr-app *, .ichr-app *::before, .ichr-app *::after { box-sizing: border-box; }
body.ichr-lock { overflow: hidden; }

/* Full-screen app container (sits above the theme, below the WP admin bar) */
.ichr-app { position: fixed; inset: var(--wp-admin--admin-bar--height, 0px) 0 0 0; z-index: 99990; background: var(--bg); overflow: hidden; }
.ichr-boot { height: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); text-align: center; flex-direction: column; }
.ichr-boot.bad { color: var(--bad); }
.ichr-spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: ichr-r .7s linear infinite; vertical-align: -3px; }
@keyframes ichr-r { to { transform: rotate(360deg); } }

.ichr-shell { display: grid; grid-template-columns: 252px 1fr; height: 100%; }
.ichr-side { background: var(--ink); color: #c9d2ea; display: flex; flex-direction: column; min-height: 0; }
.ichr-brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 16px; }
.ichr-brand .logo { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--navy), var(--accent)); color: #fff; font-weight: 800; display: grid; place-items: center; letter-spacing: .5px; }
.ichr-brand strong { display: block; color: #fff; font-size: 15px; line-height: 1.2; }
.ichr-brand small { color: #8e9bc0; font-size: 12px; }
.ichr-side nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; scrollbar-width: thin; scrollbar-color: #33406a transparent; }
.ichr-nav-g { margin: 16px 10px 6px; font-size: 11px; font-weight: 700; color: #7886ad; letter-spacing: .06em; text-transform: uppercase; }
.ichr-nav-i { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: #c9d2ea; text-decoration: none; font-weight: 500; position: relative; transition: background .15s, color .15s; }
.ichr-nav-i i { width: 18px; text-align: center; opacity: .85; }
.ichr-nav-i:hover { background: rgba(255,255,255,.07); color: #fff; }
.ichr-nav-i.on { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.ichr-nav-i:focus-visible, .ichr-btn:focus-visible, .ichr-app input:focus-visible, .ichr-app select:focus-visible, .ichr-app textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ichr-badge { margin-left: auto; background: var(--accent); color: #1c1200; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center; }
.ichr-side-f { padding: 12px 14px 16px; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 4px; }
.ichr-side-f a { color: #aeb9d8; text-decoration: none; padding: 7px 8px; border-radius: 8px; font-weight: 500; }
.ichr-side-f a:hover { background: rgba(255,255,255,.07); color: #fff; }
.ichr-side-f i { width: 18px; margin-right: 8px; }

.ichr-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ichr-top { height: 60px; background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 22px; flex-shrink: 0; }
.ichr-top-t { font-weight: 700; font-size: 15px; }
.ichr-menu { display: none; }
.ichr-user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ichr-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--info-bg); color: var(--navy); display: inline-grid; place-items: center; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.ichr-avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.ichr-avatar.lg { width: 104px; height: 104px; font-size: 34px; margin: 0 auto 12px; }
.ichr-avatar img { width: 100%; height: 100%; object-fit: cover; }
#ichr-view { flex: 1; overflow-y: auto; padding: 26px 28px 60px; outline: none; }
.ichr-page { max-width: 1280px; margin: 0 auto; animation: ichr-in .22s ease; }
@keyframes ichr-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.ichr-ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.ichr-ph h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.ichr-ph p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.ichr-ph-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ichr-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.ichr-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.ichr-card-h h3, .ichr-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.ichr-card-h a { color: var(--navy); font-weight: 600; text-decoration: none; }
.ichr-muted { color: var(--muted); }
.ichr-grid { display: grid; gap: 18px; }
.ichr-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ichr-grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ichr-center { text-align: center; }

.ichr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.ichr-stats.flat { margin-bottom: 4px; }
.ichr-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.ichr-stats.flat .ichr-stat { box-shadow: none; background: var(--soft); border-color: transparent; }
.ichr-stat .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--soft); color: var(--navy); font-size: 17px; flex-shrink: 0; }
.ichr-stat.blue .ico { background: var(--info-bg); color: var(--info); }
.ichr-stat.teal .ico { background: var(--ok-bg); color: var(--ok); }
.ichr-stat.amber .ico { background: var(--warn-bg); color: var(--warn); }
.ichr-stat.red .ico { background: var(--bad-bg); color: var(--bad); }
.ichr-stat .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.ichr-stat .val { font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }

.ichr-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r); background: var(--warn-bg); color: var(--warn); text-decoration: none; margin-bottom: 18px; border: 1px solid transparent; }
.ichr-banner > div { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .ichr-banner span { opacity: .85; }
.ichr-banner:hover { border-color: var(--warn); }
.ichr-row { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ichr-row:last-child { border: 0; } .ichr-row span { flex: 1; } .ichr-row i { color: var(--muted); width: 16px; }
.ichr-chart { position: relative; height: 260px; }

/* Buttons */
.ichr-btn, .ichr-gate-card .ichr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap; transition: transform .1s, background .15s, border-color .15s; }
.ichr-btn:hover { border-color: #b6bfd6; background: var(--soft); } .ichr-btn:active { transform: translateY(1px); }
.ichr-btn:disabled { opacity: .5; cursor: not-allowed; }
.ichr-btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; } .ichr-btn.primary:hover { background: var(--navy-d); }
.ichr-btn.success { background: var(--ok); border-color: var(--ok); color: #fff; } .ichr-btn.success:hover { filter: brightness(.9); }
.ichr-btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; } .ichr-btn.danger:hover { filter: brightness(.9); }
.ichr-btn.warn { background: var(--accent); border-color: var(--accent); color: #1c1200; }
.ichr-btn.ghost { background: transparent; }
.ichr-btn.sm { padding: 6px 10px; font-size: 12.5px; } .ichr-btn.lg { padding: 13px 22px; font-size: 15px; }
.ichr-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Tables */
.ichr-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ichr-search { position: relative; flex: 1; min-width: 200px; }
.ichr-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ichr-search input { padding-left: 36px !important; width: 100%; }
.ichr-app input, .ichr-app select, .ichr-app textarea { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 9px 12px; max-width: 100%; }
.ichr-app input:focus, .ichr-app select:focus, .ichr-app textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,61,145,.14); outline: none; }
.ichr-app input.bad { border-color: var(--bad); }
.ichr-tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-s); }
.ichr-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ichr-tbl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 11px 14px; background: var(--soft); white-space: nowrap; border-bottom: 1px solid var(--line); }
.ichr-tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ichr-tbl tbody tr:last-child td { border-bottom: 0; } .ichr-tbl tbody tr:hover td { background: color-mix(in srgb, var(--soft) 55%, transparent); }
.ichr-tbl th.r, .ichr-tbl td.r, .r { text-align: right; }
.ichr-tbl.compact td, .ichr-tbl.compact th { padding: 8px 10px; font-size: 13px; }
input.mini { width: 92px; padding: 6px 8px; }
.ichr-who { display: flex; gap: 10px; align-items: center; } .ichr-who small { color: var(--muted); }
.ichr-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--muted); white-space: nowrap; }
.ichr-pill.ok { background: var(--ok-bg); color: var(--ok); } .ichr-pill.warn { background: var(--warn-bg); color: var(--warn); }
.ichr-pill.bad { background: var(--bad-bg); color: var(--bad); } .ichr-pill.info { background: var(--info-bg); color: var(--info); }
.ichr-pag { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 13px; flex-wrap: wrap; } .ichr-pag > div { display: flex; gap: 6px; }
.ichr-empty { text-align: center; padding: 44px 16px; color: var(--muted); } .ichr-empty i { font-size: 34px; opacity: .35; display: block; margin-bottom: 8px; } .ichr-empty.bad { color: var(--bad); }
.ichr-skel { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, var(--soft), var(--line), var(--soft)); background-size: 200% 100%; animation: ichr-sk 1.2s infinite; } .ichr-skel.tall { height: 360px; }
@keyframes ichr-sk { to { background-position: -200% 0; } }

/* Forms */
.ichr-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 8px; }
.ichr-fg { display: flex; flex-direction: column; gap: 6px; }
.ichr-fg.ichr-wide { grid-column: 1 / -1; }
.ichr-fg label { font-weight: 600; font-size: 13px; } .ichr-fg label b { color: var(--bad); }
.ichr-fg select[multiple] { min-height: 130px; }
.ichr-check label { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--soft); }
.ichr-check input { width: 18px; height: 18px; accent-color: var(--navy); }
.ichr-hint { color: var(--muted); font-size: 12px; }
.ichr-sec { font-weight: 800; color: var(--navy); margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); } .ichr-sec:first-child { margin-top: 0; }
.ichr-errbox { background: var(--bad-bg); color: var(--bad); border-radius: var(--r-s); padding: 10px 14px; margin-bottom: 14px; font-weight: 600; } .ichr-errbox[hidden] { display: none; }
.ichr-alert { padding: 12px 14px; border-radius: var(--r-s); margin: 10px 0 14px; background: var(--soft); } .ichr-alert.info { background: var(--info-bg); color: var(--text); }
.ichr-alert i { margin-right: 6px; color: var(--info); }
.ichr-todo { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); margin-bottom: 8px; cursor: pointer; }
.ichr-todo input { width: 18px; height: 18px; accent-color: var(--ok); }

/* Modal, toast */
.ichr-modal-wrap { position: fixed; inset: 0; background: rgba(10,16,34,.55); backdrop-filter: blur(2px); z-index: 99995; display: flex; align-items: center; justify-content: center; padding: 18px; animation: ichr-fade .15s; }
@keyframes ichr-fade { from { opacity: 0; } }
.ichr-modal { background: var(--card); color: var(--text); border-radius: 16px; width: min(680px, 100%); max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(0,0,0,.35); animation: ichr-pop .18s ease; }
@keyframes ichr-pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.ichr-modal.sm { width: min(460px, 100%); } .ichr-modal.lg { width: min(900px, 100%); } .ichr-modal.xl { width: min(1180px, 100%); }
.ichr-modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); } .ichr-modal-h h3 { margin: 0; font-size: 17px; font-weight: 800; }
.ichr-x { border: 0; background: var(--soft); color: var(--text); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; }
.ichr-modal-b { padding: 20px 22px; overflow-y: auto; }
.ichr-modal-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.ichr-recorded { background: var(--card); border-radius: 20px; padding: 34px 40px; text-align: center; max-width: 380px; box-shadow: 0 24px 80px rgba(0,0,0,.35); animation: ichr-pop .25s ease; }
.ichr-tick { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 34px; margin: 0 auto 14px; } .ichr-recorded h2 { margin: 0 0 6px; } .ichr-recorded p { color: var(--muted); margin: 0 0 18px; }

/* Misc blocks */
.ichr-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0 0 8px; }
.ichr-kv > div { background: var(--soft); border-radius: var(--r-s); padding: 10px 12px; } .ichr-kv dt { font-size: 12px; color: var(--muted); font-weight: 600; } .ichr-kv dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.ichr-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.ichr-tab { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; } .ichr-tab.on { color: var(--navy); border-color: var(--navy); }
.ichr-pane[hidden] { display: none; }
.ichr-chips { display: flex; flex-wrap: wrap; gap: 8px; } .ichr-chip { background: var(--soft); padding: 6px 12px; border-radius: 999px; font-weight: 600; } .ichr-chip small { color: var(--muted); font-weight: 500; }
.ichr-rep { text-align: left; } .ichr-rep .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--info-bg); color: var(--info); display: grid; place-items: center; margin-bottom: 10px; } .ichr-rep h4 { margin: 0 0 12px; font-size: 15px; } .ichr-rep .ichr-acts { justify-content: flex-start; }
.ichr-clock { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, var(--card), var(--info-bg)); } .ichr-clock p { margin: 4px 0 0; }
.ichr-note small { color: var(--muted); } .ichr-note p { white-space: pre-wrap; margin: 6px 0 0; } .ichr-note + .ichr-note { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.ichr-list { display: grid; } .ichr-li { display: flex; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); } .ichr-li:last-child { border: 0; } .ichr-li > div:first-child { flex: 1; } .ichr-li small { display: block; color: var(--muted); } .ichr-li-v { font-weight: 800; font-size: 17px; }
.ichr-policy { white-space: pre-wrap; background: var(--soft); border-radius: var(--r-s); padding: 14px; margin: 8px 0 14px; max-height: 280px; overflow-y: auto; }
.ichr-slip { background: #fff; color: #111; padding: 18px; border-radius: 8px; }
.ichr-slip .hd { text-align: center; border-bottom: 3px solid #0a3d91; margin-bottom: 12px; padding-bottom: 8px; }
.ichr-slip table { width: 100%; border-collapse: collapse; margin: 8px 0; } .ichr-slip td, .ichr-slip th { border: 1px solid #d6dae1; padding: 6px 9px; text-align: left; } .ichr-slip th { background: #f3f5f9; } .ichr-slip .r { text-align: right; } .ichr-slip .net { background: #0a3d91; color: #fff; font-weight: 800; }

/* Login / access gate */
.ichr-gate { display: flex; justify-content: center; padding: 48px 16px; }
.ichr-gate-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; width: min(420px, 100%); box-shadow: var(--shadow); }
.ichr-gate-brand { font-weight: 800; color: var(--navy); font-size: 18px; margin-bottom: 14px; }
.ichr-gate-card h2 { margin: 0 0 6px; } .ichr-gate-card p { margin: 0 0 14px; }
.ichr-gate-card form p { margin-bottom: 12px; } .ichr-gate-card label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.ichr-gate-card input[type=text], .ichr-gate-card input[type=password] { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.ichr-gate-card input[type=submit] { background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; width: 100%; }
.ichr-primary { background: var(--navy) !important; color: #fff !important; }

/* Responsive */
@media (max-width: 1000px) { .ichr-grid.g2, .ichr-grid.g3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .ichr-shell { grid-template-columns: 1fr; }
  .ichr-side { position: fixed; z-index: 99992; inset: 0 auto 0 0; width: 280px; transform: translateX(-102%); transition: transform .22s; box-shadow: 8px 0 30px rgba(0,0,0,.3); }
  .ichr-side.open { transform: none; } .ichr-menu { display: inline-flex; }
  .ichr-scrim { display: none; } .ichr-side.open ~ .ichr-scrim { display: block; position: fixed; inset: 0; z-index: 99991; background: rgba(0,0,0,.45); }
  #ichr-view { padding: 18px 14px 60px; } .ichr-user .nm { display: none; } .ichr-ph h2 { font-size: 21px; }
  .ichr-btn span { display: none; } .ichr-acts .ichr-btn.sm span { display: none; }
  .ichr-btn.sm:not([data-act]) span, .ichr-ph-a .ichr-btn span, .ichr-modal-f .ichr-btn span { display: inline; }
  .ichr-modal-wrap { padding: 0; align-items: flex-end; } .ichr-modal { border-radius: 16px 16px 0 0; max-height: 94vh; width: 100% !important; }
}
@media print { .ichr-app { position: static; } .ichr-side, .ichr-top { display: none; } }
@media (prefers-reduced-motion: reduce) { .ichr-app *, .ichr-modal-wrap, .ichr-modal { animation: none !important; transition: none !important; } }

/* v2 additions: calendar buttons, photos, template preview, GPS warning */
.ichr-datew { position: relative; display: flex; width: 100%; }
.ichr-datew input { width: 100%; padding-right: 44px; }
.ichr-datew input::-webkit-calendar-picker-indicator { display: none; }
.ichr-cal { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 34px; border: 0; border-radius: 6px; background: var(--soft); color: var(--navy); cursor: pointer; }
.ichr-cal:hover { background: var(--info-bg); }
.ichr-ph-a .ichr-datew { width: auto; }
.ichr-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.ichr-color { height: 42px; padding: 3px; width: 100%; cursor: pointer; }
.ichr-frame { width: 100%; height: 66vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ichr-tick.warnt { background: var(--warn-bg); color: var(--warn); }
.ichr-avatar img { display: block; }

/* v2.1: onboarding tour, spotlight, attendance hints */
.ichr-tour { background: var(--card); color: var(--text); border-radius: 20px; padding: 32px 30px 22px; width: min(460px, 100%); text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,.35); animation: ichr-pop .25s ease; }
.ichr-tour-ic { width: 76px; height: 76px; border-radius: 50%; background: var(--info-bg); color: var(--navy); display: grid; place-items: center; font-size: 32px; margin: 0 auto 14px; }
.ichr-tour h2 { margin: 0 0 8px; font-size: 21px; } .ichr-tour p { color: var(--muted); margin: 0 0 16px; line-height: 1.6; }
.ichr-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; } .ichr-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); } .ichr-dots span.on { background: var(--accent); width: 22px; border-radius: 6px; }
.ichr-tour-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ichr-nav-i.ichr-spot { background: rgba(255,122,0,.25); color: #fff; animation: ichr-spot 1.2s ease infinite; }
@keyframes ichr-spot { 50% { box-shadow: 0 0 0 4px rgba(255,122,0,.35); } }
@media (max-width: 860px) { .ichr-tour { border-radius: 20px 20px 0 0; width: 100%; } }

/* v2.3: staff contracts */
#ichr-banners:not(:empty) { padding: 16px 28px 0; }
.ichr-banner-act { margin-bottom: 0; flex-wrap: wrap; border-color: var(--warn); }
.ichr-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; } .ichr-bar input[type=search] { flex: 1 1 220px; min-width: 0; }
.ichr-ct-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 12px; }
.ichr-callout { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-bg); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 16px; margin: 12px 0 16px; } .ichr-callout p { margin: 4px 0 0; }
.ichr-doc { background: #fff; color: #1b2233; border: 1px solid var(--line); border-radius: 12px; padding: 26px 30px; line-height: 1.75; font-size: 15px; overflow-wrap: anywhere; }
.ichr-doc h1 { font-size: 24px; text-align: center; margin: 0 0 14px; } .ichr-doc h2 { font-size: 18px; margin: 22px 0 6px; color: var(--navy); } .ichr-doc h3 { font-size: 16px; margin: 16px 0 4px; }
.ichr-doc p { margin: 0 0 10px; } .ichr-doc ol, .ichr-doc ul { margin: 0 0 12px; padding-left: 24px; } .ichr-doc ol { list-style: decimal; } .ichr-doc ul { list-style: disc; } .ichr-doc li { margin-bottom: 4px; }
.ichr-doc table { border-collapse: collapse; width: 100%; margin: 10px 0; } .ichr-doc td, .ichr-doc th { border: 1px solid #d6dae1; padding: 6px 9px; } .ichr-doc hr { border: 0; border-top: 1px solid #d6dae1; margin: 16px 0; }
.ichr-doc-read { max-height: 62vh; overflow-y: auto; }
.ichr-ack { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--soft); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ichr-ack-done { display: flex; gap: 12px; align-items: center; color: var(--ok, #0f7a4d); font-size: 15px; } .ichr-ack-done i, .ichr-ack-done svg { font-size: 26px; } .ichr-ack-done p { margin: 2px 0 0; color: var(--muted); }
.ce-tb { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--soft); align-items: center; }
.ce-tb button { border: 1px solid var(--line); background: var(--card); border-radius: 8px; min-width: 34px; height: 34px; cursor: pointer; font: inherit; color: var(--text); } .ce-tb button:hover { border-color: var(--navy); }
.ce-tb select { height: 34px; border-radius: 8px; max-width: 170px; }
.ce-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .ce-pane { min-width: 0; }
.ce-ed { border-radius: 0 0 12px 12px; min-height: 420px; max-height: 58vh; overflow-y: auto; outline: none; } .ce-ed:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,61,145,.12); }
.ce-pv { min-height: 420px; max-height: 58vh; overflow-y: auto; background: #fbfcfe; } .ce-ph { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 34px; }
.ce-mtabs { display: none; gap: 6px; margin-bottom: 10px; } .ce-mtabs button { flex: 1; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px; font: inherit; font-weight: 700; color: var(--muted); } .ce-mtabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 980px) { .ce-grid { grid-template-columns: 1fr; } .ce-mtabs { display: flex; } .ce-grid[data-show="ed"] .ce-prev { display: none; } .ce-grid[data-show="pv"] .ce-pane:not(.ce-prev) { display: none; } }
@media (max-width: 860px) { #ichr-banners:not(:empty) { padding: 12px 14px 0; } .ichr-doc { padding: 18px 16px; } .ichr-doc-read { max-height: none; } }
@media print { .ichr-doc { border: 0; padding: 0; } }

/* v2.4: working days, bulk attendance, schedule */
.ichr-days { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.ichr-day { position: relative; cursor: pointer; } .ichr-day input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ichr-day span { display: inline-block; min-width: 54px; text-align: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; background: var(--card); color: var(--muted); }
.ichr-day input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; } .ichr-day input:focus-visible + span { outline: 3px solid rgba(10,61,145,.35); }
.ichr-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ichr-multi { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--soft); }
.ichr-multi-box { max-height: 220px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; }
.ichr-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ichr-wd { text-align: center; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.ichr-wd.on { background: var(--navy); border-color: var(--navy); color: #fff; } .ichr-wd small { font-size: 11px; opacity: .85; }
.ichr-upc { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 4px; }
@media (max-width: 560px) { .ichr-wd { padding: 8px 0; font-size: 12px; } .ichr-day span { min-width: 46px; padding: 8px 6px; } }

.ichr-autofill { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--info-bg); color: var(--info); border-radius: var(--r-s); padding: 9px 12px; font-size: 13px; }
.ichr-autofill > span { white-space: nowrap; }
.ichr-modal-b .lbs { display: flex; flex-wrap: wrap; gap: 10px; }
.ichr-modal-b .lb { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--navy); border-radius: 8px; padding: 8px 10px; background: #fff; color: #14213d; }
.ichr-modal-b .lb .t { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ichr-modal-b .lb .id { font: 800 16px monospace; }
