/* GoControl Cloud — консоль сотрудников. Зелёный, белый, чёрный. */
[hidden] { display: none !important; }
:root {
  --bg: #f4f5f3; --panel: #fff; --line: #e2e4df; --ink: #111418; --muted: #5b6168;
  --brand: #23682c; --brand-dark: #1b5423; --brand-soft: #e7f4e6;
  --late: #a31d1d; --late-bg: #fbe3e1; --soon: #8a4105; --soon-bg: #fdf0db; --ok: #17663a; --ok-bg: #e7f4e6;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-dark); }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 0 24px; height: 60px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-size: 19px; white-space: nowrap; }
.brand img { height: 28px; }
.brand b { font-weight: 800; }
.brand span { color: var(--brand); font-weight: 700; }
nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; font-weight: 600; }
nav a:hover { background: #eef0ec; }
nav a.on { background: var(--brand-soft); color: var(--brand-dark); }
.who { display: flex; align-items: center; gap: 10px; color: var(--muted); white-space: nowrap; }
.who b { color: var(--ink); }

main { max-width: 1280px; margin: 0 auto; padding: 24px; }
h1 { font-size: 26px; margin: 0 0 4px; font-weight: 800; }
h2 { font-size: 19px; margin: 0 0 10px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 18px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.stat .n { font-size: 30px; font-weight: 800; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: 14px; }
.stat.warn .n { color: var(--late); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; white-space: nowrap; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: #c9ccc6; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.danger { color: var(--late); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.ghost { border: 0; background: none; color: var(--brand-dark); font-weight: 600; padding: 6px 8px; }

table { width: 100%; border-collapse: collapse; background: #fff; }
.tbl { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: auto; }
th { text-align: left; font-weight: 600; color: #3a3f45; background: #f7f8f6; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 14px; }
td { padding: 9px 12px; border-bottom: 1px solid #eef0ec; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f3f8f4; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: #ecedef; color: #4b5058; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.late { background: var(--late-bg); color: var(--late); }
.pill.soon { background: var(--soon-bg); color: var(--soon); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #b9bdb6; display: inline-block; }
.dot.on { background: #3f9a45; box-shadow: 0 0 0 3px #e7f4e6; }

.form { display: grid; grid-template-columns: 170px 1fr; gap: 10px 14px; align-items: center; }
.form label { color: #3a3f45; font-size: 14px; }
.form input, .form select, .form textarea { width: 100%; padding: 8px 10px; border: 1px solid #d6d8d3; border-radius: 9px; background: #fff; }
.form textarea { min-height: 70px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid #8fcf92; border-color: var(--brand); }
.form .wide { grid-column: 1 / -1; }
.hint { color: var(--muted); font-size: 13px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { display: flex; gap: 6px; align-items: center; color: var(--ink); }

.modal { position: fixed; inset: 0; background: rgba(17,20,24,.45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.mbox { background: #fff; border-radius: 18px; padding: 22px; width: min(640px, 100%); max-height: 90vh; overflow: auto; }
.mbox h2 { margin-bottom: 14px; }
.mfoot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.secret { background: #111418; color: #b7f7c9; border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.warnbox { background: var(--soon-bg); color: #7a3a05; border-radius: 12px; padding: 10px 14px; font-size: 14px; }

.login { max-width: 420px; margin: 8vh auto; }
.login .card { padding: 26px; }
.login .form { grid-template-columns: 1fr; }

#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--brand); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; max-width: 420px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.toast.error { background: var(--late); }
.empty { color: var(--muted); padding: 24px; text-align: center; }
@media (max-width: 760px) { .form { grid-template-columns: 1fr; } .top { gap: 10px; padding: 0 12px; } .who span { display: none; } main { padding: 14px; } }

.brand img.logo { height: 40px; }

/* рейтинг */
.stars { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.stars .st { position: relative; display: inline-block; color: #d9dcd6; letter-spacing: 1px; font-size: 15px; line-height: 1; }
.stars .fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #e0a526; white-space: nowrap; }
.row.between { justify-content: space-between; }

/* подключение и настройка */
.mbox.wide { width: min(980px, 100%); }
.form h3 { margin: 10px 0 0; font-size: 15px; color: var(--brand-dark); }
.calc { background: var(--brand-soft); color: var(--brand-dark); border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.prog { display: inline-flex; align-items: center; gap: 8px; }
.prog i { display: inline-block; width: 80px; height: 8px; background: #e6e9e3; border-radius: 4px; overflow: hidden; }
.prog i span { display: block; height: 100%; background: var(--brand); }
.prog b { font-size: 13px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.step input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); }
.step.done { background: var(--brand-soft); border-color: #cfe7cd; }
.step .muted { font-size: 13px; }
.fsec { margin-bottom: 16px; }
.fsec h3 { margin: 0 0 6px; font-size: 16px; }
.fsec ul { margin: 0; padding-left: 18px; }
