/* Базовая оболочка демо «Регистрационный учёт» */

[v-cloak] {
    display: none;
}

:root {
    --registration-demo-header-height: 70px;
    --registration-primary: #0063B0;
    --registration-primary-dark: #004f8d;
    --registration-appbar: #2685bd;
    --registration-text: #25313c;
    --registration-muted: #66727e;
    --registration-border: #d9e2ea;
    --registration-surface: #fff;
    --registration-background: #f3f6f9;
    --registration-danger: #b43b3b;
    --registration-success: #2d7a4b;
    --registration-warning: #9a6400;
}

html,
body {
    min-height: 100%;
}

html {
    overflow-x: clip;
}

body.registration-page {
    margin: 0;
    overflow-x: clip;
    background: var(--registration-background);
    color: var(--registration-text);
    font-family: "Open Sans", Arial, sans-serif;
}

body.registration-page.registration-modal-open {
    overflow: hidden;
}

.registration-page button,
.registration-page input,
.registration-page select,
.registration-page textarea {
    font-family: inherit;
}

.registration-app {
    min-height: 100vh;
    padding-top: var(--registration-demo-header-height);
}

.registration-appbar {
    position: -webkit-sticky;
    position: sticky;
    top: var(--registration-demo-header-height);
    z-index: 900;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 62px;
    padding: 11px 24px;
    color: #fff;
    background: var(--registration-appbar);
    box-shadow: 0 4px 14px rgba(38, 133, 189, 0.2);
}

.registration-appbar__actions,
.registration-appbar__session {
    min-width: 0;
}

.registration-appbar__session {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.registration-appbar__session small,
.registration-appbar__session strong {
    display: block;
    overflow-wrap: anywhere;
    text-align: right;
}

.registration-appbar__session small {
    margin-bottom: 1px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 400;
}

.registration-appbar__session strong {
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
}

.registration-appbar__logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 5px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
    font-weight: 600;
}

.registration-appbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.registration-metric {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #dce6ed;
    border-radius: 6px;
    background: #fff;
}

.registration-metric > .glyphicon {
    color: var(--registration-primary);
    font-size: 15px;
}

.registration-metric strong {
    color: var(--registration-text);
    font-size: 19px;
    line-height: 1;
}

.registration-metric small {
    color: var(--registration-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
}

.registration-metric_warning {
    border-color: #e8d2a5;
    background: #fffaf0;
}

.registration-metric_warning > .glyphicon {
    color: var(--registration-warning);
}

.registration-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.registration-button_light {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--registration-primary-dark);
    background: #fff;
}

.registration-button_primary {
    color: #fff;
    background: var(--registration-primary);
    border-color: var(--registration-primary);
}

.registration-button_primary:hover {
    color: #fff;
    background: var(--registration-primary-dark);
}

.registration-button_secondary {
    color: #31485e;
    background: #fff;
    border-color: #bfcbd6;
}

.registration-button_link {
    color: var(--registration-primary);
    background: transparent;
}

.registration-button_danger {
    color: #fff;
    background: var(--registration-danger);
    border-color: var(--registration-danger);
}

.registration-button .glyphicon {
    top: 0;
}

.registration-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--registration-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.registration-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--registration-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(37, 49, 60, .06);
}

.registration-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #e6edf2;
}

.registration-panel__header > *,
.registration-person-header > * {
    min-width: 0;
}

.registration-panel__header h3,
.registration-panel__header p,
.registration-person-header h3,
.registration-person-header p,
.registration-toast {
    overflow-wrap: anywhere;
}

.registration-panel__header h3 {
    margin: 0 0 5px;
    color: var(--registration-text);
    font-size: 21px;
    font-weight: 700;
}

.registration-panel__header p {
    margin: 0;
    color: var(--registration-muted);
    font-size: 13px;
}

.registration-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1300;
    max-width: 380px;
    padding: 13px 18px;
    border-radius: 6px;
    color: #fff;
    background: var(--registration-success);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
    font-size: 13px;
}

.registration-toast_error {
    background: var(--registration-danger);
}

.registration-toast-enter-active,
.registration-toast-leave-active { transition: opacity .2s ease, transform .2s ease; }
.registration-toast-enter-from,
.registration-toast-leave-to { opacity: 0; transform: translateY(8px); }

.registration-button:disabled {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.12);
    cursor: not-allowed;
}

.registration-page a:focus,
.registration-page button:focus,
.registration-page input:focus,
.registration-page select:focus,
.registration-page textarea:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #005a9c;
}

.registration-viewport {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 24px 32px;
}

.registration-workspace {
    min-height: calc(100vh - var(--registration-demo-header-height) - 126px);
}

.registration-future-view {
    min-height: 240px;
    border: 1px solid var(--registration-border);
    border-radius: 8px;
    background: var(--registration-surface);
}

.registration-runtime-message {
    max-width: 720px;
    margin: 110px auto 32px;
    padding: 18px 22px;
    border: 1px solid #e0b86b;
    border-radius: 6px;
    color: #6f4c0c;
    background: #fff7e6;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
