
    /* ═══ ГЛОБАЛЬНЫЕ И УТИЛИТЫ ═══ */

    /* Скрытие элементов */
    /* .hidden {
      display: none !important;
    } */

    /* ═══ AUTH SCREEN ═══ */
    .auth-logo img {
      width: 280px;
      max-width: 90%;
      height: auto;
      border-radius: 10px;
    }

    /* ═══ SIDEBAR & NAV ═══ */
    .nav-item svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
    }

    .sidebar-bottom1 {
      display: flex;
      align-items: center;
      gap: 8px;
    }


    /* ═══ НОМЕНКЛАТУРА: ТАБЛИЦЫ И ПОИСК ═══ */

    /* Поля поиска и фильтры */
    #ops-q,
    #ops-type {
      width: 320px;
      /* Для ops-q переопределим ниже, если нужно */
      font-size: 12px;
    }

    #ops-type {
      width: 160px;
    }

    #ops-q {
      width: 320px;
    }

    /* Панель действий (Action Bar) */
    #ops-action-bar {
      display: flex;
      background: var(--accent-glow, rgba(59, 130, 246, 0.1));
      border: 1px solid rgba(59, 130, 246, 0.3);
      border-radius: var(--radius, 8px);
      padding: 10px 16px;
      margin-bottom: 10px;
      align-items: center;
      gap: 12px;
    }

    #ops-selected-info {
      font-size: 12px;
      color: var(--accent);
      font-weight: 600;
    }

    /* Кнопки в Action Bar */
    .btn-edit-ops {
      padding: 5px 14px;
      border: 1px solid var(--accent);
      border-radius: var(--radius, 8px);
      background: var(--accent-glow, rgba(59, 130, 246, 0.1));
      color: var(--accent);
      font-size: 12px;
      cursor: pointer;
    }

    .btn-delete-ops {
      padding: 5px 14px;
      border: 1px solid var(--red, #ef4444);
      border-radius: var(--radius, 8px);
      background: var(--red-bg, rgba(239, 68, 68, 0.1));
      color: var(--red-text, #fca5a5);
      font-size: 12px;
      cursor: pointer;
    }

    .btn-clear-ops {
      padding: 5px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius, 8px);
      background: var(--bg3, #1e293b);
      color: var(--text3);
      font-size: 12px;
      cursor: pointer;
    }

    /* Контейнер таблицы операций */
    .ops-table-container {
      overflow-x: auto;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg, 12px);
      max-height: calc(100vh - 260px);
      overflow-y: auto;
    }

    .ops-main-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 11px;
      min-width: 2400px;
    }

    /* Заголовки таблицы операций */
    .th-group-data {
      background: #1a2540;
      color: #60a5fa;
      padding: 5px 8px;
      text-align: center;
      border-bottom: 1px solid var(--border);
      border-right: 2px solid rgba(59, 130, 246, 0.5);
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .06em;
    }

    .th-group-tech {
      background: #162030;
      color: #34d399;
      padding: 5px 8px;
      text-align: center;
      border-bottom: 1px solid var(--border);
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .06em;
    }

    .th-sub {
      background: var(--bg3, #1e293b);
      padding: 5px 7px;
      font-size: 9px;
      color: var(--text3);
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
    }

    .th-sub-blue {
      color: #60a5fa;
    }

    .th-sub-green {
      color: #34d399;
    }

    .th-border-right {
      border-right: 2px solid rgba(59, 130, 246, 0.5);
    }

    /* Пагинация операций */
    .ops-pagination {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 8px;
      font-size: 12px;
      color: var(--text2, #cbd5e1);
    }

    

    .arc-meta-item {
      display: flex;
      flex-direction: column;
    }

    

    #arc-assembly-id {
      color: var(--accent);
    }

    .arc-actions {
      display: flex;
      gap: 8px;
      margin-bottom: 10px;
    }

    

    .arc-tbl th {
      background: var(--bg3, #1e293b);
      padding: 6px;
      text-align: left;
      font-size: 10px;
      color: var(--text3);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
    }

    .arc-tbl td {
      padding: 4px 6px;
      border-bottom: 1px solid var(--border);
    }

    /* Элементы внутри таблицы архива */
    .combo-wrap {
      position: relative;
    }

    .combo-dd {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--bg2);
      border: 1px solid var(--border);
      z-index: 100;
      max-height: 200px;
      overflow-y: auto;
    }

    .combo-dd.show {
      display: block;
    }

    

    /* Поиск в архиве */
    #arc-search {
      flex-shrink: 0;
      margin-bottom: 10px;
      font-size: 12px;
      width: 100%;
      box-sizing: border-box;
    }

    /* ═══ КАТАЛОГ (CAT) ═══ */
    



    #cat-search {
      margin-bottom: 10px;
      font-size: 12px;
      width: 100%;
      box-sizing: border-box;
    }

    /* ═══ ПРОИЗВОДСТВО (PROD) ═══ */
    .prod-search-row {
      display: flex;
      gap: 8px;
      margin-bottom: 12px;
      align-items: center;
      flex-wrap: wrap;
    }

    #prod-ops-q,
    #prod-proj-q {
      width: 280px;
      font-size: 12px;
    }

    #prod-ops-status,
    #prod-proj-status {
      width: 140px;
      font-size: 12px;
    }

    #prod-ops-info {
      font-size: 11px;
      color: var(--text3);
    }

    #prod-action-bar {
      display: none;
      background: var(--accent-glow, rgba(59, 130, 246, 0.1));
      border: 1px solid rgba(59, 130, 246, 0.3);
      border-radius: var(--radius, 8px);
      padding: 10px 16px;
      margin-bottom: 10px;
      align-items: center;
      gap: 12px;
    }

    #prod-selected-info {
      font-size: 12px;
      color: var(--accent);
      font-weight: 600;
    }

    .prod-table-wrap {
      overflow-x: auto;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg, 12px);
      max-height: calc(100vh - 260px);
      overflow-y: auto;
    }

    .prod-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 11px;
      min-width: 1800px;
      /* Для ops */
    }

    .prod-table.proj {
      min-width: 1400px;
      /* Для projects */
    }

    .prod-th {
      padding: 6px 8px;
      font-size: 9px;
      color: var(--text3);
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
      background: var(--bg3, #1e293b);
      position: sticky;
      top: 0;
      z-index: 5;
    }

    .prod-th-accent {
      color: var(--accent);
    }

    .prod-th-amber {
      color: var(--amber-text, #fbbf24);
    }

    .prod-th-green {
      color: #34d399;
    }

    .prod-pagination {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 10px;
      font-size: 12px;
      color: var(--text3);
    }

    /* Кнопки действий производства */
    .btn-prod-print {
      padding: 5px 14px;
      border: 1px solid #10b981;
      border-radius: var(--radius, 8px);
      background: rgba(16, 185, 129, 0.1);
      color: #10b981;
      font-size: 12px;
      cursor: pointer;
    }

    .btn-prod-detail,
    .btn-prod-edit {
      padding: 5px 14px;
      border: 1px solid var(--accent);
      border-radius: var(--radius, 8px);
      background: var(--accent-glow, rgba(59, 130, 246, 0.1));
      color: var(--accent);
      font-size: 12px;
      cursor: pointer;
    }

    .btn-prod-delete {
      padding: 5px 14px;
      border: 1px solid var(--red, #ef4444);
      border-radius: var(--radius, 8px);
      background: var(--red-bg, rgba(239, 68, 68, 0.1));
      color: var(--red-text, #fca5a5);
      font-size: 12px;
      cursor: pointer;
    }

    .btn-prod-clear {
      padding: 5px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius, 8px);
      background: var(--bg3, #1e293b);
      color: var(--text3);
      font-size: 12px;
      cursor: pointer;
    }

    /* ═══ МОДАЛЬНЫЕ ОКНА (ОБЩИЕ) ═══ */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 200;
      background: rgba(0, 0, 0, 0.75);
      overflow-y: auto;
    }

    .modal-content {
      min-width: 650px;
      margin: 40px auto;
      background: var(--bg2);
      border: 1px solid var(--border2);
      border-radius: var(--radius-lg, 12px);
      padding: 24px;
      width: fit-content;
      margin-bottom: 10%;
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 18px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border);
    }

    .modal-title {
      font-size: 16px;
      font-weight: 700;
      color: var(--accent);
    }

    .modal-close-btn {
      font-size: 13px;
      background: none;
      border: 1px solid var(--border2, #334155);
      border-radius: var(--radius, 8px);
      color: var(--text3);
      padding: 8px 12px;
      cursor: pointer;
      transition: all 0.12s;
    }

    .modal-close-btn:hover {
      border-color: var(--red, #ef4444);
      color: var(--red-text, #fca5a5);
    }

    /* ═══ ЛИЧНЫЙ КАБИНЕТ ═══ */
    #edit-profile-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      z-index: 100001;
      align-items: center;
      justify-content: center;
    }

    #edit-profile-modal>div {
      background: #161b27;
      border: 1px solid #3b82f6;
      border-radius: 12px;
      padding: 32px;
      width: 100%;
      max-width: 420px;
    }

    #edit-profile-modal label {
      display: block;
      margin: 12px 0 6px;
    }

    .profile-container {
      max-width: 620px;
      margin: 40px auto;
      background: var(--bg2, #161b27);
      border-radius: 16px;
      padding: 40px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .profile-header {
      text-align: center;
      margin-bottom: 40px;
    }

    #profile-av {
      width: 110px;
      height: 110px;
      margin: 0 auto 20px;
      background: #3b82f6;
      color: white;
      font-size: 42px;
      font-weight: bold;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    }

    #profile-name {
      margin: 0 0 8px 0;
      font-size: 26px;
    }

    #profile-email {
      color: var(--text3);
      font-size: 16px;
      margin: 0 0 16px 0;
    }

    #profile-role {
      display: inline-block;
      padding: 8px 24px;
      background: #334155;
      color: var(--accent);
      border-radius: 30px;
      font-size: 15px;
    }

    .profile-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 20px;
      margin-bottom: 40px;
    }

    .stat-card-inner {
      padding: 24px;
      text-align: center;
    }

    #stat-ops-count {
      font-size: 42px;
      font-weight: 700;
      color: var(--accent);
    }

    #stat-last-login {
      font-size: 18px;
      color: var(--text2, #cbd5e1);
    }

    .profile-actions {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .cabinet-btn {
      padding: 14px;
      font-size: 16px;
      background: var(--bg3, #1e293b);
      color: white;
      border: 1px solid var(--border);
      border-radius: 8px;
      cursor: pointer;
    }

    .cabinet-btn:hover {
      background: var(--border);
    }

    .my-records-section {
      max-width: 920px;
      margin: 32px auto 40px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .my-records-title {
      margin: 0;
      font-size: 18px;
      color: var(--accent);
    }

    .records-table-wrap {
      overflow-x: auto;
    }

    .records-table {
      min-width: 600px;
      font-size: 11px;
    }

    .records-table.prod {
      min-width: 500px;
    }

    /* ═══ УПРАВЛЕНИЕ ПОЛЬЗОВАТЕЛЯМИ ═══ */
    #admin-user-modal,
    #admin-pass-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      z-index: 100001;
      align-items: center;
      justify-content: center;
    }

    #admin-user-modal>div {
      background: #161b27;
      border: 1px solid #3b82f6;
      border-radius: 12px;
      padding: 32px;
      width: 100%;
      max-width: 500px;
    }

    #admin-pass-modal>div {
      background: #161b27;
      border: 1px solid #3b82f6;
      border-radius: 12px;
      padding: 32px;
      width: 100%;
      max-width: 380px;
    }

    #ops-total {
      font-size: 11px;
      color: var(--text3);
    }

    .admin-users-header {
      padding: 12px 0 10px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .admin-add-btn {
      padding: 8px 18px;
      background: #3b82f6;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
    }

    #users-count {
      font-size: 12px;
      color: var(--text3);
    }

    .users-table-scroller {
      max-height: calc(100vh - 200px);
      overflow-x: auto;
      overflow-y: auto;
    }

    .users-table {
      min-width: 900px;
    }

    .admin-form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .admin-label {
      display: block;
      margin-bottom: 4px;
      font-size: 12px;
      color: var(--text3);
    }

    .admin-input {
      width: 100%;
    }

    #admin-user-modal-err,
    #admin-pass-modal-err {
      color: #f87171;
      font-size: 12px;
      margin-top: 8px;
      display: none;
    }

    .admin-modal-actions {
      margin-top: 20px;
      display: flex;
      gap: 12px;
    }

    .admin-save-btn {
      flex: 1;
      padding: 12px;
      background: #3b82f6;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
    }

    .admin-cancel-btn {
      flex: 1;
      padding: 12px;
      background: #334155;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
    }

    /* ═══ МОДАЛКА: ДОБАВЛЕНИЕ В ПРОИЗВОДСТВО ═══ */
    #prod-form-modal .modal-content {
      max-width: 1100px;
      margin: 20px auto;
    }

    .pf-header-text {
      font-size: 11px;
      color: var(--text3);
      margin-top: 2px;
    }

    

    .form-field {
      flex: 1;
      min-width: 150px;
    }

    

    .pf-ops-table-wrap {
      overflow-x: auto;
      max-height: 400px;
      overflow-y: auto;
      border: 1px solid var(--border);
      border-radius: var(--radius, 8px);
    }

    .pf-ops-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 11px;
      min-width: 1000px;
    }

    .pf-actions {
      display: flex;
      gap: 10px;
      padding-top: 12px;
      border-top: 1px solid var(--border);
    }

    /* ═══ МОДАЛКА: ДОБАВЛЕНИЕ ОПЕРАЦИЙ (TECH FORM) ═══ */
    #panel-techops-form .modal-content {
      max-width: 1100px !important;
      margin: 20px auto;
      position: relative;
    }

    .tf-action-hint {
      display: none;
      font-size: 11px;
      color: var(--amber-text, #fbbf24);
      background: var(--amber-bg, rgba(245, 158, 11, 0.1));
      border: 1px solid rgba(245, 158, 11, 0.2);
      border-radius: var(--radius, 8px);
      padding: 8px 10px;
    }

    .ops-table-wrap {
      overflow-x: auto;
    }

    .ops-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 11px;
    }

    .ops-table th {
      background: var(--bg3, #1e293b);
      padding: 5px 7px;
      font-size: 9px;
      color: var(--text3);
      border-bottom: 1px solid var(--border);
      text-align: left;
    }

    .ops-table td {
      padding: 4px;
      border-bottom: 1px solid var(--border);
    }

    /* ═══ ЗАГРУЗКА ИЗ БАЗЫ (MODAL) ═══ */
    #arc-load-modal>div {
      background: #161b27;
      border: 1px solid #3b82f6;
      border-radius: 12px;
      padding: 32px;
      width: 100%;
      max-width: 440px;
      margin: 0 16px;
    }

    #arc-load-modal h3 {
      margin: 0 0 6px 0;
      color: #e2e8f0;
      font-size: 16px;
    }

    #arc-load-modal p {
      margin: 0 0 20px 0;
      font-size: 12px;
      color: #64748b;
    }

    #arc-load-modal-err {
      color: #f87171;
      font-size: 12px;
      margin-top: 8px;
      display: none;
    }

    #arc-load-modal .modal-btns {
      display: flex;
      gap: 12px;
      margin-top: 20px;
      justify-content: flex-end;
    }

    #arc-load-modal-btn {
      padding: 10px 20px;
      background: #3b82f6;
      border: none;
      border-radius: 8px;
      color: #fff;
      font-weight: 600;
      cursor: pointer;
      font-size: 13px;
    }
