/* Openazis Tools Styling — Спецификация, Скрипты и Экспорт */

/* 1. Modal Windows Sizing */
.spec-modal-window {
  width: 1100px !important;
  max-width: 96vw !important;
  height: 88vh !important;
}

.script-modal-window {
  width: 980px !important;
  max-width: 96vw !important;
  height: 85vh !important;
}

/* 2. Specification Table & Toolbar */
.spec-tab-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.spec-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #161b22;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #30363d;
}

.spec-search-inp {
  background: #0d1117;
  border: 1px solid #30363d;
  color: #e6edf3;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  width: 280px;
  outline: none;
}
.spec-search-inp:focus {
  border-color: #58a6ff;
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

.spec-stats-bar {
  font-size: 12.5px;
  color: #8b949e;
}
.spec-stats-bar b {
  color: #58a6ff;
}

.spec-table-container {
  flex: 1;
  overflow: auto;
  border: 1px solid #30363d;
  border-radius: 8px;
  background: #0d1117;
}

.spec-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #161b22;
}

.spec-row-hoverable {
  cursor: pointer;
  transition: background 0.15s ease;
}
.spec-row-hoverable:hover td {
  background: rgba(56, 139, 253, 0.15) !important;
}

/* 3. Scripting Playground Styling */
.script-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}

.script-select {
  background: #0d1117;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  outline: none;
}

.script-modal-body {
  display: grid;
  grid-template-rows: 1.8fr 1fr;
  gap: 12px;
  padding: 16px;
  flex: 1;
  overflow: hidden;
  background: #0d1117;
}

.script-editor-wrapper {
  position: relative;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  background: #090d13;
}

.script-textarea {
  width: 100%;
  height: 100%;
  background: transparent;
  color: #79c0ff;
  font-family: Consolas, "Fira Code", monospace;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
  border: none;
  resize: none;
  outline: none;
  tab-size: 2;
  box-sizing: border-box;
}

.script-log-wrapper {
  display: flex;
  flex-direction: column;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  background: #06090f;
}

.script-log-header {
  font-size: 11px;
  font-weight: 600;
  color: #8b949e;
  background: #161b22;
  padding: 4px 10px;
  border-bottom: 1px solid #21262d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.script-console-pre {
  margin: 0;
  padding: 10px 14px;
  font-family: Consolas, monospace;
  font-size: 12px;
  color: #7ee787;
  white-space: pre-wrap;
  overflow-y: auto;
  flex: 1;
}

/* 4. Print Styling for Specification */
@media print {
  body * {
    visibility: hidden;
  }
  #specModal,
  #specModal .b3d-modal-window,
  #specModal .b3d-modal-body,
  #specModal table,
  #specModal table * {
    visibility: visible;
  }
  #specModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff !important;
    color: #000 !important;
    padding: 0;
  }
  #specModal .b3d-modal-window {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
  }
  #specModal .b3d-modal-header,
  #specModal .b3d-modal-tabs,
  #specModal .b3d-modal-footer,
  #specModal .spec-toolbar {
    display: none !important;
  }
  .spec-table-container {
    border: 1px solid #ccc !important;
    background: #fff !important;
  }
  .spec-table th,
  .spec-table td {
    color: #000 !important;
    border-bottom: 1px solid #ddd !important;
    font-size: 10pt !important;
  }
}
