/* Палитра — как в tg-outstaff (templates/base.html): тёмная шапка #1e293b,
   синий акцент #0d6efd, светлый фон #f5f6fa. Единый вид для всех внутренних
   инструментов sjglobal.ru, без своей отдельной темы. */
:root {
  --ink: #1e293b; --ink-soft: #64748b; --paper: #f5f6fa; --paper-raised: #ffffff;
  --line: rgba(0,0,0,.08); --accent: #0d6efd; --accent-hover: #0b5ed7; --error: #dc3545;
  --header-bg: #1e293b; --header-text: #e2e8f0; --header-link: #cbd5e1;
}
* { box-sizing: border-box; }
body { margin: 0; font: .9rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background: var(--paper); color: var(--ink); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.topbar { background: var(--header-bg); }
.topbar .inner { max-width: 640px; margin: 0 auto; padding: .6rem 1rem; display: flex;
                justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.05rem;
        text-decoration: none; color: var(--header-text) !important; }
.brand img { height: 26px; display: block; }
.topnav { display: flex; gap: 1rem; align-items: center; }
.topnav a { color: var(--header-link); font-size: .88rem; text-decoration: none; }
.topnav a:hover { color: #fff; }

.wrap { max-width: 640px; margin: 0 auto; padding: 2rem 1rem 4rem; }
h1 { font-size: 1.4rem; color: var(--ink); } h2 { font-size: 1.05rem; margin-top: 2rem; color: var(--ink); }
form { display: flex; flex-direction: column; gap: .5rem; max-width: 360px; margin: 1rem 0; }
label { font-size: .85rem; color: var(--ink); }
input, select {
  padding: .5rem; border: 1px solid #dee2e6; border-radius: 6px;
  background: var(--paper-raised); color: var(--ink);
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(13,110,253,.15); }
button {
  padding: .5rem 1rem; border: 1px solid var(--accent); border-radius: 6px;
  background: var(--accent); color: #fff; cursor: pointer; width: fit-content; font-weight: 500;
}
button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.link { background: none; border: none; color: var(--header-link); text-decoration: underline;
             padding: 0; width: auto; }
.topbar button.link:hover { color: #fff; }
.checkbox-row { display: flex; gap: .4rem; align-items: center; }
.error { color: var(--error); }
.message, table {
  background: var(--paper-raised); border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.message { padding: 1rem; }
table { border-collapse: separate; border-spacing: 0; width: 100%; margin-top: 1rem; font-size: .85rem; overflow: hidden; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--ink-soft); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; }
code { background: #eef1f5; padding: .1rem .3rem; border-radius: 4px; }
