/* AllDoki - дополнения к стилям макетов */
.content { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.content > * { flex: none; }
.row { display: flex; gap: 16px; align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 16px; }
.grow { flex: 1; min-width: 0; }
.w-420 { width: 420px; flex: none; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.form-actions .left { margin-right: auto; }
.btn { cursor: pointer; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; }
.btn-danger { background: #fff; color: var(--danger); border-color: #f1c7c3; }
.btn-danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 12px; margin-top: 5px; }
.ctrl.is-bad { border-color: var(--danger); background: #fffafa; }
.req { color: var(--danger); }
.seg { align-self: flex-start; width: auto; }
.seg label { display: inline-block; padding: 7px 14px; font-weight: 550; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.seg label + label { border-left: 1px solid var(--line-2); }
.seg input { display: none; }
.seg input:checked + span { color: #fff; }
.seg label:has(input:checked) { background: var(--accent); color: #fff; font-weight: 600; }
.lookup-msg { margin-top: 8px; }
.lookup-msg:empty { display: none; }
.flash { border-radius: 8px; padding: 10px 12px; font-weight: 550; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.warn { background: var(--warn-soft); color: var(--warn); }
.empty { text-align: center; padding: 36px 20px; color: var(--text-2); }
.empty h3 { font-size: 15px; margin-bottom: 6px; color: var(--text); }
.empty p { margin-bottom: 14px; color: var(--muted); }
.table td a.name { color: var(--text); }
.table td.actions { text-align: right; white-space: nowrap; }
.topbar form { margin: 0; }
.switch-wrap { position: relative; }
.switch-wrap > summary { list-style: none; cursor: pointer; }
.switch-wrap > summary::-webkit-details-marker { display: none; }
.switch-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 260px; padding: 6px; z-index: 30; }
.switch-menu button, .switch-menu a { display: flex; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
.switch-menu button:hover, .switch-menu a:hover { background: var(--bg); text-decoration: none; }
.switch-menu .sep { border-top: 1px solid var(--line); margin: 6px 0; }
.switch-menu .muted { color: var(--muted); font-size: 12px; padding: 4px 10px; }
.avatar img { width: 28px; height: 28px; border-radius: 50%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.confirm-card { max-width: 520px; }
.plain-wrap { max-width: 760px; margin: 40px auto; padding: 0 20px; }
.plain-wrap .card-b p, .plain-wrap .card-b li { margin-bottom: 8px; }
.plain-wrap .card-b h2 { font-size: 14px; margin: 16px 0 6px; }
.plain-wrap .card-b ul { padding-left: 20px; }
.login-error { margin-top: 12px; text-align: left; }
.google-btn { cursor: pointer; text-decoration: none !important; }
.hint-line { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .sidebar { display: none; }
  .row { flex-direction: column; align-items: stretch; }
  .w-420 { width: auto; }
  .company-switch { max-width: 160px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
.card-b .row:not(:last-child) { margin-bottom: 12px; }
.card-b .row .field { margin-bottom: 0; }

/* AllDoki: логотип в шапке меню */
.brand-logo { display: block; line-height: 0; }
.brand-logo img { max-width: 176px; width: 100%; height: auto; display: block; }
.help-page h2 { margin: 18px 0 8px; font-size: 15px; }
.help-page ol, .help-page ul { padding-left: 20px; }
.help-page li { margin: 4px 0; }
.help-tags code { cursor: pointer; }

.brand:has(.brand-logo) { display: block; padding: 2px 4px 14px; }
