/* ================================================================
   Konflex — Парк оборудования. Фирменный стиль.
   ================================================================ */

:root {
    --konflex-blue: #00B1EB;
    --konflex-blue-dark: #0099cc;
    --konflex-blue-light: #5fc6f1;
    --konflex-dark: #1e2538;      /* шапка */
    --konflex-dark-2: #2c3e50;    /* заголовки */
    --konflex-gray: #f5f7fa;      /* фон страницы */
    --konflex-border: #e1e6eb;
    --konflex-text: #333;
    --konflex-text-muted: #7a8699;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--konflex-text);
    background: var(--konflex-gray);
}

a { color: var(--konflex-blue); text-decoration: none; }
a:hover { color: var(--konflex-blue-dark); }

/* ================ Layout ================ */

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

/* ================ Header ================ */

.app-header {
    background: var(--konflex-dark);
    border-bottom: 3px solid var(--konflex-blue);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.app-header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.app-header__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    text-decoration: none;
}

.app-header__logo {
    height: 28px;
    width: auto;
    display: block;
}

.app-header__divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.2);
}

.app-header__title {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}

.app-header__nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.app-header__nav a {
    padding: 8px 16px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.15s;
    white-space: nowrap;
}

.app-header__nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.app-header__nav a.active {
    color: #fff;
    background: var(--konflex-blue);
}

.app-header__contacts {
    display: flex;
    align-items: center;
    padding-left: 24px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.app-header__phone {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}
.app-header__phone:hover { color: var(--konflex-blue-light); }

/* ================ Main content ================ */

.app-content {
    flex: 1;
    padding: 32px 0;
}

/* ================ Footer ================ */

.app-footer {
    background: #fff;
    border-top: 1px solid var(--konflex-border);
    padding: 20px 0;
    font-size: 13px;
    color: var(--konflex-text-muted);
}

.app-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ================ Cards ================ */

.card {
    background: #fff;
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.card h2 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--konflex-dark-2);
}

/* ================ Buttons ================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn--primary {
    background: var(--konflex-blue);
    color: #fff;
}
.btn--primary:hover {
    background: var(--konflex-blue-dark);
    color: #fff;
}

.btn--ghost {
    background: #fff;
    color: var(--konflex-dark-2);
    border-color: var(--konflex-border);
}
.btn--ghost:hover {
    background: var(--konflex-gray);
    color: var(--konflex-dark-2);
}

.btn--danger {
    background: #e74c3c;
    color: #fff;
}
.btn--danger:hover { background: #c0392b; color: #fff; }

.btn--small {
    padding: 7px 12px;
    font-size: 13px;
}

/* ================ Toolbar / Filters ================ */

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    background: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.filters input[type=text],
.filters select {
    padding: 8px 12px;
    border: 1px solid var(--konflex-border);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    color: var(--konflex-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.filters input[type=text]:focus,
.filters select:focus {
    outline: none;
    border-color: var(--konflex-blue);
    box-shadow: 0 0 0 3px rgba(0,177,235,0.12);
}

/* ================ Table ================ */

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
}

.table th {
    background: var(--konflex-dark-2);
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--konflex-border);
    vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #fafbfc; }

/* ================ Status badges ================ */

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.status--green { background: #d4edda; color: #155724; }
.status--yellow { background: #fff3cd; color: #856404; }
.status--red { background: #f8d7da; color: #721c24; }

/* ================ Empty state ================ */

.empty {
    background: #fff;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    color: var(--konflex-text-muted);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.empty a { color: var(--konflex-blue); font-weight: 500; }

/* ================ Forms ================ */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px 24px;
}

.form-group {
    grid-column: 1 / -1;
    border-top: 1px solid var(--konflex-border);
    padding-top: 20px;
    margin-top: 8px;
}
.form-group:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}
.form-group__title {
    margin: 0 0 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--konflex-text-muted);
    font-weight: 600;
}
.form-group__fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px 24px;
}

.field { display: flex; flex-direction: column; }
.field--wide { grid-column: 1 / -1; }

.field label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    padding: 10px 12px;
    border: 1px solid var(--konflex-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--konflex-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--konflex-blue);
    box-shadow: 0 0 0 3px rgba(0,177,235,0.12);
}

.field textarea { min-height: 80px; resize: vertical; }

.req { color: #e74c3c; }

.field--checkbox { justify-content: flex-end; }
.field--checkbox label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--konflex-border);
}

/* ================ Admin ================ */

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.admin-tabs a {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--konflex-dark-2);
    background: #fff;
    border: 1px solid var(--konflex-border);
    font-weight: 500;
    transition: all 0.15s;
}
.admin-tabs a:hover { background: var(--konflex-gray); }
.admin-tabs a.active {
    background: var(--konflex-blue);
    color: #fff;
    border-color: var(--konflex-blue);
}

.admin-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

.admin-side h3 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--konflex-dark-2);
}

.dict-list { list-style: none; padding: 0; margin: 0 0 16px; }
.dict-list li { border-bottom: 1px solid var(--konflex-border); }
.dict-list li:last-child { border-bottom: none; }
.dict-list li a {
    display: block;
    padding: 10px 12px;
    color: var(--konflex-dark-2);
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.1s;
}
.dict-list li a:hover { background: var(--konflex-gray); }
.dict-list li.active a {
    background: var(--konflex-blue);
    color: #fff;
}
.dict-list li small {
    display: block;
    padding: 0 12px 8px;
    color: var(--konflex-text-muted);
    font-size: 11px;
}
.dict-list li.active small { color: rgba(255,255,255,0.85); }

.stack-form { display: flex; flex-direction: column; gap: 8px; }
.stack-form input {
    padding: 8px 10px;
    border: 1px solid var(--konflex-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}

.inline-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.inline-form input[type=text] {
    flex: 1;
    min-width: 200px;
    padding: 8px 10px;
    border: 1px solid var(--konflex-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}
.inline-form input[type=number] {
    padding: 8px 10px;
    border: 1px solid var(--konflex-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}

.admin-side__add { margin-top: 16px; }
.admin-side__add summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--konflex-blue);
    margin-bottom: 10px;
}

.actions { display: flex; gap: 6px; flex-wrap: wrap; }

.muted { color: var(--konflex-text-muted); font-weight: normal; font-size: 13px; }

.row-inactive td { opacity: 0.5; }

code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 12px;
    background: var(--konflex-gray);
    padding: 2px 6px;
    border-radius: 4px;
    color: #555;
}

/* ================ Responsive ================ */

@media (max-width: 900px) {
    .container, .app-header__container { padding: 0 16px; }
    .app-header__container { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
    .app-header__nav { margin-left: 0; order: 3; width: 100%; }
    .app-header__contacts { padding-left: 0; border-left: none; margin-left: auto; }
    .admin-grid { grid-template-columns: 1fr; }
    .app-content { padding: 20px 0; }
    .card { padding: 20px; }
}

/* ===== Разворачивающаяся панель деталей ===== */



.actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* ===== Компактная таблица ===== */
.table th,
.table td {
    padding: 10px 12px;
    font-size: 13px;
}

.table th {
    font-size: 12px;
}

.actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

.actions .btn--small {
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
}

/* ===== Информация о количестве записей ===== */
.pagination-info {
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--konflex-text-muted);
}

/* ===== Пагинация ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination__link {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--konflex-border);
    background: #fff;
    color: var(--konflex-dark-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}

.pagination__link:hover {
    background: var(--konflex-gray);
    color: var(--konflex-blue);
    border-color: var(--konflex-blue);
}

.pagination__link--active {
    background: var(--konflex-blue);
    color: #fff;
    border-color: var(--konflex-blue);
    cursor: default;
}

.pagination__link--active:hover {
    background: var(--konflex-blue);
    color: #fff;
}

.pagination__link--disabled {
    color: #ccc;
    background: #fafafa;
    border-color: #eee;
    cursor: not-allowed;
}

.pagination__link--disabled:hover {
    background: #fafafa;
    color: #ccc;
    border-color: #eee;
}

.pagination__dots {
    color: var(--konflex-text-muted);
    padding: 0 4px;
}

/* ===== Разворачивающаяся панель деталей ===== */
.details-row td {
    background: #f9fafb;
    padding: 20px 24px;
    border-top: 1px solid var(--konflex-border);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px 24px;
}

.details-block {
    background: #fff;
    border: 1px solid var(--konflex-border);
    border-radius: 6px;
    padding: 14px 16px;
}

.details-block__title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--konflex-text-muted);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--konflex-border);
}

.details-block__rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.details-label {
    color: var(--konflex-text-muted);
    font-weight: 500;
    display: inline-block;
    min-width: 130px;
    vertical-align: top;
}

/* ===== Блок на всю ширину в панели деталей ===== */

/* ===== Таблица истории обслуживания ===== */




/* Отступ для таблицы истории */




/* Отступы для таблицы истории */

/* ===== Таблица истории — перекраска ===== */






/* ===== Таблица истории — зебра ===== */







/* ===== Блок на всю ширину в панели деталей ===== */
.details-block--wide {
    grid-column: 1 / -1;
}

/* ===== Таблица истории обслуживания ===== */
.details-history {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--konflex-border);
    border-radius: 4px;
    overflow: hidden;
    font-size: 12.5px;
}



.details-history td {
    padding: 8px 12px;
    color: var(--konflex-text);
    border-bottom: 1px solid #f0f2f5;
    vertical-align: top;
}

.details-history tbody tr:nth-child(odd)  { background: #fff; }
.details-history tbody tr:nth-child(even) { background: #f9fafb; }
.details-history tbody tr:last-child td   { border-bottom: none; }

/* ===== Светлый заголовок таблицы истории ===== */
.details-history thead {
    background: #f5f7fa;
}

.details-history th {
    color: var(--konflex-text-muted);
    padding: 8px 12px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    border-bottom: 1px solid var(--konflex-border);
}

/* Перебиваем .table th для вложенной таблицы истории */
.table .details-history thead th {
    background: #f5f7fa !important;
    color: var(--konflex-text-muted) !important;
    border-bottom: 1px solid var(--konflex-border) !important;
}

/* Поле кодов запуска — выше обычного textarea, моноширинный шрифт */
.field textarea[name="unlock_codes"] {
    min-height: 240px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 12.5px;
    line-height: 1.5;
}

/* Блок кодов запуска в развёрнутой панели */
.unlock-codes-pre {
    background: #f5f7fa;
    border: 1px solid var(--konflex-border);
    border-radius: 4px;
    padding: 12px 16px;
    margin: 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: var(--konflex-text);
    max-height: 320px;
    overflow-y: auto;
    white-space: pre;
}

/* ===== История обслуживания — карточки записей ===== */
.history-item {
    background: #fff;
    border: 1px solid var(--konflex-border);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 12px;
}

.history-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.history-item__description {
    font-size: 13px;
    color: var(--konflex-text);
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.history-item__files {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12.5px;
    align-items: center;
}

.history-file-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f5f7fa;
    border: 1px solid var(--konflex-border);
    border-radius: 4px;
    color: var(--konflex-blue);
    text-decoration: none;
    font-size: 12.5px;
    transition: all 0.15s;
}

.history-file-link:hover {
    background: var(--konflex-blue);
    color: #fff;
    border-color: var(--konflex-blue);
}

/* ===== Файлы в истории: мини-форма и кнопка удаления ===== */
.history-item__files {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
    align-items: center;
}

.history-file {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.history-file-delete {
    background: transparent;
    border: none;
    color: #c0392b;
    font-size: 16px;
    line-height: 1;
    padding: 0 6px;
    cursor: pointer;
    border-radius: 3px;
}

.history-file-delete:hover {
    background: #f8d7da;
}

.history-item__attach {
    margin-top: 6px;
}

.history-attach-label {
    display: inline-block;
    cursor: pointer;
}

.history-attach-label input[type=file] {
    display: none;
}

/* ===== Счётчики в записи истории ===== */
.history-item__counters {
    display: flex;
    gap: 16px;
    margin: 8px 0;
    font-size: 13px;
    color: var(--konflex-text-muted);
}
.history-item__counters span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== Убранные профили ===== */
.row-inactive td {
    opacity: 0.5;
}
.row-inactive .history-file-link {
    text-decoration: line-through;
}

/* ===== Полезные файлы: убранные строки ===== */
.row-inactive td {
    opacity: 0.5;
}
.row-inactive .history-file-link {
    text-decoration: line-through;
}

/* ===== Дашборд ===== */
.dashboard__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard__tile {
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
    border-left: 4px solid var(--konflex-border);
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.dashboard__tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.dashboard__tile--blue   { border-left-color: var(--konflex-blue); }
.dashboard__tile--green  { border-left-color: #27ae60; }
.dashboard__tile--red    { border-left-color: #e74c3c; }
.dashboard__tile--yellow { border-left-color: #f39c12; }

.dashboard__tile-value {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 6px;
    color: var(--konflex-dark-2);
}
.dashboard__tile--blue   .dashboard__tile-value { color: var(--konflex-blue); }
.dashboard__tile--green  .dashboard__tile-value { color: #27ae60; }
.dashboard__tile--red    .dashboard__tile-value { color: #e74c3c; }
.dashboard__tile--yellow .dashboard__tile-value { color: #f39c12; }

.dashboard__tile-label {
    font-size: 13px;
    color: var(--konflex-text-muted);
    font-weight: 500;
}

.dashboard__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard__block {
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.03);
}

.dashboard__block-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--konflex-text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--konflex-border);
}

.dashboard__division-row {
    display: grid;
    grid-template-columns: 200px 1fr 50px;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    font-size: 13px;
}

.dashboard__division-name {
    color: var(--konflex-dark-2);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard__division-bar-wrap {
    background: var(--konflex-gray);
    border-radius: 4px;
    height: 18px;
    overflow: hidden;
}

.dashboard__division-bar {
    background: linear-gradient(90deg, var(--konflex-blue) 0%, var(--konflex-blue-light) 100%);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.dashboard__division-count {
    text-align: right;
    font-weight: 600;
    color: var(--konflex-dark-2);
}

.dashboard__status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
}
.dashboard__status-row:last-child { border-bottom: none; }

.dashboard__status-count {
    font-weight: 600;
    color: var(--konflex-dark-2);
}

.dashboard__list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
}
.dashboard__list-row:last-child { border-bottom: none; }

.dashboard__list-name {
    color: var(--konflex-dark-2);
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 12px;
}

.dashboard__list-count {
    font-weight: 600;
    color: var(--konflex-blue);
    font-size: 15px;
}

.dashboard__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.dashboard__table td {
    padding: 8px 6px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: top;
}
.dashboard__table tr:last-child td { border-bottom: none; }

.dashboard__table a {
    color: var(--konflex-dark-2);
    font-weight: 500;
    text-decoration: none;
}
.dashboard__table a:hover { color: var(--konflex-blue); }

@media (max-width: 900px) {
    .dashboard__row {
        grid-template-columns: 1fr;
    }
    .dashboard__division-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .dashboard__division-count {
        text-align: left;
    }
}

/* ===== Flash-сообщения ===== */
.flash {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.flash--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.flash--error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}
