/*
 * ACE (Automation Control Engineering) Suite
 * Copyright (c) 2026 ACE Systems. All rights reserved.
 * Property of ACE Systems - Whakatane, Bay of Plenty, New Zealand.
 *
 * Proprietary and confidential. Unauthorised copying, distribution or
 * modification of this file, in whole or in part, is prohibited.
 */
/* Schneider FD Generator small tweaks on top of fd_style.css */

.sch-status-banner{
  background:#f7f9ff;
  border:1px solid #d8e2ff;
  color:#2c3e50;
  border-radius:8px;
  padding:10px 12px;
  margin:12px auto;
  max-width: 1200px;
  font-size: 0.92em;
}

#file-selection-tabs{
  max-width: 1200px;
  margin: 0 auto;
}
#file-selection-tabs.filter-controls{
  max-width: 1200px;
  margin: 15px auto 20px auto;
}

.sch-bit-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.9em;
}
.sch-bit-table th, .sch-bit-table td{
  border: 1px solid #e0e0e0;
  padding: 6px 8px;
  vertical-align: top;
}
.sch-bit-table th{
  background: #f4f7f6;
  font-weight: 600;
}

/* --- Section Quick Links (jump-to index) --- */
.sch-quick-links{
  max-width: 1200px;
  margin: 14px auto;
  background: #f0f7ff;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  padding: 12px 16px;
}
.sch-ql-head{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.sch-ql-head h2{ margin:0; font-size:1.05em; color:#005a9c; }
.sch-ql-filter{
  flex:1; min-width:200px; padding:6px 10px;
  border:1px solid #cbd5e1; border-radius:6px; font-size:0.9em;
}
.sch-ql-toggle{
  background:#e2ecf8; border:1px solid #cfe0f5; color:#005a9c;
  border-radius:6px; padding:5px 12px; cursor:pointer; font-weight:600; font-size:0.85em;
}
.sch-ql-toggle:hover{ background:#d5e5f7; }
.sch-ql-list{
  list-style:none; margin:10px 0 0; padding:0;
  display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:2px 14px;
  max-height:320px; overflow:auto;
}
.sch-ql-list li{ margin:0; }
.sch-ql-list a{
  display:flex; justify-content:space-between; gap:8px; align-items:center;
  padding:4px 8px; border-radius:5px; text-decoration:none;
  color:#00527a; font-size:0.88em;
}
.sch-ql-list a:hover{ background:#dcebfa; text-decoration:underline; }
.sch-ql-count{
  background:#dbe7f5; color:#33506b; border-radius:10px;
  padding:0 8px; font-size:0.82em; font-weight:600; flex-shrink:0;
}
.sch-sec-meta{ font-size:0.72em; font-weight:400; color:#6b7a8d; margin-left:6px; }
h3.sch-sec-flash{ background:#fff6d5; transition: background 0.4s ease; border-radius:4px; }

/* Per-block deep-link into the existing FBD Visualize modal */
.sch-goto-fbd-btn{
  font-size: 0.72em;
  font-weight: 600;
  background: #fff;
  color: #0d6e7a;
  border: 1px solid #17a2b8;
  border-radius: 5px;
  padding: 2px 10px;
  margin-left: 10px;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sch-goto-fbd-btn:hover{
  background: #17a2b8;
  color: #fff;
}
.fd-section > h4 .sch-goto-fbd-btn{ font-weight: 600; }

/* Then/out tag is the primary card identity; description sits beside it. */
.sch-fd-out-tag{ font-weight: 700; }
.sch-fd-out-desc{
  font-weight: 500;
  color: #5a6a7a;
  margin-left: 8px;
}

.fd-rung .fd-row{
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: 10px;
}
@media (max-width: 900px){
  .fd-rung .fd-row{ grid-template-columns: 70px 1fr; }
  .fd-rung .fd-row .fd-desc{ grid-column: 1 / -1; opacity: .95; }
}
