/* Тёмная тема HTML UI реестра моделей ИИ.
   Без CSS-фреймворков и сборщиков - один статический файл. */
body {
    font-family: monospace;
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.5;
    background-color: #111;
    color: #eee;
}

h1, h2, h3 {
    line-height: 1.25;
}

a {
    color: #7ab7ff;
}

nav {
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

nav a {
    text-decoration: none;
}

nav a:hover, a:hover {
    text-decoration: underline;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0 2rem;
}

th, td {
    border: 1px solid #333;
    padding: 0.5rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #181818;
}

tr:nth-child(even) {
    background-color: #151515;
}

.current {
    font-weight: bold;
}

.muted {
    color: #888;
}

.badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #12301a;
    color: #6fd18a;
    font-size: 0.85rem;
}

.badge-not-applicable {
    background-color: #222;
    color: #888;
}

section {
    margin-bottom: 2rem;
}

footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #888;
}

input[type="text"], input[type="password"], textarea {
    width: 100%;
    max-width: 40rem;
    box-sizing: border-box;
    padding: 0.3rem 0.5rem;
    font: inherit;
    background-color: #181818;
    color: #eee;
    border: 1px solid #333;
    border-radius: 0.25rem;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
    outline: 1px solid #7ab7ff;
    border-color: #7ab7ff;
}

button {
    font: inherit;
    padding: 0.3rem 0.8rem;
    background-color: #181818;
    color: #eee;
    border: 1px solid #333;
    border-radius: 0.25rem;
    cursor: pointer;
}

button:hover {
    border-color: #7ab7ff;
}

textarea.code {
    max-width: 100%;
    font-size: 0.85rem;
}

.errors {
    color: #ff8f8f;
    background-color: #2a1414;
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
}

.notice {
    color: #6fd18a;
    background-color: #12301a;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
}

nav .nav-user {
    float: right;
}

nav .nav-user a {
    margin: 0 0.5rem;
}

.inline-form {
    display: inline;
}

table.passport th.passport-num, table.passport td.passport-num {
    width: 4.5rem;
    white-space: nowrap;
}

tr.passport-section th {
    background-color: #202020;
}

.passport-value {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

textarea.passport-input {
    max-width: 100%;
    resize: vertical;
}
