/* AGAT-777 staff portal. House style: Red #C8102E, Charcoal #232529, Steel Silver #A3A6AA, Deep Red #B00E28, Slate #55585E;
   Barlow Condensed (headings), IBM Plex Sans (body), Noto Sans Armenian. */
:root {
  --red: #C8102E; --red-deep: #B00E28; --charcoal: #232529; --silver: #A3A6AA; --slate: #55585E;
  --bg: #F2F2F3; --card: #FFFFFF; --line: #D9DADC; --ok: #1E7A46; --ok-bg: #E8F4EC; --err-bg: #FBEAEC;
  --body: "IBM Plex Sans", "Noto Sans Armenian", system-ui, sans-serif;
  --head: "Barlow Condensed", "Noto Sans Armenian", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--charcoal); font: 16px/1.5 var(--body); display: flex; flex-direction: column; }
:lang(hy) body, body:lang(hy) { --head: "Noto Sans Armenian", system-ui, sans-serif; }

/* Each company's pages in its own brand (never AGAT colours on hotel or sport pages, never mixed reds).
   Hotel: red #EF372F, ink #1E262C, Poppins. Sport: red #D45348, ink #181D22, Poppins (brand book). */
body[data-company="hotel"] { --red: #EF372F; --red-deep: #D42A22; --charcoal: #1E262C; --slate: #6B7479; --bg: #F1ECE4;
  --body: "Poppins", "Noto Sans Armenian", system-ui, sans-serif; --head: "Poppins", "Noto Sans Armenian", system-ui, sans-serif; }
body[data-company="sport"] { --red: #D45348; --red-deep: #B8433A; --charcoal: #181D22; --slate: #5F656B; --bg: #F1F1F1;
  --body: "Poppins", "Noto Sans Armenian", system-ui, sans-serif; --head: "Poppins", "Noto Sans Armenian", system-ui, sans-serif; }
body[data-company="hotel"] .brand .portal, body[data-company="sport"] .brand .portal { font-size: 20px; letter-spacing: .04em; }
body[data-company="hotel"] .btn, body[data-company="sport"] .btn { font-size: 15px; }
/* Start page: neutral, so the three brands sit side by side without clashing */
body[data-page="start"] .card { border-top-color: #232529; }
.brand img { max-height: 110px; object-fit: contain; }
.switch { text-align: center; font-size: 13px; margin: 12px 0 0; }
.switch a { color: var(--slate); }
a { color: var(--red); }
a:hover { color: var(--red-deep); }

.top { display: flex; justify-content: flex-end; padding: 16px; }
.langs { display: flex; gap: 4px; }
.langs button { border: 1px solid var(--line); background: var(--card); color: var(--slate); font: 600 13px/1 var(--body); padding: 8px 10px; border-radius: 4px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }

main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 16px 32px; }
.card { width: 100%; max-width: 420px; background: var(--card); border-radius: 8px; border-top: 4px solid var(--red); box-shadow: 0 1px 3px rgba(35,37,41,.08), 0 8px 24px rgba(35,37,41,.06); padding: 32px 28px 28px; }
.card.wide { max-width: 760px; }
.brand { text-align: center; margin-bottom: 20px; }
.brand img { width: 150px; height: auto; }
.brand .portal { font: 600 26px/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em; margin: 10px 0 4px; }
:lang(hy) .brand .portal { text-transform: none; font-size: 22px; }
.brand .group { color: var(--slate); font-size: 13px; margin: 0; }
h1 { font: 600 22px/1.2 var(--head); margin: 0 0 16px; }
:lang(hy) h1 { font-size: 19px; }
p.intro { color: var(--slate); margin: 0 0 16px; font-size: 15px; }

label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password] { width: 100%; font: 16px/1.4 var(--body); padding: 11px 12px; border: 1px solid var(--silver); border-radius: 4px; background: #fff; color: var(--charcoal); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(200,16,46,.35); outline-offset: 1px; border-color: var(--red); }
.pw { position: relative; }
.pw input { padding-right: 96px; }
.pw .toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; border: 0; background: none; color: var(--slate); font: 600 13px var(--body); padding: 0 10px; cursor: pointer; border-radius: 3px; }
.pw .toggle:hover { color: var(--charcoal); background: var(--bg); }
.hint { color: var(--slate); font-size: 13px; margin: 4px 0 0; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 4px; }
.check { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-weight: 400; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.check small { display: block; color: var(--slate); font-size: 12px; }
.row a { font-size: 14px; }

.btn { display: block; width: 100%; margin-top: 20px; border: 0; border-radius: 4px; background: var(--red); color: #fff; font: 600 17px/1 var(--head); text-transform: uppercase; letter-spacing: .04em; padding: 14px; cursor: pointer; }
:lang(hy) .btn { text-transform: none; font-size: 16px; }
.btn:hover { background: var(--red-deep); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: none; color: var(--charcoal); border: 1px solid var(--silver); }
.btn.ghost:hover { background: var(--bg); }

.msg { margin: 14px 0 0; padding: 10px 12px; border-radius: 4px; font-size: 14px; }
.msg:empty { display: none; }
.msg.err { background: var(--err-bg); color: var(--red-deep); }
.msg.ok { background: var(--ok-bg); color: var(--ok); }

.foot { text-align: center; font-size: 14px; color: var(--slate); margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.foot a { font-weight: 600; }
.demo { background: #FFF6DA; color: #6B5200; font-size: 13px; text-align: center; padding: 8px 16px; }
.demo:empty { display: none; }

/* Workplace chooser */
.who { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.who h1 { margin: 0; }
.who button { width: auto; margin: 0; padding: 10px 14px; font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 20px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--charcoal); background: #fff; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--silver); box-shadow: 0 4px 14px rgba(35,37,41,.08); color: var(--charcoal); }
.tile img { height: 72px; width: auto; max-width: 100%; object-fit: contain; }
.tile strong { font: 600 18px/1.2 var(--head); }
.tile span { font-size: 13px; color: var(--slate); }
.tile em { font-style: normal; font-size: 12px; color: var(--slate); background: var(--bg); padding: 2px 8px; border-radius: 10px; }
.legal { text-align: center; color: var(--slate); font-size: 12px; padding: 0 16px 16px; }

@media (max-width: 420px) { .card { padding: 24px 18px 20px; } .brand img { width: 130px; } }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
a.btn { text-align: center; text-decoration: none; }
a.btn:hover { color: #fff; }
a.btn.ghost:hover { color: var(--charcoal); }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 420px; }
h1.center { text-align: center; }
.userbox { margin: 12px 0 0; padding: 10px 12px; background: var(--bg); border-radius: 4px; font-size: 14px; color: var(--slate); }
.userbox strong { color: var(--charcoal); font-size: 16px; letter-spacing: .02em; }
.userbox.big { margin-top: 14px; text-align: center; }
.userbox.big strong { display: block; font-size: 22px; margin-top: 2px; }
input[aria-invalid="true"] { border-color: #B00E28; background: #FFF6F6; }
.hint.bad { color: #B00E28; font-weight: 600; }

/* Dashboard and personnel list */
main.top-align { align-items: flex-start; }
.wrap.wide { max-width: 980px; }
.card.wide { max-width: none; }
.dash-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.dash-head img { height: 56px; width: auto; }
.dash-head .who-text { flex: 1; min-width: 180px; }
.dash-head h1 { margin: 0; }
.dash-head p { margin: 2px 0 0; color: var(--slate); font-size: 14px; }
.btn.small { width: auto; margin: 0; padding: 10px 14px; font-size: 14px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { font: 600 20px/1.2 var(--head); margin: 0; }
.sec-head p { margin: 0; color: var(--slate); font-size: 14px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; }
.filters input { flex: 1; min-width: 180px; font: 15px var(--body); padding: 9px 12px; border: 1px solid var(--silver); border-radius: 4px; }
.seg { display: flex; border: 1px solid var(--silver); border-radius: 4px; overflow: hidden; }
.seg button { border: 0; background: #fff; color: var(--slate); font: 600 13px var(--body); padding: 9px 12px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--silver); }
.seg button[aria-pressed="true"] { background: var(--charcoal); color: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table.people { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.people th { text-align: left; font-weight: 600; color: var(--slate); background: var(--bg); padding: 9px 12px; white-space: nowrap; }
.people td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.people td.name strong { display: block; }
.people td.name small { color: var(--slate); }
.people td.acts { text-align: right; white-space: nowrap; }
.people td.acts button { border: 1px solid var(--silver); background: #fff; color: var(--charcoal); font: 600 12px var(--body); padding: 6px 10px; border-radius: 4px; cursor: pointer; margin-left: 4px; }
.people td.acts button:hover { background: var(--bg); }
.people td.acts button.danger { color: #B00E28; border-color: #E4B4BC; }
.people .empty { text-align: center; color: var(--slate); padding: 20px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.tag.yes { background: #E8F4EC; color: #1E7A46; }
.tag.no { background: #F1F1F2; color: #55585E; }
.tag.off { background: #FBEAEC; color: #B00E28; }
.tag.mgr { background: #EEF0F6; color: #3B4A73; margin-left: 6px; }
.tag.none { background: transparent; color: #8A8D92; font-weight: 400; padding-left: 0; }
.muted { color: #8A8D92; }

/* "Open dashboard" link (single sign-on to a company dashboard, 2026-11-25) */
a.btn { text-align: center; text-decoration: none; box-sizing: border-box; }
.open-dash { margin: 8px 0 24px; }

/* /setup/ admin account list (2026-11-26) */
.admins { margin: 0 0 16px; padding-left: 18px; }
.admins li { margin: 2px 0; }
select { width: 100%; box-sizing: border-box; padding: 10px; font: inherit; margin-bottom: 12px; }
