
/*
 * Авторская часть программы «SARCHIVAUDIT E-Archive / Электронный архив».
 *
 * Автор: Синичкин Станислав Николаевич.
 * Год разработки: 2026.
 *
 * Исключительные имущественные права регулируются
 * договором авторского заказа.
 *
 * Использование исходного кода без согласия автора
 * не допускается.
 */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: 14px;
    font-weight: 900;
    box-shadow: var(--shadow-card);
}

.brand b {
    display: block;
    font-size: 16px;
}

.brand span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 50%;
    font-weight: 800;
}

.user-card small {
    display: block;
    color: var(--text-muted);
}

.nav {
    display: grid;
    gap: 6px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-md);
}

.nav a:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.ico {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 28px;
    color: var(--primary);
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
}

.card {
    padding: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::after {
    pointer-events: none;
    position: absolute;
    inset: auto -80px -100px auto;
    width: 260px;
    height: 260px;
    content: "";
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    background: var(--primary);
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.btn-danger {
    background: #b91c1c;
}

.btn-danger:hover {
    background: #991b1b;
}

.link-button {
    padding: 0;
    color: var(--primary);
    font: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.link-button:hover {
    text-decoration: underline;
}

.compact-hero {
    margin-bottom: 18px;
}

.dependency-panel {
    margin: 18px 0 22px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.dependency-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dependency-head h2 {
    margin: 0 0 5px;
    font-size: 20px;
}

.dependency-head p {
    margin: 0;
}

.dependency-summary {
    margin: 14px 0;
    font-weight: 800;
}

.dependency-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    background: #e2e8f0;
    border-radius: 999px;
}

.dependency-status.status-ok {
    color: #065f46;
    background: #d1fae5;
}

.dependency-status.status-optional {
    color: #24458f;
    background: #dbeafe;
}

.dependency-status.status-warn,
.dependency-status.status-blocked {
    color: #92400e;
    background: #fef3c7;
}

.dependency-status.status-fail {
    color: #991b1b;
    background: #fee2e2;
}

.dependency-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.dependency-card {
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.dependency-card strong,
.dependency-card span {
    display: block;
}

.dependency-card strong {
    color: var(--primary);
    font-size: 13px;
}

.dependency-card span {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 11px;
}

.dependency-table {
    display: block;
    overflow-x: auto;
    font-size: 12px;
}

.dependency-table th,
.dependency-table td {
    min-width: 120px;
    padding: 9px 10px;
}

.dependency-table th:nth-child(1),
.dependency-table td:nth-child(1) {
    min-width: 185px;
}

.dependency-table th:nth-child(3),
.dependency-table td:nth-child(3) {
    min-width: 240px;
}

.dependency-note {
    margin: 13px 0 0;
    font-size: 12px;
}

.dependency-note code {
    display: inline;
    padding: 2px 5px;
}

.ocr-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ocr-mode-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #d7e0ee;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.ocr-mode-option:has(input:checked) {
    background: #eef4ff;
    border-color: #2d63d8;
    box-shadow: 0 0 0 2px rgba(45, 99, 216, .08);
}

.ocr-mode-option input {
    margin-top: 3px;
    accent-color: #2d63d8;
}

.ocr-mode-option span {
    display: grid;
    gap: 5px;
}

.ocr-mode-option small {
    color: #64748b;
    line-height: 1.35;
}

.browser-ocr-status {
    margin-top: 12px;
    padding: 11px 13px;
    color: #24458f;
    line-height: 1.4;
    background: #eef4ff;
    border-radius: 10px;
}

.browser-ocr-status.err {
    color: #9f1239;
    background: #fff1f2;
}

.browser-ocr-status.ok {
    color: #166534;
    background: #ecfdf5;
}

.browser-ocr-progress {
    height: 7px;
    margin-top: 9px;
    overflow: hidden;
    background: #dbe7ff;
    border-radius: 999px;
}

.browser-ocr-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #2d63d8;
    transition: width .2s;
}

@media (max-width: 760px) {
    .ocr-mode-grid {
        grid-template-columns: 1fr;
    }
}

.retention-warning {
    border-color: #f59e0b;
}

code {
    display: block;
    padding: 10px;
    overflow-wrap: anywhere;
    background: #f8fafc;
    border-radius: var(--radius-md);
}

.input,
select,
textarea {
    /*width: 100%;*/
    padding: 12px 13px;
    color: var(--text);
    font: inherit;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

textarea {
    min-height: 140px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 800;
}

.badge {
    display: inline-flex;
    padding: 5px 10px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    background: var(--primary-soft);
    border-radius: 999px;
}

.badge.ok {
    color: #065f46;
    background: #d1fae5;
}

.badge.warn {
    color: #92400e;
    background: #fef3c7;
}

.badge.danger {
    color: #991b1b;
    background: #fee2e2;
}

.alert {
    padding: 12px 14px;
    margin: 12px 0;
    border-radius: var(--radius-md);
}

.alert.ok {
    color: #065f46;
    background: #d1fae5;
}

.alert.err {
    color: #991b1b;
    background: #fee2e2;
}

.alert.warn {
    color: #92400e;
    background: #fef3c7;
}

table {
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
}

th,
td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    background: #f8fafc;
}

tr:last-child td {
    border-bottom: 0;
}

/* Personal display timezone */
.timezone-control{max-width:24rem;white-space:normal;overflow-wrap:anywhere;font-size:.8rem;}
#timezone select{width:100%;max-width:100%;min-width:0;}
