.axi-native-hidden { display: none !important; }
[data-testid="button-create-project"] { display:none !important; }
.axi-screen { min-width: 0; color: #0f172a; }
.axi-screen h2 { font-size: 18px; }
.axi-screen .data-table, .axi-modal-overlay .data-table { table-layout: auto; }
.axi-screen .data-table td, .axi-modal-overlay .data-table td { white-space: normal; overflow: visible; text-overflow: clip; vertical-align: top; overflow-wrap: anywhere; }
.axi-screen .data-table th, .axi-modal-overlay .data-table th { white-space: normal; }
.axi-table-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 12px; background: white; }
.axi-table-wrap table { min-width: 960px; }
.axi-name { min-width: 280px; white-space: pre-wrap !important; }
.axi-number { min-width: 100px; white-space: nowrap !important; font-variant-numeric: tabular-nums; }
.axi-screen textarea, .axi-modal-overlay textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.axi-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:16px; }
.axi-screen > .flex, .axi-screen .flex.items-center.justify-between { flex-wrap:wrap; gap:12px; }
.axi-screen details { background:white; border:1px solid #e2e8f0; border-radius:12px; margin:12px 0; padding:16px; }
.axi-screen summary { cursor:pointer; font-weight:600; }
.axi-screen label, .axi-modal-overlay label { line-height:1.5; }
.axi-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.axi-wide { grid-column:1/-1; }
.axi-note { font-size:13px; color:#64748b; margin:8px 0 16px; }
.axi-record { display:grid; grid-template-columns:180px 1fr; gap:8px; margin-top:16px; overflow-wrap:anywhere; }
.axi-record dt { color:#64748b; }
.axi-screen button, .axi-modal-overlay button { min-height:34px; white-space:nowrap; overflow-wrap:normal; }
.axi-screen input[type=checkbox], .axi-modal-overlay input[type=checkbox] { width:17px; height:17px; }
#axi-section-warehouse .overflow-hidden, #axi-section-plan .overflow-hidden { overflow-x:auto; }
#axi-section-warehouse table { min-width:940px; }
#axi-section-warehouse td:last-child .flex { flex-direction:column; align-items:flex-start; }
#axi-section-warehouse td { min-width:75px; }
#axi-section-warehouse td:first-child { min-width:110px; }
#axi-section-plan table { min-width:920px; }
#axi-section-plan td .flex { flex-wrap:wrap; }
.axi-modal-overlay .data-table input[type=number] { min-width:130px; }
.axi-screen > .flex.items-center.justify-between > div:last-child { flex-wrap:wrap; justify-content:flex-end; max-width:100%; }
.axi-toolbar > select { width:auto; min-width:150px; }
.axi-kind-switch { display:flex; flex-wrap:wrap; gap:4px; margin-top:8px; }
.axi-kind-switch button { padding:3px 7px; min-height:26px; font-size:11px; border:1px solid #cbd5e1; border-radius:6px; background:#fff; color:#475569; }
.axi-kind-switch button[aria-pressed="true"] { background:#dbeafe; border-color:#60a5fa; color:#1d4ed8; font-weight:600; }
.axi-modal-overlay [data-preview-scroll] { overscroll-behavior:contain; }
.axi-document-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:8px; }
.axi-document-list > div { min-width:0; overflow-wrap:anywhere; }
.axi-review-list { list-style:decimal; padding-left:24px; max-height:45vh; overflow:auto; margin-top:14px; }
.axi-review-list li { padding:9px 8px; border-bottom:1px solid #e2e8f0; overflow-wrap:anywhere; }
.axi-review-list li span { display:block; color:#64748b; font-size:12px; margin-top:3px; }
.axi-modal-overlay .axi-resource-table table { min-width:0; width:100%; }
.axi-modal-overlay .axi-resource-table .axi-name { min-width:240px; }
.axi-modal-overlay .axi-resource-table input[type=number] { min-width:96px; width:110px; }
#axi-section-contract-analytics .axi-customer-card { grid-column:1/-1; }
.axi-customer-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 24px; margin-top:18px; }
@media (max-width:700px) { .axi-customer-fields { grid-template-columns:1fr; } }
.axi-customer-fields > div { min-width:0; }
.axi-customer-label { color:#64748b; font-size:12px; }
.axi-customer-value { color:#0f172a; font-size:14px; margin-top:3px; overflow-wrap:anywhere; }

/* Организация в боковой панели */
.axi-org-switch { padding: 0 12px 10px; }
.axi-org-switch label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin: 0 0 4px 4px; }
.axi-org-switch select { width: 100%; background: rgba(255,255,255,.06); color: #e2e8f0; border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 6px 8px; font-size: 12px; }
.axi-org-switch select option { color: #0f172a; background: #fff; }

/* Выбор контрагента из базы */
.axi-cp-picker { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; max-height: 280px; overflow: auto;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 12px 32px rgba(15,23,42,.16); padding: 4px; }
.axi-cp-group { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; padding: 8px 10px 4px; }
.axi-cp-picker button { display: flex; width: 100%; justify-content: space-between; gap: 12px; text-align: left; padding: 7px 10px;
  border-radius: 6px; font-size: 13px; color: #0f172a; }
.axi-cp-picker button:hover { background: #eff6ff; }
.axi-cp-picker small { color: #94a3b8; font-size: 11px; white-space: nowrap; }
.axi-cp-empty { padding: 10px; font-size: 12px; color: #64748b; }

/* Массовые действия в смете */
.axi-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin: 0 0 12px;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; font-size: 13px; }
.axi-bulk select { width: auto; }
.axi-bulk[hidden] { display: none; }

/* КС-2 / КС-3 */
.axi-ks-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 12px 0; }
.axi-ks-summary div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; font-size: 12px; color: #64748b; }
.axi-ks-summary b { display: block; font-size: 15px; color: #0f172a; margin-top: 2px; }
.axi-ks-table input[type=number] { width: 92px; padding: 4px 6px; }
.axi-ks-table td:nth-child(2), .axi-ks-table td:last-child { white-space: nowrap; }
.axi-ks-table td.axi-name { min-width: 260px; }
.axi-ks-table tr.axi-muted td { color: #94a3b8; }

/* Расценки и КП */
.axi-cell { width: 100%; min-width: 0; border: 1px solid transparent; border-radius: 6px; padding: 4px 6px; font-size: 13px;
  color: #0f172a; background: transparent; }
.axi-cell:hover { border-color: #e2e8f0; background: #fff; }
.axi-cell:focus { outline: none; border-color: #3b82f6; background: #fff; box-shadow: 0 0 0 1px #3b82f6; }
.axi-cell.axi-saved { background: #ecfdf5; border-color: #a7f3d0; }
.axi-screen .data-table.axi-rates td, .axi-screen .data-table.axi-kp-items td { vertical-align: middle; padding-top: 4px; padding-bottom: 4px; }
.axi-screen .data-table .axi-cost { background: #fffbeb; }
.axi-screen .data-table th.axi-cost { color: #b45309; }
.axi-rate-group td { background: #f8fafc; font-weight: 600; font-size: 12px; color: #334155; text-transform: none; }
.axi-rate-new td { background: #eff6ff; }
.axi-rate-new input::placeholder { color: #64748b; }
.axi-kp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.axi-kp-summary { position: sticky; top: 12px; }
@media (max-width: 1100px) { .axi-kp-layout { grid-template-columns: 1fr; } .axi-kp-summary { position: static; } }
.axi-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
@media (max-width: 760px) { .axi-form-grid { grid-template-columns: 1fr; } }
.axi-form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.axi-kp-search { position: relative; flex: 1; min-width: 260px; max-width: 520px; }
.axi-kp-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; max-height: 340px; overflow: auto;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 12px 32px rgba(15,23,42,.16); padding: 4px; }
.axi-kp-results[hidden] { display: none; }
.axi-kp-results button { display: flex; width: 100%; justify-content: space-between; gap: 12px; text-align: left; padding: 7px 10px;
  border-radius: 6px; font-size: 13px; color: #0f172a; }
.axi-kp-results button:hover { background: #eff6ff; }
.axi-kp-tools { white-space: nowrap; text-align: right; }
.axi-kp-tools button { font-size: 12px; color: #94a3b8; padding: 2px 4px; border-radius: 4px; }
.axi-kp-tools button:hover { color: #1d4ed8; background: #eff6ff; }
.axi-kp-tools button.axi-rm:hover { color: #dc2626; background: #fef2f2; }
.axi-letterhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px;
  border: 1px dashed #cbd5e1; border-radius: 10px; font-size: 13px; color: #334155; }
.axi-kp-list td:nth-child(2), .axi-kp-list td:nth-child(6), .axi-kp-list td:nth-child(7), .axi-kp-list td:nth-child(8),
.axi-kp-list td:nth-child(9) { white-space: nowrap; }
.axi-kp-summary span:last-child { white-space: nowrap; }
