/* OSI TeamConnect: fire engine red, white and black */
.ositc-root {
  --navy: #000000; --navy2: #2a2a2a; --accent: #CE2029; --accent-dark: #a8161f; --accent-soft: #fdecee; --gold: #c9a227;
  --bg: #f4f4f5; --card: #fff; --line: #e4e4e7; --text: #111111; --muted: #6b6b73;
  --green: #1f9d55; --green-soft: #e3f6ec; --red: #d64545; --red-soft: #fdeaea; --amber: #b7791f; --amber-soft: #fdf3e1;
  --blue-soft: #ececee; --purple: #000000; --purple-soft: #ececee; --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.ositc-root *, .ositc-root *::before, .ositc-root *::after { box-sizing: border-box; }
.ositc-root a { color: var(--accent); text-decoration: none; }
.ositc-root a:hover { text-decoration: underline; }
.ositc-root h1, .ositc-root h2, .ositc-root h3, .ositc-root p { margin: 0; }
.ositc-root button, .ositc-root input, .ositc-root select, .ositc-root textarea { font: inherit; color: inherit; }
body.ositc-body { margin: 0; background: #f4f4f5; }
body.ositc-body #ositc-app { min-height: 100vh; }

/* Shell */
.ositc-shell { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: 60px 1fr; height: 100vh; height: 100dvh; }
.ositc-top { grid-column: 1 / -1; border-bottom: 3px solid var(--accent) !important; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--card); border-bottom: 1px solid var(--line); z-index: 5; }
.ositc-brand { display: flex; align-items: center; gap: 10px; color: var(--text) !important; text-decoration: none !important; }
.ositc-brand { line-height: 0; }
.ositc-logo-svg { width: 210px; height: auto; display: block; }
.ositc-login-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.ositc-login-logo .ositc-logo-svg { width: 250px; max-width: 100%; }
.ositc-brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: .5px; }
.ositc-brand b { display: block; font-size: 16px; }
.ositc-brand small { display: block; font-size: 11px; color: var(--muted); }
.ositc-grow { flex: 1; }
.ositc-me { display: flex; align-items: center; gap: 8px; }
.ositc-me-name { font-weight: 600; font-size: 14px; }
.ositc-me-name small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.ositc-iconbtn { border: 0; background: transparent; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--muted) !important; cursor: pointer; text-decoration: none !important; }
.ositc-iconbtn:hover { background: var(--bg); color: var(--text) !important; }
.ositc-menu { display: none; }
.ositc-clockpill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent) !important; font-weight: 600; font-size: 13px; text-decoration: none !important; white-space: nowrap; }
.ositc-clockpill.on { background: var(--green-soft); color: var(--green) !important; }
.ositc-clockpill.on i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ositc-pulse 1.6s infinite; }
@keyframes ositc-pulse { 50% { opacity: .3; } }

.ositc-side { background: var(--card); border-right: 1px solid var(--line); overflow-y: auto; padding: 10px 10px 30px; }
.ositc-nav-sec { font-weight: 700; font-size: 13px; color: var(--text); padding: 16px 12px 6px; border-top: 1px solid var(--line); margin-top: 8px; }
.ositc-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text) !important; text-decoration: none !important; font-size: 14.5px; }
.ositc-nav-item:hover { background: var(--bg); }
.ositc-nav-item.active { background: var(--accent-soft); color: var(--accent) !important; font-weight: 600; }
.ositc-nav-item .ositc-ic { color: var(--muted); flex: none; }
.ositc-nav-item.active .ositc-ic { color: var(--accent); }
.ositc-nav-item span { flex: 1; }
.ositc-badge { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; min-width: 20px; text-align: center; display: inline-block; }
.ositc-badge[hidden] { display: none; }
.ositc-scrim { display: none; }
.ositc-main { overflow-y: auto; padding: 24px; min-width: 0; }

/* Page */
.ositc-page { max-width: 1240px; margin: 0 auto; }
.ositc-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ositc-page-head h1, .ositc-hello h1 { font-size: 24px; font-weight: 750; }
.ositc-page-head p, .ositc-hello p { color: var(--muted); margin-top: 3px; }
.ositc-hello { margin-bottom: 18px; }
.ositc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ositc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(20, 40, 75, .04); }
.ositc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ositc-card-head h2 { font-size: 18px; font-weight: 700; }
.ositc-dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ositc-dash-main, .ositc-dash-side { min-width: 0; }
.ositc-narrow { max-width: 760px; }
.ositc-muted { color: var(--muted); }
.ositc-strong { font-weight: 600; }
.ositc-red { color: var(--red); font-weight: 600; }
.ositc-center { text-align: center; }
.ositc-right { text-align: right; white-space: nowrap; }
.ositc-pad { padding: 6px 2px; }
.ositc-loading { padding: 60px; text-align: center; color: var(--muted); }

/* Buttons */
.ositc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text) !important; padding: 9px 16px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none !important; white-space: nowrap; line-height: 1.2; }
.ositc-btn:hover { background: var(--bg); }
.ositc-btn:disabled { opacity: .6; cursor: default; }
.ositc-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.ositc-btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.ositc-btn.danger { background: var(--red); border-color: var(--red); color: #fff !important; }
.ositc-btn.danger-ghost { color: var(--red) !important; border-color: #f2c4c4; }
.ositc-btn.ghost { background: transparent; }
.ositc-btn.sm { padding: 6px 11px; font-size: 13px; }
.ositc-btn.block { width: 100%; margin-top: 14px; padding: 12px; }
.ositc-btn.icon { padding: 7px; border-color: transparent; background: transparent; color: var(--muted) !important; }
.ositc-btn.icon:hover { background: var(--bg); color: var(--text) !important; }

/* Quick actions */
.ositc-qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ositc-qa-btn { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 14px; cursor: pointer; text-align: left; font-weight: 600; }
.ositc-qa-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.ositc-qa-btn .ositc-ic { color: var(--accent); flex: none; }
.ositc-qa-btn:nth-child(even) .ositc-ic { color: #000; }

/* Tables */
.ositc-tablewrap { overflow-x: auto; margin: 0 -4px; }
.ositc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ositc-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ositc-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ositc-table tr:last-child td { border-bottom: 0; }
.ositc-table tr[hidden] { display: none; }
.ositc-clickrow { cursor: pointer; }
.ositc-clickrow:hover td { background: var(--bg); }
.ositc-who { display: inline-flex; align-items: center; gap: 8px; }
.ositc-who small { display: block; color: var(--muted); font-size: 12px; }
.ositc-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ositc-tag.green { background: var(--green-soft); color: var(--green); }
.ositc-tag.red { background: var(--red-soft); color: var(--red); }
.ositc-tag.amber { background: var(--amber-soft); color: var(--amber); }
.ositc-tag.blue { background: var(--blue-soft); color: #111; }
.ositc-tag.gray { background: #eef1f5; color: var(--muted); }
.ositc-tag.purple { background: var(--purple-soft); color: var(--purple); }
.ositc-chip { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; padding: 1px 8px; margin: 1px 3px 1px 0; }
.ositc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.ositc-search { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--card); min-width: 200px; }
.ositc-toolbar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.ositc-toolbar .ositc-field { margin: 0; min-width: 150px; }

/* Avatars */
.ositc-av { position: relative; display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; overflow: hidden; flex: none; vertical-align: middle; }
.ositc-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ositc-av-all, .ositc-av-group { background: var(--navy); color: #fff; font-size: 11px; }
.ositc-stack { display: flex; margin: 10px 0; }
.ositc-stack .ositc-av { border: 2px solid #fff; margin-right: -8px; }

/* Empty */
.ositc-empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.ositc-empty .ositc-ic { opacity: .45; margin-bottom: 8px; }
.ositc-empty p { max-width: 460px; margin: 0 auto 10px; }

/* Dashboard bits */
.ositc-chart svg { width: 100%; height: auto; display: block; }
.ositc-bar { fill: var(--accent); }
.ositc-bar:hover { fill: var(--navy2); }
.ositc-gridline { stroke: var(--line); }
.ositc-axis { fill: var(--muted); font-size: 10px; }
.ositc-myday { display: grid; gap: 12px; }
.ositc-myday div span { display: block; font-size: 12px; }
.ositc-alerts { list-style: none; padding: 0; margin: 0; }
.ositc-alerts li a { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text) !important; }
.ositc-alerts li:last-child a { border-bottom: 0; }
.ositc-alerts .ositc-ic { color: var(--amber); }
.ositc-ms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ositc-ms-tile { background: var(--bg); border-radius: 12px; padding: 12px; text-align: center; }
.ositc-ms-tile b { display: block; font-size: 22px; color: var(--navy); }
.ositc-ms-tile span { font-size: 12px; color: var(--muted); }

/* Feed */
.ositc-feed { list-style: none; margin: 0; padding: 0; }
.ositc-feed li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ositc-feed li:last-child { border-bottom: 0; }
.ositc-feed small { display: block; color: var(--muted); font-size: 12px; }

/* Cards grid */
.ositc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ositc-cards .ositc-card { margin: 0; }
.ositc-formcard, .ositc-article { display: flex; flex-direction: column; gap: 6px; }
.ositc-formcard .ositc-ic, .ositc-article .ositc-ic { color: var(--accent); }
.ositc-article { color: var(--text) !important; text-decoration: none !important; }
.ositc-article:hover { border-color: var(--accent); }
.ositc-article p { color: var(--muted); font-size: 14px; }
.ositc-row-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ositc-row-btns .ositc-badge { margin-left: 2px; }
.ositc-gcard .ositc-card-head { margin-bottom: 4px; }
.ositc-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ositc-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin: 0; }
.ositc-person[hidden] { display: none; }
.ositc-person small { color: var(--muted); }
.ositc-person-links { display: flex; gap: 6px; margin: 8px 0 4px; flex-wrap: wrap; justify-content: center; }
.ositc-prose { white-space: normal; word-wrap: break-word; }
.ositc-dl dt { font-weight: 600; font-size: 13px; color: var(--muted); margin-top: 10px; }
.ositc-dl dd { margin: 2px 0 0; }

/* Tabs */
.ositc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.ositc-tabs a { padding: 9px 14px; color: var(--muted) !important; font-weight: 600; border-bottom: 2px solid transparent; text-decoration: none !important; white-space: nowrap; }
.ositc-tabs a.active { color: var(--accent) !important; border-color: var(--accent); }

/* Updates */
.ositc-update h2 { font-size: 19px; margin: 12px 0 6px; }
.ositc-update.pinned { border-color: var(--gold); }
.ositc-update-head { display: flex; align-items: center; gap: 10px; }
.ositc-update-head small { display: block; color: var(--muted); font-size: 12px; }
.ositc-update-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.ositc-like { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; color: var(--muted); }
.ositc-like.on { color: var(--red); border-color: #f2c4c4; background: var(--red-soft); }
.ositc-like.on svg { fill: currentColor; }

/* Chat */
.ositc-main:has(.ositc-chat) { padding: 0; }
.ositc-chat { display: grid; grid-template-columns: 320px 1fr; height: 100%; min-height: 0; background: var(--card); }
.ositc-chat-list { border-right: 1px solid var(--line); overflow-y: auto; min-height: 0; }
.ositc-chat-list-head { padding: 16px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
.ositc-chat-list-head h1 { font-size: 22px; }
.ositc-chat-list-head select { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--card); }
.ositc-ch { display: flex; gap: 10px; align-items: center; padding: 11px 16px; color: var(--text) !important; text-decoration: none !important; border-bottom: 1px solid #f1f3f7; }
.ositc-ch:hover { background: var(--bg); }
.ositc-ch.active { background: var(--accent-soft); }
.ositc-ch-txt { flex: 1; min-width: 0; }
.ositc-ch-txt b { display: block; font-size: 14px; }
.ositc-ch-txt small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ositc-ch-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ositc-ch-meta small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.ositc-chat-pane { display: flex; flex-direction: column; min-height: 0; background: #f7f9fc; }
.ositc-chat-pane > .ositc-empty { margin: auto; }
.ositc-pane-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.ositc-pane-head small { display: block; color: var(--muted); font-size: 12px; }
.ositc-back { display: none !important; }
.ositc-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.ositc-msgs .ositc-empty { margin: auto; }
.ositc-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 75%; margin-top: 8px; }
.ositc-msg.cont { margin-top: 0; padding-left: 38px; }
.ositc-msg.mine { margin-left: auto; flex-direction: row-reverse; }
.ositc-msg.mine.cont { padding-left: 0; }
.ositc-bubble { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; word-wrap: break-word; min-width: 0; }
.ositc-bubble b { display: block; font-size: 12px; color: var(--accent); margin-bottom: 2px; }
.ositc-bubble small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; text-align: right; }
.ositc-msg.mine .ositc-bubble { background: var(--accent); border-color: var(--accent); color: #fff; }
.ositc-msg.mine .ositc-bubble a { color: #fff; text-decoration: underline; }
.ositc-msg.mine .ositc-bubble small { color: rgba(255, 255, 255, .75); }
.ositc-daybreak { text-align: center; margin: 14px 0 6px; }
.ositc-daybreak span { background: #e8edf4; color: var(--muted); font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.ositc-composer { display: flex; gap: 8px; padding: 12px; background: var(--card); border-top: 1px solid var(--line); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.ositc-composer textarea { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: none; max-height: 140px; }

/* Time clock */
.ositc-clockbox { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px 0 10px; text-align: center; }
.ositc-bigclock { width: 190px; height: 190px; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 30% 30%, #e8434f, var(--accent)); color: #fff; box-shadow: 0 10px 30px rgba(206, 32, 41, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; transition: transform .1s; }
.ositc-bigclock:active { transform: scale(.97); }
.ositc-bigclock span { font-size: 22px; font-weight: 750; }
.ositc-bigclock b { font-size: 16px; font-weight: 500; opacity: .9; font-variant-numeric: tabular-nums; }
.ositc-bigclock.on { background: radial-gradient(circle at 30% 30%, #3a3a3a, #000); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ositc-clockopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 520px; text-align: left; }
.ositc-totals { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ositc-totals > div { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.ositc-totals b { display: block; font-size: 15px; }

/* Schedule */
.ositc-weeknav { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.ositc-sched { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 900px; font-size: 13px; }
.ositc-sched th { padding: 8px; text-align: center; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.ositc-sched th small { display: block; font-weight: 400; }
.ositc-sched th.today { color: var(--accent); }
.ositc-sched .ositc-sched-name { text-align: left; width: 170px; position: sticky; left: 0; background: var(--card); z-index: 1; color: var(--text); }
.ositc-sched tbody th small { display: block; color: var(--muted); font-weight: 400; }
.ositc-sched tr.me .ositc-sched-name { color: var(--accent); }
.ositc-cell { border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); vertical-align: top; padding: 4px; height: 58px; min-width: 104px; }
.ositc-cell.today { background: #fafafa; }
.ositc-cell.can-add { cursor: pointer; }
.ositc-cell.can-add:hover { background: var(--accent-soft); }
.ositc-shift { display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 14%, white); border-radius: 7px; padding: 5px 7px; margin-bottom: 4px; cursor: pointer; font-size: 12px; }
.ositc-shift b { display: block; font-size: 11.5px; }
.ositc-shift span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ositc-simple { margin: 0; padding-left: 18px; }
.ositc-simple li { padding: 3px 0; }

/* Tasks */
.ositc-tasks { list-style: none; margin: 0; padding: 0; }
.ositc-task { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.ositc-task:last-child { border-bottom: 0; }
.ositc-tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c3ccd8; background: #fff; cursor: pointer; flex: none; color: #fff; font-weight: 800; line-height: 1; }
.ositc-tick:hover { border-color: var(--green); }
.ositc-task.done .ositc-tick { background: var(--green); border-color: var(--green); }
.ositc-task.done .ositc-task-body > b { text-decoration: line-through; color: var(--muted); }
.ositc-task-body { flex: 1; min-width: 0; }
.ositc-task-body p { color: var(--muted); font-size: 14px; margin: 2px 0; }
.ositc-task-body small { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.ositc-task-act { display: flex; }

/* Forms in modals */
.ositc-field { display: block; margin-bottom: 14px; flex: 1; min-width: 0; }
.ositc-field > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.ositc-field > small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.ositc-field input:not([type=checkbox]):not([type=color]), .ositc-field select, .ositc-field textarea { width: 100%; border: 1px solid #d5dce6; border-radius: 10px; padding: 9px 11px; background: #fff; }
.ositc-field input[type=color] { width: 60px; height: 40px; border: 1px solid #d5dce6; border-radius: 10px; padding: 3px; background: #fff; }
.ositc-field input:focus, .ositc-field select:focus, .ositc-field textarea:focus, .ositc-search:focus, .ositc-composer textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.ositc-row { display: flex; gap: 12px; }
.ositc-check { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; cursor: pointer; font-size: 14px; }
.ositc-checklist { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 2px; display: grid; grid-template-columns: 1fr 1fr; }
.ositc-frow { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; background: var(--bg); padding: 8px; border-radius: 10px; }
.ositc-frow input:not([type=checkbox]), .ositc-frow select { border: 1px solid #d5dce6; border-radius: 8px; padding: 7px 9px; background: #fff; }
.ositc-frow .fl { flex: 2; min-width: 180px; }
.ositc-frow .fo { flex: 2; min-width: 180px; }
.ositc-frow .ositc-check { margin: 0; }

/* Modal */
.ositc-modal-wrap { position: fixed; inset: 0; background: rgba(15, 25, 45, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100000; animation: ositc-fade .15s; }
@keyframes ositc-fade { from { opacity: 0; } }
.ositc-modal { background: var(--card); border-radius: 16px; width: 100%; max-width: 520px; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.ositc-modal.wide { max-width: 860px; }
.ositc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ositc-modal-head h3 { font-size: 18px; }
.ositc-x { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.ositc-modal-body { padding: 18px 20px 0; overflow-y: auto; }
.ositc-modal-body > p { margin-bottom: 12px; }
.ositc-modal-foot { display: flex; gap: 8px; padding: 14px 0 18px; position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); margin-top: 6px; }

/* Toast */
.ositc-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #000; color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; transition: .25s; z-index: 100001; max-width: 90vw; }
.ositc-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ositc-toast.error { background: var(--red); }

/* Login */
.ositc-login { max-width: 400px; margin: 10vh auto; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 18px; padding: 32px; text-align: center; box-shadow: 0 10px 40px rgba(20, 40, 75, .08); }
.ositc-login h1 { font-size: 24px; margin-bottom: 4px; }
.ositc-login > p { color: var(--muted); margin-bottom: 18px; }
.ositc-login form { text-align: left; }
.ositc-login form p { margin: 0 0 12px; }
.ositc-login label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.ositc-login input[type=text], .ositc-login input[type=password] { width: 100%; border: 1px solid #d5dce6; border-radius: 10px; padding: 11px; font-size: 15px; }
.ositc-login .login-remember label { display: flex; gap: 6px; align-items: center; font-weight: 400; }
.ositc-login input[type=submit] { width: 100%; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 12px; font-weight: 700; font-size: 15px; cursor: pointer; }
.ositc-login-help { margin-top: 14px; font-size: 14px; }

/* Mobile */
@media (max-width: 1000px) {
  .ositc-dash { grid-template-columns: 1fr; }
  .ositc-qa { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .ositc-shell { grid-template-columns: 1fr; grid-template-rows: 56px 1fr; }
  .ositc-menu { display: grid; }
  .ositc-side { position: fixed; top: 56px; bottom: 0; left: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; z-index: 20; box-shadow: 4px 0 20px rgba(0, 0, 0, .1); }
  .ositc-root.nav-open .ositc-side { transform: none; }
  .ositc-root.nav-open .ositc-scrim { display: block; position: fixed; inset: 56px 0 0 0; background: rgba(15, 25, 45, .35); z-index: 15; }
  .ositc-main { padding: 16px; }
  .ositc-me-name { display: none; }
  .ositc-logo-svg { width: 140px; }
  .ositc-top { gap: 6px; padding: 0 8px; }
  .ositc-clockpill { padding: 6px 10px; font-size: 12px; }
  .ositc-row { flex-direction: column; gap: 0; }
  .ositc-clockopts { grid-template-columns: 1fr; }
  .ositc-chat { grid-template-columns: 1fr; }
  .ositc-chat.has-current .ositc-chat-list { display: none; }
  .ositc-chat:not(.has-current) .ositc-chat-pane { display: none; }
  .ositc-back { display: grid !important; }
  .ositc-msg { max-width: 88%; }
  .ositc-checklist { grid-template-columns: 1fr; }
  .ositc-page-head h1 { font-size: 21px; }
  .ositc-search { min-width: 0; width: 100%; }
  .ositc-modal-wrap { align-items: flex-end; padding: 0; }
  .ositc-modal, .ositc-modal.wide { max-width: none; border-radius: 16px 16px 0 0; max-height: 94vh; }
}

/* OSI badge (workflows) */
.ositc-badge-img { display: inline-block; flex: none; width: 40px; height: 44px; background: url(https://osisecure.online/wp-content/uploads/2026/11/1777177453801-2-300x300.png) center / 118% no-repeat; mix-blend-mode: multiply; vertical-align: middle; }
.ositc-titlewrap { display: flex; align-items: center; gap: 14px; }
.ositc-titlewrap > .ositc-badge-img { width: 58px; height: 64px; }
.ositc-wf-head { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 16px; background: #fff; color: #111; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 12px; }
.ositc-wf-head .ositc-badge-img { width: 64px; height: 70px; }
.ositc-wf-head b { display: block; font-size: 17px; letter-spacing: .3px; }
.ositc-wf-head small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ositc-wfname { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; }
.ositc-wfname .ositc-badge-img { width: 30px; height: 33px; }
.ositc-wftable td { vertical-align: middle; }
.ositc-entries td { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

/* Form fields */
.ositc-fheading { text-align: center; padding: 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.ositc-fheading h4 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .4px; }
.ositc-fheading p { margin: 6px 0 0; color: var(--accent); font-weight: 600; font-size: 13px; }
.ositc-multi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 2px; max-height: 260px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); column-gap: 10px; }
.ositc-multi .ositc-check.all { grid-column: 1 / -1; font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.ositc-yesno { display: flex; gap: 10px; }
.ositc-yesno label { flex: 1; cursor: pointer; }
.ositc-yesno input { position: absolute; opacity: 0; pointer-events: none; }
.ositc-yesno b { display: block; text-align: center; padding: 10px; border: 1px solid #d5dce6; border-radius: 10px; font-weight: 600; }
.ositc-yesno input:checked + b { background: var(--accent); border-color: var(--accent); color: #fff; }
.ositc-yesno input:focus-visible + b { outline: 2px solid var(--accent); }
.ositc-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.ositc-stars input { position: absolute; opacity: 0; pointer-events: none; }
.ositc-stars label { font-size: 34px; line-height: 1; color: #d4d4d8; cursor: pointer; }
.ositc-stars input:checked ~ label, .ositc-stars label:hover, .ositc-stars label:hover ~ label { color: var(--accent); }
.ositc-stars-l { display: flex; justify-content: space-between; max-width: 200px; color: var(--muted); }
.ositc-starsout { color: var(--accent); letter-spacing: 1px; }
.ositc-starsout i { color: #d4d4d8; font-style: normal; }
.ositc-loc { display: flex; gap: 8px; }
.ositc-loc input { flex: 1; }
.ositc-sig { display: block; width: 100%; height: 160px; border: 1px dashed #b8b8c0; border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; margin-bottom: 8px; }
.ositc-field input[type=file] { width: 100%; padding: 8px; border: 1px dashed #c8c8d0; border-radius: 10px; background: #fafafa; }
.ositc-preview:not(:empty) { display: block; margin-top: 8px; }
.ositc-thumbimg { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); vertical-align: middle; background: #fafafa; }
.ositc-thumbimg.sm { width: 44px; height: 34px; border-radius: 5px; }
.ositc-thumbimg.sig { object-fit: contain; width: 220px; }
.ositc-thumbimg.sm.sig { width: 70px; }
.ositc-dl dd .ositc-thumbimg { margin: 4px 4px 0 0; }
@media (max-width: 760px) {
  .ositc-titlewrap > .ositc-badge-img { width: 44px; height: 48px; }
  .ositc-multi { grid-template-columns: 1fr; }
}

/* Profile pictures */
.ositc-av { color: #fff; }
.ositc-av-all { background: #111 !important; }
.ositc-photopick { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.ositc-photopick > div { flex: 1; min-width: 0; }

/* Days to pick up */
.ositc-pickday + .ositc-pickday { margin-top: 18px; }
.ositc-pickday h3 { font-size: 15px; margin: 0 0 8px; }
.ositc-pickrow { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.ositc-pickinfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ositc-pickinfo small { color: var(--muted); }
.ositc-pickstatus { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ositc-pickstatus .ositc-row-btns { margin: 0; }

/* Days wanted calendar */
.ositc-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 8px 0; }
.ositc-cal-h { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.ositc-cal-d { position: relative; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 10px 0 8px; font-weight: 600; cursor: pointer; min-height: 44px; }
.ositc-cal-d small { position: absolute; top: 2px; left: 0; right: 0; font-size: 9px; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.ositc-cal-d.past { opacity: .35; cursor: default; }
.ositc-cal-d.had::after { content: ''; position: absolute; bottom: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--green); }
.ositc-cal-d.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ositc-cal-d.on small { color: #fff; }

.ositc-totals .ositc-grand { background: #111; color: #fff; }
.ositc-totals .ositc-grand b { color: #fff; }
.ositc-root .ositc-bigclock { color: #fff; }

/* Client chat and client portal */
.ositc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ositc-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 0; }
.ositc-chat-list-head .ositc-btn { align-self: flex-start; }
.ositc-chat-list-head .ositc-search { min-width: 0; width: 100%; }
.ositc-pane-head .ositc-grow { min-width: 0; }
.ositc-pane-head .ositc-stack { margin: 0 6px 0 0; }
.ositc-portal { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.ositc-portal .ositc-top { flex: none; height: 60px; }
.ositc-portal .ositc-chat-pane { flex: 1; min-height: 0; }
.ositc-portal .ositc-msgs { width: 100%; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) {
  .ositc-row2, .ositc-checks { grid-template-columns: 1fr; }
  .ositc-portal .ositc-me-name { display: none; }
}

/* Process serving portal (/serve) */
.ositc-serve .ositc-main { flex: 1; min-height: 0; overflow-y: auto; }
.ositc-svnav { display: flex; gap: 4px; margin-left: 10px; }
.ositc-svnav a { padding: 8px 12px; border-radius: 8px; color: var(--text) !important; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.ositc-svnav a:hover { background: #f3f3f3; }
.ositc-svnav a.active { background: var(--accent); color: #fff !important; }
.ositc-co { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 10px; color: #fff; font-weight: 700; overflow: hidden; border: 1px solid var(--line); }
.ositc-co img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; background: #fff; }
.ositc-co.has-logo > span { visibility: hidden; }
.ositc-co-none { background: #f3f3f3; color: var(--muted); }
.ositc-click { cursor: pointer; }
.ositc-click:hover td { background: #fafafa; }
.ositc-svgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ositc-kv { display: grid; grid-template-columns: 140px 1fr; gap: 9px 14px; margin: 0; }
.ositc-kv dt { color: var(--muted); font-size: 13px; }
.ositc-kv dd { margin: 0; overflow-wrap: anywhere; }
.ositc-kv a, .ositc-timeline a { display: inline-flex; align-items: center; gap: 4px; }
.ositc-note { margin-top: 14px; padding: 12px 14px; background: #fff7e6; border-left: 3px solid var(--amber); border-radius: 8px; }
.ositc-note b { display: block; margin-bottom: 4px; }
.ositc-doc { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ositc-doc:last-child { border-bottom: 0; }
.ositc-doc b { display: block; overflow-wrap: anywhere; }
.ositc-doc small { display: block; }
.ositc-timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.ositc-timeline li { position: relative; padding: 0 0 14px 12px; }
.ositc-timeline li::before { content: ''; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--muted); }
.ositc-timeline li.good::before { background: var(--green); border-color: var(--green); }
.ositc-timeline li > div + div { margin-top: 3px; }
.ositc-cogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.ositc-cocard { padding: 18px; }
.ositc-cohead { display: flex; gap: 14px; align-items: flex-start; }
.ositc-cohead h3 { font-size: 18px; margin: 2px 0 4px; }
.ositc-cocount { display: flex; gap: 8px; margin-top: 8px; }
.ositc-cocount span { font-size: 12px; font-weight: 600; background: #f3f3f3; border-radius: 999px; padding: 3px 9px; }
.ositc-cologins { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.ositc-cosub { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; }
.ositc-login-row { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ositc-login-row:last-child { border-bottom: 0; }
.ositc-login-row small { display: block; }
@media (max-width: 900px) {
  .ositc-svgrid { grid-template-columns: 1fr; }
  .ositc-kv { grid-template-columns: 110px 1fr; }
}
@media (max-width: 760px) {
  .ositc-svnav { margin-left: 0; }
  .ositc-svnav a { padding: 7px 8px; font-size: 14px; }
  .ositc-serve .ositc-brand svg { width: 120px; }
  .ositc-cogrid { grid-template-columns: 1fr; }
}

.ositc-cover { margin: 8px 0 4px; font-size: 13.5px; background: #f7f7f8; border-radius: 8px; padding: 8px 10px; }
.ositc-cover b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 2px; }
.ositc-modal .ositc-cover { margin: -4px 0 12px; }

/* Weekly Security Activity Reports */
.ositc-wr-letter{display:flex;flex-direction:column;gap:3px;border-left:4px solid #ce2029;padding:4px 0 4px 14px}
.ositc-wr-letter b{font-size:17px;color:#111}
.ositc-wr-letter span{color:#5f5f66;font-size:13px}
.ositc-wr-letter em{font-style:normal;font-weight:700;color:#ce2029;font-size:12px;letter-spacing:.05em;text-transform:uppercase;margin-top:6px}
.ositc-wr-acts{white-space:nowrap;text-align:right}
.ositc-wr-acts .ositc-btn{margin-left:6px}
.ositc-wr-foot{display:flex;justify-content:flex-end;gap:10px;margin:14px 0 30px;flex-wrap:wrap}
.ositc-wr-fac{border-top:1px solid #e6e6ea;padding-top:14px;margin-top:14px}
.ositc-wr-fac:first-of-type{border-top:0;margin-top:0;padding-top:0}
.ositc-wr-tools{display:flex;justify-content:flex-end;margin-bottom:12px}
.ositc-wr-ai{border-top:1px solid #e6e6ea;padding:14px 0}
.ositc-wr-ai:first-of-type{border-top:0}
.ositc-wr-ai-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;cursor:pointer}
.ositc-wr-ai-old{background:#f6f6f7;border-radius:8px;padding:10px 12px;margin-bottom:10px;color:#55555c;font-size:13px}
.ositc-wr-ai-old small,.ositc-wr-ai>small{display:block;font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:11px;color:#8a8a92;margin-bottom:4px}
.ositc-wr-ai textarea{width:100%}
.ositc-wr-tools{gap:8px;flex-wrap:wrap}
.ositc-svf-h{margin:18px 0 8px;font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:#ce2029}
.ositc-svf-h:first-child{margin-top:0}
.ositc-check{display:flex;align-items:center;gap:8px;margin-top:12px;cursor:pointer}
/* Quick Actions: buttons size to fit the card, labels stay on one line */
.ositc-qa { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
.ositc-qa-btn { min-width: 0; padding: 14px 16px; }
.ositc-qa-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Time clock: note (and the single ending odometer box) span the full width */
.ositc-clockopts > .ositc-field:last-child { grid-column: 1 / -1; }
.ositc-clockopts > .ositc-field:last-child input { width: 100%; }
