/* ---------- user management ---------- */
#users .page { max-width: 1200px; }
.usr-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.usr-bar .sp { margin-left: auto; }
#usrSearch, #usrRole { padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
#usrSearch { width: 240px; }
.usr-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: auto; }
table.usr { width: 100%; border-collapse: collapse; }
.usr th { background: var(--navy); color: #fff; text-align: left; font-size: 12px; font-weight: 600; padding: 8px 12px; white-space: nowrap; }
.usr td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.usr tr.off td:first-child b { color: var(--muted); }
.usr select { padding: 5px 7px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); max-width: 220px; }
.usr select.need { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(208, 112, 26, .25); }
.usr .crewcell select { margin: 2px 10px 2px 0; }
.usr .crewcell .chk { margin: 2px 0; }
.usr .acts { white-space: nowrap; text-align: right; } .usr .acts .btn { margin-left: 4px; padding: 5px 9px; font-size: 12px; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; white-space: nowrap; }
.muted { color: var(--muted); }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 3px; background: var(--accent-soft); color: var(--title); margin-left: 4px; text-transform: uppercase; letter-spacing: .04em; }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 34px; height: 18px; border-radius: 9px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + span { opacity: .5; }
.usr-notice { background: var(--good-soft); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 4px; padding: 10px 14px; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.usr-notice code { font: 13px var(--mono); background: var(--panel); padding: 2px 6px; border-radius: 3px; border: 1px solid var(--line); }
.usr-notice small { flex-basis: 100%; }
.upop { width: 320px; }
.pwrow { display: flex; gap: 6px; } .pwrow input { flex: 1; font-family: var(--mono); }
.usr-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 18px 0 0; }
.usr-help div { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.usr-help dt { font-weight: 700; color: var(--title); font-size: 13px; } .usr-help dd { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }

/* ---------- companies ---------- */
.co-pick { position: fixed; inset: 0; z-index: 200; background: rgba(12, 35, 64, .55); display: grid; place-items: center; padding: 16px; }
.co-card { background: var(--panel, #fff); border-radius: 10px; padding: 26px 26px 18px; width: min(560px, 100%); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); text-align: center; }
.co-card .logo { height: 40px; width: auto; }
.co-card h2 { margin: 14px 0 16px; font-size: 19px; color: var(--title); }
.co-btns { display: grid; gap: 10px; }
.co-btn { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--bg); cursor: pointer; font: inherit; }
.co-btn b { font-size: 15.5px; color: var(--navy); }
.co-btn span { font-size: 12.5px; color: var(--muted); }
.co-btn:hover, .co-btn:focus-visible { border-color: var(--navy); background: var(--head); outline: none; }
.co-now { font-weight: 600; }
.co-now .link { margin-left: 6px; font-weight: 400; text-decoration: underline; }
.usr td.cocell { white-space: nowrap; }
.usr td.cocell .chk, .co-tbl .chk, .co-row .chk { display: inline-flex; gap: 4px; align-items: center; margin-right: 6px; }
.co-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.co-pop { width: min(760px, calc(100vw - 16px)); max-height: 80vh; overflow: auto; }
.co-pop .small { font-size: 12px; margin: 0 0 8px; }
.co-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.co-cols h5 { margin: 4px 0 6px; }
.co-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.co-tbl td { padding: 4px 6px; border-bottom: 1px solid var(--line-soft); }
.co-tbl td:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 700px) { .co-cols { grid-template-columns: 1fr; } }
