﻿:root {
  --success-700: #047857;
}

* { box-sizing: border-box; }
    body { margin: 0; font-family: 'Archivo', sans-serif; color: var(--grey-900); background: var(--grey-0); min-height: 100vh; }

    .layout { display: flex; min-height: 100vh; }

    .sidebar {
      width: 272px; flex-shrink: 0; background: var(--grey-0); border-right: 1px solid var(--grey-100);
      display: flex; flex-direction: column; transition: width 0.2s ease;
    }
    .sidebar.is-collapsed { width: 80px; }
    .sidebar.is-collapsed .sidebar__title, .sidebar.is-collapsed .sidebar__search,
    .sidebar.is-collapsed .sidebar__nav-label, .sidebar.is-collapsed .sidebar__nav-link-text {
      overflow: hidden; opacity: 0; width: 0; padding: 0; margin: 0; pointer-events: none; white-space: nowrap;
    }
    .sidebar.is-collapsed .sidebar__header { padding: 12px 8px; justify-content: center; }
    .sidebar.is-collapsed .sidebar__nav-link { justify-content: center; padding: 0 8px; }
    .sidebar.is-collapsed .sidebar__nav-section { padding: 0 8px; }
    .sidebar__header { padding: 12px 16px; border-bottom: 1px solid var(--grey-100); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .sidebar__logo { width: 32px; height: 32px; background: var(--primary-500); border: 1px solid var(--primary-600); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .sidebar__logo img { width: 20px; height: 20px; object-fit: contain; }
    .sidebar__title { font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--grey-900); white-space: nowrap; }
    .sidebar__collapse { width: 24px; height: 24px; border: 1px solid var(--grey-100); border-radius: 6px; background: var(--grey-0); cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: transform 0.2s ease; }
    .sidebar.is-collapsed .sidebar__collapse { transform: rotate(180deg); }
    .sidebar__search { margin: 20px 16px 0; height: 40px; padding: 8px 12px; border: 1px solid var(--grey-100); border-radius: 8px; display: flex; align-items: center; gap: 8px; background: var(--grey-0); }
    .sidebar.is-collapsed .sidebar__search { margin: 20px 8px 0; width: 48px; min-width: 48px; padding: 8px; justify-content: center; }
    .sidebar.is-collapsed .sidebar__search input, .sidebar.is-collapsed .sidebar__search kbd { display: none; }
    .sidebar__search input { flex: 1; min-width: 0; border: none; background: none; font: 400 14px/1.5 Archivo; color: var(--grey-900); }
    .sidebar__search input::placeholder { color: var(--grey-400); }
    .sidebar__search kbd { font-family: inherit; font-size: 12px; color: var(--grey-400); background: var(--grey-50); padding: 2px 4px; border-radius: 4px; }
    .sidebar__nav { flex: 1; padding: 8px 16px 16px; overflow-y: auto; }
    .sidebar.is-collapsed .sidebar__nav { padding: 8px 8px 16px; }
    .sidebar__nav-section { margin-bottom: 16px; }
    .sidebar__nav-label { font-size: 12px; font-weight: 500; color: var(--grey-300); letter-spacing: 0.24px; padding: 4px 12px; margin-bottom: 2px; }
    .sidebar__nav-link { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px; font-size: 16px; font-weight: 500; color: var(--grey-500); text-decoration: none; margin-bottom: 2px; }
    .sidebar__nav-link:hover { background: var(--grey-25); color: var(--grey-900); }
    .sidebar__nav-link.is-active { background: var(--grey-25); color: var(--primary-500); }
    .sidebar__nav-link.logout { color: var(--error-100); }
    .sidebar__nav-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
    .sidebar__nav-link-text { white-space: nowrap; }

    .main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0 24px 24px; }
    .breadcrumbs { font-size: 14px; font-weight: 500; color: var(--grey-400); }
    .breadcrumbs a { color: var(--grey-400); text-decoration: none; }
    .breadcrumbs a:hover { color: var(--primary-500); }
    .breadcrumbs span { color: var(--grey-900); }
    .main__profile { display: flex; align-items: center; gap: 8px; }
    .main__profile-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
    .main__profile-name { font-size: 12px; font-weight: 600; color: var(--grey-900); }
    .main__profile-role { font-size: 12px; font-weight: 400; color: var(--grey-500); }

    .page-header { margin-top: 24px; margin-bottom: 24px; }
    .page-header__title { font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--grey-900); margin: 0 0 8px; }
    .page-header__desc { font-size: 14px; color: var(--grey-500); margin: 0; }
    .card { background: var(--grey-0); border: 1px solid var(--grey-100); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
    .card__title { font-size: 16px; font-weight: 600; color: var(--grey-900); margin: 0 0 12px; }
    .card__text { font-size: 14px; color: var(--grey-500); margin: 0 0 16px; line-height: 1.5; }
    .card__text:last-child { margin-bottom: 0; }
    .reg-list { list-style: none; padding: 0; margin: 0; }
    .reg-list__item { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--grey-100); font-size: 14px; color: var(--grey-900); }
    .reg-list__item:last-child { border-bottom: none; }
    .reg-list__name { font-weight: 500; }
    .reg-list__meta { font-size: 13px; color: var(--grey-500); }
    .reg-list__badge { padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--grey-25); color: var(--grey-500); }
    .section-title { font-size: 14px; font-weight: 600; color: var(--grey-900); margin: 0 0 12px; }
    .section-list { margin: 0; padding-left: 20px; color: var(--grey-500); font-size: 14px; line-height: 1.6; }
    .btn { height: 40px; padding: 0 16px; border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; background: var(--grey-0); text-decoration: none; }
    .btn--secondary { border-color: var(--grey-100); color: var(--grey-900); }
    .btn--primary { background: var(--primary-500); color: var(--grey-0); border-color: var(--primary-600); }
    .page-header-wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 24px; margin-bottom: 24px; flex-wrap: wrap; }
    .page-header-wrap .page-header { margin: 0; }
    .sources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
    .source-card { background: var(--grey-0); border: 1px solid var(--grey-100); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; transition: border-color 0.2s, box-shadow 0.2s; }
    .source-card:hover { border-color: var(--primary-500); box-shadow: 0 2px 8px rgba(13,13,18,0.08); }
    .source-icon-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
    .source-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
    .source-icon.lex { background: #EDE9FE; color: #7C3AED; }
    .source-icon.eqaror { background: var(--grey-25); color: var(--primary-600); }
    .source-icon.procurement { background: #FEE2E2; color: #DC2626; }
    .source-icon.norma { background: #D1FAE5; color: #059669; }
    .source-icon.soliq { background: #FEF3C7; color: #D97706; }
    .source-icon.cbr { background: #E0E7FF; color: #4338CA; }
    .source-status { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; }
    .source-status.synced { background: var(--success-100); color: var(--success-700); }
    .source-status.partial { background: var(--warning-100); color: var(--warning-700); }
    .source-card h4 { font-size: 15px; font-weight: 600; color: var(--grey-900); margin: 0 0 4px; }
    .source-url { font-size: 12px; color: var(--primary-600); margin-bottom: 10px; display: block; }
    .source-desc { font-size: 13px; color: var(--grey-500); line-height: 1.5; margin-bottom: 12px; flex: 1; }
    .source-stats { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--grey-100); font-size: 12px; color: var(--grey-500); }
    .source-stat strong { color: var(--grey-900); }
    .reg-table-card { background: var(--grey-0); border: 1px solid var(--grey-100); border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
    .reg-table-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--grey-100); flex-wrap: wrap; gap: 12px; }
    .reg-table-header h3 { font-size: 15px; font-weight: 600; color: var(--grey-900); margin: 0; }
    .reg-table-toolbar { display: flex; gap: 8px; align-items: center; }
    .reg-type-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
    .reg-type-badge.law { background: #EDE9FE; color: #7C3AED; }
    .reg-type-badge.decree { background: var(--grey-25); color: var(--primary-600); }
    .reg-type-badge.order { background: #FEF3C7; color: #D97706; }
    .reg-type-badge.code { background: #D1FAE5; color: #059669; }
    .data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
    .data-table th { background: var(--grey-25); text-align: left; font-weight: 500; color: var(--grey-500); padding: 12px 16px; border-bottom: 1px solid var(--grey-100); }
    .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--grey-100); color: var(--grey-900); }
    .data-table tbody tr:hover { background: var(--grey-25); }
    .data-table .row-link { color: var(--primary-600); text-decoration: none; font-weight: 500; }
    .data-table .row-link:hover { text-decoration: underline; }
    .select-field { height: 32px; padding: 0 8px; border: 1px solid var(--grey-100); border-radius: 8px; font-size: 12px; font-family: inherit; color: var(--grey-900); background: var(--grey-0); }
    .table-search { width: 200px; height: 32px; padding: 0 8px; border: 1px solid var(--grey-100); border-radius: 8px; font-size: 12px; font-family: inherit; }
  


