:root {
  font-family: system-ui;
  color: #203b35;
  background: #f6f8f2;
}
body {
  margin: 0;
}
main,
header {
  max-width: 1180px;
  margin: auto;
  padding: 20px;
}
header {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
button,
input,
select,
textarea {
  font: inherit;
  padding: 10px;
  border: 1px solid #9aaa9f;
  border-radius: 7px;
}
button,
a {
  cursor: pointer;
}
a {
  color: #236855;
}
button {
  background: #e7f0ca;
  color: #203b35;
}
section,
article {
  padding: 18px;
  background: white;
  border: 1px solid #d3ddd2;
  border-radius: 10px;
  margin: 16px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}
textarea {
  display: block;
  width: 95%;
  min-height: 80px;
}
.bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.notice {
  background: #fff1d6;
  padding: 15px;
}
.muted {
  color: #52675c;
  font-size: 0.85em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
}
progress {
  width: 100%;
}
svg {
  max-width: 100%;
  height: auto;
}
.label {
  break-inside: avoid;
  border: 1px dashed #888;
  padding: 10px;
  display: inline-block;
  width: 220px;
  margin: 7px;
  vertical-align: top;
}
.label > b,
.label > small {
  display: block;
}
.label svg {
  width: 100px;
  display: block;
}
.operation img {
  max-width: 220px;
}
.print-only {
  display: none;
}
@media (max-width: 600px) {
  main {
    padding: 10px;
  }
  table {
    display: block;
    overflow: auto;
  }
  button {
    min-height: 44px;
  }
}
@media print {
  header,
  .no-print {
    display: none !important;
  }
  body {
    background: white;
  }
  main {
    max-width: none;
    padding: 0;
  }
  section,
  article {
    break-inside: avoid;
    box-shadow: none;
  }
  .print-only {
    display: block;
  }
  a {
    color: black;
    text-decoration: none;
  }
  textarea {
    border: 0;
  }
  details {
    display: block;
  }
}
.workshop-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  gap: 16px;
  padding: 12px;
}
.workshop-shell > section.center {
  min-width: 0;
}
.workshop-shell #stage {
  height: 62vh !important;
  min-height: 400px;
}
.workshop-sidebar {
  min-width: 0;
  max-height: 82vh;
  overflow: auto;
}
.workshop-sidebar aside {
  width: auto !important;
  padding: 10px;
}
.workshop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  position: sticky;
  top: 0;
  background: #f6f8f2;
  z-index: 5;
  padding: 8px;
}
.workshop-tabs button {
  padding: 7px;
}
.workshop-tabs [aria-pressed="true"] {
  background: #c0db71;
}
.workshop-sidebar .ag-layout {
  display: block;
}
.workshop-sidebar #assembly-guide {
  padding: 8px;
}
.workshop-sidebar .ag-list {
  max-height: 160px;
}
.workshop-sidebar #alk-product {
  margin: 0 !important;
}
.workshop-sidebar #alk-product > div {
  flex-wrap: wrap;
}
.workshop-sidebar .ag-card {
  padding: 8px;
}
body > header {
  flex-wrap: nowrap;
}
body > header .alk-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
}
body > header .alk-brand h1 {
  font-size: 17px;
}
@media (max-width: 850px) {
  .workshop-shell {
    grid-template-columns: 1fr !important;
  }
  .workshop-shell #stage {
    height: 48vh !important;
    min-height: 270px;
  }
  .workshop-sidebar {
    max-height: none;
  }
  body > header .alk-brand h1 {
    display: none;
  }
}
.workshop-sidebar .system-panel {
  padding: 12px !important;
  width: auto !important;
  min-width: 0 !important;
}
.workshop-sidebar .system-summary {
  display: block !important;
}
.workshop-sidebar .system-panel h2 {
  font-size: 16px;
}
.workshop-shell #stage {
  min-height: 350px;
}
.workshop-sidebar .system-card {
  max-width: 100%;
}

.workshop-sidebar .system-heading {
  display: block;
}
.workshop-sidebar .system-card {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 8px;
}

.workshop-sidebar .system-heading p {
  margin: 8px 0;
}
.workshop-sidebar .revision-badge {
  display: inline-block;
  margin-bottom: 8px;
}

/* corr-21: Taller y Juntas y felpas con el mismo aire que el resto (fondo, tipografía, formularios en grilla) */
:root:has(body.workshop-page){background:#edf0e8}
body.workshop-page{background:#edf0e8;color:#213832;font-size:14px}
body.workshop-page>header{padding:16px 24px;max-width:none}
body.workshop-page main{max-width:1100px;padding:24px 20px 60px}
body.workshop-page section,body.workshop-page article{border-radius:14px;border-color:#d5ddd5}
body.workshop-page h2{font-size:18px;margin:0 0 10px}
body.workshop-page main input,body.workshop-page main select,body.workshop-page main textarea{font-size:13px;padding:7px 9px;border-color:#c5d0c4;border-radius:7px}
body.workshop-page main button{font-size:13px;padding:7px 12px;border-radius:7px;border:1px solid #abc55d;background:#c9e07a;font-weight:600}
body.workshop-page form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px 14px;align-items:end}
body.workshop-page form label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#617359}
body.workshop-page form label:has(textarea){grid-column:1 / -1}
body.workshop-page form textarea{width:100%;box-sizing:border-box;min-height:80px}
body.workshop-page form button{justify-self:start}
body.workshop-page .bar{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
body.workshop-page .bar label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#617359}
body.workshop-page #status{color:#5b6f61}
