.nav-tiles-wrap { margin: 0 0 28px 0; }
.nav-tiles-section { margin-bottom: 24px; }
.nav-tiles-section:last-child { margin-bottom: 0; }
.nav-tiles-heading {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5a6578;
}
.nav-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}
.nav-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid #dde3ec;
    background: #fff;
    color: #1a2332;
    text-decoration: none;
    min-height: 108px;
    box-sizing: border-box;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.nav-tile:hover {
    box-shadow: 0 6px 20px rgba(30, 60, 120, 0.12);
    transform: translateY(-2px);
    border-color: #b8c9e0;
    color: #1a2332;
}
.nav-tile__icon {
    font-size: 22px;
    line-height: 1;
}
.nav-tile__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}
.nav-tile__badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    background: #e53935;
    border-radius: 10px;
    vertical-align: middle;
}
.nav-tile__desc {
    font-size: 12px;
    line-height: 1.35;
    color: #6b7789;
}
.nav-tile--blue { border-top: 3px solid #1976d2; }
.nav-tile--green { border-top: 3px solid #2e7d32; }
.nav-tile--orange { border-top: 3px solid #ef6c00; }
.nav-tile--purple { border-top: 3px solid #7b1fa2; }
.nav-tile--teal { border-top: 3px solid #00838f; }
.nav-tile--indigo { border-top: 3px solid #3949ab; }
.nav-tile--gray { border-top: 3px solid #607d8b; }
.nav-tile--report { border-top: 3px solid #1565c0; min-height: 92px; }

button.nav-tile {
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
}
button.nav-tile[aria-expanded="true"] {
    box-shadow: 0 6px 20px rgba(30, 60, 120, 0.12);
    border-color: #1976d2;
    background: #f5f9ff;
}

.nav-reports-panel {
    margin: 4px 0 8px 0;
    padding: 16px 18px;
    border: 1px solid #dde3ec;
    border-radius: 10px;
    background: #f8fafc;
}
.nav-reports-panel.is-open { display: block; }
.nav-reports-panel__title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5a6578;
}
.nav-reports-panel__empty {
    margin: 0;
    color: #666;
}
.nav-reports-panel__hint {
    margin: -6px 0 12px 0;
    font-size: 12px;
    color: #666;
}
.nav-reports-panel__more {
    margin: 12px 0 0 0;
    font-size: 13px;
}
.dashboard-compact-table { font-size: 13px; }
.nav-tiles-grid--nested {
    margin-top: 4px;
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.report-actions > a {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid #c5d4e8;
    border-radius: 5px;
    background: #fff;
    color: #1565c0 !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.35;
}
.report-actions > a:hover {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #0d47a1 !important;
}
.report-actions > form {
    display: inline-flex;
    margin: 0;
}
.report-actions > form button {
    padding: 5px 11px;
    border: 1px solid #bdbdbd;
    border-radius: 5px;
    background: #f5f5f5;
    color: #424242;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.35;
}
.report-actions > form button:hover {
    background: #eeeeee;
    border-color: #9e9e9e;
}

/* Компактная полоска в шапке Django admin */
.nav-tiles-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-tiles-compact a {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
}
.nav-tiles-compact a:hover { background: rgba(255, 255, 255, 0.28); }

@media (max-width: 640px) {
    .nav-tiles-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .nav-tile { min-height: 96px; padding: 12px 14px; }
}
