* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    min-height: 100dvh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 15px;
    line-height: 1.45;
}

.app-shell {
    max-width: 100%;
    margin: 0 auto;
    animation: fadeIn 0.45s ease;
}

.app-shell-wide {
    max-width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-card {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 14px 16px;
    text-align: center;
}

.app-header h1 { font-size: 18px; font-weight: 600; line-height: 1.25; }
.app-header p { margin-top: 4px; opacity: 0.9; font-size: 12px; }

.topnav {
    background: #333;
    display: flex;
    justify-content: space-around;
}

.topnav a {
    flex: 1;
    color: #f2f2f2;
    text-decoration: none;
    text-align: center;
    padding: 10px 4px;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: 0.2s;
    min-height: 52px;
    justify-content: center;
}

.topnav a i { font-size: 20px; }
.topnav a:hover { background: #ddd; color: #111; }
.topnav a.active { background: #667eea; color: #fff; }

.app-body { padding: 12px 14px 24px; }

.stats-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-pill {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.stat-pill.ok { background: #e8f8ef; color: #1e7e34; border: 1px solid #b8e6c8; }
.stat-pill.bad { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }

/* Технологическая линия */
.flow-line {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    justify-content: center;
}

.flow-step {
    display: flex;
    align-items: center;
}

.flow-arrow {
    color: #999;
    font-size: 22px;
    padding: 0 6px;
    align-self: center;
}

.mechanism-card {
    width: 150px;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid #ccc;
    background: #fafafa;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.mechanism-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.mechanism-card.running { border-color: #28a745; box-shadow: 0 0 0 2px rgba(40,167,69,0.25); }
.mechanism-card.stopped { border-color: #dc3545; box-shadow: 0 0 0 2px rgba(220,53,69,0.25); }

.mechanism-card .photo {
    height: 100px;
    background: #eef1f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.mechanism-card .photo img { max-width: 100%; max-height: 88px; object-fit: cover; width: 100%; }

.mechanism-card .info { padding: 10px; text-align: center; }
.mechanism-card .code { font-weight: 700; font-size: 14px; color: #667eea; }
.mechanism-card .name { font-size: 11px; color: #555; margin-top: 4px; line-height: 1.3; }

.status-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
}

.status-badge.on { background: #28a745; }
.status-badge.off { background: #dc3545; }

/* Деталь механизма */
.detail-hero {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: flex-start;
}

.detail-hero img {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    border: 3px solid #ddd;
}

.detail-hero.running img { border-color: #28a745; }
.detail-hero.stopped img { border-color: #dc3545; }

.table-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -14px;
    padding: 0 14px 8px;
}

.sensor-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; }
.sensor-table th, .sensor-table td { padding: 10px 8px; border-bottom: 1px solid #eee; text-align: left; }
.sensor-table th { background: #f5f6fb; color: #444; }

.mechanism-warehouse-photo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: block;
}

.doc-links a {
    display: inline-block;
    margin-right: 8px;
    margin-top: 4px;
    padding: 6px 12px;
    background: #667eea;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
}

.doc-links a.secondary { background: #6c757d; }

/* Склад */
.warehouse-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

.instruments-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.instruments-filter-bar .form-control { max-width: 320px; }
.instruments-filter-bar select.form-control { max-width: 280px; }

.instruments-table tr.is-hidden { display: none; }
.instruments-unlinked { color: #888; font-size: 13px; }

.cabinets-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.cabinets-filter-bar .form-control { max-width: 280px; }
.cabinets-filter-bar select.form-control { min-width: 220px; }

.cabinets-scheme-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.cabinet-scheme-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cabinet-scheme-upload-label input[type="file"] {
    display: none;
}

.cabinets-filter-meta {
    flex-basis: 100%;
    margin: 0;
}

.cabinets-table tr.is-hidden { display: none; }

.warehouse-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 4px;
}

.warehouse-filter-bar .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dde2ef;
    border-radius: 10px;
    font-size: 14px;
}

.warehouse-filter-meta {
    font-size: 13px;
    color: #666;
    margin: 10px 0 0;
}

.warehouse-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    background: #fafafa;
}

.warehouse-card.is-hidden {
    display: none;
}

.warehouse-card .photo {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    background: #eef1f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e8e8e8;
}

.warehouse-card .photo img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
}

.warehouse-card .body {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
}

.warehouse-card .warehouse-name {
    font-weight: 600;
    margin-top: 6px;
    line-height: 1.35;
}

.warehouse-card .warehouse-cell {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
}

.warehouse-card .warehouse-cell .label {
    color: #888;
}

.warehouse-card .order { font-size: 12px; color: #667eea; font-weight: 700; }
.warehouse-card .qty { margin-top: 8px; font-size: 13px; }

.warehouse-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.warehouse-modal-item-name {
    font-weight: 600;
    margin-bottom: 14px;
    color: #333;
}

body.modal-open { overflow: hidden; }

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.app-modal[hidden] { display: none !important; }

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.app-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 32px);
    overflow: auto;
}

.app-modal-dialog-wide { max-width: 560px; }

.app-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 0;
}

.app-modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.app-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
}

.app-modal-body { padding: 16px 18px 18px; }

.app-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.warehouse-empty {
    color: #888;
    margin-top: 20px;
}

/* Сотрудники */
.employee-list { list-style: none; }
.employee-list li {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.employee-list a {
    text-decoration: none;
    color: #333;
    display: block;
}

.employee-list a:hover .emp-name { color: #667eea; }
.emp-name { font-weight: 600; font-size: 16px; }
.emp-meta { font-size: 13px; color: #666; margin-top: 4px; }

.back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

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

.btn-app {
    display: inline-block;
    padding: 12px 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    min-height: 44px;
    line-height: 1.2;
}

.btn-app-block {
    display: block;
    width: 100%;
    margin-top: 12px;
}

.info-block {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.info-block h3 { font-size: 15px; margin-bottom: 8px; color: #444; }

/* Админ-панель */
.admin-subnav {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 10px 12px;
    background: #f0f2f8;
    border-bottom: 1px solid #e0e4ef;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-subnav a {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #444;
    font-size: 13px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

.admin-subnav a:hover { background: #e2e6f5; }
.admin-subnav a.active { background: #667eea; color: #fff; }

.admin-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.admin-stat-card {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.admin-stat-card .num { font-size: 28px; font-weight: 700; color: #667eea; }
.admin-stat-card .label { font-size: 13px; color: #666; margin: 6px 0 10px; }
.admin-stat-card a { font-size: 13px; color: #667eea; }

.admin-toolbar { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.warehouse-stock-actions { min-width: 220px; }
.warehouse-stock-actions .stock-form { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.warehouse-stock-actions .stock-qty { width: 56px; padding: 4px 6px; border: 1px solid #ddd; border-radius: 6px; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.sensor-inline-upload-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 220px;
}
.sensor-inline-upload-form .form-control {
    max-width: 160px;
    padding: 4px 6px;
    font-size: 12px;
}

.pagination-bar { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.pagination-meta { font-size: 13px; color: #666; }

.admin-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th, .admin-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}

.admin-table th { background: #f5f6fb; color: #444; }

.admin-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.admin-actions { white-space: nowrap; }
.admin-actions a { margin-right: 10px; color: #667eea; text-decoration: none; font-size: 13px; }

.inline-form { display: inline; }

.link-danger {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.alert-banner {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 14px;
}

.alert-banner.ok { background: #e8f8ef; color: #1e7e34; border: 1px solid #b8e6c8; }
.alert-banner.err { background: #fdecea; color: #b02a1f; border: 1px solid #f5c2c0; }

.admin-form .form-group { margin-bottom: 16px; }
.admin-form label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: #444; }

.admin-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
}

.admin-form textarea.form-control { min-height: 80px; resize: vertical; }

.admin-form .has-error .form-control { border-color: #dc3545; }
.admin-form .error { color: #dc3545; font-size: 12px; margin-top: 4px; display: block; }

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.form-preview {
    display: block;
    max-width: 200px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin-top: 20px;
}

.form-actions .btn-app,
.form-actions .btn-secondary {
    width: 100%;
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 18px;
    background: #6c757d;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
}

.checkbox-label { font-weight: normal !important; display: flex; align-items: center; gap: 8px; }

.hint { font-size: 12px; color: #888; margin-top: 4px; }
.muted { font-size: 12px; color: #888; margin-top: 4px; }

.admin-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 16px;
}

.admin-filter .btn-app {
    width: 100%;
}

.admin-filter label { font-size: 13px; font-weight: 600; }
.admin-filter select { min-width: 0; width: 100%; }

/* Технологическая схема — зоны */
.zone-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.zone-menu a {
    flex-shrink: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f0f2f8;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.15s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.stats-stopped-only {
    margin-bottom: 12px;
}

.zone-toc {
    margin-bottom: 12px;
    border: 1px solid #e0e4ef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.zone-toc-item {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    line-height: 1.35;
}

.zone-toc-item + .zone-toc-item {
    border-top: 1px dashed #b8c4e8;
}

.zone-toc-item:active {
    background: #eef1fa;
}

.zone-menu a:hover { background: #e2e6f5; color: #667eea; }
.zone-menu a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.flow-stage {
    position: relative;
    margin: 0 -14px;
}

.flow-canvas-scroll {
    position: relative;
    width: 100%;
    overflow: visible;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.plant-flow-canvas {
    width: 100%;
    height: auto;
    min-height: 200px;
    border: none;
    border-top: 1px solid #e0e4ef;
    border-bottom: 1px solid #e0e4ef;
    border-radius: 0;
    background: #fafbfd;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.page-plant .plant-flow-canvas canvas {
    touch-action: pan-y;
}

.page-plant .flow-hint-block {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin-top: 10px;
}

.zone-nav-arrow {
    display: none;
}

.zone-anchor-btn {
    position: absolute;
    z-index: 10;
    padding: 8px 10px;
    max-width: 42%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.zone-anchor-left {
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.zone-anchor-right {
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.zone-anchor-bottom {
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    max-width: 70%;
}

.editor-hint-zone {
    margin-bottom: 12px;
}

.anchor-editor {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8ebf5;
}

.anchor-editor-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: #444;
}

.anchor-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
}

.anchor-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fafbfd;
}

.anchor-row-pick,
.edge-row-pick {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25);
}

.edge-row-active {
    border-color: #28a745;
    background: #f0faf3;
}

.anchor-row label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.anchor-row .form-control {
    margin-top: 4px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.anchor-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.anchor-pick-hint {
    font-size: 12px;
    color: #667eea;
    margin-top: 8px;
    min-height: 1.2em;
}

.zone-picker-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.zone-picker-card {
    display: block;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    text-decoration: none;
    color: inherit;
    transition: 0.15s;
}

.zone-picker-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.12);
}

.zone-picker-card strong { display: block; font-size: 16px; color: #667eea; }
.zone-picker-card span { display: block; font-size: 12px; color: #666; margin-top: 6px; }
.zone-picker-link { margin-top: 10px !important; color: #764ba2 !important; font-weight: 600; }

.flow-save-status { font-size: 13px; margin-left: 8px; }
.flow-save-status.ok { color: #28a745; font-weight: 600; }
.flow-save-status.err { color: #dc3545; font-weight: 600; }

.editor-hint { margin-bottom: 12px; }

.flow-edit-link { margin-left: 0; white-space: normal; }

.flow-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.page-admin-flow .flow-toolbar {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 10px 0;
    border-top: 1px solid #eee;
    z-index: 5;
}

.page-admin-flow .plant-flow-canvas {
    min-height: 280px;
    height: min(55vh, 480px);
    border: 1px solid #e0e4ef;
    border-radius: 12px;
}

.btn-flow {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #667eea;
    cursor: pointer;
}

.btn-flow:hover { background: #f0f2f8; }

.flow-hint {
    font-size: 12px;
    color: #888;
}

.flow-legend {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
}

.flow-error {
    padding: 24px;
    color: #c0392b;
    text-align: center;
}

/* Вход */
.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.login-page .login-container {
    width: 100%;
    max-width: 400px;
}

.login-page .login-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.login-page .login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 24px 20px;
    text-align: center;
}

.login-page .login-header h2 { margin: 0; font-size: 22px; }

.login-page .login-body { padding: 24px 20px; }

.login-page .form-control {
    border-radius: 10px;
    height: 48px;
    margin-bottom: 12px;
    font-size: 16px;
    width: 100%;
}

.login-page .btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    min-height: 48px;
}

.login-page .hint {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
    text-align: center;
}

.login-page .alert { border-radius: 10px; }

/* Крупные зоны нажатия */
.back-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.employee-list a {
    padding: 8px 0;
    min-height: 44px;
}

.doc-links a {
    margin-bottom: 8px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}
