/*! ADAT CUBE theme · © 2026 ADAT. All rights reserved. · Developed by Semenkevich Oleg · sig 059c03a4571670477c2b */
/* ===== ADAT CUBE: оформление в стиле ADAT РЕЕСТР (поверх AdminLTE) ===== */
:root {
  --adat-sig: "059c03a4571670477c2b";
  --adat-red: #EC6666; --adat-red-d: #E05A5A; --adat-red-dd: #C94545;
  --adat-green: #B8D694; --adat-green-d: #6E9A48; --adat-green-l: #EEF5E6;
  --adat-ink: #1F2326; --adat-muted: #7A8277; --adat-line: #E5E9E1;
  --adat-side: #15191C;
  --adat-lines: repeating-linear-gradient(115deg, transparent 0 46px, rgba(236,102,102,.07) 46px 47px, transparent 47px 92px, rgba(184,214,148,.16) 92px 93px);
}
body { font-family: "Segoe UI", Inter, "Source Sans Pro", Arial, sans-serif; color: var(--adat-ink); }
::selection { background: #F7C7C7; }

/* Рабочая область: светлый фон с диагональными линиями */
.content-wrapper { background-color: #F8FAF7; background-image: var(--adat-lines); background-attachment: fixed; }

/* Верхняя панель с фирменной полосой */
.main-header.navbar { border-bottom: 0 !important; box-shadow: 0 1px 0 #E5E7EB; position: relative; }
.main-header.navbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; z-index: 5;
  background: linear-gradient(to right, var(--adat-red) 0 68%, var(--adat-green) 68% 100%); }
.main-header .form-control-navbar { background: #F3F5F1; border-color: #E1E7DC; border-radius: 9px 0 0 9px; min-width: 260px; }
.main-header .btn-navbar { background: #F3F5F1; border-color: #E1E7DC; border-radius: 0 9px 9px 0; color: #6B7369; }
.main-header .form-control-navbar:focus { background: #fff; border-color: var(--adat-green); box-shadow: 0 0 0 3px rgba(184,214,148,.35); }
.adat-nav-title { font-weight: 700; color: var(--adat-ink) !important; letter-spacing: .02em; }

/* Боковое меню: графит, красно-зелёная полоса слева */
.main-sidebar, .main-sidebar::before { background-color: var(--adat-side) !important; }
.main-sidebar { background-image: linear-gradient(to bottom, var(--adat-red) 0 74%, var(--adat-green) 74% 100%) !important;
  background-size: 4px 100% !important; background-repeat: no-repeat !important; background-position: left top !important; }
.main-sidebar .sidebar { display: flex; flex-direction: column; min-height: 100%; padding-left: 10px; padding-right: 8px; }
.adat-brand { display: flex; flex-direction: column; align-items: stretch; width: 150px; margin: 20px auto 14px; text-decoration: none !important; }
.adat-brand img { width: 100%; height: auto; display: block; }
.adat-brand-word { display: flex; justify-content: space-between; margin-top: 7px; font-size: 16px; line-height: 1; font-weight: 700; color: #fff; }
.adat-bars { display: none; align-items: flex-end; gap: 3px; height: 14px; margin: 18px auto 12px; width: max-content; }
.adat-bars::before, .adat-bars::after { content: ""; display: block; width: 13px; }
.adat-bars::before { height: 14px; background: var(--adat-red); }
.adat-bars::after { height: 7px; background: var(--adat-green); }
.sidebar-collapse .main-sidebar:not(:hover) .adat-brand { display: none; }
.sidebar-collapse .main-sidebar:not(:hover) .adat-bars { display: flex; }

.main-sidebar .user-panel { border-bottom: 1px solid rgba(255,255,255,.08) !important; align-items: center; }
.main-sidebar .user-panel .info a { color: #C9CFC6 !important; font-size: 14px; }
.main-sidebar .user-panel .info a:hover { color: #fff !important; }
.adat-user-ava { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--adat-red), #F2A3A3);
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.adat-user-logout { color: #8C958A !important; font-size: 12px !important; }

.nav-sidebar .nav-header { color: #7E877C !important; font-size: 11.5px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 16px 12px 6px !important; }
.nav-sidebar > .nav-item > .nav-link { color: #C9CFC6 !important; border-radius: 9px !important; padding: 7px 12px; margin-bottom: 2px; transition: background .15s, color .15s; }
.nav-sidebar > .nav-item > .nav-link:hover { background: rgba(255,255,255,.07) !important; color: #fff !important; }
.nav-sidebar > .nav-item > .nav-link.active, .sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
  background: var(--adat-red-d) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(224,90,90,.28) !important; }
.nav-sidebar .nav-link .nav-icon { color: #8C958A; font-size: 14px !important; }
.nav-sidebar .nav-link.active .nav-icon, .nav-sidebar .nav-link:hover .nav-icon { color: #fff; }
.nav-sidebar .nav-link .adat-new { margin-left: 6px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--adat-green); color: #2B3A1E; vertical-align: 1px; }

/* Парящий кубик внизу меню */
/* Кубик стоит в конце списка меню и прокручивается вместе с ним */
.adat-sidebar-cube { position: static; padding: 28px 0 24px; display: flex; justify-content: center; pointer-events: none; }
.sidebar-collapse .main-sidebar:not(:hover) .adat-sidebar-cube { display: none; }

/* Карточки */
.card { border: 1px solid var(--adat-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,16,.04); }
.card > .card-header { background: transparent; border-bottom: 1px solid #EEF1EB; }
.card-title { font-weight: 700; font-size: 15px; color: var(--adat-ink); }
.card-primary:not(.card-outline) > .card-header { background: var(--adat-red-d); }
.card-primary.card-outline { border-top: 3px solid var(--adat-red); }
.breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 13.5px; }
.breadcrumb a { color: var(--adat-red-dd); }

/* Кнопки и ссылки */
.btn { border-radius: 9px; }
.btn-primary { background: var(--adat-red); border-color: var(--adat-red); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary:not(:disabled):not(.disabled):active { background: var(--adat-red-d) !important; border-color: var(--adat-red-d) !important; }
.btn-success { background: #8DBA5E; border-color: #8DBA5E; }
.page-item.active .page-link { background: var(--adat-red); border-color: var(--adat-red); }
.page-link { color: var(--adat-red-dd); }
a { color: #B94A4A; }
a:hover { color: var(--adat-red-dd); }
.form-control:focus { border-color: var(--adat-green); box-shadow: 0 0 0 3px rgba(184,214,148,.3); }

/* Таблицы DataTables как в реестре */
table.dataTable thead th, .table thead th { background: var(--adat-green-l); color: #3D5A26; font-size: 12.5px; font-weight: 700; border-bottom: 1px solid #D5E6C2 !important; }
table.dataTable tbody tr:hover, .table-hover tbody tr:hover { background: #FDF2F2 !important; }

/* Вход */
body.login-page { background: radial-gradient(1200px 600px at 50% 55%, #1B211E 0%, #0F1211 55%, #0A0C0B 100%); }
.login-page .login-box { width: 380px; }
.adat-login-brand { display: flex; flex-direction: column; align-items: stretch; width: 230px; margin: 0 auto 26px; }
.adat-login-brand img { width: 100%; height: auto; }
.adat-login-brand .w { display: flex; justify-content: space-between; margin-top: 10px; color: #E9EDE7; font-size: 24px; font-weight: 300; }
.login-page .card { border: 0; border-radius: 16px; overflow: hidden; background: #fff; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.login-page .card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(to right, var(--adat-red) 0 68%, var(--adat-green) 68% 100%); }
.login-page .login-card-body { padding: 28px 26px 22px; border-radius: 16px; }
.login-page .form-control { height: 44px; border-radius: 10px 0 0 10px; }
.login-page .input-group-text { border-radius: 0 10px 10px 0; background: #F3F5F1; color: #8C958A; }
.login-page .btn-primary { height: 42px; font-weight: 600; }

/* ===== Дашборд главной ===== */
.adat-page { padding-top: 24px !important; }
.content-wrapper > .content:first-child, .content-wrapper > section.content:first-child { padding-top: 16px; }
.adat-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--adat-line); border-radius: 18px; padding: 30px 34px; overflow: hidden; margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(16,24,16,.04); }
.adat-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #DDE2D9; }
.adat-hero::after { content: ""; position: absolute; right: -120px; top: -80px; width: 560px; height: 560px; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(184,214,148,.22), transparent); pointer-events: none; }
.adat-hero > * { position: relative; z-index: 1; }
.adat-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--adat-muted); }
.adat-hero-brand { display: inline-flex; flex-direction: column; width: 260px; margin: 12px 0 10px; }
.adat-hero-brand img { width: 100%; height: auto; }
.adat-hero-brand .w { display: flex; justify-content: space-between; margin-top: 8px; font-size: 26px; font-weight: 300; color: var(--adat-ink); }
.adat-hero p.lead { font-size: 16px; color: #5B6359; margin: 6px 0 22px; max-width: 520px; }
.adat-hero-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.adat-kpi { position: relative; background: #FAFBF9; border: 1px solid #EBEFE7; border-radius: 13px; padding: 13px 15px 12px 18px; text-decoration: none !important; color: inherit; transition: border-color .15s, transform .15s; }
a.adat-kpi:hover { border-color: #D5E6C2; transform: translateY(-1px); }
.adat-kpi::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 4px; border-radius: 0 4px 4px 0; background: #2B312C; }
.adat-kpi.r::before { background: var(--adat-red); } .adat-kpi.g::before { background: #8DBA5E; }
.adat-kpi-label { font-size: 12px; font-weight: 600; color: #6B7369; text-transform: uppercase; letter-spacing: .04em; }
.adat-kpi-value { font-size: 30px; line-height: 1.15; font-weight: 800; color: #1F2420; font-variant-numeric: tabular-nums; }
.adat-kpi-note { font-size: 12px; color: #8C958A; }
.adat-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.adat-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid #E1E7DC; background: #fff;
  font-weight: 600; font-size: 14px; color: #2B312C !important; text-decoration: none !important; transition: background .15s, border-color .15s; }
.adat-btn:hover { background: #F3F7EF; border-color: #C9D8BA; }
.adat-btn.red { background: var(--adat-red); border-color: var(--adat-red); color: #fff !important; }
.adat-btn.red:hover { background: var(--adat-red-d); }
.adat-numsearch { display: flex; align-items: center; height: 40px; border: 1px solid #E1E7DC; border-radius: 10px; background: #FAFBF9; overflow: hidden; }
.adat-numsearch span { padding: 0 4px 0 12px; font-weight: 700; color: #8C958A; }
.adat-numsearch input { border: 0; background: transparent; width: 120px; height: 100%; outline: none; font-size: 14px; }
.adat-numsearch button { border: 0; height: 100%; padding: 0 12px; background: #2B312C; color: #fff; }
.adat-hero-cube { display: flex; justify-content: center; align-items: center; min-height: 400px; }
@media (max-width: 1100px) { .adat-hero { grid-template-columns: 1fr; } .adat-hero-cube { min-height: 0; order: -1; } }

.adat-grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); margin-bottom: 16px; }
.adat-card { background: #fff; border: 1px solid var(--adat-line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(16,24,16,.04); min-width: 0; }
.adat-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.adat-card-head h3 { font-size: 15px; font-weight: 700; color: #1F2420; margin: 0; display: flex; align-items: center; gap: 8px; }
.adat-card-head a, .adat-card-head span { font-size: 12.5px; color: #8C958A; }
.adat-card-head a:hover { color: var(--adat-red-dd); }
.adat-sq, .adat-sq.g { width: 18px; height: 9px; display: inline-block; flex: none; background: linear-gradient(var(--adat-red),var(--adat-red)) left bottom / 8px 9px no-repeat, linear-gradient(var(--adat-green),var(--adat-green)) right bottom / 8px 4.5px no-repeat; }
.adat-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.adat-trio > div { background: #FAFBF9; border: 1px solid #EEF1EB; border-radius: 12px; padding: 10px 12px; }
.adat-trio b { display: block; font-size: 26px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; color: #1F2420; }
.adat-trio small { font-size: 12px; color: #7A8277; }
.adat-bars-list { display: grid; gap: 9px; }
.adat-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: 13.5px; }
.adat-bar-row .t { display: flex; align-items: center; gap: 7px; min-width: 0; color: #2B312C; }
.adat-bar-row .t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adat-bar-row .t i { width: 16px; text-align: center; color: #8C958A; }
.adat-bar-track { grid-column: 1 / -1; height: 8px; border-radius: 6px; background: #F0F2EE; overflow: hidden; margin-top: -4px; }
.adat-bar-fill { height: 100%; border-radius: 6px; background: var(--c, var(--adat-red)); width: 0; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.adat-bar-row .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.adat-leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.adat-leaders li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; background: #FAFBF9; border: 1px solid #EEF1EB; }
.adat-leaders li:hover { background: #FDF2F2; border-color: #F7C7C7; }
.adat-rank { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; background: #EEF1EB; color: #5B6359; }
.adat-rank.r1 { background: #F7D27E; color: #6B4E0A; } .adat-rank.r2 { background: #DDE1E6; color: #3E464E; } .adat-rank.r3 { background: #EFC09B; color: #6D3E17; }
.adat-leaders a { color: #1F2420; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.adat-leaders .n { font-weight: 800; font-variant-numeric: tabular-nums; color: #C94545; }
.adat-leaders .n small { font-weight: 500; color: #8C958A; }
.adat-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--adat-green-l); color: #3D5A26; }

/* Результаты поиска таблиц */
.adat-cmp-card { border-left: 4px solid var(--adat-red); }
.adat-cmp-list { display: grid; gap: 10px; }
.adat-cmp-item { border: 1px solid #EBEFE7; border-radius: 12px; padding: 11px 14px; background: #FCFDFB; }
.adat-cmp-item.is-maybe { opacity: .85; border-style: dashed; }
.adat-cmp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adat-cmp-name { font-size: 16px; font-weight: 700; color: #1F2420 !important; }
.adat-cmp-name:hover { color: var(--adat-red-dd) !important; }
.adat-cmp-inn { font-size: 12.5px; color: #8C958A; }
.adat-tag-red { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #FBE3E3; color: #A93838; }
.adat-tag-grey { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #EEF1EB; color: #5B6359; }
.adat-cmp-files { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.adat-cmp-files i { color: #E05A5A; }
.adat-cmp-files a { color: #3E4A3F; }
.adat-num { font-size: 12px; font-weight: 700; color: #3D5A26; background: var(--adat-green-l); border-radius: 6px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }

/* Подпись о правах внизу страницы */
.adat-footer { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #8C958A; background: transparent; border-top: 1px solid #EEF1EB; padding: 10px 16px; }
.main-footer.adat-footer { background: #F8FAF7; }
.adat-copy-ico { flex: none; border-radius: 4px; }
.adat-copy-sep { margin: 0 4px; color: #C3C9C0; }
.adat-footer-login { position: fixed; left: 0; right: 0; bottom: 14px; justify-content: center; border: 0; color: #6B7369; }
